CodeAgentsMobile AGENTS.md

CodeAgentsMobile AGENTS.md is an instructions file for Codex, OpenCode from eugenepyvovarov/CodeAgentsMobile. It costs 3,508 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for CodeAgentsMobile, describing its current chat runtime, migration from Claude to OpenCode, and the files that support background tasks.

In plain words
What is it for?
Use them when changing chat, runtime selection, migration, authentication, MCP management, or the agent daemon.
Why use it?
They prevent changes based on retired chat behavior and explain which older-looking components still serve scheduled or background work.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/eugenepyvovarov/codeagentsmobile/agents-md
Clone the repo
git clone --depth 1 https://github.com/eugenepyvovarov/CodeAgentsMobile

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 CodeAgentsMobile AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/eugenepyvovarov/codeagentsmobile/agents-md.svg)](https://agentmods.dev/instructions/eugenepyvovarov/codeagentsmobile/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/eugenepyvovarov/codeagentsmobile/agents-md"><img src="https://agentmods.dev/badge/instructions/eugenepyvovarov/codeagentsmobile/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,508 This file is loaded in full into every session.
When invoked 3,508 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03508 $0.03508
Opus 5 $0.01754 $0.01754
Sonnet 5 $0.00702 $0.00702
Haiku 4.5 $0.00351 $0.00351

Measured 3d ago against content hash 3933e727defa, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

CodeAgentsMobile 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 3d 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 · 166 lines

How it starts

The opening of the file, as written. The whole thing — 166 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Runtime note (important)

  • Claude Code chat is retired. OpenCode is the only chat runtime (OpenCodeClient, OpenCode*Service, CodingAgentRuntimeKind.openCode).
  • Claude → OpenCode migration runs automatically per project via ClaudeToOpenCodeMigrationService on chat open / send / runtime apply: promotes runtime, clears proxy transport anchors, copies compatible API keys, soft-copies CLAUDE.mdAGENTS.md when missing, imports .mcp.json into opencode.json(c), ensures session + managed scheduler MCP, stamps openCodeMigrationVersion.
  • Nil/unknown agentRuntimeRawValue resolves to OpenCode (not Claude).
  • CodingAgentRuntimeRegistry always returns OpenCodeRuntimeService (legacy .claudeProxy enum case remains for decode/migration only).
  • Agent daemon (:8787, ProxyTaskService, server/claude-proxy) remains for tasks/push/scheduled runs until rehomed — do not delete those paths when cleaning chat.
  • Daemon Anthropic auth preference lives in AgentDaemonAuthService (not Claude chat).
  • Do not expand Claude Code chat UX. MCP UI/management is OpenCode-primary (CodingAgentMCPServiceOpenCodeMCPService).
  • Chat must not import ClaudeCodeService. Residual CCS usage is tasks/installer/legacy settings only until retirement.

ChatViewModel module map

File Responsibility
ChatViewModel.swift Lifecycle, configure, public API, thin orchestration
ChatViewModel+OpenCodeSend.swift Send / stream / abort
ChatViewModel+OpenCodeHydration.swift Hydrate + session reconcile
ChatViewModel+MCP.swift MCP cache / fetch / deferred
ChatViewModel+ToolApproval.swift Tool permission + OpenCode questions
ChatViewModel+Persistence.swift Load/save messages
ChatViewModel+MediaPrefetch.swift CodeAgents UI media prefetch
ChatViewModel+DeferredStartup.swift Post-ready MCP/rules/media queue
ChatViewModelSupport.swift Pure helpers (merge, planners)

Read the full file on GitHub · 166 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. 3d ago First seen · 166 lines · 3,508 tokens per session scan A 3933e727defa

Subscribe to this mod's changes

CodeAgentsMobile AGENTS.md is an instructions file published in the GitHub repository eugenepyvovarov/CodeAgentsMobile (150 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 3,508 tokens to every session, about $0.0175 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-30.