Skip to content

rocky2431/ultra-builder-pro-cli

Repository files navigation

Ultra Builder Pro

An adaptive delivery harness for AI coding agents.

Ultra Builder Pro helps Claude Code, Codex, OpenCode, and Kimi Code carry a software project from an unclear request to a verified, recoverable delivery. It keeps the user and the agent aligned, preserves project authority across sessions, and prevents specifications from quietly drifting away from the code.

It is not another model and it is not a rigid step-by-step autopilot. The active host agent still investigates, reasons, recommends, and implements. Ultra adds the durable workflow state, evidence gates, recovery paths, and host-native tools needed to make that work dependable over time.

npm Tests License: MIT Node

Why it exists

AI coding works well inside one conversation. Real projects last much longer. After several sessions, teams commonly find that:

  • the agent no longer knows which decisions are authoritative;
  • implementation changed but product and architecture documents did not;
  • a new session repeats research or asks the same questions again;
  • an existing codebase is treated like a blank new product;
  • a rigid workflow blocks reasonable work, while an unstructured workflow loses traceability;
  • “tests passed” or “work completed” cannot be tied back to the exact change, task, commit, and acceptance criteria.

Ultra Builder Pro addresses those gaps with four ideas:

  1. Adaptive workflow, not a fixed pipeline. MCP exposes valid capabilities and hard recovery requirements. The host model recommends the next semantic action from the user's goal and current evidence.
  2. Low-load user alignment. The agent investigates observable facts itself and asks the user only for material intent, scope, risk, or authorization decisions—normally one dependent decision at a time.
  3. Durable project authority. .ultra/state.db records baselines, changes, decisions, workflows, tasks, evidence digests, sessions, incidents, and recovery state across hosts and sessions.
  4. Convergent delivery. Research, plans, implementation, tests, review, and specification updates must agree before a change is archived.

For example, if the user asks an agent to add organization SSO to an existing application, Ultra helps the agent inspect the real authentication path, capture the intended compatibility and recovery contract, ask only the unresolved product decision, plan and implement against current evidence, update affected specifications, and preserve the exact verification and review result. A later session resumes from that authority instead of reconstructing it from chat.

The mental model

flowchart LR
    U["User<br/>intent and material decisions"] <--> H["Host agent<br/>reasoning and implementation"]
    H <--> S["Ultra skills<br/>task-specific workflows"]
    S <--> M["Ultra MCP<br/>state, evidence, freshness, recovery"]
    M <--> D[(".ultra/state.db")]
    H --> A["Code, specifications,<br/>tests and review artifacts"]
    A --> M
    K["Lifecycle hooks<br/>breadcrumb and projection protection"] --> M
Loading

The responsibility split is deliberate:

Owner Responsibility
User Product intent, material scope and trade-offs, destructive actions, publishing and deployment authorization
Host model Fact-finding, synthesis, research coverage, route recommendation, reversible implementation decisions
Ultra MCP Durable state, evidence references, digests, freshness, locks, valid transitions and hard recovery
Host adapter Native Skill discovery, user questions, tool invocation, installation, and runtime wiring
Hooks Fast lifecycle observation, current breadcrumb injection, and protection of generated projections

The MCP does not replace the model's judgment. A hook does not decide product strategy. A prompt does not become durable authority merely because it appeared in a conversation.

What you get

  • Native plugins for Claude Code, OpenCode, Codex, and Kimi Code.
  • One workflow vocabulary across all four hosts.
  • Deterministic initialization for new, existing, monorepo, and older Ultra projects.
  • Evidence-backed greenfield research and brownfield adoption.
  • A durable Change Contract for every ongoing feature, fix, refactor, or incident.
  • Context compilation that detects stale plans, tasks, references, and specifications.
  • Risk-selected testing and independent specification/engineering review.
  • Crash-safe sessions, worktree recovery, circuit breakers, and backup-first state migration.
  • Read-only installation and project diagnostics.
  • Optional dependency-wave worker orchestration for already-approved plans.

When to use it

Ultra Builder Pro is useful when:

  • a project will span multiple agent sessions;
  • more than one supported host may work on the same repository;
  • product or architecture specifications must stay synchronized with delivery;
  • an existing codebase needs a trustworthy baseline before new changes;
  • failures must be diagnosable and recoverable;
  • user decisions, agent reasoning, and mechanical enforcement need clear boundaries.

It is probably unnecessary for a disposable one-file experiment or a change that does not need durable project context.

Install

Requirements:

  • Node.js 22 or newer;
  • Git for the normal project workflow;
  • one or more supported coding-agent hosts.

Install globally into all detected host configuration directories:

npx --yes ultra-builder-pro-cli@latest --all --global

Or install only one host:

