Agents have no memory.
Every session starts from zero. You explain the conventions, the file layout, the gotchas — the context fills, the next message forgets. You become the persistent memory, and it doesn't scale past the second feature.
jonggrang init
A CLI that orchestrates AI coding agents — from project bootstrap to delivery. Thin agents handle reasoning; a fat platform holds skills, state, enforcement, and routing. Works on top of opencode, claude-code, codex, and the multi-provider jonggrang engine (Pi SDK).
jonggrang init
Every session starts from zero. You explain the conventions, the file layout, the gotchas — the context fills, the next message forgets. You become the persistent memory, and it doesn't scale past the second feature.
Early mistakes calcify as "the way we do things here." Tangents pollute the working set. The agent starts quoting its own hallucinations back. Past 85% context usage, success rate falls off a cliff.
Agent A learns a lesson. Agent B, an hour later, in a fresh session, learns it again. No accumulation, no transfer. The gap between "AI can write code" and "AI can maintain a codebase" is project memory — and most tools don't have any.
A stateless worker. It reads a task, does the task, reports back, dies. A new one spawns clean for the next task. Drift can't accumulate because there's nowhere for it to live.
Task board, skill library, enforcement hooks, state machine, file locks, compaction gates, feedback loops, progress log. The agent just asks the platform what to do next.
One entry point: jonggrang plan. The first thing that happens is Triage — Phase 02 — a quick classify into bugfix, small, medium, or large.
If it's bugfix or small, you take the short path: a single AI call condenses the description into plan.md in seconds.
If it's medium or large, you take the deep path: Discovery → SkillMap → Complexity → Brainstorm → Architect — five phases of real work, all condensed into the same plan.md format.
Both paths converge at the same artifact. You review by hand, run approve, and Phase 08 decomposes the plan into atomic developer tasks.
| role · agent | perms | produces | output |
|---|---|---|---|
| Lead*-lead | r-- Task · Read · Todo | Designs architecture. Decomposes into tasks. Never writes code. | architecture-plan.json |
| Developer*-developer | rwx Edit · Write · Bash | Implements specific tasks. Writes tests alongside. | source + tests |
| Reviewer*-reviewer | r-x Read · Bash | Validates design, compliance, quality. Rejects non-compliant work. | review-report.json |
| Test Leadtest-lead | r-- Task · Read · Todo | Analyzes implementation. Designs the test strategy. | test-plan.json |
| Tester*-tester | rwx Edit · Write · Bash | Writes and runs tests from the plan. | test-results.json |
Coordinators plan.
Executors implement. Never both.
"infinite loop", "useEffect"library/frontend/debugging-react-hooks/SKILL.mdPreToolUse, PostToolUse, SubagentStop, Stop — plain code wired into the tool layer with veto power. Same contract across OpenCode, Claude Code, Codex CLI, and the Jonggrang (Pi) engine.
A Developer touches a file → the platform sets a dirty bit for that domain. The bit can't clear until a Reviewer AND a Tester pass per-domain. The Stop hook blocks the agent until they do.
Before Discovery, Implementation, and Testing — the three heavy phases — we check token usage. Under 75% goes; 75–85% warns; over 85% hard-blocks until compact.
| feature | Ralph | Claude Code | Superpowers | Jonggrang |
|---|---|---|---|---|
| Scope | Single agent loop | Cross-session handoff | Skill framework | Multi-agent orchestration |
| State | None — loop only | YAML handoffs | Context-based | Dual — ephemeral + persistent |
| Control | Prompt-based | Prompt-based | Skill-based | Deterministic hooks |
| Feedback | None | None | Human-in-loop | Inter-phase loops + escalation advisor |
Each predecessor solves one layer. Jonggrang pushes on all four at once.
inspired by Ralph Loop · Agent Orchestra (Addy Osmani) · the collapsed SDLC (Boris Tane) — extended into a multi-agent assembly line with deterministic enforcement.
Runs locally on top of OpenCode, Claude Code, Codex CLI, or the multi-provider Jonggrang (Pi) engine. Generates project config, AGENTS.md skeleton, skill library, and enforcement hooks for whichever backend you pick.
--deep for big workjonggrang init
# 1. install (pick a backend with --tool) $ jonggrang init --tool jonggrang --type api ✓ wrote .jonggrang/jonggrang.json ✓ wrote AGENTS.md ✓ wrote .jonggrang/extensions/jonggrang.ts # 2. auth + model (Pi backend) $ jonggrang login # OAuth or API key $ jonggrang model # pick provider/model # 3. plan + approve + work $ jonggrang plan "JWT auth flow" --deep → triage → deep → plan.md $ jonggrang approve → 7 atomic tasks queued $ jonggrang work → task-001 [OK] → task-002 [OK]