Filament's agents beside the main one — builder and reviewer sub-agents, saved agents and their cards (made, edited, copied and put back step by step in Library › Agents and teams), the Agents tab, worktrees and applying their changes, models and effort for them, the card that asks before a builder starts (Parallelize tasks), envelopes and letters, threads, and the task graph with its checklist, checks, checkpoints and notes (teams and flows have skills of their own, filament-teams and filame...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Filament Agents?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/invertiblematrix-filament-agents)
---
name: filament-agents
description: Filament's agents beside the main one — builder and reviewer sub-agents, saved agents and their cards (made, edited, copied and put back step by step in Library › Agents and teams), the Agents tab, worktrees and applying their changes, models and effort for them, the card that asks before a builder starts (Parallelize tasks), envelopes and letters, threads, and the task graph with its checklist, checks, checkpoints and notes (teams and flows have skills of their own, filament-teams and filament-flows). Load it when the person asks how to run agents side by side, wants a saved agent made, changed or run on other models, asks why a sub-agent did or did not do something, how to plan, or how threads and letters work.
---
# Agents beside the main one, and the plan
## In seven lines
1. A chat has one **main agent** (the one that answers). Beside it run **sub-agents**: a **builder** (changes files,
in its own copy) or a **reviewer** (only reads), launched with the `agent` tool, and **saved agents** (cards).
2. A sub-agent sees nothing of the chat unless `context` says so: brief it whole.
3. A builder's change waits in its worktree until `apply_changes` (or the person's **Apply**) brings it in.
4. With **Parallelize tasks** off (Settings › Experimental, `experimental.parallelizeTasks`), a launch that changes
files waits on a card the person answers; reviewers are never held.
5. Work of more than one step is planned: short steps on the **checklist**, branching or long work on the **task
graph** (`tasks`).
6. Never ask a running agent to stop by a letter: stop it with `agent_id` and `stop: true`.
7. The person makes saved agents in Library › **Agents and teams** › **New agent…**; this chat's overrides (who may be
used, what each runs on) are the Agents tab's gear.
## Sub-agents: the `agent` tool
| Field | What it does |
| --- | --- |
| `description` (required), `prompt` | a few words for the person; the whole task |
| `subagent_type` | `builder` (the default) or `reviewer`, or a card's tag |
| `saved_agent` | a saved agent the person's newest message names |
| `model`, `provider`, `effort` | only where the person asks; `list_models: true` lists them (`effort`: model, low … max) |
| `run_in_background` | true: the report comes as a message or a sealed envelope; `wait` waits for it |
| `agent_id` with `prompt` / `stop` / `apply_changes` / `mark_applied` / `sync` | follow up, stop, apply its change, mark it applied, bring this folder into its copy |
| `overlap` | where its change overlaps edits here: `markers`, `mine`, `send_back` |
| `context` | `none` (the default), `folded`, `window`, `fork` (a live copy; the loop only) |
| `changes` | hand it a patch: `running`, `turn`, `uncommitted`, `since:<ref>` |
| `attach` | up to 8 files or pictures |
| `machine`, `cwd`, `list_machines` | another machine (skill **filament-machines**) |
- A coding agent's `agent` tool waits by default (`run_in_background` false), takes no `fork`, and has `task` to tie
a launch to a graph task.
- **Its copy**: a git worktree under `.git/filament-worktrees`, no branch. No repository or no commit yet: it works in
the chat's folder. Copies are kept for follow-ups; past four unused, the oldest goes. Setting
`subagents.worktree` (**Their own worktree for edits**), and `subagents.workspace` (auto, patch, worktree, folder).
On the loop, a file tool's path in the chat's folder runs on the copy's twin; commands get `FILAMENT_WORKTREE`,
`FILAMENT_PROJECT`.
- **May do** (a card's level): read only, runs in its own copy with nothing kept, or edits in its own copy that the
person applies. A call lowers it, never raises it, and the chat's permission mode is over all of it.
- A sub-agent the main agent launched by itself never asks the person: a call that needs a yes is refused, and its
report says what it would have run. One the person started (the Agents tab, `/subagent`) and a team's worker wait
for the person's **Allow**, **Always allow** or **Deny**, the question in its thread and above the chat's box, for
`loop.cardWait` at most (Settings › Permissions › **Cards wait for your answer**); then Filament says no and it goes
on.
- A read-only sub-agent (the Reviewer, or May lowered to reading) changes nothing, and reads where the chat's mode lets
the main agent read: Full access, anywhere; Edit automatically or Ask before changes, a read-only command outside the
folder asks on its card where the person launched it, and where the agent did its report says what it would have
run; Read-only, inside the folder.
- **Coding agents' own sub-agents** are off where the chat has Filament's `agent` tool (or the agent leads a team):
Claude Code's Agent and Task, Codex's multi-agent tools, Qoder's, Copilot CLI's `task`; Grok Build's are refused at
the call; Cursor's CLI and Antigravity keep theirs and are asked in words to use Filament's. Sub-agents launch none
of their own.
- **Models**: with none named, this chat's rows for that kind, else the card's, else the chat's list
(`subagents.pool`), else the main agent's model. How many run at once is each model's **Agents at once** in
Settings › Providers. A graph task runs on the main agent's model.
- `wait` (`seconds`, at most 600) returns when a report lands or a message comes; a `sleep` while one works is refused.
## Saved agents
A saved agent is a **card**: tag, name, what it is good for, how it thinks, what it may do, its tools, its models, what
it sees. Six ship: **Product**, **End user**, **Builder**, **Reviewer** (yours to ask), and the leads of Builders and
BugHunters (their team's). Builder and Reviewer are also the `agent` tool's `builder` and `reviewer`.
**Make one, step by step** (Library › **Agents and teams** › **New agent…**; saving starts nothing):
1. **Tag**: what the person types after `@` (`@qa`, 24 characters at most). It stays once saved.
2. **Name** (40 characters), and **Good for**: one line on what to use it for (160). No other agent or team may have
the name.
3. **How it thinks**: the paragraph it works by, up to 4,000 characters (what it looks for, what it reports, what it
never does).
4. **May do**: **Read only: it changes nothing** (a new card's start), **Runs in its own copy, nothing kept**, or
**Edits in its own copy, you apply**. A copy's card may list **Runs without asking**: one command a line (`npm
test`), run unasked only in its own copy; never an install, a step that cannot be undone or a bare program name.
5. **Its tools**: Shell, The browser, Web, Your connectors, Visuals and artifacts, The Space, each on until switched
off. A switch only takes a tool away; writing files is May do's.
6. **Model**: up to six, *first* then each *then*, each at an effort (*The main agent's* until one is picked). None:
*Same as the main agent, unless this chat sets its own*. A model that cannot run now is said under it; it saves
anyway and the next runs meanwhile.
7. **Sees**: **Of the chat** (Nothing, Folded, Context window), **And the turn running now**,
**And the code changes, as a patch**. A new card sees only what it is asked.
8. **Save**. The card's foot has its one tick, **Your agent may use it**: the main agent may then use it by itself.
**Change one**: its **Edit** (the tag stays). A shipped card is yours to change in place, all but its tag; each part
changed shows *changed* with **Put back**, a newer shipped word **Show** and **Take Filament's**, and **Put back all**
gives the whole card back. **Make a copy** opens the editor on a card of your own (a new tag). **Delete** takes one of
the person's away after a sheet asks; a shipped card is never deleted, and one a team uses waits until the team lets go
of it. A plugin's agent has no Edit: **Make a copy** to change it.
**From a shell**, for the person: `filament library agents` lists the cards (whose each is, its models, whether your
agent uses it); `library agents show <tag>` gives one whole. `filament library agents add qa --name QA --good-for
"<one line>" --thinks "<paragraph>" --may read --models <first>,<then> --sees folded` makes one (`--from <tag>` copies
one); `library agents edit <tag>` takes the same flags, and `--put-back <fields>` or `--reset` a shipped one;
`--tools-off shell,browser,web,mcp,visuals,space`; `--may-run "npm test"` (or a JSON list) is the person's press
while the desktop app runs, as on the page, and so is a copy of a card that runs commands unasked (`--may-run none`
there copies it with none). `library agents use <tag> on` is the card's tick **Your agent may use
it**, a press too; `library agents remove <tag> --yes` deletes one of the person's. `--json-stdin` takes the whole
card as JSON for what the flags leave out (each model's effort: `efforts`, `{"<model>": "high"}`). Say what the card
will be before making it, and use only the words and models the person wants; `filament models` lists the names.
**Ask one**:
- `@product …` at the start of a message goes to that agent alone, on the line over the box with its model and what it
sees; several tags ask several, blind to each other. A tag later in the message is for the main agent to use, and is
said when unused (*You named @reviewer; it was not used*).
- The main agent may use a card ticked **Your agent may use it** (Builder and Reviewer always), one ticked for this
chat (the Agents tab's gear, or the Start board's row), or one the newest message names in plain words ("ask Product
about this plan"). A card it asks by itself then says *The main agent asked*, with **Overrule**.
- **Models**, the first that is set: the start's pick, this chat's rows (**Who runs on what**: `subagents.byCard`,
`subagents.byTeam`), the card's, this chat's list (**Agents run on**, `subagents.pool`), the main agent's model.
"Spawn Kimi K3 on OpenRouter at high" names `model`, `provider`, `effort`; `/subagent model="Kimi K3" provider=openrouter
effort=high <task>` does it from the box.
## The Agents tab
- **Agents tab** (Alt+3): *In charge of this chat*, *Needs you*, *Working*, *Done*, newest first; **List** or
**Tiles** (every agent at work, a tile each, with **Stop**, **Open beside**, **Open thread**).
- **Its gear** (*Agents in this chat*, this chat's overrides): **Your agent may use** (a tick per agent), **Who runs on
what** (each agent's and each team's lead's and workers' model here, and whose it is), **Agents run on** (this chat's
list, models in order, each at an effort; **Use the default** clears it), **Reset all for this chat**, **Edit defaults
in Library**. The Start board's Sub-agents card holds the same.
- **Start…** (Alt+A): **Quick starts** **Catch me up**, **Review my last change**, **Try it in a copy**; or **Who** (an
agent or a team), then the chips under the box: the model, the effort, **Sees** (nothing, folded, its context window,
a live copy), **May** (a level up to its card's), **Answer** (stays with you, or goes to your agent when done) and
**More** (your agent waits for it; your agent is told it began). **Enhance** turns rough words into a brief. Nothing
starts before Send. `/btw <question>` asks the Reviewer aside.
- **A thread**: what the agent was shown, its calls and answers as they come; its box asks it more. Under an answer:
**Send to main agent** (*Now*, *With my next message*), **Copy**; **Apply** brings an edit's change in; **Retry** on
one that failed or was cut off. A question it has waits over its box with **Allow**, **Always allow**, **Deny**.
- **Delete, for cleanup**: right-click a row, **Delete thread…**, **Delete team chat…** or **Delete flow…** (its
worktree and branch stay); asks once, cannot be undone; something at work must be stopped first. A saved agent's
card in the chat folds to one line; **Hide** takes it off the chat, and the chat menu's **Show N hidden agent cards**
brings it back.
- A session keeps its newest thirty threads through a restart, and every one whose change waits for **Apply**.
- **The card that asks** (Parallelize tasks off): it names each held launch, its model and where it works:
**Accept**, **Always accept in this chat**, **One at a time** / **Keep it with the agent**; it starts by itself after
60 s. With Parallelize tasks on, the agent starts independent graph tasks on sub-agents itself.
## Teams (Experimental)
A **lead** that plans, briefs and checks, and **workers**, both saved agents; `/team <key>` puts one in charge, and a
team on the side works in a chat of its own. Making and editing one, the Brief, what it runs on, its result and the
`team` tool: skill **filament-teams**.
## Envelopes and letters
- A result that lands while you work comes as one sealed line; the `envelope` tool opens them oldest first (`count`,
`all`). What lands while you wait arrives opened. The chat's Context tab › Other agents' results: **Sealed** or
**Whole** (`subagents.envelopes`).
- **Letters** between chats: `to` (a chat the person tagged, one that wrote to you, a linked thread), `subject`,
`text`, `reply: true`; an answer with `answer: "lt_…"`. A sub-agent writes `to: "lead"`; the main agent writes a
running sub-agent by its `sa_…` id. At most 20 letters while the person is silent, 20,000 characters each.
## Threads
The `thread` tool starts a chat of its own in the left bar, linked to this one: an advisor on another model, a worker
that owns a part, a project in another folder. Its first message is your `brief` (never read as the person's words);
`title`, `model`, `provider`, `effort`, `folder`, `notify`. The two write each other letters. At most 5 per message
of the person's.
- **Two levels deep**: a thread may start threads of its own; a thread of a thread starts none (its `thread` switch
starts off, and a start from it is refused: say which thread you would start, or ask your lead by letter). A thread
the person never wrote in starts on its lead's 5, so one message of theirs allows 5 starts across the lead and its
threads together; one they wrote in counts its own 5 from their message there.
- **Thread or sub-agent** (the agent's rule, on every engine): a sub-agent for a bounded job that ends in one answer
(a review, a search, one build step); a thread for a workstream: work that needs its own sub-agents, the chat's full
permissions, its own model, many steps, or the person's attention along the way. Each thread its own files and
branch, and a brief that says what to send back; only as many as can be kept track of.
- **Where it works**: started in the chat's own folder, it works on a branch of its own, `thread/<its title>` (the next
free name where taken), in a git worktree beside the folder made from the last commit, the worktree template copied
in. Uncommitted files are not in it; its branch stays, to merge.
- It shares the folder where it may only read, where `folder` names one (the chat's own, to share its files), or where
no worktree can be: no git repository or no commit, a folder beside it outside `agentLoop.roots`, a subfolder the
last commit lacks. The tool's answer says which; git's own failure refuses the start. The call's row names the
branch (or the folder).
- **Inside it**, the header says *Thread*, its model and its account's fullest window (each pill opens the box's model
picker or Account instrument); the brief's card says when it came and ends with how it asks (*Edit, same as its
lead*), its branch and *Writes to the lead by letter*; the box says the person's words count before the brief.
- **Letters in both transcripts**: each letter between a thread and its lead is a card after the turn begun last
before it went: *From Owner gate · 12 min ago*, *To the lead*, its plain text held to six lines until **Show all**.
Filament keeps a letter's first 2,000 characters for it, whatever either chat's learning or search index switch says
(memory never reads the cards' copy); a card whose kept words cannot be opened says *Its words could not be read
here.*; deleting either chat takes its letters.
- **In the lead**, a turn that started threads has a card after it (*Started 3 threads with this chat's permissions:
Edit*, each by its name and what it runs on); resting while threads it started are at work or ask, its last line
says *Waiting for 2 threads. It continues when one of them writes.*, gone once a letter wakes it or the person stops it.
- **Archiving the lead asks** whether its threads go with it: **Archive all** (threads of threads too) or **Only this
chat**. An archived thread's own worktree is put away and its branch kept, unless it holds uncommitted or untracked
files (said beside it in the dialog), is locked, or another chat works in it; brought back, its folder is made again
on its branch before it takes a turn.
- **Detach from its lead** (the thread's right-click) makes it a chat of its own: letters stop, its *Thread of …* goes.
It keeps its folder and branch.
- **The lead's Threads pane** (its header button, or the Agents tab's line, while it has threads; a dot while one needs
the person): a card per thread, its state, branch, request (**Allow once** / **Deny** in place) or last letter;
**Archive** on a done one with nothing to merge. A thread you start shows there; in a thread, your newest letter to
your lead is your card's letter.
## Flows
Saved agents and teams in steps beside a chat; `/flow <words>` has the agent draft one with the `flow` tool, and only
the person's **Start** runs it. Drafting, boxes and gates, Start beside or In place, driving one and saved flows: skill
**filament-flows**.
## The task graph and the checklist
- **Checklist** (`plan` in the loop, `checklist` for coding agents): `items` with `status` pending, doing, done,
blocked. Each item is a task of the graph (p1, p2, …). While a task you added runs, a checklist is its steps.
- **Graph** (`tasks`): actions `add`, `start`, `pause`, `done`, `change`, `drop`, `close`, `show`, `keep`, `read`,
`find`, `offer`, `parallel`. A task: `id`, `name`, `needs`, `writes` (files it changes), `acceptance` (done-when),
`check` (1–5 commands Filament runs itself once you mark it done: red reopens it, fail-then-pass is **flaky**),
`under` (a sub-task of a step), `thread` (a memory thread it finishes), `found_by` (a hunt's finding).
- `done` takes `summary`, and `evidence` where there is acceptance and no check; where none of yours is at work, its
answer names *Next of yours*, the ready task nearest the work just ended. `pause` takes a `checkpoint`, handed
back whole on `start`. `keep` saves notes and files behind a task (they survive compaction); `read` and `find`
them. `offer` asks the person whether to plan first (Light, Standard, Deep, Just do it); `parallel` suggests ready,
independent tasks for sub-agents on a card.
- The graph is always on, up to 400 tasks; the **Plan** tab draws it live, and `/graph` shows it as text, as its
planner reads it. `/plan` runs a read-only
turn that ends with **View the plan**, **Approve**, **Amend**. **Hunt for bugs** on a done task sends a reviewer.
## Common questions
- **"Make me an agent that reviews security on a strong model"**: the steps under *Make one*, each field said: a
tag (`@security`), Good for, How it thinks, **Read only**, its models first to last.
- **"Run the Reviewer on another model in this chat only"**: the Agents tab's gear › **Who runs on what** › its chip.
- **"It didn't know what we discussed"**: a sub-agent sees only its brief unless `context` or its card says more.
- **"Where are its changes?"**: in its worktree until **Apply** or `apply_changes`.
- **"Why a card before a builder starts?"**: Parallelize tasks is off; **Accept**, or **Always accept in this chat**.
- **"How many at once?"**: each model's **Agents at once** in Settings › Providers.
- **"Why can't the agent send Builders?"**: teams are off (Experimental), or the team is not in the chat's list.