takt
CLAUDE.md1.4k starsChanged 57 days agoMITView on GitHub
This file is not user-facing documentation. It exists for Claude Code to read while working in the repository — it does not substitute for the real docs under docs/ or README.md. Content being recorded here NEVER implies "we don't need to write this up for users." Anything users should see must still be added to README.md / docs/** separately. TAKT (TAKT Agent Koordination Topology) is a multi-agent orchestration CLI. It runs AI agents through YAML-defined workflows with rule-based routing, parallel…
- Reads credentials
Trending
Less talk lately.about the whole repository
Who's talking about nrslib/takt
- @unosw.jp“TAKT ためしてみるか どうにか AI コーディングに適合したい github.com/nrslib/takt”Bluesky · Jun 20, 2026 · 1 likes
- fendouai/awesome-deepseek-harness“Weekly discovery: new DeepSeek Harness ecosystem candidates”GitHub · Oct 5, 2026
- keito4/config“deps: bump the dev-minor group with 2 updates”GitHub · Oct 5, 2026
- sudosubin/agents.nix“agent-skills.github.nrslib.takt: 0.66.0 → 0.68.0”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.nrslib.takt: init at 0.66.0”GitHub · Sep 30, 2026
The biggest 5 of 43 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 43
Talked about on GitHub and Bluesky (43 times).
On GitHub · 42
- Oct 5, 2026Weekly discovery: new DeepSeek Harness ecosystem candidates — fendouai/awesome-deepseek-harness0 reactions
- Oct 5, 2026deps: bump the dev-minor group with 2 updates — keito4/config0 reactions · 2 comments
- Oct 3, 2026agent-skills.github.nrslib.takt: 0.66.0 → 0.68.0 — sudosubin/agents.nix0 reactions
- Sep 30, 2026agent-skills.github.nrslib.takt: init at 0.66.0 — sudosubin/agents.nix0 reactions
- Sep 28, 2026deps: bump the dev-minor group with 2 updates — keito4/config0 reactions · 5 comments
37 more on GitHub
- Sep 21, 2026deps: bump takt from 0.64.1 to 0.65.0 in the dev-minor group — keito4/config0 reactions · 2 comments
- Sep 12, 2026docs(takt): describe command gates as rule-gated since 0.62.0 and gitignore .takt/make/ — dyoshikawa/rulesync0 reactions · 1 comment
- Sep 7, 2026refactor: チャンネルexportと逆移行用資産を削除する (#4921) — daiki-beppu/youtube-automation0 reactions · 4 comments
- Sep 7, 2026deps: bump the dev-minor group with 4 updates — keito4/config0 reactions · 1 comment
- Aug 31, 2026deps: bump the dev-minor group with 2 updates — keito4/config0 reactions · 1 comment
- Aug 24, 2026deps: bump the dev-minor group with 2 updates — keito4/config0 reactions · 1 comment
- Aug 17, 2026deps: bump the dev-minor group with 3 updates — keito4/config0 reactions · 1 comment
- Aug 10, 2026deps: bump the dev-minor group across 1 directory with 2 updates — keito4/config0 reactions · 1 comment
- Aug 7, 2026enhancement(observability): モデル別×ステージ別の性能実測レポート — 監査シャードから所要時間・レビューイテレーション・センサー赤率を遡及集計する — amadeus-dlc/amadeus0 reactions · 3 comments
- Aug 3, 2026deps: bump takt from 0.47.0 to 0.54.1 in the dev-minor group — keito4/config0 reactions · 3 comments
- Aug 2, 2026enhancement(prompts): ディスパッチプロンプトの末尾に適用層の Forbidden/Mandated 抜粋を再掲する — recency effect による遵守率向上(takt Faceted Prompting の合成順規則の輸入) — amadeus-dlc/amadeus0 reactions · 1 comment
- Aug 2, 2026enhancement(observability): usage 集計 CLI — local exporter のトークン実測値からステージ/エージェント/モデル別の決定的レポートを生成する — amadeus-dlc/amadeus0 reactions
- Jul 31, 2026[takt] fix: intakeの契約どおりのBLOCKEDをauto-requeue対象から除外する — daiki-beppu/nyaucast0 reactions · 1 comment
- Jul 27, 2026Follow up Takt upstream updates: workflow_overrides quality gates (checks), assistant.init_files, remaining workflow security policies — dyoshikawa/rulesync0 reactions · 12 comments
- Jul 14, 2026Model bounded permission-override string fields as enums in permissions-schema.json (mcp-schema.json already covered) — dyoshikawa/rulesync0 reactions
- Jul 7, 2026AI-DLC を portable / faceted workflow method として定義する — amadeus-dlc/amadeus0 reactions · 2 comments
- Jul 7, 2026Phase boundary に supervisor validation を追加して PHASE_VERIFIED を実体化する — amadeus-dlc/amadeus0 reactions · 2 comments
- Jul 6, 2026Takt permissions: support `step_permission_overrides`, `required_permission_mode`, and `provider_options.*` sandbox/network keys — dyoshikawa/rulesync0 reactions
- Jul 1, 2026公開入口 skill にサブエージェント割り当てを定義する — amadeus-dlc/amadeus0 reactions · 2 comments
- Jun 30, 2026feat(mcp): add Takt MCP transport-allowlist adapter — dyoshikawa/rulesync0 reactions
- Jun 28, 2026fix(deps): update dependency takt to v0.68.0 — j5ik2o/takt-sdd0 reactions · 1 comment
- Jun 26, 2026Follow up Takt upstream updates: MCP servers (stdio/SSE/HTTP) unsupported — dyoshikawa/rulesync0 reactions · 3 comments
- Jun 18, 2026chore: update takt-* skills for takt v0.47.0 — j5ik2o/ai-tools0 reactions
- Jun 17, 2026chore: update takt-* skills for takt v0.46.0 — j5ik2o/ai-tools0 reactions
- Jun 16, 2026Follow up Takt upstream updates: provider_profiles permission modes (design decision) — dyoshikawa/rulesync0 reactions · 2 comments
- Jun 11, 2026chore: update takt-* skills for takt v0.45.0 — j5ik2o/ai-tools0 reactions
- Jun 9, 2026Follow up Takt upstream updates: map the `output-contracts` facet — dyoshikawa/rulesync0 reactions
- Jun 8, 2026feat: Takt extends, Amp skills adapter, and Qwen .qwenignore fix — dyoshikawa/rulesync0 reactions
- Jun 5, 2026feat: follow up Warp skills, OpenCode plural dirs, and Takt upstream URL — dyoshikawa/rulesync0 reactions · 1 comment
- Jun 3, 2026Follow up Takt upstream updates: --global should target user-level facet root (~/.takt/facets/) — dyoshikawa/rulesync0 reactions
- May 26, 2026Follow up Takt upstream updates: facet inheritance (`extends`) support (0.39.0) — dyoshikawa/rulesync0 reactions
- May 2, 2026Match takt official .gitignore convention; untrack tasks.yaml — coji/upflow0 reactions · 1 comment
- Apr 22, 2026docs(experiment): takt OSS 導入可否の技術調査 — daiki-beppu/youtube-automation0 reactions · 2 comments
- Apr 22, 2026feat: add takt as a target tool (map rulesync features to TAKT facets) — dyoshikawa/rulesync0 reactions
- Apr 18, 2026Audit candidate: nrslib/takt — xiaolai/nlpm0 reactions · 1 comment
- Mar 1, 2026TAKT, nrslib, 2026.01 — AkihikoWatanabe/paper_notes0 reactions · 2 comments
- Feb 26, 2026fix: default ピースの write_tests ABORT を implement フォールバックに変更 — tomohisa/takt-settings0 reactions
On Bluesky · 1
- Jun 20, 2026TAKT ためしてみるか どうにか AI コーディングに適合したい github.com/nrslib/takt — @unosw.jp1 likes and repost
In this repositoryOne other file it gives its agents.
- AGENTS.mdAGENTS.md
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 142
Prefer simple code over defensive fallback-heavy logic.
- Very specific: line 144
Don't commit secrets; provider keys live in env vars or ~/.takt/config.yaml.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This file is not user-facing documentation. It exists for Claude Code to read while working in the repository — it does not substitute for the real docs under
docs/orREADME.md. Content being recorded here NEVER implies "we don't need to write this up for users." Anything users should see must still be added toREADME.md/docs/**separately.
Project Overview
TAKT (TAKT Agent Koordination Topology) is a multi-agent orchestration CLI. It runs AI agents through YAML-defined workflows with rule-based routing, parallel review, dynamic task decomposition, and worktree-isolated execution. This repository dogfoods TAKT for its own review and development.
Development Commands
| Command | Notes |
npm run build | tsc (+ opencode-probe tsconfig) plus copies of src/shared/prompts/{en,ja}/**/*.md, src/shared/i18n/*.yaml, and src/core/runtime/presets/*.sh into dist/. Skipping any copy breaks runtime resolution. |
npm run watch | TypeScript incremental build (no asset copy). |
npm run lint | ESLint on src/. no-explicit-any is error; unused vars must be prefixed _. |
npm test | Fast unit gate: type-contracts tsc, the test type-check (tsconfig.tests.json), then an adaptive number of unit shards launched concurrently (capped at 8 from availableParallelism() in scripts/run-npm-test.mjs, each shard --maxWorkers=1). Excludes integration tests; the output names the follow-up command. |
npm run test:it | Light integration gate for real filesystem, bounded storage, and multi-component contracts. Run after implementation. |
npm run test:it:heavy | Full heavy integration gate for real child processes, Git, complete engines, integration/regression/performance suites, and serial groups. Local execution uses one worker; PR CI shards across isolated runners. |
npm test -- src/__tests__/<file>.test.ts | Route a single file to the correct unit, light-IT, heavy-parallel-IT, or heavy-serial-IT runner. For an added or changed IT, also run releaseVerificationWiring.test.ts by itself. Always target-run an added or changed heavy IT before handoff. |
npm test -- -t "<pattern>" | Run unit tests whose name matches <pattern>. |
npm run test:opencode-probe | Deterministic OpenCode probe smoke gate (11 cases, no API cost). Standalone; not part of routine gates or check:release. |
npm run test:e2e:mock | Full mock-provider E2E suite (parallel shards). Single spec: TAKT_E2E_PROVIDER=mock npx vitest run --config vitest.config.e2e.mock.ts e2e/specs/<file>.e2e.ts — without that env var the specs run against the real provider (provider: claude in e2e/fixtures/config.e2e.yaml) and cost API credits. |
npm run test:e2e:provider:{claude,claude-sdk,codex,opencode,cursor} | E2E against a real provider (slow, costs API credits). |
npm run check:release | Full pre-release gate: build + lint + adaptive local unit + light IT + heavy IT + e2e. The main pull-request CI workflow runs the unit gate separately in 8 isolated shard jobs; local check:release does not run that CI matrix. |
Vitest strips types, so a test only gets type-checked if it is listed in tsconfig.tests.json. Add the test you wrote or changed to that list; if an older test does not type-check yet, fix it first rather than leaving it off.
Test pool behavior (worth knowing before "fixing" flakes)
- Test-layer membership lives in
scripts/test-classification.mjs.lightIntegrationTestFilescovers bounded filesystem/storage and component contracts;heavyParallelIntegrationTestFiles, integration filename globs, and the serial groups cover real processes, Git, full engines, and measured IO interference.releaseVerificationWiring.test.tsfails if a listed file does not exist, overlaps another group, or leaves an observed boundary in unit. dangerouslyIgnoreUnhandledErrors: !process.env.CI(vitest.config.shared.ts): the spurious[vitest-worker]: Timeout calling "onTaskUpdate"error is tolerated locally (the adaptive concurrent unit-shard wave on one machine) but fatal on CI. Heavy parallel IT always uses one worker per runner; PR CI scales out through six isolated job-level shards, while local full-heavy execution stays serial. The on-demand/ciworkflow is the single-runner CI exception.- Because that noise still makes a shard exit non-zero locally,
npm testre-measures such a shard once (scripts/vitest-birpc-noise.mjs): only when the shard's own output shows zero failed tests, at least one passed test, and no reported error other than[vitest-worker]: Timeout calling "onTaskUpdate". One real test failure, one unrecognized error headline, orCIset withoutTAKT_BIRPC_REMEASURE_ON_CI=1→ no re-measurement, exit code stands. The/ciworkflow opts into the same strict one-time re-measurement for its single-runner adaptive unit wave; the blocking PR matrix and mock E2E workflow do not. The re-measurement is announced on stderr; a silent shard exit is never rescued. - Reading that output means unit and mock E2E shards run through a pipe (
scripts/teed-command.mjs) instead of inheriting the terminal, sonpm testandnpm run test:e2e:mockoutput is now non-TTY: no color and no live progress rewriting. That module takes the exit code fromexitand givescloseonly a short deadline — a shard's grandchild can hold the stdout pipe open forever, and waiting onclosealone hangs the gate. src/__tests__/test-setup.tsclearsTAKT_CONFIG_DIR/TAKT_NOTIFY_WEBHOOKper test and provides an isolated config root — don't add per-suite env overrides that fight it.
CLI Surface
Entry point: bin/takt → dist/app/cli/index.js (src/app/cli/index.ts). Subcommand definitions live in src/app/cli/commands.ts; argumentless/slash-fallback routing is in src/app/cli/routing.ts. See commands.ts for the full list rather than maintaining a copy here.
Two execution modes share the same engine: Interactive (src/features/interactive/; /go executes, /cancel aborts) and Pipeline (src/features/pipeline/, --pipeline; auto-branch/commit/push, --auto-pr, --skip-git).
Architecture
Layered layout (src/)
app/cli/ CLI entrypoint, command wiring, routing
core/ Engine internals — no IO providers here
workflow/ Engine, step executors, rule evaluation, instruction builder
config/ Workflow/global/project config models
models/ Shared domain types + Zod schemas
runtime/ Runtime environment & shell presets
features/ User-facing feature modules (interactive, pipeline, tasks, ...)
infra/ Adapters — providers, fs, git/github/gitlab,
observability, config loaders
shared/ Constants, i18n, ui, utils, prompt templates
agents/ agent-usecases (executeAgent, generateReport, judgeStatus, ...)Workflow execution
WorkflowEngine (src/core/workflow/engine/WorkflowEngine.ts) is an EventEmitter-driven state machine. Per-step dispatch: StepExecutor (normal, 3-phase), ParallelRunner (parallel:, Promise.allSettled + all()/any() aggregation), ArpeggioRunner (arpeggio: data-driven batch), TeamLeaderRunner (team_leader: runtime decomposition), WorkflowCallExecutor (workflow_call: subworkflow in the same run). LoopDetector catches consecutive same-step repeats; CycleDetector + loop_monitors catch cyclic patterns (judge personas routed under the fixed persona key loop-judge, not supervisor).
Three-phase step model
Each normal step runs up to three phases on the same provider session: Phase 1 main work (step's allowed_tools; Write excluded when a report is defined), Phase 2 report output (Write only, when output_contracts defined), Phase 3 status judgment (no tools, when tag-based rules exist). Implemented in phase-runner.ts / report-phase-runner.ts / status-judgment-phase.ts.
Rule evaluation (5-stage fallback)
src/core/workflow/evaluation/ — first match wins: (1) aggregate all()/any() for parallel parents, (2) Phase 3 [STEP:N] tag, (3) Phase 1 tag, (4) AI judge for ai("...") conditions, (5) AI judge over every condition. Deterministic when(...) expressions are evaluated before tags. Quirks: tag rules match by array index; multiple tags → last match wins; if rules exist but nothing matches the workflow fails fast — silently picking a default is a bug.
Instruction assembly
InstructionBuilder (src/core/workflow/instruction/) auto-injects execution context, workflow context, {task}, {previous_response}, {user_inputs}, and status output rules. Templates contain only step-specific content — never repeat what the builder injects. Facet markdown may include partials via {{include:instructions/<name>}} (resolved from facets/partials/).
Provider integration
src/infra/providers/ exposes a unified Provider interface. Registered: claude-sdk (default), claude (SDK alias), claude-headless (headless CLI), claude-terminal (interactive terminal), codex, opencode (shared server pool), pi (Pi SDK), deepseek-harness (official Python SDK bridge), cursor, copilot, kiro, mock. Provider errors must surface through AgentResponse.error — otherwise SDK failures appear as empty blocked output and are nearly impossible to debug. Use --provider mock to exercise the engine without a real API.
Provider/model resolution priority
Verified against resolveStepProviderModel / PROVIDER_MODEL_SOURCE_PRIORITY and runtime tests. Provider selection follows this priority. Model selection uses the first layer that specifies a model; if that same entry specifies a provider, the model is used only when its provider exactly matches the selected provider. On a mismatch, leave the model unset and do not try a lower-priority model. A model-only value passes through unchanged.
- CLI / environment explicit override
- Matching
promotion(normal agent steps only — parallel sub-steps rejectpromotionat schema level) - Step / parallel sub-step direct
provider/model workflow_calloverrideprovider_routing.steps→provider_routing.tags→provider_routing.personaspersona_providers(deprecated)- Auto routing (
auto.rules/auto.dynamic/auto.fallback) - Workflow → project (
.takt/config.yaml) → global (~/.takt/config.yaml) → provider default
Config & workflow loading
src/infra/config/loaders/. Workflow resolution is 3-layer with project priority: .takt/workflows/ → ~/.takt/workflows/ → bundled builtins/{lang}/workflows/. Zod schemas in src/core/models/schemas.ts (Zod v4). Load-time provider validation for workflow_call chains uses the same routing transformation helpers as runtime (workflow-call-provider-context.ts) — keep them shared; divergence between load-time and runtime resolution is a bug class we have shipped before.
Worktree-isolated execution
worktree: true runs a task in a clone created with git clone --reference <main-repo> --dissociate (plain git clone when the project is itself a linked worktree, or as fallback when the reference repo is shallow) — not a real git worktree, because Claude Code follows .git-file gitdir: pointers back to the main repo, which breaks isolation. Clones are ephemeral (auto-commit + push on success, deleted after), contain only tracked files, and cannot resume sessions (cwd !== projectCwd). cwd = clone path, projectCwd = repo root; reports go to cwd/.takt/runs/{slug}/reports/.
Faceted Prompting
Prompts are split into facet kinds — keep additions in the right bucket:
| Facet | Holds |
personas/ | WHO — identity, expertise. Reusable across workflows; no workflow-specific procedures. |
policies/ | HOW — REJECT/APPROVE criteria. Reviewers only enforce what's in policy. |
knowledge/ | WHAT TO KNOW — domain patterns, anti-patterns, examples. |
instructions/ | WHAT TO DO NOW — step-bound procedures. |
partials/instructions/ | Shared fragments injected via {{include:...}}. Headless (no H1) by design. |
Output contracts live under facets/output-contracts/. User overrides: ~/.takt/facets/<type>/ or .takt/facets/<type>/.
Runtime directory layout
~/.takt/ Global user config (config.yaml, workflows/, facets/, repertoire/)
.takt/ Project config (highest priority)
config.yaml provider / provider_routing / quality gates / overrides
workflows/, facets/ project-level overrides
tasks.yaml, tasks/ queued task specs
runs/{slug}/ per-run reports, logs, metadata, and context
logs/, events/ NDJSON session logs / analytics (gitignored)
builtins/{en,ja}/ Bundled facets + workflows (read from dist/ at runtime)TypeScript / testing
- ESM (
"type": "module"); import paths use.jsextensions in.tssources. Strict TS withnoUncheckedIndexedAccess. Node ≥ 22.22 (floor set by dependency engines — pi SDK needs 22.19, dev-only posthog-node/promptfoo need 22.22; seeenginesin package.json). - Unit and integration tests live under
src/__tests__/(Vitest); E2E specs undere2e/with per-provider configs.
Debugging
logging.debug: truein~/.takt/config.yaml→ debug logs under.takt/runs/debug-{timestamp}/logs/.TAKT_VERBOSE=truefor verbose console. Session logs at.takt/logs/{sessionId}.jsonl.- OpenCode's composed system prompt cannot be read from the binary or SDK;
tools/opencode-probe/sdk-prompt-capture.mjspoints OpenCode at a local OpenAI-compatible probe endpoint and records real request bodies. Facts established with it (re-verify — OpenCode changes): the system prompt concatenatesagent.prompt+ the user's~/.claude/CLAUDE.md+ skills +config.instructions; every prompt triggers a thread-title call onsmall_modelbefore the real one (capture tooling that grabs the first request measures the title generator). Do not useopencode run(CLI) as a measurement instrument — it intermittently hangs; production usescreateOpencodefrom the SDK.
House conventions (from AGENTS.md / CONTRIBUTING.md)
- Prefer simple code over defensive fallback-heavy logic. TAKT is a local tool: no audit trails, tamper-resistance, or security theater.
- Filenames mostly
kebab-case. Conventional Commit style with occasional(#issue)suffix. - Don't commit secrets; provider keys live in env vars or
~/.takt/config.yaml. - For CodeRabbit comments: judge each, act on the valid ones, resolve every thread; don't post replies.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

