Skip to main content
subagent CX Codex

pseudocode · ruvnet, agentic-flow — Claude Code subagent: SPARC pseudocode design

A subagent for the Pseudocode stage of SPARC: it turns a finished spec into an algorithm draft and works out the complexity.

no license ★ 850 updated 2026-10-26

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/pseudocode.md
Open on GitHub

What pseudocode does

This subagent handles one stage of SPARC: Pseudocode. Give it a specification that is already complete and it returns the algorithm as plain steps, with data structures chosen and the cost in time and memory estimated.

The definition file holds frontmatter (architect type, high priority) and a pair of hooks. The pre hook searches memory for earlier algorithm patterns with npx claude-flow@alpha memory search-patterns. The post hook stores the session pattern and starts a neural train run on algorithm-design data.

Quality is written into memory as a flat 0.88 instead of being derived from the complexity figures, so stored patterns all carry the same score. Every claude-flow call is wrapped in 2>/dev/null || true. Leave the package out and the lookups do nothing while the phase still reports success.

What it helps with

  • draft pseudocode from a finished spec before any code exists
  • compare two data structure choices on time and space cost
  • reuse a proven algorithm pattern from an earlier session
  • check edge case coverage while the design is still cheap to change
  • keep a complexity breakdown in project memory for later tasks

Example prompts for the agent

  • Take the specification from memory and draft pseudocode for the search algorithm, with a complexity estimate.
  • Weigh a hash table against a trie for this lookup and say which one costs less memory.
  • List the earlier algorithm patterns you found in memory, then store the complexity breakdown.

How to install pseudocode

Manually: put the files in place

.claude/agents/pseudocode.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about pseudocode

How do I install pseudocode in Claude Code?

Place the agent file at .claude/agents/pseudocode.md inside your project. Claude then has it available as a subagent.

What does pseudocode do?

It covers the Pseudocode stage of SPARC: reads a finished specification, describes the algorithm in steps, picks data structures and estimates complexity.

Does pseudocode need claude-flow?

Its hooks shell out to npx claude-flow@alpha. Without that package the pattern search and training never run, and the errors are discarded through 2>/dev/null || true, so the failure stays quiet.

Similar subagents

All subagents for Agent setup: memory, context, orchestration →

pseudocode by other authors comes first.

From the same set76

The whole set →
tester tester is a Claude Code subagent that creates tests and checks code, recording past failures in claude-flow. CX Codex ★ 850repo stars code-goal-planner The code-goal-planner subagent turns software goals into milestones with dependencies and success criteria. Use it to plan a feature, bug fix, or refactor. CX Codex ★ 850repo stars swarm-issue swarm-issue turns a GitHub issue into work for a swarm: splits it into subtasks, assigns agents and reports progress back inside the issue. CX Codex ★ 850repo stars performance-optimizer The performance-optimizer subagent finds system bottlenecks and helps tune resource distribution, load balancing, and computational performance. CX Codex ★ 850repo stars context-synthesizer context-synthesizer synthesizes multidimensional context across task constraints, domain patterns, and past execution memory. Helps maintain clear situational awareness during complex execution. CX Codex ★ 850repo stars pattern-matcher The pattern-matcher subagent breaks down tasks, finds related solutions in ReasoningBank, and adapts them to a new context. CX Codex ★ 850repo stars Verification & Quality Assurance Verification & Quality Assurance is a Claude Code skill that checks code and agent outputs with reliability scores (0–1.0), reverting failed changes. CX Codex +1 ★ 850repo stars memory-optimizer memory-optimizer is a Claude Code, Codex, and Cursor subagent that merges similar ReasoningBank memories and removes stale or conflicting patterns. It also checks memory quality. CX Codex ★ 850repo stars

Project sponsors

Companies that keep this analytics open