codeagent-mobile-clients: Instructions file for Codex

AGENTS.md

codeagent-mobile-clients AGENTS.md is an instructions file for Codex, OpenCode from edgar-durand/codeagent-mobile-clients. It costs 850 tokens per session, scanned A, original, MIT.

Repository instructions for the client-side code of Codeam Mobile Clients. The project contains a command-line tool, editor extensions, a JetBrains plugin, and shared communication code.

In plain words
What is it for?
Use them when working on the repository, especially client releases, shared protocol changes, real-time output handling, and type-safe TypeScript edits.
Why use it?
They give coding agents the rules needed to change this multi-package project safely, including release, shared-code, real-time event, and TypeScript requirements.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is edgar-durand/codeagent-mobile-clients's own configuration. It tells Codex and OpenCode how to work on codeagent-mobile-clients itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything codeagent-mobile-clients configures →

Reuse

Borrowing it

Nothing to install: this file belongs to edgar-durand/codeagent-mobile-clients. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/edgar-durand/codeagent-mobile-clients/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/edgar-durand/codeagent-mobile-clients

Made for: Codex, OpenCode.

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 codeagent-mobile-clients AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/edgar-durand/codeagent-mobile-clients/agents-md/github.svg)](https://agentmods.dev/instructions/edgar-durand/codeagent-mobile-clients/agents-md)
Your own site
<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/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.

agentmods 80×15 button for codeagent-mobile-clients AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 850 This file is loaded in full into every session.
When invoked 850 The same file — it is already loaded in full.
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.00850 $0.00850
Opus 5.5 $0.00340 $0.00340
Sonnet 5.5 $0.00170 $0.00170
Haiku 4.5 $0.00085 $0.00085

Measured 1mo ago against content hash 385e25f76006, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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 1mo 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.

AGENTS.md · 30 lines

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.Z publishes npm + VS Code Marketplace + Open VSX + JetBrains. Commits to main run 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 add setTimeout "check again" loops. The HTTP-polling fallback in command-relay.service.ts is the one documented exception.
  • Typing: no as unknown as / any to 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.

  • failureBubble is 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 checkProviderStatus status-page catch-all was removed in v2.42.0 for 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 /login printed as plain text, turn ends cleanly) → caught by replyIsAuthFailure (≤200-char guard) → re-auth bubble + reportCredentialInvalid.
  • 1M-context usage-credits gate (v2.43.0, reworked): claude Code v2.1.x always sends the context-1m beta even on credit-less accounts → 429 "Usage credits required for 1M context" every turn. looksLike1mContextCreditsError classifies it; the recovery is to reconnect the Claude subscription via the in-app OAuth (a codeam://reauth bubble + reportCredentialInvalid), because the credential simply lacks the entitlement — the old "Disable 1M context and continue" select_prompt did NOT fix it (2026-06-24) and was removed.

Read the full file on GitHub · 30 lines

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. 1mo ago Changed · +4 tokens per session 385e25f76006
  2. 1mo ago First seen · 30 lines · 846 tokens per session scan A bc4d78d73c3a

Subscribe to this mod's changes

codeagent-mobile-clients AGENTS.md is an instructions file published in the GitHub repository edgar-durand/codeagent-mobile-clients (8 stars, last pushed 2d ago), licensed MIT. It adds 850 tokens to every session, about $0.0034 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.