All notes

The Planner Is the Product

BRHP: planning as durable, inspectable state for long-running coding agents.

BRHP is a planning-harness kernel that records planning state for long-running coding agents in explicit, persistent sessions.

BRHP stands for Boltzmann Recursive Hierarchical Planning. It models a plan as a graph of scopes, nodes, and edges. Each node carries utility, confidence, local-entropy, and validation-pressure scores.

Frontier selection is temperature-controlled. Entropy-drift signals track plans settling or thrashing. Deterministic validation snapshots record verdicts for inspection.

The OpenCode plugin provides /brhp commands for status, plan, resume, history, and inspect. Its TUI sidebar shows live planning state. Sessions persist locally in .opencode/brhp/brhp.db. It reads project instructions from user-level and project-level directories.

The design draws on ReAct's interleaved reasoning, Tree- and Graph-of-Thought search, LLM+P's classical-planning grounding, and the multi-agent scaffolding of MetaGPT and SWE-agent.

BRHP makes no claims of formal verification, optimality guarantees, or benchmark results. Policy provenance is deferred to later versions; leaf completion is a current durable contract.

Evidence

Related systems

  • BRHP

    BRHP records durable planning state and validation signals in OpenCode.

    TypeScript / OpenCode plugin / SQLite