Waltuh
"I am the one who orchestrates."
Read more about it at - https://www.noicehax.dev/home/journal/waltuh
Waltuh is an orchestration layer for Claude Code. The philosophy is strict:
- Claude reasons. The planner (Haiku) produces structured ExecutionPlan JSON.
- Waltuh executes. The Node runtime owns everything below the plan boundary:
persistence, scheduling, context packing, workers, aggregation, verification,
knowledge indexing, and analytics.
Runtime code is the source of truth.
Status (milestones)
v1.0.0 — shipped. The runtime, plugin, benchmarks, and acceptance framework
all share one pipeline; npm test, npm run doctor, and npm run acceptance:mock
all pass.
| Milestone | Goal | Status |
|---|
| M1 Runtime Unification | Single pipeline: planner JSON → runtime orchestration | ✅ waltuh run, src/runtime/orchestrate.mjs |
| M2 Automatic Knowledge | Worker outputs auto-indexed; no indexer agent | ✅ runtime knowledge-index.mjs |
| M3 Runtime Integration | Plugin/benchmarks/acceptance share one runtime | ✅ benchmarks + acceptance wired |
| M4 Live Acceptance | npm run acceptance passes against real Claude | Mock passes; live run is a post-ship gate |
| M5 Published Benchmarks | Valid vanilla vs Waltuh reports | Framework ready; rerun is a post-ship gate |
| M6 Stable 1.0 | Doctor + acceptance + docs aligned with code | ✅ shipped |
M4/M5 require billable live Claude API runs. See CHANGELOG.md
for release notes.
Claude Code constraints: per-request model forcing is not available from
Node; print mode may skip waltuh run (benchmarks/acceptance bypass the agent).
Legacy WaltuhDecision (waltuh decide) is deprecated.
Try it
Waltuh has zero runtime dependencies and needs no build step — it runs
on the Node.js that ships with Claude Code (Node ≥ 22 for the built-in
node:sqlite module).
Install as a plugin (recommended):
/plugin marketplace add NoiceHax/Waltuh
/plugin install waltuh@waltuh
From a local checkout of this repo (repo root = marketplace root):
/plugin marketplace add .
/plugin install waltuh@waltuh
Cloning the repo and trusting the workspace also picks up .claude/settings.json,
which registers the marketplace with the correct github source type for your team.
Or run without installing:
claude --plugin-dir ./waltuh
Then, inside Claude Code:
/waltuh:waltuh # banner, version, status
/waltuh:why # explain the last decision
Plugin commands are namespaced by plugin name, hence /waltuh:why.
Architecture in one glance
User prompt
│
▼
Planner (Haiku) — ExecutionPlan JSON only
│
▼
Runtime (`waltuh run` / benchmarks / acceptance)
├── plan validation + persistence + cache
├── scheduler (dependency batches)
├── context retrieval + packing per task
├── worker execution (haiku | sonnet)
├── aggregation (Sonnet merge)
├── verification (Opus when required)
├── knowledge indexing (automatic)
└── analytics + execution_context metadata
▼
Final response
Interactive plugin (agents/waltuh.md) is a thin frontend: it calls
waltuh run and returns stdout. No Bash orchestration in prompts.
Trivial prompts may use waltuh run --fast-path (single Haiku worker).
The CLI (bin/waltuh.mjs) is the testable interface between Claude Code and
the Node runtime.
Data locations
Runtime state lives in the persistent data dir, resolved in this priority order:
--data <dir> flag (used by the CLI and slash commands)
CLAUDE_PLUGIN_DATA environment variable (Claude Code provides this)
~/.waltuh (fallback for standalone CLI use)
The plugin install directory itself is treated as ephemeral — Waltuh never
writes state there. Contents of the data dir:
<dataDir>/
├── session.json current session id, rotated by SessionStart hook
├── config.json optional user config (defaults are used if absent)
├── analytics.db decisions, executions, overrides, feedback (SQLite)
├── knowledge.db contexts, tags, files, relationships (SQLite)
└── logs/waltuh.log JSONL log stream
CLI reference
Every subcommand is fail-safe (always exits 0). Run waltuh help for the full
list. Highlights:
waltuh status # banner + status
waltuh why [<id>] # explain a decision
waltuh orchestration verify # verify planner → analytics chain
# Session
waltuh session start # SessionStart hook target
waltuh session current # current session id