coding-tools-mcp AGENTS.md

A set of contributor instructions for coding-tools-mcp, a project organized as a monorepo. A monorepo keeps multiple related applications and packages in one repository.

In plain words
What is it for?
Use it when changing the Python runtime, desktop client, tunnel integrations, infrastructure, npm launcher, benchmarks, documentation, or maintenance scripts.
Why use it?
It helps an agent find the right part of the repository and avoid coupling unrelated components.

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/cuishihui66/coding-tools-mcp/agents-md
Clone the repo
git clone --depth 1 https://github.com/cuishihui66/coding-tools-mcp

Made for: Codex, OpenCode.

Per session 1,072 This file is loaded in full into every session.
When invoked 1,072 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.01072 $0.01072
Opus 5 $0.00536 $0.00536
Sonnet 5 $0.00214 $0.00214
Haiku 4.5 $0.00107 $0.00107

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

Security

Grade A, and why

coding-tools-mcp 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 yesterday.

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 · 40 lines

How it starts

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

Coding Tools MCP repository guide

This repository is a monorepo. Keep changes inside the narrowest owning subtree and avoid creating cross-component coupling unless the feature requires it.

Repository map

  • coding_tools_mcp/: core Python MCP runtime and public server behavior.
  • apps/desktop-client/: desktop client UI and desktop runtime integration.
  • integrations/tunnels/: user-facing tunnel launchers for remote MCP access.
  • infra/cloudflare/sandbox-control/: Cloudflare Worker control plane paired with .github/workflows/start-sandbox.yml.
  • packages/npm-launcher/: thin npm launcher for the Python package.
  • media/promo-video/: Remotion source for the project promo video.
  • benchmarks/: benchmark runners and fixtures.
  • reports/: generated/published benchmark and compliance results.
  • docs/: user, contributor, architecture, and reference documentation.
  • scripts/: repository maintenance, validation, installation, release, and report-generation scripts. Do not put user-facing runtime integrations here.

Agent execution context

  • Local CLI agent: when the agent already has local filesystem, patch, and command execution on the host, use those native local tools. Do not route local development through ct.* merely because remote-agent examples exist.
  • Remote ChatGPT agent through the ct plugin: use the available ct.* MCP tools, follow their schemas exactly, and use workspace-relative paths. The live MCP providing that connection is part of the agent's access path and must not be restarted or replaced from that same remote session.
  • Tool-specific examples must be labeled for their execution context. Describe the required operation first; do not write a global rule that makes every agent call ct.* or assume unavailable local tools.

Standing rules

  1. Preserve public CLI names, Python import paths, protocol schemas, and release behavior unless a task explicitly requires a breaking change.
  2. Keep one authoritative home for each fact; link to it instead of copying long explanations between documents.
  3. Changes to infra/cloudflare/sandbox-control/ and .github/workflows/start-sandbox.yml may form one interface contract. Update and validate them together.
  4. Prefer subtree-specific instructions when present.
  5. Run the narrowest relevant checks first, then broader checks when tooling is available.
  6. For a remote agent using Coding Tools MCP command execution, prefer workspace-relative workdir/paths such as . instead of absolute workspace paths; the MCP sandbox may reject absolute working directories even when they point inside the configured workspace.
  7. For GitHub pushes from this workspace, prefer the already-working SSH authentication path. If origin uses HTTPS and push fails because credentials are unavailable, verify SSH authentication and push via the equivalent [email protected]:<owner>/<repo>.git URL rather than repeatedly retrying unauthenticated HTTPS. Do not rewrite the configured remote unless the task requires it.
  8. In a remote ct session, use ct.apply_patch for direct repository file modifications and treat each patch as atomic: if any hunk cannot be matched safely, the whole patch may be rejected. Do not bypass a rejected patch with shell redirection, inline scripts, editor commands, or another direct-write path. A local CLI agent should use its runtime's native patch facility instead.
  9. Before applying a patch, read the current affected region and build patch context from the latest file contents. Use sufficiently unique anchors, especially in repetitive JavaScript, CSS, tests, task lists, and Markdown.
  10. Keep each patch scoped to one coherent change. Avoid bundling unrelated implementation, tests, OpenSpec documents, and UI artifacts into one large patch merely to reduce tool calls; one stale or ambiguous hunk would reject the entire atomic patch.
  11. After modifying a file, do not reuse stale patch context for that file. If a patch is rejected, re-read the affected region, determine whether the cause is stale or ambiguous context, and construct a new patch instead of retrying the same envelope unchanged.
  12. When a target fragment occurs multiple times, anchor the patch with the nearest unique function name, CSS selector, Markdown heading, or surrounding semantic block rather than a short repeated line.
  13. Remote ct agents must follow Coding Tools MCP tool schemas exactly. Do not guess parameter ranges or retry a schema-invalid call without correcting its arguments first.
  14. Treat the MCP Server that is currently providing Coding Tools access for an active development session as protected infrastructure. Development, validation, preview, restart, systemd, process, listener, or port-management work MUST NOT stop, restart, replace, signal, rebind, or otherwise disturb that live MCP process, because losing it removes project read/write access. Before any operation that can affect services, processes, or listeners, identify the exact target PID/listener/unit and verify it is not the active MCP Server; do not assume a fixed PID or port. Use separate processes, ports, state directories, and service units for previews and destructive/restart validation. If install/restart/live-listener acceptance would sever a remote agent's ct connection, prepare the exact procedure and hand execution to an out-of-band local shell instead of touching the live access path.

Read the full file on GitHub · 40 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. yesterday First seen · 40 lines · 1,072 tokens per session scan A e33509a06ab3

Subscribe to this mod's changes

coding-tools-mcp AGENTS.md is an instructions file published in the GitHub repository cuishihui66/coding-tools-mcp (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,072 tokens to every session, about $0.0054 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.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens