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 agentmods add instructions/edgar-durand/codeagent-mobile-clients/agents-mdgit clone --depth 1 https://github.com/edgar-durand/codeagent-mobile-clientsWrote 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/edgar-durand/codeagent-mobile-clients/agents-md)<a href="https://agentmods.dev/instructions/edgar-durand/codeagent-mobile-clients/agents-md"><img src="https://agentmods.dev/badge/instructions/edgar-durand/codeagent-mobile-clients/agents-md.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 | $0.00846 | $0.00846 |
| Opus 5 | $0.00423 | $0.00423 |
| Sonnet 5 | $0.00169 | $0.00169 |
| Haiku 4.5 | $0.00085 | $0.00085 |
Grade A, and why
codeagent-mobile-clients AGENTS.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 4d 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 — 30 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Canonical agent instructions for this repo live in
CLAUDE.md. Read it first — this file is a cross-tool entry point that points there and surfaces the highest-signal rules inline.
This is the client-side repo: codeam-cli (npm), the VS Code / Cursor / Windsurf extension, the JetBrains plugin, and @codeam/shared (the wire protocol). The backend lives in the sibling codeagent-mobile repo.
Non-negotiables (full detail in CLAUDE.md)
- Releases are tag-triggered: all three clients ship under ONE version line.
git tag vX.Y.Z && git push origin vX.Y.Zpublishes npm + VS Code Marketplace + Open VSX + JetBrains. Commits tomainrun CI but do NOT release. - Protocol code is shared: parsing / pricing / chunk shapes change ONLY in
packages/shared(@codeam/shared); both CLI and VS Code import through it. - No polling for realtime: react inside the PTY/SSE event (
OutputService.push), don't addsetTimeout"check again" loops. The HTTP-polling fallback incommand-relay.service.tsis the one documented exception. - Typing: no
as unknown as/anyto silence TS — fix the source.
Agent-failure messaging (2026-06-24 — apps/cli/src/agents/acp/runner.ts)
A turn must NEVER end silently or with a misleading status. Tests: __tests__/agents/acp.failureBubble.test.ts.
failureBubbleis the sole arbiter, keyed on the agent's OWN error.- The provider-outage bubble fires ONLY from the agent's error — NEVER from polling the status page. A status-page incident can be live while the user's local agent is fine. The
checkProviderStatusstatus-page catch-all was removed inv2.42.0for that false positive. The status page is the link inside the bubble, not a trigger. - Auth notice as a completed-turn reply (
Not logged in · Please run /loginprinted as plain text, turn ends cleanly) → caught byreplyIsAuthFailure(≤200-char guard) → re-auth bubble +reportCredentialInvalid. - 1M-context usage-credits gate (
v2.43.0): claude Code v2.1.x always sends thecontext-1mbeta even on credit-less accounts → 429 "Usage credits required for 1M context" every turn (NOT Headroom — it forwards the beta unchanged). On-demand recovery only:looksLike1mContextCreditsError→ offer a "Disable 1M context and continue"select_prompt→ on tap, persistdisable1mContext, re-spawn the ACP adapter withCLAUDE_CODE_DISABLE_1M_CONTEXT=1, re-run the failed prompt. Never disabled for all users.
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.
- 4d ago First seen · 30 lines · 846 tokens per session scan A bc4d78d73c3a
codeagent-mobile-clients AGENTS.md is an instructions file published in the GitHub repository edgar-durand/codeagent-mobile-clients (9 stars, last pushed 4d ago), licensed MIT. It adds 846 tokens to every session, about $0.0042 per session on Opus 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.
Other instructions, from other repositories
mcp-unity AGENTS.md
Instructions for CoderGamester/mcp-unity, covering mcp unity — ai agent guide (mcp package), purpose (what this repo is), how it works (high-level data flow), key defaults & invariants and repo layout (where to change what).
rails-ai-context AGENTS.md
AGENTS.md instructions for crisnahine/rails-ai-context, covering rails-ai-context, agent skills, issue tracker, triage labels and domain docs.
inspecto CLAUDE.md
Instructions for inspecto-dev/inspecto, covering inspecto — claude code development guide, project overview, monorepo structure, development phases (load each file as needed) and key architectural decisions.
skill.color-expert CLAUDE.md
Claude Code instructions for meodai/skill.color-expert, covering claude.md, project overview, architecture, no build/test/lint and editing guidelines.
imagine-mcp AGENTS.md
Instructions for n24q02m/imagine-mcp, covering imagine-mcp, architecture, tool signatures, model selection and transport modes.
llm-ide-rules typescript.instructions.md
Instructions for iloveitaly/llm-ide-rules, covering typescript and dates & times.