Borrowing it
Nothing to install: this file belongs to ljchang/mecha. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/ljchang/mecha/main/CLAUDE.mdgit clone --depth 1 https://github.com/ljchang/mechaWrote 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/instructions/ljchang/mecha/claude-md)<a href="https://agentmods.dev/instructions/ljchang/mecha/claude-md"><img src="https://agentmods.dev/badge/instructions/ljchang/mecha/claude-md/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/instructions/ljchang/mecha/claude-md"><img src="https://agentmods.dev/badge/instructions/ljchang/mecha/claude-md.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.08961 | $0.08961 |
| Opus 5.5 | $0.03584 | $0.03584 |
| Sonnet 5.5 | $0.01792 | $0.01792 |
| Haiku 4.5 | $0.00896 | $0.00896 |
Grade A, and why
mecha CLAUDE.md 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 today.
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 — 596 lines — stays where its author put it; the contents beside it link to each section on GitHub.
mecha — CLAUDE.md
What this is
An agent harness whose purpose is to make a local open-weight model into a usable personal assistant: wired into enough personal context to be worth asking (mail, calendar, a knowledge graph), able to reach the world through a reviewed surface, and safe to hold all of that at once. Almost every design decision here is downstream of that last clause — a personal assistant has private data, third-party content and a way to send by definition, so the lethal trifecta is the permanent condition rather than an edge case.
Four crates:
mecha-core/— the library. Knows nothing about any CLI or application.mecha-cli/— themechabinary. Thin; all logic belongs in core.mecha-mail/— mail, calendar and documents. Mail and calendar sit behind one provider-neutral MCP surface;mecha-docsis a fourth binary on the same library, sharing its OAuth and token lifecycle.mecha-slack/— the Slack transport. Nomecha-coredependency, ever; that is the whole reason it is a crate, and it is checkable inCargo.toml.
Interfaces: mecha run (one-shot), mecha chat (readline REPL), mecha tui
(full-screen; the input line stays live so you can steer a run in flight), and
mecha batch / mecha eval for fan-out.
The user-facing half of this reasoning is published at https://docs.mecha-factory.ai/, each rule on the page for the feature it governs rather than restated in one place; the standalone principles page was cut on 2026-09-26.
Where everything else lives. This file holds only what any session may
need on any run; it is the expensive file, because it rides in every agent's
context. docs/ARCHITECTURE.md holds the per-subsystem invariants —
read its section before changing a subsystem it names, and put a new
subsystem's invariants there, not here. docs/README.md is the map of all
the rest — which document holds what, and the routing question to ask
before writing a line anywhere. Two of its rules govern this file: state the
rule, then the incident in one sentence, never the other way round; and where
a topic doc covers something, point at it rather than restating it, because
duplication is how documents drift into disagreeing.
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.
- today Changed 8812a31462dc
- 3d ago Changed · +2 lines · +42 tokens per session 59e285a22c28
- 4d ago Changed · +3 lines · +58 tokens per session 9f734446c4e0
- 6d ago Changed · +14 lines · +249 tokens per session fb67cf340172
- 13d ago Changed · +4 lines · +73 tokens per session 9a27d132262b
- 19d ago Changed · +3 lines · +68 tokens per session e36fb3d4d81f
- 24d ago Changed · +2 lines · +37 tokens per session e88d9cb39b44
- 25d ago Changed · +7 lines · +125 tokens per session 201420129e3e
- 26d ago Changed · +7 lines · +128 tokens per session fb4cfc72fcb4
- 27d ago First seen · 554 lines · 8,181 tokens per session scan A 7b7d3bd82149
mecha CLAUDE.md is an instructions file published in the GitHub repository ljchang/mecha (7 stars, last pushed today), licensed MIT. It adds 8,961 tokens to every session, about $0.0358 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-08-31.
mecha CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mecha CLAUDE.mdljchang/mecha | Instructions file | 7 | today | MIT | A | 8,961 | Claude Code |
| agentforge-py copilot-instructions.mdScaffoldic/agentforge-py | Instructions file | 10 | 1mo ago | Apache-2.0 | A | 101 | GitHub Copilot |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |