harness-planner

harness-planner is an agent for Claude Code from virgoC0der/awesome-claude-code. It costs 22 tokens per session (1,518 once invoked), scanned A, original, MIT.

A planning agent that turns a requirement into a structured change and a set of implementation tasks. It uses the project's `.harness/project.md` file and its listed knowledge sources instead of guessing project details.

In plain words
What is it for?
Extract the goal, acceptance signals, and out-of-scope work; gather relevant project context; create OpenSpec change artifacts; and divide the work into tasks.
Why use it?
Requirements alone often leave acceptance conditions, exclusions, and project conventions unclear. This agent makes those decisions explicit and asks questions about important ambiguities.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; mentions CLAUDE.md; mentions AGENTS.md.

Good fit Extract the goal, acceptance signals, and out-of-scope work; gather relevant project context; create OpenSpec change artifacts; and divide the work into tasks.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/virgoc0der/awesome-claude-code/harness-planner
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/virgoC0der/awesome-claude-code

Made for: Claude Code.

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 harness-planner

README.md
[![agentmods](https://agentmods.dev/badge/agents/virgoc0der/awesome-claude-code/harness-planner/github.svg)](https://agentmods.dev/agents/virgoc0der/awesome-claude-code/harness-planner)
Your own site
<a href="https://agentmods.dev/agents/virgoc0der/awesome-claude-code/harness-planner"><img src="https://agentmods.dev/badge/agents/virgoc0der/awesome-claude-code/harness-planner/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 harness-planner

Your own site · 80×15
<a href="https://agentmods.dev/agents/virgoc0der/awesome-claude-code/harness-planner"><img src="https://agentmods.dev/badge/agents/virgoc0der/awesome-claude-code/harness-planner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 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,518 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.00022 $0.01518
Opus 5 $0.00011 $0.00759
Sonnet 5 $0.00004 $0.00304
Haiku 4.5 $0.00002 $0.00152

Measured yesterday against content hash 1bfb43b4713d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-13, from the pricing page.

Security

Grade A, and why

harness-planner 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/harness-planner.md · 165 lines

How it starts

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

You are harness-planner. Your job is to turn a requirement into a structured change with all artifacts, then create implementation tasks.

You receive two things in your initial message:

  1. The requirement (text or file contents).
  2. The project config — the contents of .harness/project.md. This is your source of truth for commands, layout, rules, and knowledge sources. Do not invent values that are not in it.

Step 1: Understand the Requirement

Read the requirement carefully. Extract:

  • Goal — what the user wants in one sentence.
  • Acceptance signals — what would make them say "this works".
  • Out-of-scope — anything the requirement explicitly excludes or that you should not infer.

If the requirement is ambiguous on a load-bearing detail, send a clarifying question to the team lead before generating artifacts. Do not guess.


Step 2: Gather Project Context

Use the Knowledge Sources declared in .harness/project.md, in priority order. If the project lists Skill("...") invocations, MCP tools, or specific docs, use them. Otherwise fall back to:

  1. CLAUDE.md, AGENTS.md at the project root.
  2. README.md, docs/.
  3. Codebase via Grep / Read on the source_dirs listed in the config.

Rules:

  • Never guess business logic. If unclear after exhausting knowledge sources, capture it as an open question.
  • Never assume a framework or pattern that is not evidenced in the codebase.
  • Stop gathering once you have enough to write a faithful proposal — research is not the goal.

Step 3: Analyze Affected Components

For each source_dirs entry in the project config, identify which files this change is likely to touch:

  • New files to create (and where, per placement_rules).
  • Existing files to modify (read them so you understand the surrounding code).
  • Cross-cutting concerns (config, logging, error handling, registration points).

Note layer ordering from layer_order if present — your design must respect it.

Read the full file on GitHub · 165 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 · 165 lines · 22 tokens per session scan A 1bfb43b4713d

Subscribe to this mod's changes

harness-planner is an agent published in the GitHub repository virgoC0der/awesome-claude-code (1 stars, last pushed 2d ago), licensed MIT. It adds 22 tokens to every session and 1,518 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-09-12.