copy-ai-context

copy-ai-context is a command for Claude Code from ContoriumLabs/contorium. It costs 0 tokens per session (351 once invoked), scanned A, original, MIT.

A command that gathers the current workspace's task, project summary, working files, changes, and AI handoff notes into clipboard-ready context.

In plain words
What is it for?
Use it from VS Code, Cursor, the command line, or MCP to copy or export the workspace context as Markdown or JSON.
Why use it?
It removes the need to collect project details by hand when starting a conversation with another AI chat.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the contorium plugin — 1 skill, 5 commands, 1 MCP server shipped together

Good fit Use it from VS Code, Cursor, the command line, or MCP to copy or export the workspace context as Markdown or JSON.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/contoriumlabs/contorium/copy-ai-context
Install

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.

Clone the repo
git clone --depth 1 https://github.com/ContoriumLabs/contorium

Made for: Claude Code.

Or install contorium, the plugin that ships this one along with the rest of its 1 skill, 5 commands, 1 MCP server.

Wrote 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.

agentmods badge for copy-ai-context

README.md
[![agentmods](https://agentmods.dev/badge/commands/contoriumlabs/contorium/copy-ai-context.svg)](https://agentmods.dev/commands/contoriumlabs/contorium/copy-ai-context)
Your own site
<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>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 351 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 8d ago against content hash 7b6f07328b38, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

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.

commands/copy-ai-context.md · 44 lines

What it actually says

Copy AI-ready context

Export converged workspace context to the clipboard for any AI chat.

IDE

  1. Open a folder workspace in VS Code / Cursor with Contorium installed.

  2. Set Current focus in the sidebar (optional but recommended).

  3. Edit/save files so understanding artifacts can build (~7s debounce).

  4. 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.

Changes

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.

  1. 8d ago First seen · 44 lines · 0 tokens per session scan A 7b6f07328b38

Subscribe to this mod's changes

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.