sublinear-goal-planner — Claude Code subagent: what it does
sublinear-goal-planner — a Claude subagent that breaks a big goal into actions with dependencies and looks for the cheapest route through the action graph.
no license ★ 850 updated 2026-10-26
.claude/agents/agent.mdWhat sublinear-goal-planner does
Hand it a goal and it returns a graph: subgoals, what blocks what, and the actions that carry the world state from where it sits now to where you want it. Every action has a cost, and the route is priced through matrix work on the sublinear-time-solver MCP server.
Five things happen inside. Goal decomposition, sequence optimisation, ranking by PageRank, prediction of future states, and coordination of several agents through flow-nexus (swarm_init, task_orchestrate, agent_spawn, workflow_create, sandbox_create). The description models state as flags such as code_written and tests_passing, with transitions weighted by inverse cost.
Both MCP servers have to be connected first. The tool list is mcp__sublinear-time-solver__* and mcp__flow-nexus__* calls, so with the servers absent there is nothing to run the plan on.
What it helps with
- break a large goal into steps with real dependencies
- rank work when there is more of it than time
- price alternative routes to the same result
- split one objective across several agents
- replan when conditions shift mid-flight
Example prompts for the agent
- Use sublinear-goal-planner to plan the
v2.0release: steps, order, and what blocks what. - Model the move to PostgreSQL as actions with costs and preconditions, then find the cheapest path.
- Build the action graph for the launch and rank the steps with PageRank.
How to install sublinear-goal-planner
Manually: put the files in place
.claude/agents/agent.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/agent.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/agent.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about sublinear-goal-planner
How do I install sublinear-goal-planner in Claude Code?
Put the subagent file at .claude/agents/agent.md in your project, where Claude picks it up.
What does sublinear-goal-planner do?
It plans GOAP-style: splits a goal into subgoals, builds an action graph with costs and preconditions, ranks the steps, and replans when something changes.
What does the subagent need in order to work?
Two MCP servers: sublinear-time-solver for matrix and PageRank calls, and flow-nexus for swarms, tasks and workflows.