| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
English | 한국어
A Claude Code plugin that merges two things into one self-contained tool:
And it scales past one session: the orchestrate skill is a multi-session orchestrator over the same loop — it decomposes a goal into a dependency graph, schedules parallel workers with a ready-set scheduler, and supervises them Orca-natively when the Orca CLI is installed (raw tmux otherwise). See Orca integration.
The one change from upstream loop-orchestrator: the plan step is no longer an optional, pluggable role. It is fixed to the bundled wiki-plan methodology — every non-trivial task plans by routing each design decision to a page in the bundled wiki/ before any code is written. The rest of the loop is unchanged.
On top of that, dev-loop adds a knowledge-capture loop: your sessions emit verified insights, and knowledge-flush researches, de-dups, routes, and opens a reviewed PR that grows the wiki over time.
Installed via the Claude Code plugin marketplace, so the skills and hooks apply globally across every project you work in:
/plugin marketplace add choiyounggi/dev-loop /plugin install dev-loop@dev-loop
Nothing is repo-scoped: the wiki-grounded loop, the ★ Insight capture instruction, and the harvest hook are active in any repository you open.
Run it two ways:
wiki-plan makes the planner do a wiki routing sweep: read INDEX.md, then each touched domain's index.md, and for every design decision find the page that owns it — recording a decision → wiki page map. Decisions are written as concrete values/code (never "as appropriate"), so the implementing pass executes instead of guessing. A decision no page covers is marked [no-wiki] and becomes an ingest candidate. This is not a configurable role and cannot be turned off.
The wiki lives at the plugin root (wiki/, INDEX.md, AGENTS.md, templates/); the wiki skills resolve their paths against ${CLAUDE_PLUGIN_ROOT}.
Like loop-orchestrator, dev-loop runs fully generic with no config, but you can map its capability roles to your real tools so the loop uses them:
| Role | Map to |
|---|---|
| verify | your project's test / build / QA command (the loop's run step) |
| knowledge | your domain/team wiki or knowledge MCP (external facts) |
| explore | code/symbol search (LSP, ripgrep, a source-search CLI) |
| tacit | past incidents / danger-zone lore |
| design | Figma / visual-spec MCP (UI work) |
| intake | issue tracker (orchestrate's work-list) |
(plan is not a role — the plan step is fixed to wiki-plan. And the bundled best-practice wiki/ needs no config; knowledge is a separate external wiki.)
Set it up with /dev-loop:configure, which writes ~/.claude/dev-loop/tools.json (global) or <repo>/.dev-loop/tools.json (per-repo, team-shared). Precedence is git-config style: defaults < ~/.claude/dev-loop/tools.json < <repo>/.dev-loop/tools.json. A SessionStart hook nudges you (at most weekly, then never) if you haven't configured anything — silence it with DEV_LOOP_CONFIG_NUDGE=0. Legacy loop-orchestrator config paths are still read as a fallback. See references/tool-profile.md and examples/tools.example.json.
orchestrate treats Orca as a first-class substrate, not a terminal spawner. When the orca CLI is on your PATH the coordinator offers it at the task-split gate, and from then on the whole run flows through Orca orchestration:
Without Orca, the same run gets the same protections over raw tmux, file-based: a worker writes a blocking question with ask-coordinator.sh and the watch surfaces it (exit 6); a silent pane surfaces as a stall (exit 7) with a classify-then-act playbook (chooser / usage-limit / finished-but-silent); an on-screen chooser is answered with allowlisted key events (send-prompt.sh keys); and every launch pre-seeds the status record, so a worker that dies during planning is caught instead of waited out. The guardrails escalation contract is identical on both substrates.
One setup note for auto-mode coordinators (tmux): the launcher starts each worker as claude --permission-mode bypassPermissions, which an auto-mode permission classifier flags as privilege escalation — it cannot see the guardrails deny-net that makes it safe. If your coordinator session runs in auto mode, the three worker-management scripts (launch-session.sh, send-prompt.sh, watch-status.sh) need pre-approval. The coordinator handles this at onboarding: it probes read-only (install-permission-rules.sh --check), and if the rules are missing it asks you once — on your explicit yes it runs the bundled installer (idempotent, backed-up, atomic; never silent), otherwise it shows you the snippet to paste yourself. safe-cleanup.sh is deliberately excluded so destructive verbs keep their normal review, and a blocked coordinator stops and re-asks rather than working around the classifier.
The wiki is meant to grow from what you actually learn. Three moving parts:
Capture (global, automatic). A SessionStart hook injects a standing instruction: whenever, in any repo, you discover a verified best-practice or a real edge case worth persisting, emit a compact ★ Insight block (trigger / directive / why / evidence / domain / tags).
Harvest (automatic, offline). A Stop hook scrapes those blocks from the session transcript into a local queue (~/.dev-loop/queue/). It dedupes against both the session's queue file and the already-flushed store (.processed.jsonl), caps a session at 10 rows as a runaway backstop, and cleans up emptied queue files. It never edits the wiki and never opens a PR — harvesting is cheap and non-blocking.
Flush → verified PR (automatic, or on-demand). The queue is drained by the knowledge-flush pipeline. For each candidate it must, before any PR:
It opens one PR per flush and never auto-merges. Each contributor's PR is committed and opened under their own git/gh identity (never a hardcoded account, never an assistant); the repo owner reviews the open dev-loop:knowledge PRs and merges or rejects each one.
Two ways it runs:
hooks/pre-flush-pr-gate.sh (PreToolUse) blocks gh pr create on a knowledge branch unless the INGEST_REPORT.md exists and has all four sections (## Verified best-practice, ## Existing-layer check, ## Open-PR check, ## Routing decision) filled with real content. The Existing-layer check must carry a Pages read: <id>, … line, and each id is resolved against the checkout's wiki/ — a report citing pages that don't exist fails closed. The gate is narrowly scoped to knowledge-flush PRs, so it never interferes with ordinary gh pr create in any repo.
| Skill | Role |
|---|---|
| loop-implement | The single implementer — consumes the wiki-plan and executes its tasks in order (loading each task's named wiki pages) through the verification loop. Plan step = wiki-plan. |
| orchestrate | The multi-session orchestrator — split one goal into parallel worker sessions, each running loop-implement — over Orca when detected (Task/Dispatch tracking, event-driven worker_done/ask/escalation waits, native liveness), else tmux with a hardened watch (worker question channel, stall surfacing, allowlisted chooser keys). Scheduling is a dependency graph plus slot accounting, not wave barriers: ready-set.sh says what may start now, the slot count is proposed at Gate 1 and bounded by LO_MAX_SESSIONS, and a failed dependency surfaces as a reported deadlock rather than a silent wait. Per-role model selection: a cheap worker model, a strong planner/auditor. Workers escalate guardrails asks instead of blocking, may propose splitting an over-large task mid-run, and dead workers are detected. Both human gates (task split + substrate, pre-merge) are put to you as AskUserQuestion choosers, enforced by orchestrate-ask-gate.sh. |
| wiki-plan | The fixed plan methodology — route each decision to a wiki page, decompose into ordered, page-navigated tasks. |
| wiki-ingest | Add verified knowledge to the right semantic layer (used by knowledge-flush). |
| wiki-query | Answer a question from the wiki with citations. |
| wiki-lint | Health-check the wiki. |
| knowledge-flush | Research + verify + route queued insights → one reviewed wiki PR. |
| configure | Set up the capability-role tool profile (map your wiki, test command, etc.). |
dev-loop/
├── .claude-plugin/{plugin,marketplace}.json
├── AGENTS.md INDEX.md templates/ # wiki schema + routing entry + page/brief/session-prompt templates
├── wiki/ # 10-domain semantic-layer knowledge base (260 pages: best practices, edge cases, process methodology)
├── skills/ # the 8 skills above (user-invocable; appear in the / menu by skill name)
├── agents/test-quality-auditor.md # bundled independent test auditor (loop step 6.5)
├── hooks/
│ ├── hooks.json
│ ├── preflight.sh # SessionStart: git/tmux/jq advisory
│ ├── insight-instruction.sh # SessionStart: inject ★ Insight capture instruction (global)
│ ├── config-nudge.sh # SessionStart: nudge to /dev-loop:configure if unconfigured (weekly)
│ ├── loop-gate.sh # Stop: verification-loop integrity gate
│ ├── harvest-insights.sh + harvest.js # Stop: harvest insights → queue
│ ├── auto-flush.sh # Stop: auto-run knowledge-flush (guarded) → PR
│ ├── pre-flush-pr-gate.sh # PreToolUse: enforce the flush pre-PR pipeline
│ └── orchestrate-ask-gate.sh # PreToolUse: no worker launch until Gate 1 was asked with AskUserQuestion
├── scripts/resolve-tools.sh # capability-role profile resolver (no `plan` role)
├── tests/ # bats suites — hooks (harvest, flush gate, loop gate) + orchestration scripts; CI runs them on ubuntu + macos
├── references/tool-profile.md
└── docs/ # inherited design notes (loop-orchestrator lineage)
Knowledge PRs (manual or auto-opened) are committed under each contributor's own git/gh identity — never a hardcoded account and never an assistant, with no Co-Authored-By trailer. Every contributor opens a PR from their own account; the repo owner reviews and merges/rejects.
Forked from loop-orchestrator and dev-llm-wiki (both by choiyounggi). See docs/ for the inherited loop design (note: those docs predate the fixed-plan-step change described above). MIT — see LICENSE.
| Back | FazBrowse Home | New Git URL |