The hands Filament gives an agent — its loop's tools and what coding agents (Claude Code, Codex, Cursor, Antigravity, Grok Build, Copilot CLI, GLM Agent, Qoder) get over Filament's MCP server — the shell on each system, the environment a command sees, the folder fence, background commands, coming back later (come_back), files, images and PDFs, language servers, connectors (MCP) and plugins, skills, pictures the agent draws, artifacts, the agent's browser, and what the agent is told. Load it w...
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 Tools?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/invertiblematrix-filament-tools)
---
name: filament-tools
description: The hands Filament gives an agent — its loop's tools and what coding agents (Claude Code, Codex, Cursor, Antigravity, Grok Build, Copilot CLI, GLM Agent, Qoder) get over Filament's MCP server — the shell on each system, the environment a command sees, the folder fence, background commands, coming back later (come_back), files, images and PDFs, language servers, connectors (MCP) and plugins, skills, pictures the agent draws, artifacts, the agent's browser, and what the agent is told. Load it when the person asks what an agent can do in Filament, why a tool or variable is missing, how to add a connector, plugin or skill, or how pictures, artifacts or the browser work.
---
# The hands Filament gives an agent
## In seven lines
1. Filament's own loop has file hands (`read`, `write`, `edit`, `grep`, `glob`), a shell (`bash`, `powershell` on
Windows, `bash_background`), `lsp`, the web, connectors, and Filament's own tools.
2. A coding agent keeps its own hands and gets Filament's own tools over MCP (Claude Code sees
`mcp__filament__<tool>`): the graph, the checklist, memory, `agent`, `background_command`, `come_back`, `skill`,
`space`, `artifact`, `show_visual`, `browser`, `lsp`, `secret`, and the rest, loaded up front in Claude Code and
Codex; where its chat has servers, the `mcp` door too.
3. Commands get a filtered environment: a missing variable is added by name in Settings › Agent loop › **Variables
passed to commands** (`agentLoop.envPass`), never pasted into a command.
4. A long command goes to the background; its end is told to the agent once. Wait on it, don't poll it.
5. `come_back` (60 s to a day) brings the agent back to its chat with a note, through restarts.
6. Connectors: Filament's loop reaches an on-demand server's tools through one `mcp` tool (find, load, call); a
coding agent gets each tool of its chat's servers through Filament as `mcp__<server>__<tool>`.
7. Each of these can be switched off for a chat on the Start's Tools card: `loop.tools`, one map of each tool's on
or off by its name (`{"come_back": false, "space": false}`); the browser is `plugins.browser`. The agent is told
it is off, and a coding agent's own tool of the kind goes with it where Filament can hold it back (Codex by its
thread's config, Grok Build refused at the call, Copilot CLI in a process started without it).
## The loop's tools
| Tool | Key fields |
| --- | --- |
| `read` | `path`, `offset`, `limit`, `pages` (a PDF, 20 pages a call); images come back as images (up to 3.75 MB); notebooks as cells |
| `write` | `path`, `content`: a new file, or one read in this chat and unchanged since (else it is refused: read it first) |
| `edit` | `path`, `edits[{oldText, newText, replaceAll}]` |
| `bash` / `powershell` | `command`, `timeout` (120 s default, 600 at most; past it, the command goes on in the background) |
| `bash_background` | `command`, `grace`, `watch` (a pattern whose lines are told) |
| `bash_output` / `bash_kill` | `id`; `wait`, `until` (a pattern, up to 5 minutes) |
| `grep` / `glob` | ripgrep's fields; `pattern`, `path`, `sort` |
| `lsp` | `action` (definition, references, hover, symbols, diagnostics…), `path`, `line`, `symbol` |
| `ask` | `question`, 2–4 `options` (the recommendation first) |
| `web_fetch` / `web_search` | `url` (24 KB, no private addresses) / `query` or `queries` |
| `delegate_read` | `paths`, `question`: a cheaper model reads for it |
| `mcp`, `mcp_resources` | connectors: find, load, call (a coding agent's door also `wait`, `call: "c:…"`); resources: list, read |
| `secret` | `for` (provider, agent, app), `id`, `name`, `why`: a card for a key no model sees; a coding agent's also `ask` to keep waiting |
| `skill` | `name`, `action` (load, list, read, find) |
Then Filament's own: `plan` (the checklist), `tasks`, `agent`, `wait`, `envelope`, `thread`, `team`, `flow`, `space`,
`artifact`, `visual_guide`, `show_visual`, `browser`, `come_back`, `run_check`, `filament_recall`, memory's tools.
A `thread` started in the chat's folder works on a branch of its own (`thread/<title>`, a git worktree beside the
folder from its last commit), unless it may only read, its folder is named, or no worktree can be made.
Agents, plans and teams: skill **filament-agents**; memory: **filament-memory**; the Space: **filament-spaces**.
## The shell, the environment, the fence
- `bash` is Git Bash on Windows (cmd.exe without Git for Windows), `/bin/bash` elsewhere; `powershell` is pwsh where
installed, else Windows PowerShell 5.1. A rule on `bash` speaks for `powershell` and `bash_background` too. A stopped
command stops everything it started. On Windows the stop looks up to three times, finds what a shell left with
`Start-Process` or `start`, and says in `bash_kill`'s answer what it could not confirm ended. Filament's own stop ends
every command it started, and a watcher beside it ends what a crashed Filament left.
- Passed to commands: PATH, home and system folders, locale, proxies and certificates, the ssh agent, `GIT_*`,
`npm_config_*`, toolchains' homes. Never: names that read like secrets, addresses with a password, `FILAMENT_*`,
anything unknown (`ANTHROPIC_API_KEY`, `GITHUB_TOKEN`). A coding agent's own shell is its own.
- The file hands stay inside the chat's folder (and folders added to it); a write outside asks in Edit automatically
and Ask before changes. Under Full access the fence is off. `bash` is not fenced: it runs with the person's rights.
A file change inside a repository's `.git` asks even in Edit automatically and Full access, and is never remembered.
- Commands that only read run unasked in every mode; a `$` variable makes one ask.
- A key the agent needs (a provider's, a coding agent's sign-in, a Space app's secret): `secret` puts up a card where
the person types it; it goes where it belongs and no model, chat or log sees it, the agent reading only whether it
is kept and works. One card a chat; a coding agent may not ask for its own sign-in. Switch: **Ask for secrets**
(`secret` in `loop.tools`); a sub-agent, a team's lead and another machine's agents have none.
## Background commands
- `bash_background` returns at once; `bash_output` reads what it printed. An end not read is told once, at the next
step or in a turn Filament starts for it. A `bash` past its timeout moves to the background (stopped an hour after
it started); the person's **Run in background** on a running card does the same.
- A coding agent's `background_command` (`command`, `description`, `watch`: a pattern whose lines are told; `id` alone
for its output so far, or once ended its result, which then comes no other way; `stop: true`; `list: true`) hands its
end back whole: exit code, time, the last 80 lines (8,000 characters at most) and the log's path. `machine` and
`cwd` run it on another machine. A sub-agent's command takes a `watch` too; its run waits for its commands, an hour
at most, before it reports.
- The person sees "Working · 1 command"; the capsule's **Commands** lists each with **Stop**.
- An agent idle while its command runs gets a check-in after 5 minutes (`sessions.idleWakeMinutes`, Settings › Agent
loop › **Check in on an idle agent after**; 0 turns it off), then 10, 20, 40, hourly.
## Coming back later
`come_back`: `seconds` (60 to 86,400), `note`, or `cancel`. One per chat; a new one replaces it. The capsule says
**Comes back** with **Cancel**. Stop drops it; a restart keeps it (one due meanwhile arrives late and says so). The
chat's **Come back later** switch (`loop.tools`, `{"come_back": false}`). A sub-agent, a lead and another machine's agents have
none.
## Files, images, PDFs
- A picture the person sends over 3.75 MB is made smaller; a message's attachments total at most 64 MB
(`server.maxBodyBytes`); a long chat's pictures and files go within 24 MB a request, the newest whole.
- An attached PDF: a Claude model on an Anthropic-format provider reads it itself (100 pages); other models and coding
agents get its text through `pdftotext`.
## Language servers
`lsp` uses the servers installed here (typescript-language-server, pyright or pylsp, gopls, rust-analyzer, clangd), a
plugin's, or the person's own (`lsp.servers`); Settings › Language servers lists them with switches. After a write or
an edit, up to 20 errors join the result.
## Connectors and plugins
- **Library › Plugins & Connectors**, with *Applies to* (all chats, a Space, a project). **Add connector** lists
marketplaces on this computer; or add one by hand (a command or URL, or pasted JSON) with **Test**; **Import from
other apps** reads Claude Desktop's, Cursor's and Codex's. Sign-ins and keys are kept sealed.
- Setting `plugins.mcp`: `{name, command, args, env}` or `{name, url, headers}`; tools are `mcp__<name>__<tool>`.
Filament takes every tool a server lists, each description whole. In Filament's loop, on demand (the default)
costs one line per server and its tools come through `mcp`; **Always loaded** (`"load": "core"`) sends them whole.
- A coding agent gets every server of its chat through Filament, at an address of Filament's, its tools listed whole;
Claude Code, Codex and Cursor ignore `load`. Antigravity keeps one tool budget: past it, a tool is reached through
`mcp` alone, and Filament's context for the session names it.
- **The door**: a coding agent's `mcp` takes `find`, `load` (a tool's words, whole), `call`, and `wait`
(`call: "c:…"`). A call through it is judged as the tool's own: the mode, the rules, the hooks.
- **Long calls**: Claude Code hears progress every 15 s; Codex is told the server's limit (a day where none is set).
Elsewhere a call still running near the agent's clock is handed back running, to `wait` on: Antigravity's at 170 s
of its 180, Cursor's SDK's and an unmeasured agent's at 40 s. So is a call of Filament's own tools that asked on a
card (the browser, `lsp`, `background_command`, a dashboard's button); a card nobody waits on is withdrawn.
- **Long answers** are kept whole. Past what the agent's program hands its model (Claude Code 50,000 characters,
Codex 40,000, Antigravity about 10,000; an MCP answer in Filament's loop 24,000 bytes), the agent gets the head and
reads on with `filament_recall({result: "r:…", from: n})`. A sound or bytes the program would lose are kept as a
file, a PDF's text beside it. Kept 64 MB a conversation, 1 GB in all, 30 days after last read.
- **Time limits**: a server has 15 s to start. A call has no limit of its own, but in a turn nobody watches (a
routine's, a watcher's, a sub-agent's run) one silent 15 minutes is ended. The server's **Time limits** set
`startupTimeoutSec` and `toolTimeoutSec` (seconds), the second holding in every turn.
- **What a server asks** mid-call comes to the person on the chat's card. Sampling needs the person's yes and is
served only in chats Filament's own loop runs.
- **What this project uses…**: a short note per server that guides the agent.
- **Sign in** (a remote server that asks for an account): its row says *Needs you to sign in*; **Sign in** opens the
server's own page in a new tab; once allowed, the row says *Signed in on <host>* and a test shows its tools. It waits
with *Open it again* and *Cancel*. From another computer: sign in on the machine itself, or **Sign in here** and
paste back the address the browser lands on (**Paste the address…**). One sign-in per address; **Sign out** on any of
its rows ends it for all.
- A server that lets no app register: Sign in asks for the client ID (and secret) made on its site, and shows the
address to make it with. One that turns Filament down (Figma's online server): *Sign-in refused by …*, with its guide
where it names one, and the client ID route under *I made an app on …'s site…*. One that offers no sign-in takes a key
as its `Authorization` header in **Edit**. Tokens stay sealed in `mcp-sign-ins.json`; coding agents get Filament's
address for the server, never the token.
- A second account: the row's ⋯ › **Sign in with another account…**, then **Use <account>** for all chats, a project
or a chat (skill **filament-spaces**).
- A plugin's connector that waits for a value (a personal access token) says so on its row with **Finish setup…**;
**Save and test** keeps it sealed and tests it.
- **Plugins** bundle MCP servers, skills, agents and hooks: **Add a marketplace…**, **Add from this computer**; turned on
per place (`plugins.on`). Their hooks stay off until **Run its hooks**. **Check for updates**, **Uninstall…**.
- **From a shell**, for the person: `filament library connectors` lists what reaches every chat (`--chat <id>` or
`--project <folder>` for one place), `show <name>` one, its env's and headers' values never shown. `add <name>
--command <program> --args a,b` (the program alone, its arguments in `--args`; or `--url <address>`, `--type sse`;
`--note <words>`) adds one; its env and headers, which may hold keys, go on stdin alone (`--json-stdin` with
`{"env": {"NAME": "value"}}`), never as a flag. `edit` takes the same fields and keeps the rest (env and headers by
name, `null` taking one out; `--note ""` clears the note); `on`, `off` (for one chat too: its own switch); `test
<name>` connects and lists its tools; `remove <name> --yes` takes out the place's own (on one from beneath, the
place's own switch). Adding one, changing it (but for its note), switching one on and a test start a program: the
person's press while the desktop app runs. Sign-ins stay Settings › MCP servers'. `filament library plugins` lists
the plugins installed and where each is on; `library plugins on|off <id>` at a place (on is a press); installing
stays the page's.
## Skills
- Library › Skills: **Add skills…** (a folder or git), **New skill…**, **Craft it in a chat…** (`/craft`). A skill is
on per place (all chats, a project, a chat); one on is a line in every agent's instructions, and the agent loads it
with `skill`. `$name` in a message has the agent load it for that message.
- Filament ships its own, on nowhere but **filament-skill** (on everywhere unless turned off): it lists the others.
- **Books**: a skill made in Filament has **Add books…** on its page (PDFs, Markdown, text, or a folder): each book is
split into parts under `references/` with `references/INDEX.md`, indexed so `{"action":"find","name":…,"words":…}`
in `skill` ranks passages with their book, chapter and page. A PDF needs pdftotext; a scanned one has no text. **×**
removes a book (the person's file stays). Only Filament writes a skill's `.library` folder.
- **Craft it in a chat…** (or `/craft <words>`) opens a chat that writes the skill with the person.
- **From a shell**, for the person: `filament library skills` lists the skills and whether each is on at the place
(`--chat <id>`, `--project <folder>`, else every chat); `show <name>` one. `add --path <folder>`, `--git
<repository> [--ref <branch>]` or `--make <name> --description <words>` adds one, off as the page adds it (`--on`
turns it on where it is added); `filament library skills write <name> < SKILL.md` writes a skill made here; `on`, `off` and `inherit` (back
to what the place inherits) at a place; `update <name>`; `remove <name> --yes`.
## Pictures, artifacts, the browser
- **Pictures**: `visual_guide` (`kinds`: diagram, chart, mockup, interactive) once, then `show_visual` (`title`,
`code`: SVG or HTML). The frame reaches only a few CDNs; a button in it fills the box, never sends. Switch:
**Visuals** (`loop.tools`, `{"show_visual": false}`).
- **Artifacts**: `artifact` (`guide`, `publish`, `read`, `list`, `read_db`, `write_db`). Types: page, doc, slides,
dashboard, design, app. Each lives at its own address (`<name>.art.localhost`), every version kept, listed in
Library › Artifacts; only the person deletes one. A page reaches nothing of Filament's; it keeps entries in
`filament.db`. From a paired device it opens on port 20344 with a pass.
- An artifact's full view: **Versions** (an old one opens labelled, with **Make this the newest**), **Pin**, **Open in
browser**, **Download** (its HTML, or a .zip with its files), and ⋮ (rename, copy its link, Info, its session,
delete). **Ask for a change** writes the person's words into the box of the chat that made it. A picture the agent
drew becomes one with **Keep as artifact** in the picture's **Save** menu. Pages load libraries from Filament's own
shelf (`/_filament/lib/`: Preact with htm, Chart.js, d3, three.js, marked, DOMPurify) with no network.
- **The browser**: `browser` with `action` (navigate, back, forward, reload, snapshot, click, type, press, select,
hover, scroll, screenshot, text, console, network, evaluate, wait, tabs, resize, batch; 8 tabs, 20 steps a batch).
Looking runs; acting (click, type, press, select, evaluate) asks once per site in Edit automatically and in Ask
before changes, is refused in Read-only, runs in Full access. The Browser pane: **Take over**, **Give back**; its ⋯
takes a site's yes back. A page opens in the desktop app of whoever sent the chat's newest message while that app is
linked (another device's app only with its **Browser** pill on), else this machine's app, else headless Chrome here
(`FILAMENT_CHROME`). It never opens
Filament's own addresses, downloads or app links. Switch: `plugins.browser`.
## What the agent is told
The loop's prompt: how you work, your tools, care with actions, talking with the developer, your context window, the
task graph where on, then the environment (date, model, OS, shell, tools on the PATH, Filament's address, git state),
frozen at the start. The console's Settings › Prompts page shows it whole. `agentLoop.systemPrompt`, where set,
replaces the built-in role and report sentences; the folder, tools and steering lines still follow it.
Instruction files: AGENTS.md, CLAUDE.md, CLAUDE.local.md, `.claude/rules` and `.filament/instructions.md`, in the
chat's folder and each above it up to the repository's top. A rule whose front matter lists `paths` holds only for the
files they match, told as the agent first reads, edits or writes one. A coding agent is given those its own program
does not read.
## Common questions
- **"My build can't see NPM_TOKEN or a proxy"**: add its name to Variables passed to commands.
- **"Why did my tests go to the background?"**: past the timeout; the end is told when it comes.
- **"Stop a command"**: Commands › **Stop**, or `bash_kill` / `background_command {id, stop: true}`.
- **"The agent doesn't see a connector's tools"**: in Filament's loop they load on demand (**Always loaded** sends
them whole); a coding agent lists them as `mcp__<server>__<tool>`, and Antigravity's past its budget come through
`mcp`, named in its context; a server that needs a sign-in is left out until signed in.
- **"A call came back still running"**: `mcp` with `action: "wait"` and the `call` it names waits for its answer.
- **"The agent needs my API key"**: it asks with `secret`, on a card; never paste a key into the chat.
- **"The browser does nothing on my server"**: install Chromium, or set `FILAMENT_CHROME`.