npx --yes ultra-builder-pro-cli@latest --claude --global
npx --yes ultra-builder-pro-cli@latest --opencode --global
npx --yes ultra-builder-pro-cli@latest --codex --global
npx --yes ultra-builder-pro-cli@latest --kimi --global

Use --local instead of --global to install into the current project's host configuration:

npx --yes ultra-builder-pro-cli@latest --all --local

Verify the installation without changing it:

npx --yes ultra-builder-pro-cli@latest --all --global --doctor
npx --yes ultra-builder-pro-cli@latest --all --global --doctor --json

After installing or upgrading, start a new Claude Code, OpenCode, or Codex session. In Kimi Code, run /reload or start a new session.

Plugin installation, update, doctor, and uninstall never mutate durable user instructions such as CLAUDE.md or AGENTS.md. Ultra policy stays in the plugin and becomes active only after an explicit workflow invocation. Existing legacy Ultra marker blocks in a user handbook are left untouched for the owner to review; the plugin neither claims nor silently deletes user-authored content.

Host invocation

Host Example
Claude Code /ultra-builder-pro:ultra-init
OpenCode /ultra-init
Codex $ultra-builder-pro:ultra-init
Kimi Code /ultra-builder-pro:ultra-init

The same naming applies to ultra-research, ultra-change, ultra-plan, ultra-dev, ultra-test, ultra-review, ultra-deliver, ultra-status, ultra-think, and ultra-doctor.

See the Runtime Compatibility Matrix for exact host-specific presentation and lifecycle differences.

How to use it

1. Start a new project

From the project root, invoke ultra-init.

Initialization:

  • identifies the repository root and scope;
  • classifies the repository as greenfield, brownfield, or migrated;
  • initializes Git when needed;
  • creates .ultra/ and schema 18 project authority;
  • verifies that the scaffold and database can be read back;
  • completes without silently starting research, creating a commit, adding a remote, or pushing anything.

Then explicitly invoke ultra-research. For a new product, the agent evaluates the complete research catalog but executes only the areas that matter. It resolves observable facts itself and asks for material product decisions as needed. Once the evidence and specifications are accurate, the user approves the baseline.

The common path after baseline approval is:

ultra-change
  -> optional ultra-think or bounded ultra-research
  -> ultra-plan when planning is needed
  -> ultra-dev
  -> risk-selected ultra-test
  -> ultra-review
  -> ultra-deliver

That diagram is a common path, not a mandatory pipeline. A small current task can take a shorter valid route; a high-risk or unclear change can require more research, planning, checking, or user alignment.

2. Adopt an existing project

Run the same ultra-init entry point. Ultra detects delivered-system evidence such as application source, APIs, persistence, tests, or deployment configuration and classifies the repository as brownfield.

Brownfield adoption does not ask the agent to invent a new MVP or rewrite the product story. It builds a current-system baseline from:

  • observable code and runtime behavior;
  • existing product and architecture documents;
  • build, lint, type-check, and test results;
  • APIs, data, permissions, integrations, deployment, and recovery seams;
  • known failures, documentation drift, technical debt, and unresolved unknowns.

During ultra-research, the host model selects the smallest evidence-backed set of applicable catalog areas. Every included area receives one explicit disposition:

  • execute — produce fresh evidence;
  • verify_existing — validate an existing artifact;
  • reuse — reuse evidence that is still current;
  • not_applicable — exclude it with evidence and rationale;
  • deferred — record the consequence and accepted owner.

The catalog is not a mandatory document set or questionnaire. Omitted areas create no workflow rows; an explicit exclusion is recorded only when retaining that rationale is useful.

Older projection-only Ultra projects are preserved and routed through a backup-first migration or rebaseline. Use ultra-doctor when initialization reports migration or authority damage; do not overwrite old state manually.

3. Make daily changes

After the baseline is ready, start features, fixes, refactors, and incidents with ultra-change.

ultra-change records the accepted outcome, scope, acceptance criteria, compatibility boundary, recovery strategy, documentation impact, risk profile, and research disposition. Capturing intent does not automatically start every downstream workflow.

The host then recommends one valid capability:

  • ultra-think for a material unresolved decision or diagnosis;
  • bounded ultra-research for a real evidence gap;
  • ultra-plan for task decomposition and dependency planning;
  • ultra-dev when a current task contract is already executable;
  • ultra-status when the user needs the current authority and available routes;
  • ultra-doctor when state or installation health is degraded.

Semantic changes invalidate dependent tasks and compiled context. A stale task cannot be revived by flipping a status flag; its complete execution contract must be reconciled against the current Change authority.

4. Deliver and continue

ultra-deliver verifies that implementation, acceptance evidence, testing, review findings, specification learning, and baseline reconciliation agree. It then archives the local Ultra change authority.

Delivery does not grant permission to commit, push, publish, tag, deploy, or perform another external effect. Those actions remain separate and require the user's explicit request.

The next piece of daily work starts with a new ultra-change.

