Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add DeevsDeevs/agent-system --skill chainsgit clone --depth 1 https://github.com/DeevsDeevs/agent-systemWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/deevsdeevs/agent-system/chains)<a href="https://agentmods.dev/skills/deevsdeevs/agent-system/chains"><img src="https://agentmods.dev/badge/skills/deevsdeevs/agent-system/chains/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/deevsdeevs/agent-system/chains"><img src="https://agentmods.dev/badge/skills/deevsdeevs/agent-system/chains.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00074 | $0.01023 |
| Opus 5.5 | $0.00030 | $0.00409 |
| Sonnet 5.5 | $0.00015 | $0.00205 |
| Haiku 4.5 | $0.00007 | $0.00102 |
Grade A, and why
chains scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 97 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Chains
A chain is a folder of markdown links in the project: .chains/<chain>/<timestamp>-<slug>.md.
Each link is a handoff: what was asked, what's done, what was decided, what's next. Any
agent on any machine reads the same files.
Run the bundled script from this skill's folder (Node is on PATH):
C=<this skill's folder>/chain.mjs
node $C list [--max N] # chains here, newest first, with next steps (sessions start with this)
node $C list <chain> # its links, newest first
node $C load <chain> # newest link on main (--branch B, --link FILE)
node $C context <chain> # newest link + 2 parents + recent titles: for resuming or a delegate
node $C search <words> [--chain C] # ranked hits with the matching line
node $C save <chain> --next "…" < link.md # parent = the branch's newest link
node $C fork <chain> <branch> # prints the parent for the branch's first save
.chains is found by walking up from the current folder, no further than the git root (outside
git, no further than just below ~); a new one goes at the git root, else in the current folder.
--json on any command gives JSON. Chain and branch names: letters, digits, ., _, -.
A [chains reminder] comes from the end-of-turn hooks (node $C remind), once a session has worked
30 minutes with no link: save one if the work is worth keeping, otherwise just finish.
When to load
- "Continue", "resume", "pick up", or a reference to earlier work:
loadorcontextthe named chain; if you don't know which,list, thensearch. - Before non-trivial work in a project with a
.chainsfolder: one quicksearchbefore rediscovering old decisions. - A link older than 7 days (marked stale), or one that conflicts with the files: treat it as a lead to verify, not as fact.
When to save
- After a milestone: feature works, fix verified, design decided, approach rejected for a reason worth keeping, review done.
- Before context may be lost: long session, before compacting, task switch, handoff, stopping with work pending.
- Not for one-shot answers, tiny edits, or what the git diff already says, and never when the user says not to.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 11d ago Changed · +4 tokens per session f20c8862b6bc
- 24d ago Changed · +2 lines abeacc2bb081
- 26d ago Changed · +1 lines 3e903eb6ee19
- 27d ago First seen · 94 lines · 70 tokens per session scan A 046c2ceecceb
chains is a skill published in the GitHub repository DeevsDeevs/agent-system (42 stars, last pushed 2d ago), licensed Apache-2.0. It adds 74 tokens to every session and 1,023 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-05.
chains compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| chainsDeevsDeevs/agent-system | Skill | 42 | 2d ago | Apache-2.0 | A | 74 | Claude Code, Codex |
| git-ai-searchgit-ai-project/git-ai | Skill | 3.0k | yesterday | Apache-2.0 | A | 13 | Claude Code |
| rememberpacifio/atlas | Skill | 9.2k | 11d ago | Apache-2.0 | A | 32 | Claude Code |
| ctxctxrs/ctx | Skill | 1.2k | today | Apache-2.0 | A | 106 | Claude Code |
| misakanet-failure-memoryIkalus1988/MisakaNet | Skill | 567 | today | Apache-2.0 | A | 31 | Claude Code |
| brain-pagemindmuxai/brain.md | Skill | 728 | 19d ago | Apache-2.0 | A | 47 | Claude Code |
| brain-setupmindmuxai/brain.md | Skill | 728 | 19d ago | Apache-2.0 | A | 63 | Claude Code |