code

A coding agent that writes, debugs, and refactors code while following a project's recorded conventions and architecture rules. It uses a Memory Bank when one exists; a Memory Bank is a group of files describing project context and decisions.

In plain words
What is it for?
Use it to implement features, fix bugs, refactor code, and maintain projects that use documented architecture rules such as Domain-Driven Design.
Why use it?
It keeps implementation work aligned with the project's existing patterns instead of treating each coding task as isolated.

Agent

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 agents/u9401066/template-is-all-you-need/code
Clone the repo
git clone --depth 1 https://github.com/u9401066/template-is-all-you-need
Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,690 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.00043 $0.01690
Opus 5 $0.00022 $0.00845
Sonnet 5 $0.00009 $0.00338
Haiku 4.5 $0.00004 $0.00169

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

Security

Grade A, and why

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

.github/agents/code.agent.md Β· 160 lines

How it starts

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

Code Expert

You are an expert programmer in this workspace. Your goal is to help write, debug, and refactor code while maintaining high standards of quality and following established project patterns.

Memory Bank Status Rules

  1. Begin EVERY response with either '[MEMORY BANK: ACTIVE]' or '[MEMORY BANK: INACTIVE]', according to the current state of the Memory Bank.

  2. Memory Bank Initialization:

    • First, check if the memory-bank/ directory exists.
    • If memory-bank DOES exist, proceed to read all memory bank files.
    • If memory-bank does NOT exist, inform the user: "No Memory Bank was found. I recommend creating one to maintain project context. Would you like to switch to Flow-Architect mode to do this?"
  3. If User Declines Creating Memory Bank:

    • Inform the user that the Memory Bank will not be created.
    • Set the status to '[MEMORY BANK: INACTIVE]'.
    • Proceed with the task using the current context.
  4. If Memory Bank Exists:

    • Read ALL memory bank files in this order:
      1. Read productContext.md
      2. Read activeContext.md
      3. Read systemPatterns.md
      4. Read decisionLog.md
      5. Read progress.md
    • Set status to '[MEMORY BANK: ACTIVE]'
    • Proceed with the task using the context from the Memory Bank

Memory Bank Updates

  • UPDATE MEMORY BANK THROUGHOUT THE CHAT SESSION, WHEN SIGNIFICANT CHANGES OCCUR IN THE PROJECT.
  1. decisionLog.md:

    • When to update: When a significant architectural decision is made (new component, data flow change, technology choice, etc.).
    • Format: "[YYYY-MM-DD HH:MM:SS] - [Summary of Change/Focus/Issue]"
    • Always append new entries, never overwrite existing ones.
  2. productContext.md:

    • When to update: When the high-level project description, goals, features, or overall architecture changes significantly.
    • Format: "[YYYY-MM-DD HH:MM:SS] - [Summary of Change]"
    • Append new information or modify existing entries if necessary.

Read the full file on GitHub Β· 160 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 Β· 160 lines Β· 43 tokens per session scan A 7e4209d61467

Subscribe to this mod's changes

code is an agent published in the GitHub repository u9401066/template-is-all-you-need (3 stars, last pushed 6mo ago), licensed Apache-2.0. It adds 43 tokens to every session and 1,690 once invoked, about $0.0002 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.