coddy-agent AGENTS.md

coddy-agent AGENTS.md is an instructions file for Codex, OpenCode from coddy-project/coddy-agent. It costs 3,647 tokens per session, scanned A, original, MIT.

A set of repository instructions for Coddy, a coding assistant with a command-line interface, remote mode, tools, plugins, and background tasks. It maps the codebase’s main areas and their responsibilities.

In plain words
What is it for?
Use it when changing Coddy’s CLI, agent orchestration, tool connections, remote server support, MCP integration, session handling, or detached shell commands.
Why use it?
It helps an agent find the right code and follow project rules for builds, pre-commit checks, documentation, remote control, and background commands.

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/coddy-project/coddy-agent/agents-md
Clone the repo
git clone --depth 1 https://github.com/coddy-project/coddy-agent

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 coddy-agent AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/coddy-project/coddy-agent/agents-md.svg)](https://agentmods.dev/instructions/coddy-project/coddy-agent/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/coddy-project/coddy-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/coddy-project/coddy-agent/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,647 This file is loaded in full into every session.
When invoked 3,647 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.03647 $0.03647
Opus 5 $0.01824 $0.01824
Sonnet 5 $0.00729 $0.00729
Haiku 4.5 $0.00365 $0.00365

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

Security

Grade A, and why

coddy-agent 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.

AGENTS.md · 116 lines

How it starts

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

Agent Notes for Coddy

Short map for automation-friendly contributors.

Repository navigation

Area Responsibility
cmd/coddy CLI entry (bare coddy console, cli, acp, http, gateway, sessions, skills, plugin, mcp, codex login, rules list, update).
internal/agent ReAct orchestration, MCP/tool wiring.
internal/mcp MCP transports, merged server list, and the workspace trust gate for project-local .coddy/mcp.json (trust.go, gate.go; policy mcp.project_trust, approvals in <home>/mcp-trust.json). Guide: docs/mcp-integration.md.
internal/remote Go client for a remote coddy http server: SSE frames back into ACP updates, /coddy REST, permission/question answers. Powers --remote on the console and coddy acp. Guide: docs/cli.md (Remote mode), docs/remote-control.md.
internal/bgtask Background task pool for detached shell commands (run_command background: true plus the background_* tools, the Tasks drawer, and /coddy/sessions/{id}/background-tasks). Pool.Adopt takes over a foreground command that outlived its timeout instead of killing it. Guide: docs/background-tasks.md.
internal/session Session manager, Filesystem persistence, Acp hooks, rules catalog.
external/httpserver coddy http when built with tags=http (SSE bridge, Swagger statics, /coddy REST, ServeMux wiring).
external/ui Embedded SPA (go:embed) when built with tags=http,ui.
external/memory Long-term memory copilot (-tags memory; see README there).
external/cli Interactive console TUI (-tags cli): bare coddy on a terminal, pi-style rendering in external/cli/tui. Guide: docs/cli.md.
external/gateway Messenger gateway (-tags gateway.telegram or -tags gateway): Telegram bot adapter, session store, proxy support. Full guide: docs/gateway.md, rules: .cursor/rules/gateway.mdc.

Read the full file on GitHub · 116 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. 4d ago First seen · 116 lines · 3,647 tokens per session scan A f6083c35602b

Subscribe to this mod's changes

coddy-agent AGENTS.md is an instructions file published in the GitHub repository coddy-project/coddy-agent (127 stars, last pushed 6d ago), licensed MIT. It adds 3,647 tokens to every session, about $0.0182 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.

Related

Other instructions, from other repositories