Core workflows

Workflow Purpose
ultra-init Classify the repository and create or recover project authority
ultra-research Build or refresh an evidence-backed baseline with adaptive coverage
ultra-think Resolve one material decision or perform bounded diagnosis
ultra-change Capture the durable contract for one feature, fix, refactor, or incident
ultra-plan Create current task contracts, dependencies, acceptance coverage, and execution context
ultra-dev Implement one owned vertical slice and record exact evidence
ultra-test Run the risk-selected verification profile and persist the gate result
ultra-review Coordinate independent specification-fidelity and engineering review
ultra-deliver Reconcile specifications, close local authority, and archive the change
ultra-status Read the current breadcrumb, blockers, evidence, and allowed transitions
ultra-doctor Diagnose installation or project-state faults and expose safe recovery
learn Turn one approved, verified reusable procedure into a portable user skill

What lives in .ultra/

.ultra/
  state.db                 # sole durable Ultra authority
  specs/                   # current product and architecture baseline
  changes/
    active/                # current Change artifacts
    archive/               # immutable delivered Change artifacts
  docs/research/           # evidence reports for selected research areas
  reports/                 # test, review, and delivery evidence
  tasks/
    tasks.json             # generated projection, never the authority
    contexts/              # bounded role/task context artifacts

The host agent writes semantic specifications and evidence artifacts. MCP validates their references and digests, records workflow state, and rejects stale or illegal transitions. Generated Markdown and JSON help humans and tools inspect the project, but .ultra/state.db remains authoritative.

Ultra does not store chain-of-thought, raw prompts, transcripts, cross-session memory, or code-graph content. Memory and graph systems remain separate providers; Ultra may store only bounded metadata references to them.

Optional orchestration

The normal workflow can be driven interactively by the host agent. For an already-approved plan, ubp-orchestrator can dispatch dependency-ready tasks into isolated Git worktrees:

ubp-orchestrator execute-plan

The orchestrator is intentionally not a replacement for Ultra gates. A worker process exiting successfully does not complete a task. Task evidence, current dev state, testing, review, integration, and baseline reconciliation still have to converge. Worktrees with uncommitted or unintegrated work are preserved for recovery.

See Architecture and Workflow Lifecycle before enabling automated worker execution or verified auto-merge.

CLI utilities

Binary Purpose
ultra-builder-pro-cli / ubp Install, update, uninstall, and diagnose host plugins
ultra-tools Inspect and maintain project tasks, sessions, state, migration, and recovery
ubp-orchestrator Execute current dependency waves or supervise configured workers

Useful read-only checks:

ultra-tools status
ultra-tools status --cost --since 24h
ultra-tools session list --json
ultra-tools system doctor

Ultra MCP does not require ANTHROPIC_API_KEY, OPENAI_API_KEY, or another model-provider key. It validates and persists structures derived by the active host's existing model session.

Troubleshooting

  • Installed workflows are missing: start a new host session. Kimi users can run /reload.
  • An installed Hook or MCP path is stale: run npx --yes ultra-builder-pro-cli@latest --all --global --doctor --json, then reinstall only the degraded host.
  • Project state is unhealthy: invoke ultra-doctor or run ultra-tools system doctor. Repairs and schema migrations are backup-first.
  • A projection disagrees with MCP: trust .ultra/state.db; do not repair tasks.json or generated context Markdown by hand.
  • A workflow appears blocked: use ultra-status to read the exact current workflow, blocker, owner decision, and mechanically valid transitions.
  • Kimi reports a native-module ABI error: ensure an external Node.js 22+ executable is available on PATH; the generated Kimi MCP launcher uses env node.

For exact recovery commands and invariants, see Workflow Lifecycle and State DB Access Policy.

Development and verification

npm install
npm run test:all
npm run test:hooks
npm audit --omit=dev --audit-level=high

# Complete release gate
npm run verify:release

Individual Node suites are available as test:state, test:orch, test:spec, and test:rest.

Documentation

Document Purpose
Architecture Components, authority boundaries, and live integration paths
Workflow Lifecycle Command ownership, transitions, invalidation, recovery, and convergence
Runtime Compatibility Matrix Claude Code, OpenCode, Codex, and Kimi presentation details
Legacy CLI Crosswalk What was preserved, strengthened, or replaced from the original Ultra Builder Pro
Agent Context Context Manifest and host-agent execution contract
Plugin Isolation Contract Plugin ownership, explicit activation, idle behavior, and user-instruction isolation
State DB Access Policy Multi-process authority and write rules
Roadmap Current and historical delivery scope
Changelog Release history

License

MIT — see LICENSE.

About

Multi-runtime installer for the Ultra Builder Pro agent-engineering system — deploys commands, agents, skills, and hooks to Claude Code, OpenCode, Codex CLI, and Gemini CLI.

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages