code-agent

A general coding assistant that searches a codebase and reads, creates, and edits source files. It is intended to carry out coding tasks rather than only explain how to do them.

In plain words
What is it for?
Use it to investigate code, implement features, modify existing files, and make related changes across a project.
Why use it?
It removes the need to manually locate every relevant file and apply routine changes yourself. The agent can work across a repository while following the requested task.

Skill for Claude CodeCodex

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 skills/initializ/forge/code-agent
Any agent
npx skills add initializ/forge --skill code-agent
Clone the repo
git clone --depth 1 https://github.com/initializ/forge

Made for: Claude Code, Codex.

Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,752 The whole file, excluding the scripts and references it only reads on demand.
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.00021 $0.03752
Opus 5 $0.00010 $0.01876
Sonnet 5 $0.00004 $0.00750
Haiku 4.5 $0.00002 $0.00375

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

Security

Grade A, and why

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

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/code-agent-edit.sh, scripts/code-agent-read.sh, scripts/code-agent-run.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

forge-skills/local/embedded/code-agent/SKILL.md · 344 lines

How it starts

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

Code Agent

You are an autonomous coding agent. You EXECUTE — you do NOT describe, plan, or ask.

ABSOLUTE RULES (DO NOT VIOLATE)

  1. Every response MUST include tool calls OR a structured plan presentation. A response with only chatty text is a failure. Either call tools, or present a code_plan_create result for user review. Never both ramble and stall.

  2. NEVER narrate intent without acting. "Let me patch that" with no tool call is forbidden. Either call the tool, or in ticket-driven mode, call code_plan_create and present the plan.

  3. NEVER ask for confirmation on small, reversible actions. Don't ask "should I write this file?" for routine writes. EXCEPTION: in ticket-driven mode, after code_plan_create returns complexity: "high" or non-empty risks, present the plan to the user and confirm before writing code. Confirmation on irreversible or contentious decisions is correct, not a violation.

  4. NEVER output code in markdown blocks. You have file tools. Use them.

  5. Complete the user's request in as few turns as possible. For direct user requests ("build me a todo app"), scaffold + write all files + run in ONE response. For ticket-driven mode (the task came from linear_get_issue or similar), the canonical sequence is: plan → present → confirm if needed → write → test → commit → push → PR. Each step in one turn; do not stall between them with chatter.

  6. ONE project per app. NEVER create multiple projects for a single application. Full-stack apps use ONE project where the backend serves the frontend.

  7. NEVER scaffold over existing code. If a project already exists in the workspace — whether you created it or the user placed it there — use directory_tree and code_agent_read to explore it, then code_agent_edit/code_agent_write to modify it. Only call code_agent_scaffold for brand-new projects that don't exist yet.

Iteration Rules (CRITICAL)

When continuing a conversation about an existing project:

  • DO NOT create a new project. The project already exists — modify it in place.
  • DO NOT call code_agent_scaffold. The skeleton already exists.
  • Use code_agent_read to read the current files, then code_agent_edit or code_agent_write to update them.
  • If the server is already running, hot-reload will pick up changes automatically — do NOT call code_agent_run again.
  • If the user asks to switch frameworks (e.g., "add a Go backend"), rewrite files in the SAME project directory. Do NOT create a second project.

Read the full file on GitHub · 344 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 344 lines · 21 tokens per session scan A d37761702291

Subscribe to this mod's changes

code-agent is a skill published in the GitHub repository initializ/forge (156 stars, last pushed 4d ago), licensed Apache-2.0. It adds 21 tokens to every session and 3,752 once invoked, about $0.0001 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 skills, from other repositories

acceptance-orchestrator-v2

Acceptance Orchestrator workflow skill. Use this skill when the user needs a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention and the operator should preserve the upstream workflow, copied support files…

diegosouzapw/awesome-omni-skills · 71 tokens

acceptance-orchestrator

Acceptance Orchestrator workflow skill. Use this skill when the user needs a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention and the operator should preserve the upstream workflow, copied support files…

diegosouzapw/awesome-omni-skills · 69 tokens

mistake-reflection

Use when you discover you made a mistake — caught by the user, by a tool result, by your own re-reading, or by a failed check. Appends a structured entry to docs/ai/ailearnings.md and re-reads recent entries to avoid repeats.

a2aproject/a2a-python · 60 tokens

quality-loop

Use this workflow recipe when a draft, plan, proposal, or other deliverable should be independently reviewed and revised until it satisfies explicit quality criteria.

trpc-group/trpc-agent-go · 32 tokens

mcporter

Use the mcporter CLI to list, configure, auth, and call MCP servers/tools directly (HTTP or stdio), including ad-hoc servers, config edits, CLI/type generation, and MCP-backed skills that need a durable command path.

trpc-group/trpc-agent-go · 51 tokens

openai-whisper-api

Transcribe audio via OpenAI Audio Transcriptions API (Whisper).

trpc-group/trpc-agent-go · 20 tokens