Skills and subagents

Overview

Two kinds of instruction the agent can be given: a skill it loads when a request matches, and a subagent it hands a whole job to. Both come from the account and from this computer, merged.

account + computeraccount wins on a nametask appears with a subagent
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

SkillSubagent
IsInstructions for a kind of workA worker with its own context
Loaded bythe skill tool, when the request matchesthe task tool, with a job
In the promptone line: name and descriptionone line: name and description
Carriescontent, and optional filescontent, its own tools and model
Contextgoes into the current conversationa fresh one; only its report comes back

Two sources, one list

const skills = await api.agents.skills.list();
// [{ name: "legal-review", description: "…", source: "account" },
//  { name: "release-notes", description: "…", source: "computer" }]

const subagents = await api.agents.subagents.list();
skills = api.agents.skills.list()
# [{"name": "legal-review", "description": "…", "source": "account"},
#  {"name": "release-notes", "description": "…", "source": "computer"}]

subagents = api.agents.subagents.list()
sourceLivesReachable from
"account"On the accountAny device, any application
"computer"~/.iagenify/skills/<name>/SKILL.md and ~/.iagenify/agents/<name>.mdThat computer
On the same name, the account wins

A skill named release-notes on the account hides one of that name on the disk. Writing always goes to the account — a computer item is read-only through the library, and changed by editing the file on that machine.

Choosing which ones a run gets

api.agents.create({
  runtime: "local", machine: pc, model,
  skills: ["legal-review"],        // only this one
  subagents: [],                   // none — and therefore no task tool
});
api.agents.create(
    runtime="local", machine=pc, model=model,
    skills=["legal-review"],        # only this one
    subagents=[],                   # none — and therefore no task tool
)

Absent means all of them. An empty array means none. The library is re-read at the start of every run, so something added from another window is available without restarting whatever holds the package.

Why a library is empty, when it is

agent.libraryStatus;
// {}                              → both were read
// { subagents: "none" }           → there is no source for subagents here
// { skills: "storage_not_local" } → the source refused, and this is why
# Python reads both libraries when the agent is created;
# an empty list means none were found or none could be read.
agent.skills      # [{"name": "legal-review", …}]
agent.subagents   # []
An empty library is reported, not swallowed

« none » means there was nowhere to read from; a code means a source refused. Without that field an agent with no task tool looks like an agent that chose not to delegate.

What they cost in the prompt

One line each — the name and the description. A skill's body is only loaded when the skill tool is called, so a library of thirty skills costs thirty lines per turn, not thirty documents.

task exists only with subagents

There are no built-in subagents. With an empty subagent library, the task tool is not declared at all — which is why an agent that « refuses to delegate » is usually an agent with nothing to delegate to.