Manuscript Offprint

arXiv:2609.09233

Subagents vs Agent Skills: Executing Reusable Knowledge for Long-Horizon Agentic Tasks

Wasu Top Piriyakulkij, Rachel Lawrence, Alicia Curth, Sushrut Karmalkar, Niranjani Prasad

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

How can language model agents effectively leverage libraries of reusable knowledge to solve long-horizon tasks? Recent work has increasingly focused on agent skills: reusable capabilities represented as skill packages, i.e., multi-file bundles containing instructions, scripts, and other resources that help agents perform specific tasks. Agent skills are typically executed by loading their skill instructions into an agent's context and relying on the agent to follow them. As task horizons grow, however, this approach becomes increasingly brittle, because reasoning quality degrades as more information accumulates in the context window. We investigate an alternative approach in which skill packages are instead invoked as subagents. Rather than loading skill instructions into the main context, subagent execution spawns fresh context windows dedicated to solving individual subtasks. We show that subagent execution outperforms agent-skill execution when skill packages expose clear input-output contracts and their instructions encode the procedural knowledge needed to fulfill those contracts. The tradeoff is additional communication overhead, as extra tokens are required to coordinate between the main agent and its subagents. Our results show that the benefit of reusable knowledge depends not only on its content, but also on how it is organized and invoked.

1 Introduction

How do we equip AI agents with domain-specific knowledge so that they can solve complex tasks? This is a longstanding question in AI, dating back to the symbolic AI era, where researchers attempted to encode knowledge explicitly through structured representations such as rules, logic, and knowledge graphs [1, 2, 3, 4]. The rise of deep learning shifted the paradigm from direct knowledge injection to weight-based learning; knowledge is acquired from data and stored implicitly in neural weights. The advent of large language models (LLMs) has partially shifted the field back toward explicit knowledge injection. Through in-context learning, LLMs acquire and apply new information at inference time, without weight updates, in one of the most expressive symbolic representations: natural language.

Recently, agent skills [5] have emerged as an effective way of knowledge injection for LLM agents. Each agent skill is represented by a skill package: a multi-file package containing instructions and scripts that are useful for solving specific tasks. The names and descriptions of available skills are then given to the LLM agent. When the agent invokes a skill, it gains access to that skill's instructions and follows them. These agent skills have become the dominant way of providing LLM agents with reusable, domain-specific knowledge.

Despite their name, agent skills are quite different from the notion of a skill in reinforcement learning [6, 7, 8]: a skill is a temporally extended policy invoked by a higher-level controller. Invoking agent

∗^{*}Work done during an internship at Microsoft Research Cambridge.

Preprint.

Figure

Figure 1: Two type of skill package execution: agent skill vs subagent. While agent-skill execution does all the reasoning in a single context, subagent execution creates new context windows for each subtasks, each window initialized with skill instructions (SKILL.md). Since subagents reason within their own context, however, extra tokens are needed for the main agent and subagents to communicate.

skills, instead, simply loads the skill recipes (SKILL.md files) into the LLM agent's context, rather than directly performing the skill or solving a subtask. Thus, even when an agent skill contains relevant information, invoking it might be unproductive, as adding more instructions increases context length, and agent performance degrades as context grows [9, 10, 11, 12]. This issue of bloated context becomes increasingly problematic as task horizons become longer.

We therefore investigate an alternative approach to agent skills: executing skill packages as subagents. Instead of loading skill instructions into the main context, subagent execution spawns a new context window seeded with the skill instructions, performs the skill independently, and returns only the output to the main agent. We possess that by dividing a task across multiple context windows, the maximum amount of information processed by any individual context can be reduced (Figure 1). While existing agent harnesses do have subagents, they are generally underutilized, targeting mainly situations where independent subtasks can be run in parallel to reduce latency [13]. Executing skills as subagents has downsides, however. For instance, we lose the ability to combine knowledge from multiple skills to solve a subtask.

In this work, we show that a skill package is suitable for subagent execution when it is presented as procedural knowledge with clear input and output contracts, analogous to the options framework in reinforcement learning[6]. Procedural skills with well-defined input-output interfaces are inherently self-contained, allowing their internal reasoning to be delegated to separate contexts. On SkillsBench, a benchmark for evaluating agent skills, we synthesize procedural, contract-driven skill packages derived from successful task trajectories and show that executing these skill packages as subagents significantly outperforms agent-skill execution. Our findings suggest that both how skills are executed and how skill knowledge is organized are important design choices that substantially impact agent performance.

References (31)