server: Command for Claude Code

.claude/commands/aide/synthesize.md

synthesize is a command for Claude Code from aidemd-mcp/server. It costs 0 tokens per session (838 once invoked), scanned A, original, MIT.

A command in the AIDE pipeline that turns an intent specification and research into a completed strategy document and a sibling brief. AIDE is a workflow for developing and planning software modules.

In plain words
What is it for?
It is for writing Context, Strategy, Good examples, Bad examples, and References in an .aide file, plus creating brief.aide when synthesis is requested or required.
Why use it?
It fills the required planning sections in one pass and sends the work back to research if the available information is insufficient.

Command for Claude Code

Written for Claude Code: installed under .claude/.

This is aidemd-mcp/server's own configuration. It tells Claude Code how to work on server itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything server configures →

Reuse

Borrowing it

Nothing to install: this file belongs to aidemd-mcp/server. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/aidemd-mcp/server/main/.claude/commands/aide/synthesize.md
Clone the repo
git clone --depth 1 https://github.com/aidemd-mcp/server

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 synthesize

README.md
[![agentmods](https://agentmods.dev/badge/commands/aidemd-mcp/server/synthesize/github.svg)](https://agentmods.dev/commands/aidemd-mcp/server/synthesize)
Your own site
<a href="https://agentmods.dev/commands/aidemd-mcp/server/synthesize"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/synthesize/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 synthesize

Your own site · 80×15
<a href="https://agentmods.dev/commands/aidemd-mcp/server/synthesize"><img src="https://agentmods.dev/badge/commands/aidemd-mcp/server/synthesize.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 838 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.00838
Opus 5.5 $0.00000 $0.00335
Sonnet 5.5 $0.00000 $0.00168
Haiku 4.5 $0.00000 $0.00084

Measured 20d ago against content hash f99a94d89256, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

synthesize 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 20d 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.

.claude/commands/aide/synthesize.md · 25 lines

How it starts

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

/aide:synthesize — Synthesize Phase

Agent: This command is executed by the aide-strategist agent.

Read the intent spec's frontmatter, the orchestrator's description of the pipeline flow and any brain research, then fill in the .aide body sections (Context, Strategy, Good examples, Bad examples, References) AND author the sibling brief.aide. This is a fresh strategist session — it did not run the research phase and carries no prior context.

Synthesize is conditional in the AIDE pipeline. It runs only when the orchestrator routes through this phase — either because the spec-writer signaled "Strategy needed" (the feature is a pipeline: several modules each doing one specific thing in a specific order, handing off through calls, events, a clock or state changes) or the user explicitly asked for synthesis. Self-contained modules skip synthesize and go straight to /aide:plan as frontmatter-only navigation stubs.

All-or-nothing rule: if you produce a body, you fill all five sections. Partial bodies (Context filled but Strategy empty, etc.) are forbidden. If the pipeline description and available research aren't sufficient to fill all five, escalate to the orchestrator (or back to /aide:research when domain knowledge is missing) rather than producing a thin body.

Checklist

  • Read the target .aide file. Confirm frontmatter is complete (scope, intent, outcomes.desired, outcomes.undesired). If frontmatter is missing or incomplete, stop and escalate back to /aide:spec
  • Read the pipeline flow from the orchestrator's delegation: what starts it, the order of the steps, the hand-offs, what happens when a step is late, repeated or missing
  • Identify the domain from the intent. Search the brain for any research filed under that domain (e.g., research/email-marketing/, research/local-seo/); if no brain is available, check for a co-located research.aide. A pipeline may have no research — its flow can come entirely from the delegation
  • If there is neither a pipeline description nor research to work from, stop and escalate to the orchestrator
  • Read all relevant research entries. Cross-reference findings against the intent's outcomes.desired and outcomes.undesired — the research serves the intent, not the other way around
  • Fill ## Context — why this module exists, the domain-level problem, constraints that shape it. Write for a generalist engineer. No code. Do not restate context already carried by a parent .aide
  • Fill ## Strategy — how the system solves its real-world problem: how the modules interact, and why: what starts the flow, who calls or notifies whom, in what order, what each hand-off carries, and what happens when one is late, repeated or missing. The parent spec carries the end-to-end flow; a module spec carries only its slice. Each paragraph names a concrete choice and the reasoning or data that justifies it, naming the outcome it serves. Never restate the intent or outcomes, recount history, or cite session.aide, brief.aide, plan.aide or todo.aide. Write in decision form, not description form. No code
  • Fill ## Good examples — concrete domain output that illustrates success. Real output, not code. Pattern material for QA
  • Fill ## Bad examples — the almost-right failures. Output that looks valid but violates intent. Recognizable failure modes, not enumeration
  • Verify every strategy decision traces back to an outcomes.desired or guards against an outcomes.undesired. Cut anything that doesn't serve the intent
  • Run aide_validate to check the completed spec for structural issues
  • Hand off to /aide:plan — the architect is the next phase

Read the full file on GitHub · 25 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. 20d ago Changed f99a94d89256
  2. 2mo ago First seen · 25 lines · 0 tokens per session scan A 6a0b4628374b

Subscribe to this mod's changes

synthesize is a command published in the GitHub repository aidemd-mcp/server (4 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 838 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.