context_pipeline

context_pipeline is a command for Claude Code from RchGrav/claudebox. It costs 0 tokens per session (1,570 once invoked), scanned A, original, MIT.

A command workflow for turning a software idea into a structured project plan and folder setup. It interviews you, assigns work to specialist agents, and checks their results.

In plain words
What is it for?
Use it to create project files, agent instructions, implementation blueprints, tests, and validation steps for a software project.
Why use it?
It reduces the effort of clarifying requirements, organizing agent work, and checking whether the planned implementation is complete.

Command for Claude Code

Written for Claude Code: a Claude Code command (commands/*.md). Also seen: mentions CLAUDE.md; mentions Claude Code.

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 commands/rchgrav/claudebox/context_pipeline
Clone the repo
git clone --depth 1 https://github.com/RchGrav/claudebox

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 context_pipeline

README.md
[![agentmods](https://agentmods.dev/badge/commands/rchgrav/claudebox/context_pipeline.svg)](https://agentmods.dev/commands/rchgrav/claudebox/context_pipeline)
Your own site
<a href="https://agentmods.dev/commands/rchgrav/claudebox/context_pipeline"><img src="https://agentmods.dev/badge/commands/rchgrav/claudebox/context_pipeline.svg" alt="Measured on agentmods" 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 1,570 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.1 $0.00000 $0.01570
Opus 5 $0.00000 $0.00785
Sonnet 5 $0.00000 $0.00314
Haiku 4.5 $0.00000 $0.00157

Measured 6d ago against content hash 2307d0a92d0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

context_pipeline 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 6d 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.

commands/context_pipeline.md · 181 lines

How it starts

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

📐 CONTEXT-ENGINEERING PIPELINE (DSPy-Style)

☑️ PURPOSE

Engineer a self-validating, multi-agent software-development workspace that:

  1. Interviews the user, expands & refines requirements.
  2. Writes, selects, compresses, and isolates context per the attached Context Engineering Cheat Sheet (Write ▸ Select ▸ Compress ▸ Isolate).
  3. Scaffolds a project-folder tree populated with CLAUDE.md and slash-command files under ./.claude/commands/.
  4. Spawns specialists (AutoAgents derivatives) whose prompts are saved in that tree and orchestrated via tmux when available.
  5. Enforces MetaGPT-style SOP artifact contracts, CAMEL ReAct dialogues, CRITIC gatekeepers, and Self-Refine Reflexion loops until all validation gates pass.
  6. Emits PRPs (Product-Requirements Prompts): implementation blueprints containing context, docs, tasks, tests, error-handling, and validation commands.

🧩 TOP-LEVEL DSPy PIPELINE

class ContextPipeline(Chain):
    """Declarative overview for Claude Code."""
    interview          = InterviewStage()
    clarify_refine     = ClarifyRefineLoop()
    scaffold           = ProjectScaffold()
    generate_prompts   = PromptSynthesis()
    validation         = ValidationGates()
    review_loop        = ExpertReviewCycle()
    finalise           = FinaliseArtifacts()

1️⃣ InterviewStage

Ask exactly two opening questions → store replies in runtime_state.overview & runtime_state.gotchas.

# Prompt Store As Notes
1 “Describe what you want to build — be as specific as possible.” $OVERVIEW Must capture functionality & requirements.
2 “List any gotchas, edge-cases, or things AI assistants often miss.” $GOTCHAS Focus on hidden constraints.

Read the full file on GitHub · 181 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. 6d ago First seen · 181 lines · 0 tokens per session scan A 2307d0a92d0e

Subscribe to this mod's changes

context_pipeline is a command published in the GitHub repository RchGrav/claudebox (1,143 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,570 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-30.