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.
git clone --depth 1 https://github.com/ContoriumLabs/contoriumWrote 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/commands/contoriumlabs/contorium/copy-ai-context)<a href="https://agentmods.dev/commands/contoriumlabs/contorium/copy-ai-context"><img src="https://agentmods.dev/badge/commands/contoriumlabs/contorium/copy-ai-context.svg" alt="Measured on agentmods" 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.00000 | $0.00351 |
| Opus 5 | $0.00000 | $0.00176 |
| Sonnet 5 | $0.00000 | $0.00070 |
| Haiku 4.5 | $0.00000 | $0.00035 |
Grade A, and why
copy-ai-context 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 8d 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.
What it actually says
Copy AI-ready context
Export converged workspace context to the clipboard for any AI chat.
IDE
-
Open a folder workspace in VS Code / Cursor with Contorium installed.
-
Set Current focus in the sidebar (optional but recommended).
-
Edit/save files so understanding artifacts can build (~7s debounce).
-
Click Copy AI-ready context or run:
Contorium: Copy AI-ready context (clipboard)
CLI (same canonical format)
npx contorium export . > ai-context.md
npx contorium export . --format json > ai-context.json
MCP (agent pulls equivalent data)
get_project_handoff # execution entry
get_project_graph_snapshot # compact cognitive summary (preferred over full graph)
get_project_snapshot # L4 project snapshot
get_workspace_context # state.json
Export sections (V3.1)
| Section | Source |
|---|---|
| TASK ANCHOR | state.json currentTask |
| PROJECT SNAPSHOT | L4 project-snapshot.md |
| WORKING CONTEXT | Open files + git activity |
| COGNITIVE SNAPSHOT | .contora/graph/snapshot.json |
| CHANGE SET / IMPACT SET | handoff.json |
| AI HANDOFF (V3.1) | handoff.json |
| CODE EVOLUTION | timeline.json |
| INSIGHTS / NOTES / INSTRUCTION | Heuristics + user notes + AI mode |
See IDE_EXTENSION.md and OVERVIEW.md.
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.
- 8d ago First seen · 44 lines · 0 tokens per session scan A 7b6f07328b38
copy-ai-context is a command published in the GitHub repository ContoriumLabs/contorium (6 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 351 tokens. 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-08-31.
Other commands, from other repositories
rb-refresh
A command that rebuilds RepoBrain's knowledge base for the current workspace. RepoBrain is a tool that keeps searchable project information for an agent.
dmb-resume
Resume DMB context for this session.
dmb-status
Show DMB status for this project.
prime
Load SageOx team context for this AI coworker session.
mem-prune
Removes old low-importance memories.
mem-last
Prints latest memory cards for the current project.