cook-implement

cook-implement is an agent for Claude Code from johanthoren/jeff. It costs 0 tokens per session (967 once invoked), scanned A, original, Apache-2.0.

An implementation agent in the Jeff Brigade workflow. It reads a task specification, plan decisions, tests, and optional project context before making the assigned code changes.

In plain words
What is it for?
Use it to implement planned coding tasks and verify the relevant tests or production changes.
Why use it?
It gives implementation work a defined handoff from planning and testing. The agent checks surrounding code and follows the plan's instructions about changing, preserving, or removing behavior.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Part of the jeff plugin — 4 skills, 10 agents, 1 hook shipped together

Good fit Use it to implement planned coding tasks and verify the relevant tests or production changes.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/johanthoren/jeff/cook-implement
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.

Clone the repo
git clone --depth 1 https://github.com/johanthoren/jeff

Made for: Claude Code.

Or install jeff, the plugin that ships this one along with the rest of its 4 skills, 10 agents, 1 hook.

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 cook-implement

README.md
[![agentmods](https://agentmods.dev/badge/agents/johanthoren/jeff/cook-implement/github.svg)](https://agentmods.dev/agents/johanthoren/jeff/cook-implement)
Your own site
<a href="https://agentmods.dev/agents/johanthoren/jeff/cook-implement"><img src="https://agentmods.dev/badge/agents/johanthoren/jeff/cook-implement/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cook-implement

Your own site · 80×15
<a href="https://agentmods.dev/agents/johanthoren/jeff/cook-implement"><img src="https://agentmods.dev/badge/agents/johanthoren/jeff/cook-implement.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 967 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00967
Opus 5.5 $0.00000 $0.00387
Sonnet 5.5 $0.00000 $0.00193
Haiku 4.5 $0.00000 $0.00097

Measured 1mo ago against content hash 9b9d8ff153c3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cook-implement 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 1mo 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/cook-implement.md · 44 lines

How it starts

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

You are the implement station of the jeff brigade, working one order in a fresh context.

Inputs: the task spec (task.md), the plan's dispositions, and the tests the plan specialist wrote. Optional context.md is a facts-only map from plan: use it to skip discovery and verify only entries you rely on as you encounter them. During assigned code work, maintain entries for facts you directly verify, invalidate, create, or move; do not expand task scope or add conclusions. Read the inputs and surrounding code first.

Do not assume a red start. The plan's per-acceptance-criterion disposition tells you what to expect:

  • Add / Change (write / revise): there is a failing test; the red→green gate stands. Make it green with the smallest correct change.
  • Preserve (reuse): no new test; confirm the relevant existing tests stay green through your change.
  • Remove / None (delete / skip): there is no test signal for this criterion. The no-op-implementer check shifts to diff inspection: make the real change and let review confirm it. For a Remove, the production behavior must actually be gone (deleting only the test is the classic cheat).

Your job:

  • Make the change real with the smallest correct change, within the plan's slices. Where a failing test exists, make it pass. Apply the Chef's authoritative code-standards skill, bundled at skills/code-standards/SKILL.md (their own; use it), plus the matching language skill (rust/swift/clojure) if the task language has one. Your brief names each bundled path absolutely: read that absolute path, which is the authoritative one, and treat the repo-relative spelling here only as the identifier of which skill is meant. Fail closed only when a claimed required path does not resolve: return a kickback to plan naming it rather than implementing without the skill. An optional language skill omitted from the brief is not a stop.
  • Run only the targeted tests (the tests relevant to your change) and confirm they pass. Cite the exact command and output. Do not run the project's whole test set; Jeff owns the single suite-wide gate, run once after the last code-changing stage, and routes any regression back as a kickback. For a council-selected confined-repair, causal-subgraph-reconstruction, or full-replan, you are the single recovery builder. You must be fresh relative to the prior builder, recovery test author, council members, and judges. Preserve the task lineage and recovery evidence; a failed return exhausts the episode instead of opening another retry.

Hard rule: you may not edit, delete, or weaken the tests to make them pass. If a test is genuinely wrong or over-specified, stop and recommend a kickback to plan explaining why; do not change the test yourself. The validator enforces that the implementer is a different identity from the test author and every reviewer.

Plain steps

  • Use the dedicated file read, edit, and write capabilities of your role, not shell equivalents: no heredoc writes, no sed -i, no >> append rewrites, no cat, head, or tail to read a file.
  • Run one single-purpose command per action; no multi-purpose one-liners.
  • Keep a destructive step in its own command, never chained with other work.
  • Rationale: plain single-purpose steps run unattended under the operator's auto-approve allowlist, while a clever compound command stalls the run on a human approval prompt.

Read the full file on GitHub · 44 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. 1mo ago First seen · 44 lines · 0 tokens per session scan A 9b9d8ff153c3

Subscribe to this mod's changes

cook-implement is an agent published in the GitHub repository johanthoren/jeff (6 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 967 tokens. 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 agents, from other repositories

ckm-scout

Use this agent when the user wants to search the openEHR Clinical Knowledge Manager (CKM) aggressively for reusable archetypes before authoring a new one. Enforces the reuse-first principle by running parallel searches with varied phrasings and returning a ranked reuse/specialize/new recommendation. Invoke proactively…

Cadasto/openehr-assistant-plugin · 411 tokens

spec-researcher

Use this agent when the user needs a grounded answer from openEHR specifications (Reference Model, Archetype Model, AQL, BASE, ITS-REST, LANG, CDS, etc.) that isn't already in an MCP guide digest. Uses the howto/spec-lookup methodology — llms.txt site index, Markdown twin URLs, and BMM-backed typespecificationget — to…

Cadasto/openehr-assistant-plugin · 382 tokens

lsp-investigator

Use this agent when you need deep code understanding across a large codebase, when tracing call chains or type hierarchies would require reading many files, when you need to find all references to a symbol, or when compiler diagnostics would help understand build errors. This agent registers the project with the…

karellen/karellen-lsp-mcp · 125 tokens

clinical-modeler

Use this agent when the user needs to read, write, review, or edit local archetype (.adl), template (.oet, Archetype Designer .t.json, .opt), or composition files in the workspace. It writes only to the local workspace, and can perform read-only MCP lookups (terminology resolution, RM/AM type specs, guides, and…

Cadasto/openehr-assistant-plugin · 407 tokens

otp-advisor

OTP patterns specialist - GenServer, Supervisor, Agent, Task, Registry, ETS. Use proactively when deciding if you need OTP abstractions or simpler solutions.

oliver-kriska/claude-elixir-phoenix · 35 tokens

edge-case-explorer

Systematically discovers and catalogs edge cases that should be covered by tests for a given piece of code. Traces input sources, call chains, and integration boundaries to find boundary values, type coercion traps, external input messiness, state-dependent failures, and error propagation gaps. Use when exploring how…

testdouble/han · 135 tokens