docs(examples): prune + clarify the example set for tip-top DX#368
Merged
Conversation
Land a developer in examples/, let them read ONE short example, and feel
the power. Three confirmed defects fixed plus the centerpiece added.
- DELETE examples/coder-loop/: its .ts was refactored off runLoop to
worktreeLoopRunner, and its README still taught the deleted coderProfile
export, so it no longer demonstrated "the same runLoop kernel" it claimed.
researcher-loop is now the primary runLoop teacher.
- ADD examples/driver-loop/: the centerpiece. A multi-round refine driver
whose plan() READS the last worker's output from history and COMPOSES the
next prompt FROM it — "the fold" every supervisor is built on, made visible
with heavy plain-language comments. A second labeled section contrasts it
with multishot so round vs shot sit side by side. Offline, e2e-proven
(round 0 rejected -> driver folds -> round 1 passes via the corrected prompt).
- IMPROVE stale-API docs and teaching comments:
- mcp-delegation/README + fleet-delegation/README: replace the deleted
delegate_code/delegate_research tools with the generic delegate verb +
the MCP_ENABLE_DELEGATE=1 gate + the always-on feedback/status/history trio.
- product-eval/README: teach runPersonaConversation (evalPersona was deleted
in 0.76.0); the .ts was already correct.
- researcher-loop / ui-audit / self-improving-loop / supervisor-loop:
inline-define round and shot the first time each appears, and point at
driver-loop/ as the example that actually shows the fold.
- delegate: import from the @tangle-network/agent-runtime/loops subpath
instead of a relative dist path; strip emoji from console output.
- INDEX examples/README.md: rewrite as an ordered "use this when" path over
tiers (cores -> driver/supervisor -> runLoop kernel -> production runtime ->
self-improvement), add a vocabulary block, add the missing driver-loop /
supervise / delegate / intelligence-drop-in rows, drop coder-loop.
All edits stay inside examples/; build + typecheck + typecheck:examples +
Biome lint are green, and driver-loop and researcher-loop run offline.
tangletools
previously approved these changes
Jun 23, 2026
tangletools
left a comment
Contributor
There was a problem hiding this comment.
✅ Auto-approved PR — 21608ef3
Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-23T22:27:04Z
…orker exchange shot = round = turn = one (driver prompts worker -> worker output -> driver) exchange; 'many shots' is the sequence where each output folds into the next prompt. Remove the runMultishot 'parallel shots' section: runMultishot is a multi-turn conversation, not a fanout, so it mislabeled the breadth axis. Point to researcher-loop for fanout instead.
tangletools
approved these changes
Jun 23, 2026
tangletools
left a comment
Contributor
There was a problem hiding this comment.
✅ Auto-approved PR — 56b143c1
Blanket team auto-approval is enabled for this reviewer service.
The full PR reviewer audit still runs separately and will publish findings if it detects issues.
tangletools · auto-approval · reason: blanket_auto_approve · 2026-06-23T22:41:08Z
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Make
examples/tip-top for DX: land a developer here, let them read ONE short example, and feel the power. Three confirmed defects fixed, the missing centerpiece added, and the index rewritten as an ordered "use this when" path. All edits stay insideexamples/.DELETE
examples/coder-loop/— its.tswas refactored offrunLoopontoworktreeLoopRunner, and its README still taught the deletedcoderProfileexport, so it no longer demonstrated "the samerunLoopkernel" it claimed.researcher-loop/is now the primaryrunLoopteacher.ADD — the centerpiece
examples/driver-loop/— the one concept the request asked to SEE: a multi-round refine driver whoseplan()reads the last worker's output fromhistoryand composes the next prompt from it ("the fold"), made visible with heavy plain-language comments. A second labeled section contrasts it withrunMultishotso round vs shot sit side by side. Runs fully offline and is proven e2e:ROUND 0: [reject]"Shipped one-click restore for failed deploys." (no "rollback")ROUND 1: [PASS]"...with an instant rollback path..." →decision: pick-winner.decide()that returns a terminal value (fail) before refining stops the loop early — the example now teaches the non-terminalrefinedecision.IMPROVE — stale-API docs + teaching comments
mcp-delegation/README+fleet-delegation/README: replace the deleteddelegate_code/delegate_researchtools with the genericdelegateverb + theMCP_ENABLE_DELEGATE=1gate + the always-ondelegate_feedback/delegation_status/delegation_historytrio. (The.tswas already correct — only the READMEs lied.)product-eval/README: teachrunPersonaConversation(the facadeevalPersonawas deleted in 0.76.0 by chore(cleanup): delete dead eval-persona facade + orphaned topology module #367; the.tsalready uses the canonical surface).researcher-loop/ui-audit/self-improving-loop/supervisor-loop: inline-define round and shot the first time each appears and point atdriver-loop/as the example that actually shows the fold.delegate: import from the@tangle-network/agent-runtime/loopssubpath instead of a relativedistpath; strip emoji from console output.INDEX
examples/README.mdrewritten as an ordered "use this when" path over tiers (cores → driver/supervisor →runLoopkernel → production runtime → self-improvement), with a vocabulary block up top, the missingdriver-loop/supervise/delegate/intelligence-drop-inrows added, andcoder-loopdropped.Verification
pnpm build,pnpm run typecheck,pnpm run typecheck:examples,pnpm run lint(Biome) — all green.pnpm run docs:check— freshness OK, no drift.driver-loopandresearcher-looprun offline; merges cleanly intoorigin/main.🤖 Generated with Claude Code