| English | 日本語 | 简体中文 |
This document is a reference for all TAKT configuration options. For a quick start, see the main README. For phase-level usage events and analysis, see the Observability Guide.
Configure TAKT defaults in ~/.takt/config.yaml. This file is created automatically on first run. All fields are optional.
The daemon accepts symbolic links to regular files for both the global config.yaml and the project’s .takt/config.yaml, including files managed by home-manager or GNU Stow. The target must be a regular file no larger than 256 KiB. Broken links and invalid targets cause an error; an absent configuration file uses the defaults. This support is limited to configuration files and does not apply to other private daemon files.
If the global configuration directory and the current project’s .takt/ point to the same place, TAKT exits with an error at startup. If they overlap in your home directory or through a symbolic link, set TAKT_CONFIG_DIR to a different directory.
# ~/.takt/config.yaml
language: en # UI language: 'en' or 'ja'
director:
slack:
channel_id: C0DIR
allowed_user_ids: [U0AAA]
logging:
level: info # Log level: debug, info, warn, error
provider: claude-sdk # Default provider: claude-sdk, claude, claude-headless, claude-terminal, codex, opencode, deepseek-harness, cursor, copilot, kiro, devin, pi, or mock
model: sonnet # Default model (optional, passed to provider as-is)
branch_name_strategy: romaji # Branch name generation: 'romaji' (fast) or 'ai' (slow)
prevent_sleep: false # Prevent macOS idle sleep during execution (caffeinate)
notification_sound: true # Enable/disable notification sounds
notification_sound_events: # Optional per-event toggles (all events enabled by default)
iteration_limit: false # Example: set false to disable only this event
workflow_complete: true
workflow_abort: true
run_complete: true
run_abort: true
concurrency: 1 # Parallel task count for takt run / takt watch (1-10, default: 1 = sequential)
task_poll_interval_ms: 500 # Polling interval for new tasks during takt run / takt watch (100-5000, default: 500)
interactive_preview_steps: 3 # Step previews in interactive mode (0-10, default: 3)
auto_requeue_max_attempts: 0 # Auto-requeue failed workflow tasks during takt run / takt watch (non-negative integer, default: 0 = disabled)
ignore_exceed: false # Applies to takt run and takt watch like --ignore-exceed (default: false)
assistant:
formal_spec:
mode: 'y/N' # Alloy/Quint mode: true, false, Y/n, or y/N (default: y/N)
comments: true # Add natural-language meaning comments to each formal construct (default: true)
model_check_timeout_seconds: 900 # Limit for /verify quint verify and Alloy model checking, integer 1-86400 (default: 900)
# auto_fetch: false # Fetch remote before cloning (default: false)
# base_branch: main # Base branch for clone creation (default: remote default branch)
# Runtime environment defaults (applies to all workflows unless workflow_config.runtime overrides)
# runtime:
# prepare:
# - gradle # Prepare Gradle cache/config in .runtime/
# - node # Prepare npm cache in .runtime/
# Provider routing for workflow steps (recommended)
# Route by raw persona key, step tags, or step name without duplicating workflows
# provider_routing:
# personas:
# coder:
# provider: codex
# model: gpt-5
# provider_options:
# codex:
# reasoning_effort: high
# tags:
# implementation:
# provider: codex
# model: gpt-5
# review:
# provider: opencode
# model: opencode/qwen3-coder-next
# final-gate:
# provider: codex
# model: gpt-5
# provider_options:
# codex:
# reasoning_effort: high
# edit:
# provider_options:
# codex:
# network_access: true
# steps:
# ai-antipattern-review-2nd:
# provider: opencode
# model: opencode/qwen3-coder-next
# Legacy per-display-name overrides (deprecated; prefer provider_routing)
# persona_providers:
# coder:
# provider: codex
# model: gpt-5
# Provider-specific permission profiles (optional)
# Priority: project override > global override > project default > global default > required_permission_mode (floor)
# provider_profiles:
# codex:
# default_permission_mode: full
# step_permission_overrides:
# ai_review: readonly
# claude-sdk:
# default_permission_mode: edit
# API Key configuration (optional)
# Can be overridden by environment variables TAKT_ANTHROPIC_API_KEY / TAKT_OPENAI_API_KEY / TAKT_OPENCODE_API_KEY / TAKT_CURSOR_API_KEY / TAKT_COPILOT_GITHUB_TOKEN / TAKT_KIRO_API_KEY. DeepSeek Harness uses its official credential store ($DSH_HOME/.credentials.yaml, default ~/.dsh/.credentials.yaml) or DEEPSEEK_API_KEY, with optional DEEPSEEK_BASE_URL (not YAML API-key fields).
# anthropic_api_key: sk-ant-... # For Claude (Anthropic)
# openai_api_key: sk-... # For Codex (OpenAI)
# opencode_api_key: ... # For OpenCode
# cursor_api_key: ... # For Cursor Agent (optional; login session fallback is also supported)
# copilot_github_token: ... # For Copilot (GitHub token)
# kiro_api_key: ... # For Kiro CLI
# CLI path overrides (optional)
# Override provider CLI binaries (must be absolute paths to executable files)
# Can be overridden by environment variables TAKT_CLAUDE_CLI_PATH / TAKT_CODEX_CLI_PATH / TAKT_CURSOR_CLI_PATH / TAKT_COPILOT_CLI_PATH / TAKT_KIRO_CLI_PATH / TAKT_DEVIN_CLI_PATH
# claude_cli_path: /usr/local/bin/claude
# codex_cli_path: /usr/local/bin/codex
# cursor_cli_path: /usr/local/bin/cursor-agent
# copilot_cli_path: /usr/local/bin/github-copilot-cli
# kiro_cli_path: /usr/local/bin/kiro-cli
# devin_cli_path: /usr/local/bin/devin
# VCS provider (optional)
# Auto-detected from git remote URL (github.com → github, gitlab.com → gitlab)
# Set explicitly for self-hosted instances
# vcs_provider: github # 'github' or 'gitlab'
# Assistant provider (optional)
# Routes assistant conversations (interactive planning, instruct on existing tasks,
# and retry dialogue) and the Report phase fallback provider.
# Report fallback uses this only after an OpenCode report retry fails.
# Project assistant overrides global assistant; when assistant is unset, TAKT does not
# fall back to top-level provider/model for report fallback.
# takt_providers:
# assistant:
# provider: claude-sdk
# model: opus
# selector: # optional selector override for dynamic parallel, dynamic_facets, and companion pools
# provider: codex
# model: gpt-5
# provider_options:
# codex:
# reasoning_effort: medium
takt_providers.selector selects agents for dynamic parallel, dynamic_facets, and Companion pools. Provider and model precedence is explicit CLI or environment override, project selector, global selector, project top-level, then global top-level. The model must belong to the selected provider.
The selector’s provider_options merge individual options from the global and project selector settings. Environment variables for the selected provider can override them. Top-level, persona, and pool sub-step options do not carry over to the selector. To use config_profile or readonly_permission_base with a Codex selector, also set permission_control: codex in that selector’s effective options. Empty selector or provider_options entries are errors.
Dynamic parallel and dynamic_facets selectors use read-only mode with only Read, Glob, and Grep allowed. Companion selectors can use the configured allowed_tools because TAKT does not pass them a fixed tool list. Tool restrictions depend on provider support.
# ~/.takt/config.yaml (continued)
# Workflow security policies (all default to deny)
# These settings control what untrusted workflow YAMLs are allowed to do.
# workflow_mcp_servers: # MCP server transport policy
# stdio: true # Allow stdio transport (default: false)
# sse: false # Allow SSE transport (default: false)
# http: false # Allow HTTP transport (default: false)
# workflow_arpeggio: # Arpeggio custom code policy
# custom_data_source_modules: false # Allow custom data source modules (default: false)
# custom_merge_inline_js: false # Allow inline JS merge functions (default: false)
# custom_merge_files: false # Allow external merge files (default: false)
# workflow_runtime_prepare: # Runtime prepare policy
# custom_scripts: false # Allow custom scripts (default: false; builtin presets always allowed)
# workflow_command_gates: # Workflow YAML command quality gate policy
# custom_scripts: false # Allow command gates from workflow YAML (default: false)
# workflow_system_commands: # Workflow system command input policy
# custom_scripts: false
# sync_conflict_resolver: # Sync conflict resolver policy
# auto_approve_tools: false # Allow auto-approval of tools (default: false)
# Builtin workflow filtering (optional; config keys retain workflow_* names)
# enable_builtin_workflows: true # Set false to disable all builtin workflows
# disabled_builtins: [magi] # Disable specific builtin workflows by name
# Pipeline execution configuration (optional)
# Customize branch names, commit messages, and PR body.
# pipeline:
# default_branch_prefix: "takt/"
# commit_message_template: "feat: {title} (#{issue})"
# pr_body_template: |
# ## Summary
# {issue_body}
# Closes #{issue}
# Routing decision telemetry is local-only.
# telemetry:
# routing_decisions: true # Write auto-routing decisions to .takt/events/ (default: false; enable with `takt telemetry enable` or this key)
| Field | Type | Default | Description |
|---|---|---|---|
language |
"en" | "ja" |
"en" |
UI language |
director.slack.channel_id |
string | - | Director Slack channel. Global-only; see Slack conversations with director. |
director.slack.allowed_user_ids |
string[] | - | Users allowed to send messages to director and use its registration and inquiry buttons on Slack. Required when director.slack is configured; an empty list accepts no users’ messages or actions. |
logging.level |
"debug" | "info" | "warn" | "error" |
"info" |
Log level |
logging.trace |
boolean | false |
Enable trace-level logging (suppresses high-frequency debug noise) |
logging.debug |
boolean | false |
Enable debug logging (debug.log + prompts.jsonl) |
logging.provider_events |
boolean | false |
Persist provider stream events |
logging.usage_events |
boolean | false |
Persist usage event logs |
provider |
"claude" | "claude-sdk" | "claude-headless" | "claude-terminal" | "codex" | "opencode" | "deepseek-harness" | "pi" | "cursor" | "copilot" | "kiro" | "devin" | "mock" |
"claude-sdk" |
Default concrete AI provider (claude-sdk = Agent SDK mode, claude = alias for claude-sdk, claude-headless = headless CLI mode, claude-terminal = experimental interactive terminal mode, pi = Pi SDK mode, deepseek-harness = official DeepSeek Harness TypeScript SDK/runtime 0.2.1-rc.5) |
model |
string | - | Default model name (passed to provider as-is) |
branch_name_strategy |
"romaji" | "ai" |
"romaji" |
Branch name generation strategy |
prevent_sleep |
boolean | false |
Prevent macOS idle sleep (caffeinate) |
notification_sound |
boolean | true |
Enable notification sounds |
notification_sound_events |
object | - | Per-event notification sound toggles |
concurrency |
number (1-10) | 1 |
Parallel task count for takt run / takt watch; per-project limit for daemon goal tasks |
task_poll_interval_ms |
number (100-5000) | 500 |
Polling interval for new tasks (takt run / takt watch) |
interactive_preview_steps |
number (0-10) | 3 |
Step previews in interactive mode |
assistant.formal_spec |
boolean | "Y/n" | "y/N" | object |
mode "y/N", comments true |
Adds Alloy/Quint guidance and expresses requirements in both notations. The structured form accepts independent mode, comments, and model_check_timeout_seconds fields; comments: false removes only the natural-language meaning-comment instruction and does not reduce formal specification coverage, requirement coverage, or syntax/correctness guidance. model_check_timeout_seconds is the limit in seconds for quint verify and the Alloy Analyzer during /verify (an integer from 1 to 86,400, default 900); the 60-second limit for parse/typecheck/run is unchanged. Project and global object fields are resolved independently, with project values taking precedence. true and false are used without prompting; on a TTY, "Y/n" and "y/N" ask once per conversation session with Yes or No as the default; without a TTY, the default answer is used without consuming standard input. Gherkin guidance applies only to development and implementation tasks. The manager also uses this setting without prompting: true/"Y/n" include both notations, and false/"y/N" omit them. /verify is also available in manager conversations in TUI and Slack. |
auto_requeue_max_attempts |
non-negative integer | 0 |
Maximum automatic requeue attempts for failed workflow tasks during takt run / takt watch; 0 disables automatic requeue |
ignore_exceed |
boolean | false |
Configures iteration-limit bypass for takt run and takt watch; a CLI --ignore-exceed flag takes precedence when specified |
sync_project_local_takt_on_retry |
boolean | true |
Sync the root project-local .takt into a reused worktree before selecting a retry position or checking SDKs. Synced files remain if SDK installation is declined or the selection is cancelled. Set false to keep the worktree copy. |
worktree_dir |
string | - | Directory for shared clones (defaults to ../{clone-name}) |
manager.preserve_goal_worktree |
boolean | false |
Preserve goal task worktrees and their run artifacts after manager integrates them; see Goal task worktree retention. |
allow_git_hooks |
boolean | false |
Allow git hooks during TAKT-managed auto-commit |
allow_git_filters |
boolean | false |
Allow git filters during TAKT-managed auto-commit |
auto_pr |
boolean | - | Auto-create PR after worktree execution |
caccia |
object | { enabled: false, wait_timeout_ms: 1800000, max_iterations: 3, workflow: "caccia" } |
CodeRabbit review-loop settings; see Caccia Review Loop |
draft_pr |
boolean | false |
Create the auto-created PR as a draft |
minimal_output |
boolean | false |
Suppress AI output (for CI) |
runtime |
object | - | Runtime environment defaults (e.g., prepare: [gradle, node]) |
provider_routing |
object | - | Recommended workflow-step provider/model/provider_options routing by raw persona key, step tag, and step name |
auto_routing |
object | - | Automatic provider/model selection from candidate pools (see Auto Routing) |
persona_providers |
object | - | Deprecated legacy per-display-name provider/model/provider_options overrides. Prefer provider_routing for new settings |
provider_options |
object | - | Global provider-specific options |
provider_profiles |
object | - | Provider-specific permission profiles |
rate_limit_fallback |
object | - | Rate-limit fallback; switch_chain lists {provider, model} entries switched to in order when a provider is rate limited |
anthropic_api_key |
string | - | Anthropic API key for Claude |
openai_api_key |
string | - | OpenAI API key for Codex |
gemini_api_key |
string | - | Gemini API key |
google_api_key |
string | - | Google API key |
groq_api_key |
string | - | Groq API key |
openrouter_api_key |
string | - | OpenRouter API key |
opencode_api_key |
string | - | OpenCode API key |
cursor_api_key |
string | - | Cursor API key (optional; login session fallback supported) |
copilot_github_token |
string | - | GitHub token for Copilot CLI authentication |
kiro_api_key |
string | - | Kiro API key |
codex_cli_path |
string | - | Codex CLI binary path override (absolute) |
claude_cli_path |
string | - | Claude Code CLI binary path override (absolute) |
cursor_cli_path |
string | - | Cursor Agent CLI binary path override (absolute) |
copilot_cli_path |
string | - | Copilot CLI binary path override (absolute) |
kiro_cli_path |
string | - | Kiro CLI binary path override (absolute) |
devin_cli_path |
string | - | Devin CLI binary path override (absolute) |
enable_builtin_workflows |
boolean | true |
Enable builtin workflows |
disabled_builtins |
string[] | [] |
Builtin workflows to disable, by workflow name |
pipeline |
object | - | Pipeline template settings |
bookmarks_file |
string | - | Path to bookmarks file |
auto_fetch |
boolean | false |
Fetch remote before cloning to keep clones up-to-date |
base_branch |
string | - | Base branch for clone creation (defaults to remote default branch) |
workflow_categories_file |
string | - | Path to categories file (see Workflow categories; default overlay path uses workflow-categories.yaml) |
vcs_provider |
"github" | "gitlab" |
auto-detect | VCS provider. Auto-detected only for github.com and gitlab.com remotes; set it for any other host, including *.ghe.com and self-hosted instances (see Repository identity in clones) |
takt_providers |
object | - | TAKT internal provider overrides. assistant routes assistant conversations (interactive planning, instruct on existing tasks, and retry dialogue) and is also used as the Report phase fallback provider after an OpenCode report retry fails. Project takt_providers.assistant overrides global takt_providers.assistant; if neither is set, Report phase fallback is disabled and top-level provider / model are not used as an implicit fallback. |
telemetry |
object | { routing_decisions: false } |
Local-only routing decision recording, disabled by default (opt-in). Enable with takt telemetry enable or routing_decisions: true; auto-routing decisions are then written as NDJSON under the project .takt/events/ directory. TAKT does not upload routing decisions. |
analytics |
object | disabled | Local-only analytics collection. enabled turns it on, events_path sets a custom events directory (default ~/.takt/analytics/events), retention_days sets the retention period applied by takt purge (default: 30 days). TAKT does not upload analytics events. |
workflow_mcp_servers |
object | all false |
MCP server transport policy (stdio, sse, http toggles) |
workflow_arpeggio |
object | all false |
Arpeggio custom code policy (custom_data_source_modules, custom_merge_inline_js, custom_merge_files) |
workflow_runtime_prepare |
object | { custom_scripts: false } |
Runtime prepare policy (builtin presets always allowed) |
workflow_command_gates |
object | { custom_scripts: false } |
Workflow YAML command quality gate policy |
workflow_system_commands |
object | { custom_scripts: false } |
Workflow system command input policy |
workflow_overrides |
object | - | Workflow-level overrides: top-level / per-step / per-persona quality_gates (AI directives or type: command gates) and quality_gates_edit_only |
sync_conflict_resolver |
object | { auto_approve_tools: false } |
Sync conflict resolver policy |
observability |
object | disabled | Opt-in OpenTelemetry foundation. enabled initializes the SDK, monitor writes workflow metrics to .takt/runs/<run>/monitor.json, session_log_exporter writes a shadow session log from spans, and usage_events_phase writes phase-level usage events to .takt/runs/<run>/logs/<session>-usage-events.phase.jsonl. With enabled: true and OTEL_EXPORTER_OTLP_ENDPOINT, TAKT also sends spans and metrics through OTLP using standard OTEL_EXPORTER_OTLP_* environment variables; TAKT does not add an OTLP config key. |
Codex, Claude SDK, claude-headless, and Copilot retry transient HTTP 429 failures with the same provider up to eight times, waiting 1, 2, 4, 8, 16, 30, 30, and 30 seconds. Codex, Claude SDK, claude-headless, Copilot, and OpenCode do not automatically retry a 429 after observing a tool execution event, so workspace operations are not repeated. OpenCode shares its attempt budget with other transient failures and retries up to twice (three attempts total), waiting 250ms and 500ms. A successful retry completes normally. Explicit usage, credit, or spend-cap exhaustion proceeds immediately to rate_limit_fallback.switch_chain; persistent throttling proceeds there after the retry budget is consumed. Exhaustion takes precedence when both occur in the same failure. A Copilot session.error reporting monthly quota exhaustion (statusCode 402, errorType: quota, or errorCode: quota_exceeded) is also treated as exhaustion and proceeds immediately to rate_limit_fallback.switch_chain without retrying. Without a fallback provider, execution aborts as before. There are no retry configuration keys, and existing retry conditions for other failures remain unchanged.
daemon is available only in global ~/.takt/config.yaml, or config.yaml under TAKT_CONFIG_DIR when set. Do not place it in project configuration. See the worker pool guide for deployment steps.
daemon:
builtin_worker:
concurrency: 1
remote_worker:
host: 127.0.0.1
port: 54322
credentials:
git: ${WORKER_GIT_TOKEN}
gh: ${WORKER_GH_TOKEN}
providers:
openai: ${WORKER_OPENAI_KEY}
| Field | Values and behavior |
|---|---|
daemon.builtin_worker.concurrency |
Nonnegative safe integer. Shared builtin worker limit across all projects. If omitted, no shared limit is imposed; each project’s concurrency applies. A value of 0 disables builtin execution |
daemon.remote_worker.host |
Listening address; required when remote_worker is configured |
daemon.remote_worker.port |
Required integer from 0 to 65535. A value of 0 lets the OS choose an available port; a fixed front end normally uses a fixed port |
daemon.remote_worker.credentials.git |
Environment reference for a Git token, used by the task subprocess’s Git credential helper |
daemon.remote_worker.credentials.gh |
Environment reference for a gh token, delivered as GH_TOKEN and GITHUB_TOKEN in the task subprocess |
daemon.remote_worker.credentials.providers |
Environment references for provider credentials listed below |
Omitting remote_worker disables the network listener. An explicit builtin limit never overrides the project’s concurrency limit. PR merge tasks and tasks without origin run only on builtin and cannot progress with a builtin limit of 0. Inspect registered worker names and limits with takt worker list on the daemon machine; manage registrations through the worker CLI. There is no YAML setting for editing the registration list directly.
When port: 0 is used, find the actual listening port in the startup info record’s message in ~/.takt/daemon-logs/*.json. If TAKT_CONFIG_DIR is set, look in $TAKT_CONFIG_DIR/daemon-logs/*.json instead. Match the PID in Daemon started (12345), worker port: 49152 to the current daemon’s PID. Manual startup (takt daemon --resident) and automatic startup both write this record. Combine the listening host and the recorded port to form the worker URL; for example, host 127.0.0.1 and port 49152 give http://127.0.0.1:49152. Worker URLs outside localhost require HTTPS. With a reverse proxy, use its public HTTPS URL for workers and forward it to the daemon’s internal listening host and port; the public port can differ from the recorded port.
Credential values accept only ${ENV_NAME} references, not plaintext secrets. References resolve in the daemon’s environment. Empty, unset, or larger-than-8192-byte values cause delivery to fail. Unconfigured environment variables are not automatically distributed.
providers key |
Task subprocess variable |
|---|---|
anthropic |
ANTHROPIC_API_KEY |
openai |
OPENAI_API_KEY |
gemini |
GEMINI_API_KEY |
google |
GOOGLE_API_KEY |
groq |
GROQ_API_KEY |
openrouter |
OPENROUTER_API_KEY |
copilot |
COPILOT_GITHUB_TOKEN |
kiro |
KIRO_API_KEY |
opencode |
OPENCODE_API_KEY |
cursor |
CURSOR_API_KEY |
Delivered values overlay each task subprocess’s environment and apply to the corresponding TAKT provider credential settings. Explicitly delivered values take precedence over existing worker credentials; undistributed entries use existing worker authentication. The worker process and other concurrent tasks’ environments are unchanged. The connection token is separate from task authentication and is not passed to task subprocesses. Git tokens are not embedded in origin URLs or saved Git configuration; the helper uses them for requests matching the assigned origin’s protocol and host.
Daemon settings are read at startup. After changing them, stop with takt daemon stop and start again. For source environment variable changes, update the service environment and restart as well. Removing a registration does not revoke distributed Git tokens; revoke them on GitHub when necessary.
The optional caccia object is accepted in both ~/.takt/config.yaml and .takt/config.yaml:
caccia:
enabled: false # Enable post-PR Caccia and CodeRabbit waits in explicit effects
wait_timeout_ms: 1800000 # Maximum wait for the initial review and each pushed commit review, in milliseconds
max_iterations: 3 # Maximum fix-and-review iterations
workflow: caccia # Workflow used to judge and fix each set of threads
The caccia effect waits for CodeRabbit only when enabled is true; otherwise it skips the review wait and returns skipped with skipReason: config_disabled. The standalone takt caccia <PR-number> command is available regardless of this flag. Defaults are disabled, 1,800,000 milliseconds, 3 iterations, and workflow caccia. A project caccia block takes precedence over the global block; omitted fields in the selected block receive these defaults. Set workflow to a workflow identifier to replace the builtin workflow.
The same enabled flag also enables automatic Caccia after successful PR creation or update by worktree tasks with auto_pr and Pipeline with --auto-pr. Failed publication, missing PRs, goal-managed tasks, and non-GitHub providers do not run post-processing Caccia. It is suppressed when the executed workflow contains a caccia system effect, including in a called workflow, or when merge.auto_start: true selects a merge workflow containing such an effect. Otherwise Caccia finishes before the linked merge workflow starts. Step names and instruction text do not count as effects.
If the GitHub PR head differs from the clone’s starting HEAD, the effect fetches PR details every 2 seconds before execution for up to 60 seconds, including fetch time. Inconsistent head observations within a PR details fetch also trigger a retry within the same deadline. It continues only on the expected SHA; a mismatch at the deadline returns an error containing the expected SHA and the last observed SHA. If the last observation was inconsistent, both conflicting SHAs are included. Authentication failures and other fetch errors, PR identity changes, and cancellation fail immediately. This also applies before recording a skip when execution metadata and a push recorder are present, so disabled or unset configuration may still wait for this check. This wait is fixed and is independent of the review setting wait_timeout_ms.
wait_timeout_ms bounds the initial review wait and each pushed-commit review wait, including a retry request. If a CodeRabbit rate-limit notice gives a retry time before the deadline, Caccia requests one review when that time arrives; a retry time at or beyond the deadline skips Caccia immediately. A review still incomplete at the deadline after a rate-limit notice also skips Caccia. Without a rate-limit notice, an initial timeout skips Caccia and a pushed-commit timeout is an error. The standalone command exits non-zero in either case; the system effect returns failures as success: false with error for workflow routing.
Effect progress, workflow output, results, and failures inherit the parent task’s display mode and task prefix. Silent parents produce no Caccia screen output.
The merge builtins execute Caccia explicitly: merge-review runs review → caccia → wait_ci → evaluation comment, while merge-review-fix and merge-review-fix-simple run sync → commit_and_push → caccia → wait_ci → merge_pr. When AI resolves conflicts, review and fixes run before commit_and_push on both initial synchronization and resynchronization. success and skipped continue to CI on the returned head. limit comments with the unresolved thread count and ends ABORT without merging. An effect error comments with error and ends ABORT. Git push itself does not start Caccia; takt merge uses these explicit effects. Automatic post-PR execution follows the exclusion and ordering rules above.
Configure project-specific settings in .takt/config.yaml. This file is created when you first use TAKT in a project directory.
# .takt/config.yaml
provider: claude-sdk # Override provider for this project
model: sonnet # Override model for this project
auto_pr: true # Auto-create PR after worktree execution
concurrency: 2 # Parallel task count for takt run / takt watch in this project (1-10)
auto_requeue_max_attempts: 1 # Auto-requeue failed workflow tasks during takt run / takt watch (non-negative integer)
ignore_exceed: false # Applies to takt run and takt watch like --ignore-exceed
# base_branch: main # Base branch for clone creation (overrides global, default: remote default branch)
# Project-specific assistant settings
# assistant:
# formal_spec:
# mode: 'Y/n' # Override only the global Alloy/Quint mode
# comments: false # Keep formal guidance, but omit forced meaning-comment instructions
# init_files:
# # Project config only; initial context files for interactive assistant mode
# - docs/assistant-context.md
# - .takt/assistant-notes.md
# Provider-specific options (legacy project defaults; runtime profiles own these options in runtime.yaml)
# codex / claude / claude_terminal / cursor / copilot / kiro / devin / pi also support
# guards.call_timeout_ms (60 minutes when omitted).
# provider_options:
# codex:
# network_access: true
# opencode:
# variant: high
# skills:
# enabled: false
# allowed_tools: [read, glob, grep, bash, websearch, webfetch]
# guards:
# profile: standard
# model_profiles:
# "opencode/big-pickle": minimal
# "lmstudio/*": standard
# call_timeout_ms: 3600000
# event_limit: 500000
# text_byte_limit: 1048576
# reasoning_byte_limit: 4194304
# kiro:
# agent: my-default-agent
# effort: medium
# mode: spec # Kiro CLI V3 agent mode: default or spec (ignored while agent is set, as in this example)
# pi:
# extensions: [npm:pi-fff]
# no_skills: true
# deepseek_harness:
# base_url: http://127.0.0.1:8787/v1
# max_tokens: 4096
# request_timeout_ms: 3600000
# shutdown_timeout_ms: 1000
# # claude_terminal:
# backend: tmux
# timeout_ms: 900000
# keep_session: false
# transcript_poll_interval_ms: 500
# Provider-specific permission profiles (project-level override)
# provider_profiles:
# codex:
# default_permission_mode: full
# step_permission_overrides:
# ai_review: readonly
Pi runs inside the TAKT process. TAKT does not read the Pi CLI’s global settings.json, so specify the model and thinking level in TAKT configuration.
Pi’s codemode extension loads by default. Include codemode in an explicit allowedTools list to use it; an empty list denies all tools. The same permission mode and allowlist apply to tools called from codemode. These permissions do not replace an OS sandbox.
In legacy config.yaml, set the model and thinking level separately:
# ~/.takt/config.yaml or .takt/config.yaml
provider: pi
model: provider/model
provider_options:
pi:
thinking_level: high
In runtime mode, set thinking_level in the Pi profile’s provider.profiles.<name>.options. Workflow YAML cannot define provider, model, or provider options.
Set thinking level with provider_options.pi.thinking_level or TAKT_PROVIDER_OPTIONS_PI_THINKING_LEVEL. Choose off, minimal, low, medium, high, xhigh, or max; the default is medium. In model: provider/model:high, :high is part of the model ID, not a thinking level.
To migrate an older configuration that used model: pi/...:high to select a thinking level, remove :high from the model reference and set the option instead:
provider_options:
pi:
thinking_level: high
Pi authentication uses the Pi SDK credential store or provider-native environment variables. See Pi resource loading for extension and discovery settings.
guards.call_timeout_ms limits how long a provider may go without a response or tool event. Set it from 60,000 to 86,400,000 ms; the default is 3,600,000 ms (60 minutes). Each event restarts the timer, so it does not impose a 60-minute limit on the whole run. It applies to codex, opencode, Claude providers, cursor, copilot, kiro, devin, and pi. The legacy claude_terminal.timeout_ms is used only when this setting is absent.
OpenCode’s provider_options.opencode.guards.profile defaults to standard. minimal disables heuristic loop detection but retains time and output bounds. model_profiles is checked in order and uses * as a wildcard. Individual guard settings merge between global and project configuration, but a higher-priority model_profiles map replaces the entire lower-priority map.
OpenCode defaults to an event_limit of 500,000, a text_byte_limit of 1 MiB, and a reasoning_byte_limit of 4 MiB. Override event_limit with TAKT_OPENCODE_STREAM_EVENT_LIMIT if needed. During a tool call, the ordinary inactivity check pauses; if its completion event never arrives, it ends with PART_TIMEOUT after six times call_timeout_ms.
Use positive integers for limits in guards.* and TAKT_PROVIDER_OPTIONS_*. An invalid TAKT_OPENCODE_* temporary override falls back to its default. Remove the legacy TAKT_OPENCODE_TOOL_ERROR_BUDGET, TAKT_OPENCODE_TOOL_SIGNATURE_ABSOLUTE, TAKT_OPENCODE_TOOL_SIGNATURE_REPEATS, TAKT_OPENCODE_TOOL_SUCCESS_REPEATS, and TAKT_OPENCODE_TOOL_RESULT_STAGNATION_REPEATS variables and configure guards instead.
The project’s .takt/config.yaml can override many global settings, including language, provider_routing, and runtime. See the global config field reference for shared fields. Global-only fields such as logging, notification settings, API keys, and CLI paths cannot go in project config. The table below lists project-only fields and common overrides.
| Field | Type | Default | Description |
|---|---|---|---|
provider |
"claude" | "claude-sdk" | "claude-headless" | "claude-terminal" | "codex" | "opencode" | "deepseek-harness" | "pi" | "cursor" | "copilot" | "kiro" | "devin" | "mock" |
- | Override concrete provider |
model |
string | - | Override model name (passed to provider as-is) |
submodules |
"all" | string[] |
- | Project-only. Submodules to initialize in shared clones: "all" or an explicit path list (wildcards not supported) |
with_submodules |
boolean | - | Project-only. Legacy boolean equivalent of submodules: "all"; prefer submodules |
allow_git_hooks |
boolean | false |
Allow git hooks during TAKT-managed auto-commit |
allow_git_filters |
boolean | false |
Allow git filters during TAKT-managed auto-commit |
auto_pr |
boolean | - | Auto-create PR after worktree execution |
caccia |
object | disabled | CodeRabbit review-loop settings; see Caccia Review Loop |
draft_pr |
boolean | false (from global) |
Create the auto-created PR as a draft |
concurrency |
number (1-10) | 1 (from global) |
Parallel task count for takt run / takt watch; this project’s limit for daemon goal tasks |
auto_requeue_max_attempts |
non-negative integer | 0 (from global/default) |
Maximum automatic requeue attempts for failed workflow tasks during takt run / takt watch; 0 disables automatic requeue |
ignore_exceed |
boolean | false (from global/default) |
Configures iteration-limit bypass for takt run and takt watch; a CLI --ignore-exceed flag takes precedence when specified |
base_branch |
string | - | Base branch for clone creation (overrides global, default: remote default branch) |
assistant.init_files |
string[] | - | Project-only interactive assistant initial context files. Paths must be relative to the project root; absolute paths, paths resolving outside the project root, and sensitive file patterns such as .env*, .npmrc, .pypirc, .netrc, *.pem, *.key, and .git/** are rejected. Missing paths, directories, and unreadable files fail with a clear error. At most 16 files are allowed; each file is limited to 256 KiB and the combined content is limited to 1 MiB. When unset or empty, TAKT does not auto-discover CLAUDE.md, AGENT.md, AGENTS.md, TAKT.md, or other files. This is separate from takt_providers.assistant, which only controls the assistant provider/model. |
assistant.formal_spec |
boolean | "Y/n" | "y/N" | object |
mode "y/N", comments true (from global/default) |
Project override for Alloy/Quint guidance that expresses requirements in both notations. The structured form accepts independent mode, comments, and model_check_timeout_seconds fields; comments: false removes only the natural-language meaning-comment instruction while retaining formal specification amount, requirement coverage, and syntax/correctness guidance. Project and global object fields resolve independently, with project values taking precedence; omitted fields fall through to the lower layer or defaults. Answers to "Y/n" or "y/N" prompts are session-local and are resolved again when a conversation is resumed; ACP and non-TTY execution never prompt and use the configured default answer. Gherkin guidance applies only to development and implementation tasks. The deprecated assistant.gherkin key produces a warning and is ignored without conversion, persistence, or file modification. The manager also uses this setting without prompting: true/"Y/n" include both notations, and false/"y/N" omit them. /verify is also available in manager conversations in TUI and Slack. |
provider_options |
object | - | Provider-specific options |
provider_profiles |
object | - | Provider-specific permission profiles |
vcs_provider |
"github" | "gitlab" |
auto-detect | VCS provider (overrides global and auto-detection) |
takt_providers |
object | - | TAKT internal provider overrides. Project takt_providers.assistant overrides the global assistant provider/model and is used for assistant conversations (interactive planning, instruct on existing tasks, and retry dialogue) and Report phase fallback after an OpenCode report retry fails. If project and global assistant are both unset, Report phase fallback is disabled and top-level provider / model are not used as an implicit fallback. |
workflow_mcp_servers |
object | - | MCP server transport policy (overrides global) |
workflow_arpeggio |
object | - | Arpeggio custom code policy (overrides global) |
workflow_runtime_prepare |
object | - | Runtime prepare policy (overrides global) |
workflow_command_gates |
object | - | Workflow YAML command quality gate policy (overrides global) |
workflow_system_commands |
object | - | Workflow system command input policy |
sync_conflict_resolver |
object | - | Sync conflict resolver policy (overrides global) |
observability |
object | - | Project-level OpenTelemetry opt-in override. enabled initializes the SDK, monitor writes workflow metrics to .takt/runs/<run>/monitor.json, session_log_exporter writes a shadow session log from spans, and usage_events_phase writes phase-level usage events to .takt/runs/<run>/logs/<session>-usage-events.phase.jsonl. With enabled: true and OTEL_EXPORTER_OTLP_ENDPOINT, TAKT also sends spans and metrics through OTLP using standard OTEL_EXPORTER_OTLP_* environment variables; TAKT does not add an OTLP config key. |
Project config values override global config when both are set.
auto_requeue_max_attempts and ignore_exceed can also be set with
TAKT_AUTO_REQUEUE_MAX_ATTEMPTS and TAKT_IGNORE_EXCEED. These values use the
same config resolution order as other env-backed task execution settings:
.takt/config.yaml~/.takt/config.yamlTAKT_AUTO_REQUEUE_MAX_ATTEMPTS must resolve to a non-negative integer after
number parsing. Non-numeric values, negative values, and non-integers fail config
validation. TAKT_IGNORE_EXCEED accepts only true or false; any other value
fails config validation.
These environment variables are read once at the start of verification. They are not YAML keys and do not apply to Quint-only verification.
| Environment variable | Default | Format |
|---|---|---|
TAKT_ALLOY_CONCURRENCY |
2 |
Positive safe integer; 1 runs sequentially |
TAKT_ALLOY_HEAP |
4g |
Positive integer followed by lowercase k, m, or g |
TAKT_ALLOY_STACK |
64m |
Positive integer followed by lowercase k, m, or g |
Only unset values use defaults; empty or invalid values produce an error naming the variable. Settings stay fixed for one verification. All Alloy JVM launches, including command enumeration, receive -Xmx4g -Xss64m by default. Overrides replace the defaults without duplicate arguments.
TAKT_ALLOY_CONCURRENCY=1 TAKT_ALLOY_HEAP=2g TAKT_ALLOY_STACK=128m takt
If memory is limited, lower the heap limit or set concurrency to 1. Use these TAKT-specific settings to change the JVM arguments instead of relying on JAVA_TOOL_OPTIONS alone.
assistant.formal_spec.model_check_timeout_seconds applies separately to each Alloy command (default: 900 seconds). There is no overall timeout; failures and timeouts do not prevent the remaining commands from running. A free slot starts the next command immediately. Each command result identifies a timeout with timedOut: true.
Failed, errored, or timed-out verification retains specifications and logs under .takt/runs/verify-*/ and reports the directory in the result message. Retained directories are excluded from automatic cleanup; remove them manually when no longer needed. Successful verification artifacts are deleted after result interpretation.
If writing the retention marker fails, TAKT moves the ownership marker to the retention marker and reports the directory and write error. If the move also fails, TAKT leaves the ownership marker in place and reports that retention could not be confirmed, together with the directory and both errors. The remaining ownership marker protects the directory from automatic cleanup even after the owner Node process exits. Copy any needed artifacts manually.
Disabled by default. An explicit project value, including false, overrides global; if the project value is absent, the global value applies. Unauthorized command inputs fail during workflow loading. This permission is independent of workflow_command_gates.custom_scripts.
workflow_system_commands:
custom_scripts: true
TAKT_WORKFLOW_SYSTEM_COMMANDS_CUSTOM_SCRIPTS=true
This environment variable overrides both project and global settings; false denies permission even when the project setting is true.
A separate clone uses the original project configuration. Each run resolves permission once and passes it to root and child workflows; wait does not reload configuration.
When a pipeline or interactive session checks out a PR in the current directory, it resolves permission before switching branches. The interactive session retains that permission for the directory, including after switching to an Issue. A project setting added by the PR alone does not grant permission.
A task with worktree: true runs in a clone without an origin remote, so gh and glab cannot find the repository from git remotes there. A workflow that declares repository_identity: true has TAKT read the project root’s origin and name the repository for its agent steps, command quality gates, and system command inputs. Without that declaration nothing is named, so a workflow that does not operate on the repository is left alone:
GH_REPO=HOST/OWNER/REPO. The host is always named, github.com included, because gh’s default host is not necessarily github.com. When GH_ENTERPRISE_TOKEN or GITHUB_ENTERPRISE_TOKEN is set, a GitHub Enterprise Server host is named only if GH_HOST names the same host, so that token is not aimed at a host the caller did not configure for it.GITLAB_REPO=SCHEME://HOST/GROUP/.../PROJECT, where the scheme is the origin’s (http stays http; an ssh origin gives https). When GITLAB_TOKEN, GITLAB_ACCESS_TOKEN, OAUTH_TOKEN, or JOB_TOKEN is set, GITLAB_REPO is added only if GITLAB_HOST (or GITLAB_URI / GL_HOST) names the same scheme, host, and effective port (80 for http, 443 for https; a value without a scheme is read as https), so that TAKT never names a host other than the one configured for the token. This compares the environment only: glab takes the protocol and the API host from its own configuration (api_protocol, api_host), not from the scheme in these variables, and TAKT cannot see that configuration.origin, and the host must be a plain DNS name (or a bracketed IPv6 address); anything else is ignored. If origin is a fork and you point gh at the upstream repository with gh repo set-default, TAKT does not read that choice (remote.<name>.gh-resolved) and would name the fork: set GH_REPO yourself, and it is passed on as is.A variable you already set is never overridden. No remote and no credential is added, and the URL’s user name or token is never used. Nothing is added for a workflow without repository_identity, for a task that runs in the project root, when origin is missing or not a recognised URL, or when the provider is unknown. System command inputs run without HOME, so gh / glab there still need their own authentication.
The provider is vcs_provider when set (project overrides global), otherwise detected from the origin hostname: github.com is GitHub and gitlab.com is GitLab. Any other host, such as GitHub Enterprise Cloud under *.ghe.com, GitHub Enterprise Server, or a self-hosted GitLab, is not detected; set vcs_provider for it. If the origin host does not serve the web or the API, such as an ssh-only host (ssh.github.com, altssh.gitlab.com) or an alias from ~/.ssh/config (github.com-work), setting vcs_provider does not give a correct value either: set GH_REPO / GITLAB_REPO yourself, which is passed on as is (see above).
Most config keys can be overridden with an environment variable named TAKT_ plus the config key path, uppercased and joined with underscores: logging.debug becomes TAKT_LOGGING_DEBUG, telemetry.routing_decisions becomes TAKT_TELEMETRY_ROUTING_DECISIONS. Common examples: TAKT_PROVIDER, TAKT_MODEL, TAKT_CONCURRENCY, TAKT_LOGGING_DEBUG, TAKT_TELEMETRY_ROUTING_DECISIONS, TAKT_OBSERVABILITY_ENABLED. An environment value overrides the corresponding file value and is applied at the layer that owns the key: global-only keys (e.g. logging, disabled_builtins) resolve at the global ~/.takt/config.yaml layer, while project-overridable keys (e.g. concurrency, telemetry.routing_decisions) also resolve at the project .takt/config.yaml layer.
Separately from config-key overrides, TAKT_NOTIFY_WEBHOOK sets a Slack Incoming Webhook URL. When it is set, TAKT posts a Slack notification on pipeline completion and when a takt run task batch finishes (run summary). Enabled manager goal notifications use the same webhook.
Set project .takt/config.yaml manager.main_merge to approve (default) or auto. Both publish a PR on completion submission. With approve, manager enqueues preparation using takt_merge_goal_pr with until: prepare and waits for human merge. auto uses until: merge to prepare and merge, as does an explicit human merge instruction. Completion does not merge locally, and PR creation failures have no timed or counted automatic retries.
until: prepare uses merge.prepare_workflow, defaulting to merge-prepare. until: merge uses merge.workflow, defaulting to merge-review-fix-simple; manager does not select a workflow name. merge.prepare_workflow applies only to this manager operation and does not change workflow selection for takt merge. merge.auto_start controls startup after ordinary task PR publication. Manager explicitly enqueues goal PR merge tasks.
Set manager.preserve_goal_worktree: true in project .takt/config.yaml or global ~/.takt/config.yaml to retain a goal task worktree after manager successfully integrates its result with takt_merge_goal_task. The project value overrides the global value. This applies both when the reviewed result was already included and when the operation performs a new merge.
manager:
preserve_goal_worktree: true
The worktree, its clone metadata, and its .takt/runs reports and logs remain in place. Completed task records also remain; no task-history cleanup is added. The default false keeps the existing worktree and clone-metadata cleanup, including cleanupWarning behavior. This setting does not change ordinary completeTask cleanup, manual merge or deletion from List Tasks, PR merge tasks, or unintegrated tasks.
Set manager.workflows in global ~/.takt/config.yaml or project .takt/config.yaml to choose the workflows manager may use for new development tasks. A project value replaces the entire global list. Each entry is a name or a single { name: usage description } pair, using the same notation as workflow_categories.workflows.
manager:
workflows:
- default: Development across responsibilities or user flows that needs multiple review perspectives or adjudication.
- simple: Features and fixes with bounded impact that focused tests and one reviewer can cover.
- takt-default
When manager.workflows is omitted at both project and global scopes, the candidates are default and simple. Manager receives the usage descriptions above in English or their Japanese equivalents according to language and selects a workflow suited to the task. Explicit name-only entries have no usage description. Set workflows: all to allow all workflows, as before. Missing workflow names produce a warning when the manager conversation plan is created and are ignored; malformed entries, including blank names or objects with multiple keys, are rejected when configuration is loaded.
Manager’s takt_list_workflows returns only allowed candidates, with the workflow’s own description and an optional configured usageDescription. New submissions through takt_enqueue_goal_task are rejected by the tool if the workflow is outside this selection; the error lists allowed candidates and configuration paths. Existing tasks can still resume, requeue or retry with their saved workflow. PR finishing through takt_merge_goal_pr (merge.prepare_workflow or merge.workflow) is outside this restriction, as are child workflow_call targets, non-manager MCP servers and manual CLI use. Workspace managers apply each assigned repository’s selection when listing or submitting its tasks.
Set manager.runtime_assignments in global ~/.takt/config.yaml or project .takt/config.yaml to list the runtime assignments manager may choose for each task. A project value replaces the entire global list. Each entry is a name or a single { name: usage description } pair; all is not supported.
manager:
runtime_assignments:
- slow: Tasks of a goal that is not urgent and may take longer to finish.
- fast
When manager.runtime_assignments is omitted at both project and global scopes, the candidates are empty and manager cannot specify a runtime assignment. Names refer to assignments defined in provider.assignments of runtime.yaml. A name that is not defined produces a warning when the manager conversation plan is created and is ignored.
Manager reads the candidates and their usage descriptions with takt_list_runtime_assignments and passes a name as runtimeAssignment to takt_enqueue_goal_task. A name outside the candidates produces an error. The name is saved on the task as runtime_assignment; requeue and retry use it unless a replacement is specified. Starting a run with --runtime-assignment overrides the task’s saved value.
Resubmitting an existing task to takt_enqueue_goal_task with a different valid candidate name does not change its saved value. The tool validates the name and returns the existing task without creating a new one.
If a name is removed from provider.assignments in runtime.yaml, a task that saved that name cannot run using the saved value.
For a goal task, the pre-run provider check skips the task, and the task becomes failed when claimed for execution. Other tasks are not affected. For a task without a goal, the pre-run provider check stops before any task starts while that task remains pending, so other pending tasks in the project do not run either.
Recovery options are:
runtime.yaml.--runtime-assignment set to a valid name defined in runtime.yaml. This applies only to that invocation and does not repair the task’s saved runtime_assignment.takt_remove_goal_task, then have manager enqueue it again with a valid name in takt_enqueue_goal_task’s runtimeAssignment.A goal task already marked failed does not run again automatically when the name is restored or a CLI override is supplied. Return it to pending with takt_retry_goal_task, then start a run.
When manager.auto_run is enabled (the default), retry also starts an automatic run. That run claims tasks without --runtime-assignment, so disable manager.auto_run before retrying if you plan to recover with a CLI override.
Disabling manager.auto_run does not stop an active run, which continues claiming pending tasks without the override. Stop any active run or wait for it to finish before retrying.
For recovery option 3, resume a paused goal (executionStatus: paused) before enqueueing again. takt_enqueue_goal_task, retry, and requeue reject paused goals. Use takt_resume_goal, or press Ctrl+G in the TUI and select the goal to resume.
Except on the merge-task and unintegrated-completed-result paths, takt_remove_goal_task deletes the worktree without checking for uncommitted changes. Inspect the worktree and save any needed changes before removal. Re-enqueueing does not restore deleted changes.
A pending task can be removed only while the goal status is created. A PR merge task can also be removed while the goal is awaiting_merge. A running task cannot be removed.
When a goal task returns to pending, pass runtimeAssignment to takt_retry_goal_task or takt_requeue_goal_task to save a different name. Removing and re-enqueueing the task can also change it.
Without runtimeAssignment, requeue and retry keep the saved value. A failed goal task returned to pending with the same missing name becomes failed again when claimed. Additional instructions through takt_tell_run apply only to running tasks and do not change the saved value. Check available candidates with takt_list_runtime_assignments.
If provider.defaults.assignment or provider.directories in runtime.yaml refers to a name missing from provider.assignments, resolving that reference fails. Neither a CLI override nor removing and re-enqueueing the task bypasses it. Fix these references to valid names before trying recovery.
Set these in project .takt/config.yaml or global ~/.takt/config.yaml:
manager:
permission: full
provider_permissions:
claude: auto
manager.permission accepts auto (default) or full. manager.provider_permissions
maps provider names to the same values and defaults to an empty map. The example
uses AI review for Claude and full permissions for other providers.
Resolution order is project provider override → global provider override → project
permission → global permission → auto. Lookup uses the provider actually
resolved for the manager turn. claude and claude-sdk are aliases; within one
scope, an exact provider key wins if both are present. Repository managers use
their repository configuration. Workspace managers use the first registered
repository’s configuration, or their workspace directory when no repository is
registered, matching other manager settings such as auto_run.
claude / claude-sdk): auto uses SDK permissionMode: auto
without permission bypass. The classifier allows or denies tool calls.
full uses bypassPermissions as before.auto uses workspace-write, approvalPolicy: on-request, and
approvals_reviewer = "auto_review". Network access is enabled for commands
such as gh. AI review can approve escalation requests without a person
present. full retains danger-full-access and approvalPolicy: never.auto behaves like full because they do not provide
this AI permission review mechanism.Manager MCP tools retain their existing approval allowlists and can be used without confirmation in either mode. Operations denied by AI review are returned to the manager as tool results. TAKT does not automatically turn these denials into human questions. These settings apply to manager turns only; workflow step and run permissions are unchanged.
In a conversation thread, send /make-goal to create a proposal. Use Register goal or Return to conversation without registering; buttons on an outdated proposal no longer work.
Use Slack Socket Mode to talk to manager without exposing a public URL. Conversation replies and answers to inquiries use the Slack App below. Completion notices and other notifications continue to use the Incoming Webhook configured by TAKT_NOTIFY_WEBHOOK; you can use both together.
In Slack’s app creation screen, choose From an app manifest, select your workspace, and paste this YAML:
display_information:
name: TAKT manager
features:
bot_user:
display_name: TAKT manager
always_online: true
oauth_config:
scopes:
bot:
- chat:write
- channels:history
- groups:history
settings:
event_subscriptions:
bot_events:
- message.channels
- message.groups
interactivity:
is_enabled: true
socket_mode_enabled: true
xoxb-…).connections:write scope and copy it (xapp-…)./invite @TAKT manager.In the repository’s .takt/config.yaml, choose one channel and list the Slack users allowed to send messages and use buttons:
manager:
slack:
channel_id: C0123ABCD
allowed_user_ids: [U0AAAAAA]
manager.slack is available only in repository configuration, not global ~/.takt/config.yaml. Do not put tokens under manager.slack: configuration validation rejects token fields.
The repository’s .takt/config.yaml may be version-controlled and shared. Changes to manager.slack.allowed_user_ids change which Slack users can send input to manager. Before starting the daemon, review changes to the repository configuration and use only settings you trust.
Slack settings and the registered repository list are loaded when the daemon starts. After changing them, run takt daemon stop and start the daemon again to apply the changes, including removal of allowed users.
Set both tokens in the shell that starts the daemon, then start it through takt manager or takt daemon. For example:
export TAKT_SLACK_APP_TOKEN='xapp-...'
export TAKT_SLACK_BOT_TOKEN='xoxb-...'
takt manager
TAKT_SLACK_APP_TOKEN is the App-Level Token with connections:write; TAKT_SLACK_BOT_TOKEN is the bot token. After reading them, the daemon removes both variables from its environment so provider and tool subprocesses do not inherit them. takt manager and takt director start the dedicated daemon when needed. After changing tokens or Slack settings, stop it with takt daemon stop and start it again.
The daemon does not exit automatically while Slack reception is active or when started with takt daemon --resident. Stop it with takt daemon stop or a signal such as SIGTERM. Slack configuration or tokens alone do not keep it running; reception must actually be active.
With an ordinary startup and no active Slack reception, the daemon exits automatically once all of the following are absent:
status is not completed and whose executionStatus is not abortedpending or running tasks, and undelivered inquiry answersThe daemon waits for project inspection to finish and checks the conditions again. It also stays running when a goal cannot be read and its completion cannot be confirmed. TUI admission and observation are available while the daemon is running, even without Slack configuration or tokens. See the CLI reference for resident startup.
If two repositories configure the same channel, Slack is disabled for both. Startup, shutdown, and diagnostics are saved asynchronously under ~/.takt/daemon-logs/*.json.
Waiting input survives restart. Non-human events interrupted by daemon shutdown or restart are redelivered in their original acceptance order. Explicitly interrupted turns are not redelivered; interrupted human messages retain their existing carry-forward behavior. The current Slack integration may not restore reply destinations after a daemon restart.
The Slack ACK acknowledges transport receipt. The daemon reports acceptance after durably saving the input. Results arrive later in the originating thread.
allowed_user_ids receive no response.slack.Ctrl+R in the TUI for inquiries predating the connection. An unreadable inquiry binding rejects the reply without redirecting it into the conversation.TAKT_NOTIFY_WEBHOOK.Configure the director channel and permitted users in global ~/.takt/config.yaml, not project .takt/config.yaml:
# ~/.takt/config.yaml
director:
slack:
channel_id: C0DIR
allowed_user_ids: [U0AAA]
Use the same Slack App and TAKT_SLACK_APP_TOKEN / TAKT_SLACK_BOT_TOKEN environment variables as manager. Follow Create the Slack App, invite the bot to the director channel, and set both variables in the shell that starts takt daemon. Tokens belong in environment variables, not configuration files. Restart the daemon after changing Slack settings.
Messages from permitted users in the director channel go to the director conversation, not manager. Director replies in the original post’s thread. Messages from users outside director.slack.allowed_user_ids are ignored. If manager uses the same channel, ordinary messages still go to director; manager inquiry buttons use manager.slack.allowed_user_ids.
Director registration and inquiry buttons also use director.slack.allowed_user_ids. Clicking “Register goal” outside that list does not register a goal. See Using director for one-confirmation registration, question routing, and the Slack features outside this scope.
Director groups new notices from one turn into one post in this channel, covering completed work and decisions needed from a person, such as merge approval and unanswered inquiries. Notices suppressed by the existing duplicate check are not posted again. Without director.slack, director neither posts to nor accepts messages from Slack. Both token variables are required to connect. This does not change the existing TAKT_NOTIFY_WEBHOOK notification path.
manager.sensitive_paths and provider.targets.internal_agents.manager-permission-judge are deprecated and ignored. Existing configurations continue to load. Neither setting protects files or changes tool execution. Manager follows its facets for human instructions and secret handling; permission Markdown is no longer read.
Use manager.notifications in project .takt/config.yaml or global
~/.takt/config.yaml to enable or disable each kind of goal notification.
| Setting key | Event | Default |
|---|---|---|
question |
A question is saved | true |
awaiting_merge |
A goal awaits a human merge | true |
completed |
A goal is completed | true |
progress |
A work unit is integrated | true |
blocked |
The manager reports a blocker through the notification tool, or event handling or TUI conversation fails | true |
custom |
The manager reports another event through the notification tool | true |
manager:
notifications:
question: true
awaiting_merge: true
completed: true
progress: false
blocked: true
custom: true
Each kind resolves independently in this order: project setting → global setting →
true. An explicit false takes precedence too. For example, project
question: true overrides global question: false; omitting that key in the
project uses the global value. Settings for other kinds are unaffected.
Setting a kind to false disables saving, TUI notification display and Slack delivery for that kind. Answering questions, integrating results and updating goals continue, and pending questions remain visible.
Set TAKT_NOTIFY_WEBHOOK to deliver notifications to Slack. Enabled saved notifications refresh while the TUI is open. Failed manager event handling or TUI conversation sends blocked, including repeated failures. No failure-state file is created. Slack delivery failures are logged and manager work continues. These settings do not affect ordinary run or pipeline notifications.
TAKT supports Claude, Codex, OpenCode, Pi, the official DeepSeek Harness SDK, Cursor, Copilot, Kiro, and Devin providers. Claude/Codex/OpenCode use their SDK credentials, Pi uses the Pi SDK credential store or provider environment variables, DeepSeek Harness uses the official credential store ($DSH_HOME/.credentials.yaml, default ~/.dsh/.credentials.yaml) or the DEEPSEEK_API_KEY environment variable, Kiro uses an API key, Cursor can use either API key or existing cursor-agent login session, and Copilot uses a GitHub token.
The global configuration schema also retains API-key fields for some legacy or provider integrations that are not currently selectable as top-level providers. These fields do not activate a provider by themselves; use the authentication variables and keys documented for the selected provider below.
# For Claude (Anthropic)
export TAKT_ANTHROPIC_API_KEY=sk-ant-...
# For Codex (OpenAI)
export TAKT_OPENAI_API_KEY=sk-...
# For OpenCode
export TAKT_OPENCODE_API_KEY=...
# For Pi
# Use the Pi SDK credential store or provider-native environment variables
# For the official DeepSeek Harness TypeScript SDK
export DEEPSEEK_API_KEY=...
# Optional: export DEEPSEEK_BASE_URL=https://...
# For Cursor Agent (optional if cursor-agent login session exists)
export TAKT_CURSOR_API_KEY=...
# For GitHub Copilot CLI
export TAKT_COPILOT_GITHUB_TOKEN=ghp_...
# For Kiro CLI (`KIRO_API_KEY` is also accepted if TAKT_KIRO_API_KEY and kiro_api_key are unset)
export TAKT_KIRO_API_KEY=...
# ~/.takt/config.yaml
anthropic_api_key: sk-ant-... # For Claude
openai_api_key: sk-... # For Codex
opencode_api_key: ... # For OpenCode
cursor_api_key: ... # For Cursor Agent (optional)
copilot_github_token: ghp_... # For GitHub Copilot CLI
kiro_api_key: ... # For Kiro CLI
Environment variables take precedence over config.yaml settings.
| Provider | Environment Variable | Config Key |
|---|---|---|
| Claude (Anthropic) | TAKT_ANTHROPIC_API_KEY |
anthropic_api_key |
| Codex (OpenAI) | TAKT_OPENAI_API_KEY |
openai_api_key |
| OpenCode | TAKT_OPENCODE_API_KEY |
opencode_api_key |
| Pi | Pi SDK credential store or provider-native environment variables | - |
| DeepSeek Harness | Official store $DSH_HOME/.credentials.yaml (default ~/.dsh/.credentials.yaml) or DEEPSEEK_API_KEY (optional DEEPSEEK_BASE_URL) |
- |
| Cursor Agent | TAKT_CURSOR_API_KEY |
cursor_api_key |
| GitHub Copilot CLI | TAKT_COPILOT_GITHUB_TOKEN |
copilot_github_token |
| Kiro CLI | TAKT_KIRO_API_KEY (KIRO_API_KEY fallback) |
kiro_api_key |
| Devin CLI | devin auth login credential store |
- |
config.yaml, be careful not to commit this file to Git.~/.takt/config.yaml to your global .gitignore if needed.cursor-agent login is already configured.takt install deepseek-harness and supports Linux x64/arm64 with glibc >= 2.28 and macOS arm64 >= 14.0.copilot CLI to be installed. The GitHub token is used for authentication.kiro-cli CLI to be installed. TAKT_KIRO_API_KEY / kiro_api_key is passed to the child process as KIRO_API_KEY; if neither is set, TAKT uses the official KIRO_API_KEY environment variable.devin CLI to be installed and authenticated with devin auth login; TAKT passes no credentials to the child process beyond WINDSURF_API_KEY, which is forwarded to the Devin child environment when set.You can override provider CLI binary paths using environment variables or config:
export TAKT_CLAUDE_CLI_PATH=/usr/local/bin/claude
export TAKT_CODEX_CLI_PATH=/usr/local/bin/codex
export TAKT_CURSOR_CLI_PATH=/usr/local/bin/cursor-agent
export TAKT_COPILOT_CLI_PATH=/usr/local/bin/github-copilot-cli
export TAKT_KIRO_CLI_PATH=/usr/local/bin/kiro-cli
export TAKT_DEVIN_CLI_PATH=/usr/local/bin/devin
# ~/.takt/config.yaml
claude_cli_path: /usr/local/bin/claude
codex_cli_path: /usr/local/bin/codex
cursor_cli_path: /usr/local/bin/cursor-agent
copilot_cli_path: /usr/local/bin/github-copilot-cli
kiro_cli_path: /usr/local/bin/kiro-cli
devin_cli_path: /usr/local/bin/devin
| Provider | Environment Variable | Config Key |
|---|---|---|
| Claude | TAKT_CLAUDE_CLI_PATH |
claude_cli_path |
| Codex | TAKT_CODEX_CLI_PATH |
codex_cli_path |
| Cursor Agent | TAKT_CURSOR_CLI_PATH |
cursor_cli_path |
| Copilot | TAKT_COPILOT_CLI_PATH |
copilot_cli_path |
| Kiro CLI | TAKT_KIRO_CLI_PATH |
kiro_cli_path |
| Devin CLI | TAKT_DEVIN_CLI_PATH |
devin_cli_path |
Paths must be absolute paths to executable files. Environment variables take precedence over config file values. CLI path overrides are global-only config values; set them in ~/.takt/config.yaml or the corresponding environment variable, not project-level .takt/config.yaml.
In runtime mode, select the provider and model in runtime.yaml; CLI and environment overrides remain available. In legacy mode, the config.yaml provider, model, and routing settings described below remain supported. Workflow YAML cannot select a provider or model; provider, model, and inline provider options fail during loading with a migration hint.
Claude Code supports aliases (opus, sonnet, haiku, opusplan, default) and full model names (e.g., claude-sonnet-4-5-20250929). For claude-sdk and its claude alias, TAKT passes model through the Agent SDK model option. For claude-headless and claude-terminal, it passes the value through the CLI --model argument. Refer to the Claude Code documentation for available models.
Codex uses the model string as-is via the Codex SDK. If unspecified, defaults to codex. Refer to Codex documentation for available models.
OpenCode explicit model values must use provider/model format (e.g., opencode/big-pickle). Workflows require an explicit model unless resolution discards a model whose recorded provider owner differs from the selected OpenCode provider. Only in that mismatch case does TAKT ask the selected OpenCode runtime to resolve its default. Non-workflow configuration still requires an explicit model.
Pi accepts provider/model references and bare model IDs that uniquely match a configured Pi model. References are split only at /, so provider/model:high uses model:high as a literal model ID. Configure thinking level with provider_options.pi.thinking_level or TAKT_PROVIDER_OPTIONS_PI_THINKING_LEVEL; if omitted, Pi uses the SDK default medium. An explicitly configured level is applied on every Pi turn. If the model is omitted, TAKT keeps the Pi session’s current model.
Cursor Agent forwards model directly to cursor-agent --model <model>. If omitted, Cursor CLI default is used.
GitHub Copilot CLI forwards model directly to copilot --model <model>. If omitted, Copilot CLI default is used.
Kiro CLI forwards model directly to kiro-cli chat --model <model>. If omitted, Kiro CLI default is used. The Kiro provider requires Kiro CLI 3.5.0 or later. TAKT always runs the V3 engine (kiro-cli chat --no-interactive --agent-engine v3), and sessions use the sess_<uuid> V3 identifiers. provider_options.kiro.mode selects the V3 mode (default or spec); an explicit provider_options.kiro.agent takes precedence, and for new sessions a chat.defaultAgent configured in Kiro also wins over --mode. In non-interactive runs, Kiro loads the working folder’s workspace .kiro hooks, agents, and MCP server configuration regardless of workspace trust. This includes readonly runs: hooks and MCP server commands still execute, and permissions.yaml cannot block them because no capability covers hook or MCP server startup (see Kiro’s workspace trust documentation). Use Kiro through TAKT only in repositories whose .kiro contents you trust.
Kiro CLI permissions. TAKT maps the resolved permission mode to --trust-tools. readonly trusts only the read and search tools. edit also trusts the file-write and shell tools. full passes --trust-all-tools. The provider profiles default every step to edit, including steps declared with edit: false such as plan. To run those steps read-only, set provider_profiles.kiro.step_permission_overrides (for example plan: readonly). Selector calls for dynamic parallel, dynamic_facets, and Companion pools do not inherit step or persona provider_options, so provider_options.kiro.agent does not apply to them. Without an agent they run under Kiro’s default agent and model in readonly mode. To launch them with your agent, set takt_providers.selector.provider_options.kiro.agent. TAKT runs Kiro headless, so when a workspace hook answers ask, nobody can approve it. In readonly and edit mode the tool call does not run, and the model is told the confirmation got no answer. In full mode --trust-all-tools approves the request automatically. Make hooks for TAKT return a final allow or deny.
Devin CLI passes model to devin acp --model <model> (for example swe-2-max, swe-2-high, swe-2-medium); the ACP session resolves the name into its model and thought_level options, and a name that cannot be resolved or applied fails fast instead of silently falling back. This validation applies to new sessions; a resumed session keeps the model it was created with and does not re-resolve the requested name. If omitted, the default model configured in the user’s Devin config is used.
# ~/.takt/config.yaml
provider: claude-sdk
model: opus # Default model for all steps (unless overridden)
Workflow promotion entries only advance the target ladder selected in
runtime.yaml; they cannot contain provider, model, provider-options, or
condition fields. capabilities remains the workflow-level way to request
tool, network, sandbox, or skill abilities without choosing the runtime.
The OpenCode provider starts a private server with opencode serve and connects through the SDK. Install the OpenCode v2 CLI and run takt install opencode to install the SDK. Server startup and basic prompt and tool calls were verified with CLI 2.0.18 and client/plugin 2.2.5. TAKT checks the CLI major version before startup. Use TAKT_OPENCODE_PATH to select a different executable. It defaults to opencode on PATH. Restart TAKT after changing the executable.
In v2, the bundled plugin applies tool permissions. If the plugin is unavailable, TAKT errors before running. The tool list and permitted MCP settings you configure are used for execution. Structured output is validated against a schema after the response.
OpenCode managers read isolated clones by matching goal_id, branch, and worktree_path in each assigned repository’s .takt/tasks.yaml with a saved goal and the branch/clonePath metadata under .takt/clone-meta/ in that repository. This includes logs and reports under .takt/runs/<run> in the clone, including completed and failed tasks. Each permission evaluation reads the current saved associations, so clone creation and association removal take effect during the same conversation. Unassigned external clones and unrelated external directories remain denied. Path names or approval in conversation do not establish ownership, and no additional setting is required.
File tools cannot edit or create files in assigned clones, including clones inside a writable workspace. This includes clones left behind after their task records are removed. Ordinary manager calls retain bash access. Calls with configured read-only directories continue to disable the shell tool. Ordinary workspace file editing and read-only /verify calls retain their permissions. If the .takt/clone-meta/ inventory reports an unknown clone path (hasUnknownPath), fail-closed checks also deny edits to files below the workspace root; regular files directly under the workspace root remain editable. Runs in clones retain their existing access to external TAKT context directories.
These ownership checks apply to OpenCode’s file and search tools and external_directory requests. When Bash is available, shell commands can still access unassigned clones and other paths; TAKT does not restrict that access at the OS level.
Set provider_options.opencode.readonly_directories in the global ~/.takt/config.yaml or project .takt/config.yaml to allow OpenCode to read selected external directories in manager and workflow calls. Values must be absolute paths to existing directories. Other external directories remain denied, and the listed directories stay read-only even when the call can edit its workspace. OpenCode’s shell tool is disabled for calls with this setting so shell commands cannot write through an allowed external-directory path; file editing in the workspace remains available.
provider_options:
opencode:
readonly_directories:
- /path/to/reference
Environment Skills are disabled by default in v2. Set the boolean provider_options.opencode.skills.enabled: true in legacy global/project configuration, a routing entry, or a workflow/step capability file to enable native Skill discovery and permissions in Phase 1. Read permission alone does not enable Skills. TAKT does not force native allow, deny, or ask to allow, and does not modify OpenCode configuration or Skill files.
# Legacy ~/.takt/config.yaml or .takt/config.yaml
provider_options:
opencode:
skills:
enabled: true
Legacy provider_routing also supports persona, tag, and step entries. The following entries are alternatives; keep those you need.
provider_routing:
personas:
coder: { provider: opencode, provider_options: { opencode: { skills: { enabled: true } } } }
tags:
coding: { provider: opencode, provider_options: { opencode: { skills: { enabled: true } } } }
steps:
implement: { provider: opencode, provider_options: { opencode: { skills: { enabled: true } } } }
In runtime mode, put skills.enabled in the OpenCode profile’s options and select that profile for the desired persona, tag, or step. The following targets are alternatives; keep those you need.
version: 1
provider:
profiles:
default: { provider: opencode, model: opencode/big-pickle, options: { skills: { enabled: false } } }
coder: { provider: opencode, model: opencode/big-pickle, options: { skills: { enabled: true } } }
defaults: { profile: default }
targets:
personas:
coder: { profile: coder }
tags:
coding: { profile: coder }
steps:
development-implement/implement: { profile: coder }
You can also set TAKT_PROVIDER_OPTIONS_OPENCODE_SKILLS_ENABLED=true or use TAKT_PROVIDER_OPTIONS JSON. The Skill tool is available only in enabled Phase 1 calls. Reports, status judgments, and read-only calls disable it; retry and resume retain the configured setting. This option does not apply to v1.
With OpenCode CLI 2.0.18, a session that enabled Skills in Phase 1 may keep a saved <available_skills> list in later model input even after the Skill tool is disabled. Enable Skills only for steps that need them.
For v2 MCP servers, TAKT waits up to 30 seconds for allowed tools to register. A server without a tool limit must register at least one tool.
runtime.yaml keeps provider/model/options out of your workflows so the same workflow can run in different execution environments without edits. It is read from two fixed paths, with the project file taking priority over the global one:
~/.takt/runtime.yaml<project>/.takt/runtime.yamlCompanion reviewers are disabled by default. Enable them with the top-level
companion.enabled policy:
version: 1
companion:
enabled: true
review_mode: completion # completion | live
fix_policy: single # single | loop
The companion policy must specify at least one of enabled, review_mode, or fix_policy.
A mode-only or fix-policy-only policy such as companion: { review_mode: live } or
companion: { fix_policy: loop } is accepted and resolves to enabled: false;
an empty companion: {} policy is rejected.
When both global and project policies are specified, their enabled values are combined
with logical AND; a project value of true cannot re-enable a globally disabled
companion. An omitted policy is neutral during layer merging, and Companion
remains disabled when neither layer specifies one.
companion.review_mode defaults to completion. The project value overrides the
global value, and a project omission inherits the global value. completion
reviews the cumulative diff after a successful implementer response; live
preserves quiet, forced, and commit-triggered reviews during the response. Only
completion and live are accepted, and invalid values fail while loading
runtime.yaml. The mode and fix policy are validated even when companion.enabled
is false, but no Companion provider is resolved or executed in that case.
companion.fix_policy defaults to single. The project value overrides the
global value, and a project omission inherits the global value. single performs
at most one advisory fix follow-up after the initial review and does not re-review
the follow-up; loop preserves the repeated review-and-fix behavior. Only single
and loop are accepted, and invalid values fail while loading runtime.yaml.
Companion provider targets (targets.companions) and provider capability
requirements apply only while companions are enabled. When disabled, companion
declarations and the structural validation of targets.companions remain in
place, but no companion provider is resolved or executed — a workflow that
declares companions runs without any companion provider configuration.
Loop analysis is opt-in. Add the top-level loop_analysis section to analyze
completed runs after their terminal artifacts have been finalized:
version: 1
loop_analysis:
enabled: true
output: file # file | pr-comment; defaults to file
When enabled, analysis starts after a successful, failed, or interrupted run ends. The source run does not wait for it, and analysis failure does not change the source result. If the process is forcibly stopped just after the run ends, analysis may not start.
Analysis reads logs, traces, reports, and workflow definitions to identify repeated problems and suggest improvements. Find the result in the analysis run’s reports/loop-analysis.md. A complete copy is saved under loop-analysis/ in TAKT_CONFIG_DIR (or ~/.takt by default). Recognized secrets, local paths, and similar details are removed from the published report.
With output: pr-comment, TAKT comments on an existing PR when auto-PR was enabled for the source run. Without a PR, the report remains in files. Assign the analysis provider with the usual runtime.yaml target. If both global and project files set loop_analysis, the project section takes precedence.
Runtime mode is enabled by the presence of an active provider section, not by the file existing. A file that only contains version: 1 is inactive and leaves the legacy config.yaml provider resolution in place.
version: 1
provider:
defaults:
profile: sol-medium
profiles:
sol-high:
provider: codex
model: gpt-5.6-sol
options:
reasoning_effort: high
sol-medium:
provider: codex
model: gpt-5.6-sol
options:
reasoning_effort: medium
sol-low:
provider: codex
model: gpt-5.6-sol
options:
reasoning_effort: low
router:
provider: codex
model: gpt-5.6-luna
capabilities: readonly
permission_mode: readonly
options:
reasoning_effort: high
targets:
personas:
coder:
profile: sol-medium
tags:
high-stakes:
profile: sol-high
steps:
default/supervise:
profile: sol-high
default/implement:
pool: sol-pool
internal_agents:
selector:
profile: router
review-completion-judge:
profile: router
auto_routing:
strategy: balanced
router_profile: router
pools:
sol-pool:
candidates:
- profile: sol-high
tier: high
- profile: sol-medium
tier: medium
- profile: sol-low
tier: low
fallback_profile: sol-high
provider.assignments defines named provider configuration sets that can be selected for a
project directory, with --runtime-assignment <name>, or as the default. Each entry must contain defaults or targets; an empty assignment is not
valid. An assignment’s defaults must choose exactly one
of profile or ladder. targets has the same shape as top-level provider.targets:
personas, tags, and steps may use profile, pool, or ladder; internal_agents may use
profile or ladder, while companions may use only a fixed profile.
Set provider.defaults: { assignment: project-sol } to select a named assignment by default.
Top-level defaults must specify exactly one of profile, ladder, or assignment; assignment
defaults accept only profile or ladder and cannot refer to another assignment. Assignments are selected
in this order: CLI, the task’s saved runtime_assignment (when executing a task), a matching directory,
then the default assignment. Project defaults replace global defaults
wholesale. An unknown assignment or profile, conflicting or empty defaults, or a selected assignment
without concrete defaults when top-level defaults names an assignment fails before an agent starts.
When top-level defaults specifies a profile or ladder, an assignment may omit defaults and inherit it.
provider.directories maps a directory path to an assignment name. The lookup target is the
startup project directory. Keys expand ~, become absolute, and then receive realpath-equivalent
normalization for existing paths before exact comparison. Prefix matching and globs are not used.
An unknown assignment name in this map fails fast while loading. When a directory matches, the
assignment’s defaults are used; if omitted, a top-level profile or ladder is used. If the
assignment has targets, it replaces the entire top-level provider.targets map; individual
target maps are not merged. An assignment that omits targets keeps the top-level
provider.targets. profiles and auto_routing remain shared.
provider:
assignments:
project-sol:
defaults:
profile: sol-medium
targets:
personas:
coder:
profile: sol-medium
steps:
default/implement:
pool: sol-pool
directories:
~/work/example: project-sol
Across global and project layers, assignments follow the profile rule: a same-name project
entry replaces the global entry wholesale, while differently named entries coexist. For
directories, project wins when normalized keys are equal and otherwise both mappings remain.
These merges happen before directory assignment selection. Profile, pool, and ladder references
inside assignments are validated with the other runtime provider references and fail fast before
an agent runs.
--runtime-assignment <name> selects from provider.assignments after global and project
runtime files are merged. It takes precedence over a matching provider.directories entry.
The assignment is applied once to the merged top-level settings: omitted defaults inherit a
top-level profile or ladder, omitted targets inherit the top-level targets, and supplied targets replace the entire map. profiles,
auto_routing, mcp, companion, and loop_analysis stay shared. Existing --provider,
--model, and --auto-strategy overrides retain their priority above the selected settings.
Share profiles and cost/quality presets in the project’s .takt/runtime.yaml:
version: 1
provider:
profiles:
sol-high: { provider: codex, model: gpt-5.6-sol, options: { reasoning_effort: high } }
sol-medium: { provider: codex, model: gpt-5.6-sol, options: { reasoning_effort: medium } }
sol-low: { provider: codex, model: gpt-5.6-sol, options: { reasoning_effort: low } }
defaults: { profile: sol-medium }
targets:
personas:
reviewer: { profile: sol-high }
assignments:
cost:
defaults: { profile: sol-low }
targets:
personas:
reviewer: { profile: sol-medium }
quality:
defaults: { profile: sol-high }
takt --runtime-assignment cost "#123"
takt run --runtime-assignment quality
takt --pipeline --runtime-assignment cost "#123"
In this example, cost uses low effort by default and medium effort for the reviewer.
quality uses high effort by default and inherits the top-level reviewer target.
The option applies to interactive startup, direct execution, pipeline, run, watch, and
other subcommands. All tasks in one run, tasks added later to the same watch, internal
agents, and loop-analysis use the same selection. The --runtime-assignment selection is not written
to configuration files or to task records; this does not change. When manager supplies runtimeAssignment
to takt_enqueue_goal_task for a new task, or to takt_retry_goal_task or takt_requeue_goal_task
when returning a task to pending, the name is saved as runtime_assignment. When a run is started with
--runtime-assignment, that selection takes precedence over the task’s saved runtime_assignment.
Ordinary task execution still updates task status. Without --runtime-assignment, a task uses its saved runtime_assignment if present. Without a saved value either, the existing directory matching and top-level resolution apply.
An unknown name, missing assignments, or no active runtime provider section stops before any agent starts. The error includes the requested name and available assignment names, or states that none are defined. TAKT does not fall back to the directory or legacy settings.
A member can add a differently named assignment to their ~/.takt/runtime.yaml and select it
alongside project presets. For example:
version: 1
provider:
profiles:
personal-model: { provider: codex, model: gpt-5.6-sol, options: { reasoning_effort: medium } }
defaults: { profile: personal-model }
assignments:
personal:
defaults: { profile: personal-model }
takt run --runtime-assignment personal
Differently named profiles and assignments from both layers survive the merge; a same-name project entry replaces the global entry entirely.
Define named provider, model, and options combinations under provider.profiles. capabilities can name a provider-options preset, resolved project → global → builtin; a profile’s options take precedence. Add permission_mode if needed, or extends to inherit another profile. A project profile replaces a same-named global profile in full.
Set context_window: auto, a positive integer, or { initial: positive integer, auto_expand: boolean } beside provider and model in a profile. Omitted auto_expand means false; omitted context_window means auto. It is inherited through extends, and the selected profile supplies it through defaults, persona/tag/step targets, ladders, auto routing, and internal agents. It is not a workflow or config.yaml key. Providers without a context-window setting capability ignore it. The setting does not select a different model.
provider:
profiles:
reviewer: { provider: codex, model: gpt-6-luna, context_window: auto }
reviewer-fixed: { extends: reviewer, context_window: 500000 }
reviewer-expand: { extends: reviewer, context_window: { initial: 500000, auto_expand: true } }
defaults: { profile: reviewer }
For auto, TAKT estimates the assembled system and user instructions, native structured-output schema, and full policy/knowledge sources that the instruction explicitly requires the agent to read. Reports already included in the instruction are counted there; TAKT does not add them again. The initial requirement is ceil((fixed_tokens * 2 + 150000) * 1.2). This is a heuristic, not a tokenizer or a prediction of later tool use. It estimates ASCII at four characters per token, CJK at 0.75 tokens per character, and other non-ASCII at 0.5 tokens per character. The coefficients are rough, based on a Japanese-heavy Phase 1 observation; actual tokenization varies by model and content. Selection compares each stage’s effective capacity, keeps the model default if it fits, then considers 500000 and the confirmed maximum. Equal or smaller stages are skipped. A compaction event advances to the next larger stage for the next call or recovery in the same session, without restarting a completed response. Numeric settings are passed as fixed native overrides and are not auto-promoted.
Codex reads context_window, max_context_window, and effective_context_window_percent for the selected model from models_cache.json under the effective CODEX_HOME. It uses model_context_window from the base config and selected config_profile according to their precedence as the native default. If a project config contains that key, TAKT cannot determine whether Codex trusts the project, so auto does not override the native default. An object with an explicit initial still passes that value unchanged and can promote after compaction when the cache maximum is confirmed after checking every config layer. Unreadable or invalid configs, a custom model catalog, or missing model metadata prevent use of that maximum. OpenCode v2 exposes a configured limit.context in their model catalogs, but that value does not establish an expandable maximum. No confirmed maximum is currently registered, so auto keeps the native default without starting another server to inspect model metadata. Numeric settings and the object’s initial are passed unchanged to both providers’ native config. With auto_expand: true, the initial setting is unaffected by prompt estimates, then a compaction in the same session promotes it to the next confirmed stage. An unknown maximum or an initial value at or above the confirmed maximum prevents promotion. auto_expand: false or omission keeps it fixed like a numeric setting. The selected value and estimation reason are logged without logging prompt text.
provider remains required after inheritance. You may omit model for codex, claude, claude-sdk, claude-headless, claude-terminal, copilot, cursor, kiro, pi, deepseek-harness, and mock. A child profile inherits its parent’s model through extends; if no model remains after inheritance, TAKT delegates to the provider’s default model. It does not fill in a model from unselected defaults or another lower-priority profile. An explicit CLI --model or TAKT_MODEL environment variable takes precedence. OpenCode is the exception: it requires model in provider/model format.
provider:
profiles:
provider-default: { provider: codex }
defaults: { profile: provider-default }
To restrict an internal agent’s permissions, assign a profile with capabilities or permission_mode. Without either, normal provider settings apply.
provider.defaults is required in every active provider section and must choose exactly one of a fixed profile, an ordered ladder, or a named assignment. It cannot specify pool. Entries under provider.targets.personas, provider.targets.tags, and provider.targets.steps choose exactly one of a fixed profile, an ordered ladder, or an auto-routing pool; pool is valid only on these explicit workflow targets. internal_agents entries may use a fixed profile or an ordered ladder, but cannot use pool. companions entries must use a fixed profile and cannot use pool or ladder. Steps are named <leaf-workflow-name>/<step-name>; control nodes that do not run an agent (such as workflow_call) are not resolution targets.
Set pool on targets that should use auto routing. Other targets and operations outside workflows use provider.defaults. A selected pool uses its own fallback_profile.
A workflow agent’s provider is resolved by this ladder, later entries overriding earlier ones:
defaults
< personas
< tags
< steps
The internal selector, assistant, loop-judge and review-completion-judge agents resolve separately. selector chooses dynamic work, assistant backs interactive sessions, loop-judge evaluates loop monitors, and review-completion-judge decides whether an opted-in reviewer needs another pass. Configuration for each agent is optional; omitted entries use normal defaults. The retired manager-permission-judge setting is ignored.
defaults
< internal_agents.<agent>
When two targets at the same priority (for example two matching tags) assign different providers, resolution fails fast instead of picking one silently. Explicit --provider / --model on the command line are runtime overrides and are allowed in both legacy and runtime modes.
Auto routing candidates reference provider.profiles instead of repeating provider/model/options, and the router references a profile through router_profile. Pool, tier, and other routing metadata belong to provider.auto_routing. A parse/schema mismatch from the router or an unknown profile reference fails fast before any agent runs rather than being hidden behind a fallback.
Runtime and legacy provider settings must not be mixed. Move each legacy setting to its runtime destination:
| Legacy setting | Runtime destination |
|---|---|
provider / model |
a profile referenced by provider.defaults |
provider_options |
provider.profiles.*.options |
provider_routing.personas |
provider.targets.personas |
provider_routing.tags |
provider.targets.tags |
provider_routing.steps |
provider.targets.steps |
persona_providers |
provider.targets.personas |
takt_providers.selector / takt_providers.assistant |
provider.targets.internal_agents |
auto_routing |
provider.auto_routing |
| auto routing candidates | pool candidates that reference provider.profiles |
| workflow-level provider settings | provider.targets.steps |
If an active runtime.yaml provider section coexists with any legacy provider setting, TAKT stops before running an agent and reports each location together with its migration target:
Mixed provider configuration detected: an active runtime.yaml provider section cannot
coexist with legacy provider settings. Remove the runtime.yaml provider section or migrate
the following legacy settings:
- provider at config.yaml:provider (global) → migrate to provider.defaults + provider.profiles
- provider_routing at config.yaml:provider_routing → migrate to provider.targets
On first launch TAKT generates ~/.takt/runtime.yaml atomically and never overwrites an existing file; the project .takt/runtime.yaml is never generated automatically. A fresh environment is written with the selected provider/model as provider.profiles.default plus provider.defaults.profile: default. An environment that already has legacy provider settings receives only an inactive version: 1 file, so its behavior does not change until you migrate.
runtime.yamlThe mcp section in runtime.yaml defines MCP servers and assigns them to agents. It sits alongside provider at the top level and can be active without a provider section. In that case, provider/model resolution continues through legacy config.yaml while MCP servers are injected.
version: 1
mcp:
servers:
common-tools:
type: stdio
command: common-mcp-server
args: []
env:
API_TOKEN: "${COMMON_MCP_API_TOKEN}"
github:
type: http
url: https://api.githubcopilot.com/mcp/
headers:
Authorization: "Bearer ${GITHUB_TOKEN}"
defaults:
servers:
- common-tools
targets:
personas:
release-manager:
servers:
- github
tags:
github:
servers:
- github
steps:
release/create-pr:
servers:
- github
internal_agents:
selector:
exclude:
- common-tools
Use mcp.targets.personas.assistant for both normal and grill-me assistant conversations.
When the provider supports MCP, the assistant also gets its built-in read-only takt server.
A server that you define under the name takt is not passed to the assistant. The built-in takt server is used instead, and no notice is shown.
When the provider does not support MCP, the conversation continues without MCP and shows a notice.
For example, assign a configured Backlog MCP server as follows:
version: 1
mcp:
servers:
backlog:
type: stdio
command: backlog-mcp-server
targets:
personas:
assistant:
servers: [backlog]
| Field | Type | Description |
|---|---|---|
mcp.servers |
{ <name>: ServerEntry } |
Named MCP server definitions (stdio / sse / http). Defining a server here alone does not enable it — it must be assigned through defaults or targets. |
mcp.defaults.servers |
string[] |
Servers applied to every agent execution (normal steps, parallel agents, fan-in, internal agents, sub-workflow leaf steps). |
mcp.targets.personas |
{ <persona>: { servers?, exclude? } } |
Per-persona additions/exclusions. |
mcp.targets.tags |
{ <tag>: { servers?, exclude? } } |
Per-tag additions/exclusions. |
mcp.targets.steps |
{ <leaf-workflow>/<step>: { servers?, exclude? } } |
Per-step additions/exclusions. Control nodes (workflow_call etc.) are not resolution targets. |
mcp.targets.internal_agents |
{ selector: { exclude? } } |
Exclusions applied to internal agents (selector, assistant, and manager). Only selector.exclude is accepted. Manager also matches mcp.targets.personas.manager; its own TAKT MCP server is always added. |
Server entries:
| Transport | Required fields | Optional fields |
|---|---|---|
stdio |
command |
args, env |
sse |
url |
headers |
http |
url |
headers |
effective servers
= defaults.servers
+ matched targets.servers
- matched targets.exclude
exclude takes priority over additions.targets entry referencing an unknown server name fails fast before any agent runs.mcp.servers definitions alone do not enable a server; it must be assigned through defaults or targets.When both the global and project runtime.yaml carry an mcp section, the project section replaces the global one wholesale — same-name servers are not field-merged, and defaults/targets take the project value when present. This mirrors the provider section merge rule.
${NAME} references in command, args, env, url, and headers are resolved against process.env before agent startup. An undefined required environment variable fails fast; TAKT never silently substitutes an empty string. Resolved secret values (env, headers) are never written to logs or error messages.
For runtime HTTP/SSE headers only, use ${env:NAME} to let the provider read its own environment. TAKT checks that the variable is defined and passes its name, without copying its value into arguments, temporary files, configuration JSON in environment variables, or logs. The variable remains in the provider process environment. ${NAME} still interpolates immediately and can expose its value in those startup materials; fixed headers are unchanged. No additional configuration key or provider_options setting is needed.
mcp:
servers:
datadog:
type: http
url: https://mcp.datadoghq.com/api/unstable/mcp-server/mcp
headers:
Authorization: "Bearer ${env:DD_ACCESS_TOKEN}"
X-Tenant: "${TENANT}"
defaults:
servers: [datadog]
| Provider / execution path | Runtime header references |
|---|---|
| Codex, including MCP-only execution (CLI 0.162.1 verified) | Supported: Authorization: "Bearer ${env:X}" uses bearer_token_env_var; a complete ${env:X} header value uses env_http_headers |
| OpenCode v2 (CLI 2.0.18 verified) | Supported: converted to {env:X} in OPENCODE_CONFIG_CONTENT; surrounding text is supported |
| Claude SDK / Headless / Terminal | Unverified for TAKT’s inline/file/terminal paths; affected servers are excluded |
| Cursor / Copilot / other providers | Unverified; affected servers are excluded |
Codex cannot represent other surrounding text such as Token ${env:X} or multiple references in one header. TAKT warns with the provider, server, and reason, and excludes that entire server for the current execution. The same rule applies to unverified providers. Other servers and subsequent workflow steps continue. TAKT never falls back to plaintext; use ${NAME} explicitly if that behavior is wanted. Undefined variables fail before exclusion warnings or provider startup, including on unsupported providers. Empty but defined variables are accepted. ${env:NAME} has no new meaning in URLs or stdio fields, and text produced by ${NAME} interpolation is not reinterpreted as a provider reference.
Codex automatically excludes referenced variables from its AI tool shell using shell_environment_policy.filters, while retaining the usual PATH setting. A referenced PATH is not copied back into the shell configuration. This applies to normal and MCP-only execution. Other providers have no equivalent shell exclusion provided by TAKT: OpenCode shell tools can still inherit these variables.
With ${NAME}, current startup exposure is argv for Codex and Claude SDK, temporary files for Claude Headless/Terminal, Cursor and Copilot, and the OPENCODE_CONFIG_CONTENT JSON for OpenCode. ${env:NAME} avoids those copies on the supported paths above; it does not remove the value from the provider’s own process environment.
Each provider declares the transports it supports. When a resolved server uses an unsupported transport, TAKT fails fast before agent startup and reports the provider, server, transport, supported transports, and the runtime.yaml source path.
| Provider | Supported transports |
|---|---|
claude-sdk / claude / claude-headless / claude-terminal |
stdio, sse, http |
codex |
stdio, http |
opencode |
stdio, http |
cursor |
stdio, http |
copilot |
stdio, http |
kiro |
stdio, http |
mock |
stdio |
Incompatible transports are never silently converted to another transport, and servers are never silently dropped.
MCP configuration also must not be mixed across the legacy and runtime modes:
mcp section in runtime.yaml: the workflow mcp_servers and workflow_mcp_servers policy are used.mcp section in runtime.yaml: only the runtime MCP assignment is used.mcp_servers coexisting: TAKT fails fast, naming the workflow/step and the migration target.In runtime MCP mode, workflows cannot specify MCP server command, URL, header, or env. Define these in the mcp section in runtime.yaml.
| Legacy setting | Runtime destination |
|---|---|
Config workflow_mcp_servers policy |
This transport permission policy cannot be copied directly into runtime assignments. Remove the legacy policy during migration. |
Step mcp_servers map |
Move server definitions to mcp.servers and manually assign their names through mcp.targets.steps. |
Provider profiles allow you to set default permission modes and per-step permission overrides for each provider. This is useful when running different providers with different security postures.
TAKT uses three provider-independent permission modes:
| Mode | Description | Claude | Codex | OpenCode | Pi | DeepSeek Harness | Cursor Agent | Copilot | Kiro CLI | Devin CLI |
|---|---|---|---|---|---|---|---|---|---|---|
readonly |
Tool availability, including shell access, and protection against shell writes vary by provider; see the provider columns | default |
read-only |
read-only |
read, grep, find, ls, bash, codemode |
Not exposed by this SDK | default flags (no --force) |
no permission flags | --trust-tools=read,grep |
ask ACP session mode + generated --config deny rules (exec, edit, Write(**), mcp__*) |
edit |
Allow file edits with confirmation | acceptEdits |
workspace-write |
workspace-write |
read, grep, find, ls, edit, write, bash, codemode |
Not exposed by this SDK | default flags (no --force) |
--allow-all-tools --no-ask-user |
--trust-tools=read,grep,write,shell |
accept-edits ACP session mode + generated --config allow rules (exec, edit, Write(**)) |
full |
Bypass all permission checks | bypassPermissions |
danger-full-access |
danger-full-access |
all registered Pi tools | Not exposed by this SDK | --force |
--yolo |
--trust-all-tools |
bypass ACP session mode; permission requests answered allow_once |
For the Claude SDK (claude-sdk and its claude alias), organizational policy can prevent full from taking effect as bypassPermissions. TAKT checks the actual mode reported by system/init for both new and resumed sessions. If it is not bypassPermissions, TAKT holds tool execution until a switch to auto settles. Claude CLI still decides whether to allow or deny each tool. TAKT logs a warning with the requested, actual, and target modes. If switching to auto also fails, TAKT logs the failure, releases waiting tools, and continues in the mode reported by init. These warnings follow the normal logging settings even when private manager conversation diagnostics are suppressed. This behavior does not apply to claude-headless or claude-terminal.
The manager pre-approves its own MCP tools through the SDK’s allowedTools. Other built-in tools and user MCP tools remain available under their respective permission settings. The director already pre-approves its own MCP tools through its dedicated tool restrictions.
Devin runs through devin acp (Agent Client Protocol over stdio) rather than print mode, so permission modes are enforced in three layers: the ACP session mode set with session/set_mode (ask for readonly, accept-edits for edit and unset, bypass for full), permission rules appended to a generated --config file seeded from the user’s own Devin config ($XDG_CONFIG_HOME/devin/config.json, default ~/.config/devin/config.json; %APPDATA%\devin\config.json on Windows), and answers to session/request_permission — for requests that reach TAKT, allow_once is selected only in full mode and allow_always is never selected because it would persist decisions into the Devin config. strict-readonly internal-agent isolation additionally denies Fetch(**).
The generated --config replaces only Devin’s user-level config. A project-level .devin/config.json (and .devin/config.local.json) in the repository has higher precedence in Devin, and its permissions.allow rules pre-approve tool calls before Devin sends TAKT a permission request — in edit mode or with no permission mode set, a repository .devin/config.json with allow: ["exec", ...] let a shell command run that TAKT would otherwise have rejected. readonly and strict-readonly are not affected, because the ACP ask mode exposes no write/exec tools, and TAKT’s deny rules still win over project allow rules for the rules TAKT emits. Review a repository’s .devin/config.json before running edit-mode Devin steps on untrusted repositories.
Pi permission modes are SDK active-tool allowlists, not an operating-system sandbox, and TAKT does not add per-tool confirmation prompts for Pi. Both Pi readonly and edit enable bash, and Pi’s file tools can accept absolute paths. Run Pi with trusted workflow input and extensions. If an internal-agent role needs narrower authority, configure capabilities and a permission mode on its Pi profile.
Provider profiles can be defined in both global and project configuration:
# ~/.takt/config.yaml (global) or .takt/config.yaml (project)
provider_profiles:
codex:
default_permission_mode: full
step_permission_overrides:
ai_review: readonly
claude-sdk:
default_permission_mode: edit
step_permission_overrides:
implement: full
First, select a mode from provider profiles in the following order, using the first matching setting:
provider_profiles.<provider>.step_permission_overrides.<step>provider_profiles.<provider>.step_permission_overrides.<step>provider_profiles.<provider>.default_permission_modeprovider_profiles.<provider>.default_permission_modeThen always apply the step’s required_permission_mode as a minimum. If the selected profile mode is lower than the required mode, raise it to the required mode. For example, if a step requires edit and the profile resolves to readonly, the effective mode is edit.
If no mode can be selected from profiles, use the step’s required_permission_mode, or readonly if that is also unspecified.
Every provider also has a builtin default_permission_mode: edit that always participates in this resolution. When neither project nor global provider_profiles set a value, the effective mode is therefore edit (raised when the step’s required_permission_mode demands more).
Provider permission profile keys match the selected provider name; they are not aliases. When using the new claude-sdk default or explicit claude-sdk, move existing provider_profiles.claude settings to provider_profiles.claude-sdk. Explicit claude still uses the claude key; claude-headless uses claude-headless. If the provider is omitted, an old claude profile specifying readonly no longer applies and the SDK can fall back to builtin edit unless the profile is moved.
config.yaml Provider RoutingWhen runtime mode is inactive, provider_routing can route workflow steps to
different providers, models, and provider-specific options without duplicating
workflows. This existing legacy path can be defined in either
~/.takt/config.yaml or .takt/config.yaml; runtime mode uses
provider.targets instead (see Runtime Provider Configuration).
# ~/.takt/config.yaml
provider_routing:
personas:
coder:
provider: codex
model: gpt-5
provider_options:
codex:
reasoning_effort: high
tags:
implementation:
provider: codex
model: gpt-5
review:
provider: opencode
model: opencode/qwen3-coder-next
final-gate:
provider: codex
model: gpt-5
provider_options:
codex:
reasoning_effort: high
edit:
provider_options:
codex:
network_access: true
steps:
ai-antipattern-review-2nd:
provider: opencode
model: opencode/qwen3-coder-next
# workflow.yaml
steps:
- name: implement
persona: coder
persona_name: implementation-coder
tags: [implementation, edit]
provider_routing.personas uses the raw persona key from the workflow step, so persona_name is display-only and does not affect routing. provider_routing.tags applies entries matching the step’s tags; when multiple tags match, TAKT applies them in the order written on the step, and later tags override the same provider/model/provider_options leaf. provider_routing.steps uses the workflow step name. In an active runtime configuration, these routing keys are rejected as mixed legacy settings; move them to provider.targets.
Each routing entry can include provider, model, and/or provider_options. Those fields are individually optional, but each entry must include at least one of them. Empty provider_options objects are rejected.
In legacy mode, the workflow-step resolution priority is:
explicit CLI / environment override
> provider_routing.steps.<step.name>
> provider_routing.tags.<tag>
> provider_routing.personas.<raw persona key>
> persona_providers.<persona display name> # deprecated legacy
> effective auto_routing (auto.rules / auto.dynamic / auto.fallback)
> project .takt/config.yaml
> global ~/.takt/config.yaml
> provider default
Provider selection follows the priority above. Model selection uses the first layer that specifies a model. If that same entry also specifies a provider, TAKT uses the model only when that provider matches the selected provider. On a mismatch, TAKT leaves the model unset and does not try lower-priority model entries. A model-only entry is passed through unchanged.
Workflow YAML has no provider/model layer. An assigned runtime internal_agents
seat resolves synthetic engine steps independently, and workflow promotion only
advances its runtime target ladder.
In legacy mode, define auto_routing in project .takt/config.yaml or
global ~/.takt/config.yaml when TAKT should choose both provider and model
from a candidate list. In runtime mode, use provider.auto_routing and target
profiles in runtime.yaml; workflow YAML cannot enable or override auto
routing. Keep a concrete top-level provider/model in legacy config for
operations outside workflow steps.
provider: codex
model: gpt-5.6-luna
auto_routing:
strategy: balanced # cost | balanced | performance
router:
provider: codex
model: gpt-5.6-luna
candidates:
- name: advanced
description: Planning, final decisions, requirement-fulfillment judgment, and other advanced reasoning
provider: codex
model: gpt-5.6-sol
routing_tier: high
- name: coding
description: Implementation, tests, debugging, and refactoring
provider: codex
model: gpt-5.6-terra
routing_tier: medium
- name: lightweight
description: Formatting and small mechanical edits
provider: codex
model: gpt-5.6-luna
routing_tier: low
rules:
steps:
security-audit: advanced
default_pool: general
candidate_pools:
general:
candidates: [lightweight, coding, advanced]
fallback: advanced
implementation:
candidates: [coding, advanced]
fallback: advanced
pool_rules:
tags:
implementation: implementation
In legacy mode, the top-level provider and model are the defaults. Set a provider and model for each auto_routing.candidates entry. Automatic selection applies to workflow steps; operations outside steps use the top-level settings.
Assistant conversations (interactive planning, instruct on existing tasks, and retry dialogue) do not go through auto routing. They resolve takt_providers.assistant, then fall back to the top-level provider/model when the assistant setting is unset; the assistant setting is not a default for other internal operations. CLI --provider / --model overrides apply to interactive planning only, while instruct and retry do not accept those overrides. Without a resolvable assistant or top-level provider, assistant startup fails with Provider is not configured.
In runtime mode, provider.defaults specifies a profile, a ladder, or a default named assignment. When it specifies an assignment, the profile or ladder in the selected assignment’s defaults is used. Set a pool on targets that use auto routing; pool candidates reference provider.profiles. Hard rules for pool selection run in tags, steps, personas order. Provider targets themselves have precedence defaults < personas < tags < steps. Without a matching hard rule, pool_rules and the router’s tier choose a candidate.
Candidate routing_tier is limited to high, medium, or low. Runtime
profiles carry provider/model/options, so candidates reference profiles rather
than repeating those fields. CLI can override the strategy with
--auto-strategy cost|balanced|performance; the override is propagated until
execution reaches a runtime auto-routing target.
Routing decisions are local-only telemetry and are not recorded by default. When telemetry.routing_decisions is enabled (takt telemetry enable or routing_decisions: true), TAKT writes them as NDJSON under the project .takt/events/ directory. TAKT does not upload routing decisions. Use takt telemetry status, takt telemetry enable, and takt telemetry disable to inspect or change only this local recording setting.
Provider options resolve from runtime profiles, capability presets, config, and environment variables. Workflow YAML cannot define them directly. Preview, doctor, validation, summary, and report use the same settings as execution.
provider_options resolve per leaf. Runtime mode uses profile options and rejects provider_options in workflow YAML. In legacy config.yaml mode, environment- or CLI-sourced configuration normally takes precedence. The base_url exception resolves in this order: provider_routing.steps → provider_routing.tags → provider_routing.personas → deprecated persona_providers → project .takt/config.yaml → global ~/.takt/config.yaml → TAKT environment override. Preview, doctor, validation, summary, and report use the same resolution as workflow execution.
Project .takt/config.yaml may set base_url only to loopback hosts such as 127.0.0.1, 127.x.x.x, localhost, *.localhost, or ::1. Put external provider base URLs in user-controlled global config or TAKT_PROVIDER_OPTIONS_CODEX_BASE_URL / TAKT_PROVIDER_OPTIONS_CLAUDE_BASE_URL / TAKT_PROVIDER_OPTIONS_DEEPSEEK_HARNESS_BASE_URL.
persona_providers is still supported for existing configs, but it is deprecated for new settings. It uses the step’s persona display name, which may come from persona_name, not necessarily the raw persona key:
persona_providers:
implementation-coder:
provider: codex
model: gpt-5
provider_options:
codex:
reasoning_effort: high
Capability references can load shared provider-options presets by name. Names are resolved first-match from .takt/provider-options, then ~/.takt/provider-options, then builtins/{lang}/provider-options. For workflows installed from a repertoire package, the package-local provider-options/ directory is checked before those locations. A scoped ref such as @owner/repo/name resolves name from another repertoire package’s provider-options/ directory. Workflow YAML may reference only capability presets; provider/model/options definitions belong in runtime profiles (or the retained legacy config layers).
Capability preset resolution fails fast as a configuration error when a preset or path cannot be resolved, a scoped ref points to an unavailable repertoire package, the target YAML is invalid or is not a provider-options object, the extends chain is circular, or the removed $ref key is used.
Relative paths are resolved from the directory of the file containing the reference. When following only path-based references from a workflow, relative paths stay within the workflow directory. After loading a named or scoped preset, subsequent relative paths are confined to that preset’s directory. Symlink targets must stay within the same permitted directory. Absolute paths and paths whose real target escapes that directory are rejected.
Provider options can also be set with the corresponding TAKT_PROVIDER_OPTIONS_* environment variables. Examples:
| Setting | Environment variable examples |
|---|---|
| OpenCode model variant | TAKT_PROVIDER_OPTIONS_OPENCODE_VARIANT=high |
| Codex, Claude, and DeepSeek base URLs | TAKT_PROVIDER_OPTIONS_CODEX_BASE_URL=http://127.0.0.1:8787/v1, TAKT_PROVIDER_OPTIONS_CLAUDE_BASE_URL=http://127.0.0.1:8787, TAKT_PROVIDER_OPTIONS_DEEPSEEK_HARNESS_BASE_URL=http://127.0.0.1:8787/v1 |
| Codex permissions and Skills | TAKT_PROVIDER_OPTIONS_CODEX_PERMISSION_CONTROL=codex, TAKT_PROVIDER_OPTIONS_CODEX_SKILLS_REPO=true, TAKT_PROVIDER_OPTIONS_CODEX_SKILLS_USER=true |
| Claude Skills | TAKT_PROVIDER_OPTIONS_CLAUDE_SKILLS_ENABLED=true |
| Claude terminal | TAKT_PROVIDER_OPTIONS_CLAUDE_TERMINAL_BACKEND=tmux, TAKT_PROVIDER_OPTIONS_CLAUDE_TERMINAL_TIMEOUT_MS=900000, TAKT_PROVIDER_OPTIONS_CLAUDE_TERMINAL_KEEP_SESSION=false, TAKT_PROVIDER_OPTIONS_CLAUDE_TERMINAL_TRANSCRIPT_POLL_INTERVAL_MS=500 |
| Kiro agent, effort, and mode | TAKT_PROVIDER_OPTIONS_KIRO_AGENT=planner-agent, TAKT_PROVIDER_OPTIONS_KIRO_EFFORT=medium, TAKT_PROVIDER_OPTIONS_KIRO_MODE=spec |
| Pi thinking and resources | TAKT_PROVIDER_OPTIONS_PI_THINKING_LEVEL=high, TAKT_PROVIDER_OPTIONS_PI_EXTENSIONS='["npm:pi-fff"]', TAKT_PROVIDER_OPTIONS_PI_NO_EXTENSIONS=true, TAKT_PROVIDER_OPTIONS_PI_NO_SKILLS=true, TAKT_PROVIDER_OPTIONS_PI_NO_PROMPT_TEMPLATES=true, TAKT_PROVIDER_OPTIONS_PI_NO_THEMES=true, TAKT_PROVIDER_OPTIONS_PI_NO_CONTEXT_FILES=true |
| Pi system prompt | TAKT_PROVIDER_OPTIONS_PI_SYSTEM_PROMPT_MODE=append or replace |
In legacy config.yaml mode, provider_routing takes precedence over environment variables for base_url.
Runtime targets let you select a provider and model for each step in the same workflow.
The provider-specific examples below use the legacy config.yaml option bag
for compatibility. In runtime mode, put execution options under
provider.profiles.<name>.options in runtime.yaml; use workflow
capabilities only for the supported ability leaves.
base_url)Use base_url to route supported providers through an OpenAI-compatible or Anthropic-compatible proxy:
provider_options:
claude:
base_url: http://127.0.0.1:8787
codex:
base_url: http://127.0.0.1:8787/v1
base_url works with Claude SDK providers (claude-sdk, claude, claude-headless), Codex, and DeepSeek Harness. TAKT’s provider_options.*.base_url takes precedence over each provider’s ANTHROPIC_BASE_URL, OPENAI_BASE_URL, or DEEPSEEK_BASE_URL environment variable.
Project config accepts local loopback addresses only. Set external proxies or gateways in global config or the corresponding TAKT_PROVIDER_OPTIONS_*_BASE_URL variable.
deepseek-harness)DeepSeek Harness uses the official TypeScript SDK and runtime. Run takt install deepseek-harness before using it. The SDK installs under TAKT’s managed directory (by default ~/.takt/deepseek-harness/sdk). Supported platforms are Linux x64/arm64 with glibc >= 2.28 and macOS arm64 >= 14.0. If an installation is damaged, reinstall with takt install deepseek-harness --force.
provider: deepseek-harness
model: deepseek-v4-flash
provider_options:
deepseek_harness:
base_url: http://127.0.0.1:8787/v1
max_tokens: 4096
request_timeout_ms: 3600000
shutdown_timeout_ms: 1000
plugins:
- npm:@example/cordis-plugin@1.2.3
- source: npm:another-cordis-plugin@2.0.0
id: another-plugin
config:
enabled: true
- id: example-plugin
source: git:https://github.com/example/plugin.git
ref: v1.2.3
config:
enabled: true
Define plugins in global configuration (~/.takt/config.yaml) or trusted global runtime profiles, not in project or workflow configuration. A user-controlled TAKT_PROVIDER_OPTIONS_DEEPSEEK_HARNESS_PLUGINS JSON array can also supply plugin options. Project-defined plugins are rejected; an empty list may disable plugins. Plugins execute with the runtime’s permissions and may access credentials, so load only code you trust. Plugin config values are hidden in previews, session logs, and telemetry, without changing the values supplied to the runtime.
DeepSeek Harness plugins can be loaded from npm packages or Git HTTPS/SSH repositories. Use npm:<package-spec> as a string or as the source in an object; id and config are optional. TAKT installs npm packages into temporary directories without running lifecycle scripts, resolves the package exports or main entrypoint, and removes the temporary files when the runtime ends. npm plugins execute with the runtime’s permissions and may access credentials. Only use packages whose code you trust. Pin package versions to fix the top-level package tarball; this alone does not guarantee reproducible dependency resolution. TAKT installs with --package-lock=false, so ranged transitive dependencies may resolve to different versions between runs unless the published package includes an appropriate npm-shrinkwrap.json. URLs containing credentials or sensitive query parameters are rejected before npm starts; use protected npm configuration for authentication instead. Git sources retain their existing behavior: plaintext http:// and git:// sources are rejected. Use git: before a Git URL when desired; set ref to a tag, branch, or commit. Pin a tag or commit to select a Git source revision. This alone does not guarantee reproducible dependency resolution: when the repository has a package.json, TAKT installs dependencies with npm install --package-lock=false, so resolved dependency versions may vary between runs. Omitting ref uses the repository’s default revision and emits a warning. Lifecycle scripts are not run. Private repositories use the existing SSH keys or Git credential helper; SSH sources may use the conventional git username, but must not embed passwords, tokens, or secrets. Other credential-bearing URLs are rejected before Git is run. Git and askpass prompts are disabled; default SSH uses batch mode. Configure working credentials and trusted host keys before running TAKT. An existing custom SSH command or executable is preserved.
If the official runtime reports that a configured npm plugin did not activate, TAKT stops that provider call and reports an actionable entrypoint/configuration hint without forwarding raw plugin diagnostics.
base_url is optional. Project config accepts loopback addresses only; set an external endpoint in global config or TAKT_PROVIDER_OPTIONS_DEEPSEEK_HARNESS_BASE_URL. TAKT’s base_url setting takes precedence over the provider-native DEEPSEEK_BASE_URL.
Use the official credential store at $DSH_HOME/.credentials.yaml (default ~/.dsh/.credentials.yaml) or an environment variable. Set the variable name with llm-deepseek.apiKeyEnv in $DSH_HOME/settings.yaml; the default is DEEPSEEK_API_KEY. The selected environment variable takes precedence over the stored credential. If the store sets llm-deepseek.baseURL, it must match the endpoint in use. Preserve an existing store and start a new TAKT session or run after installation.
You can continue a session while the same runtime remains active and the model, credentials, and runtime settings stay the same. The SDK cannot restore conversation history after the runtime ends or settings change. In interactive mode, start a new session on the next user turn; in a workflow, start a new TAKT session or run. Changing the credential source or endpoint also requires a new session or run.
The DeepSeek SDK can use file, search, shell, and subagent tools. Its workspace-write boundary limits writes but does not isolate secret-file reads. Run it in a trusted workspace. TAKT disables the SDK’s session-file persistence and session-log API upload.
The SDK does not support permission modes or callbacks, bypassPermissions, an explicit allowed-tools list, a nonempty MCP server map, maxTurns, structured output, or image attachments. Steps that require these fail before execution. Report phases with read-only tools and tool-free status phases also cannot use this provider; choose a provider that supports those controls.
When migrating from the old Python/uv version, remove runtime_mode, Python/uv-only options, TAKT_PROVIDER_OPTIONS_DEEPSEEK_HARNESS_RUNTIME_MODE, and TAKT_PROVIDER_OPTIONS_DEEPSEEK_HARNESS_PYTHON_PATH from configuration. Use takt install deepseek-harness. Before manually removing old venv/, pyproject.toml, or uv.lock files, stop all TAKT/DeepSeek processes, back up needed data, and confirm they belong to the old environment. Keep the $DSH_HOME credential store and current deepseek-harness/sdk, state/, dsh-home/, and install.lock.
If another TAKT process is using a runtime in the same managed directory, wait for it to exit or use a separate TAKT_CONFIG_DIR. If startup is blocked after an abnormal exit, confirm that the old runtime, supervisor, and tool processes have all ended. Only then manually clear .runtime-state-lock and cleanup-blocked under deepseek-harness/state/.
network_access)When an implementation step runs network-dependent commands such as npm install / pip install / gradle / mvn, provider sandboxes block network by default and the command fails. Configure each provider as follows.
Codex blocks network by default. Enable it with:
provider_options:
codex:
network_access: true
With TAKT-managed permissions, Phase 1 can allow network access while keeping files read-only. This applies to steps with edit: false and calls resolved to permission_mode: readonly. With permission_control: codex, configure network access in Codex itself. Phase 2 and TAKT internal calls running with strict-readonly (such as isolated structured calls) prohibit writes and network access even when network_access: true. With permission_control: codex and readonly_permission_base, TAKT uses a permission profile that extends the configured base with read-only filesystem access and network disabled, so the user’s deny rules also apply.
OpenCode does not have a native sandbox. TAKT controls webfetch / websearch tool permissions as an abstraction layer behind the same key:
provider_options:
opencode:
network_access: true
OpenCode tool allowlists use lowercase OpenCode tool names:
provider_options:
opencode:
allowed_tools: [read, glob, grep, bash, websearch, webfetch]
network_access can be set by a runtime profile or capability preset. In
legacy mode it can also be set through provider_routing, deprecated
persona_providers, project, or global config. The environment variable
TAKT_PROVIDER_OPTIONS_CODEX_NETWORK_ACCESS=true also works as an override.
Codex receives a fixed developer rule that gives TAKT’s current turn instructions priority. TAKT sends the current assignment, persona, and phase in taktCurrentInstructions, and the task input in userInstruction. The current assignment takes precedence over earlier assignments and progress notes. This rule overrides an existing user developer_instructions setting without changing the configuration file. Workflow sessions created before this rule use a different session key, so a new session starts with the current instructions. The report phase includes saved work results in that new request.
On macOS and Linux, TAKT can interrupt the active Phase 1 turn when managed Codex saves the compacted history to a readable rollout. TAKT waits for the process to exit and confirms the interruption in the same rollout before continuing that thread with the original instructions and saved progress notes. When the turn finishes in the meantime, or when the runtime only allows confirmation of compaction after the turn, TAKT checks the response before deciding whether to continue. This also applies to Windows and custom Codex executables.
The completion check runs in a separate, read-only structured Codex session without MCP tools. TAKT keeps a completed review, including a REJECT with concrete findings. If the step is incomplete, TAKT resumes the working thread with the full Phase 1 instructions and current permissions. A failed or invalid check fails the provider call.
The call fails after three consecutive recovery turns that compact again, make no tool progress, and still require recovery. New successful tool output or a confirmed file edit resets this count, so there is no limit on the total number of recovery turns. Progress notes remain available to the resumed step, but their availability does not change the count. TAKT does not infer compaction from assistant text. Providers without the event or recovery capability keep their existing behavior. This automatic recovery is separate from workflow-level session: compact.
fast_mode)Set the optional Codex fast-mode feature explicitly with provider_options.codex.fast_mode:
provider_options:
codex:
fast_mode: true
Both true and false are explicit values. If the setting is omitted, TAKT does not send
features.fast_mode to Codex and Codex keeps its own default. The environment override is
TAKT_PROVIDER_OPTIONS_CODEX_FAST_MODE=true or TAKT_PROVIDER_OPTIONS_CODEX_FAST_MODE=false.
Set it in a runtime profile, legacy provider_routing, project or global provider_options, or an environment variable. takt exec uses the selected runtime default.
permission_control)Codex uses TAKT-managed permissions by default, equivalent to permission_control: takt. TAKT resolves write permission separately from network_access. Phase 1 is read-only when edit: false or the resolved permission_mode is readonly; edit: false also takes precedence over permission_mode: full.
| Write permission | network_access |
Codex options |
|---|---|---|
| Writable | true |
workspace-write sandbox (danger-full-access for full) and networkAccessEnabled: true |
| Writable | false / omitted |
Existing sandbox mapping; explicit false is passed, omission keeps the Codex default |
| Read-only | true |
No sandbox flag; TAKT passes the takt-readonly-network permission profile through --config, inheriting :read-only with network.enabled=true |
| Read-only | false / omitted |
read-only sandbox |
TAKT-managed permissions add --ignore-rules to every codex exec invocation, including writable steps, new sessions, and exec ... resume <id>. Codex therefore does not load user or project execpolicy .rules files, whose allow rules could otherwise run matching commands outside the sandbox. With permission_control: codex, TAKT leaves those rules enabled, except in Phase 2 and TAKT internal calls running with strict-readonly (such as isolated structured calls). Phase 2, these internal calls, and MCP-only side effects always add --ignore-rules and prohibit writes and network access. When a Phase 2 call or an internal call running with strict-readonly selects config_profile, both --ignore-rules and --profile <name> are passed. When permission_control: codex also selects readonly_permission_base, Phase 2 and such internal calls add --ignore-rules and omit --sandbox. Auxiliary mcp list / mcp get commands do not receive the exec flag.
To delegate permission control to Codex, explicitly opt in:
provider_options:
codex:
permission_control: codex
network_access: true
reasoning_effort: high
fast_mode: true
skills:
repo: true
With permission_control: codex, Codex settings control sandbox and network permissions. TAKT’s network_access setting does not affect effective Codex permissions in this mode. TAKT still sets approvalPolicy: never for non-interactive runs, so check the Codex configuration you use. reasoning_effort, fast_mode, and skills continue to apply.
In Phase 1, permission_control: codex omits TAKT’s sandbox and network overrides even with edit: false or permission_mode: readonly. Structured calls without strict-readonly follow the same rule. Codex’s own configuration determines the effective permissions. Phase 2 and TAKT internal calls running with strict-readonly (such as isolated structured calls) remain exceptions: TAKT manages their permissions. Without readonly_permission_base, TAKT passes the read-only sandbox with networkAccessEnabled: false, including with delegated permissions. With readonly_permission_base, TAKT passes a permission profile that extends the base with the workspace, /tmp, and $TMPDIR read-only and network disabled through --config, and omits --sandbox. MCP-only side effects also retain the read-only sandbox and explicitly disable network access and web search; this mode cannot be combined with permission_control: codex.
To select a named Codex configuration profile, add config_profile alongside permission_control: codex:
provider_options:
codex:
permission_control: codex
config_profile: automation-review
config_profile accepts a name made of ASCII letters, digits, hyphens, and underscores. Use it with permission_control: codex in a runtime profile or legacy project or global config. TAKT passes codex exec --profile <name>, and Codex reads $CODEX_HOME/<name>.config.toml. Check that profile’s contents, including permissions, before using it.
readonly_permission_base)With permission_control: codex, TAKT manages permissions for Phase 2 and calls running with strict-readonly (such as isolated structured calls). To keep the user’s permission profile deny rules effective in these calls, set the base profile name in readonly_permission_base:
provider_options:
codex:
permission_control: codex
readonly_permission_base: review-base
The environment variable TAKT_PROVIDER_OPTIONS_CODEX_READONLY_PERMISSION_BASE=review-base also works. Like config_profile, the name uses ASCII letters, digits, hyphens, and underscores, and you can set it in a runtime profile or legacy project or global config. Combining it with anything other than permission_control: codex, including omitting that setting, is a configuration error.
When set, TAKT passes the following permission profile through --config for Phase 2 and strict-readonly calls, for both new sessions and resumed threads:
extends the configured base./tmp, and $TMPDIR read-only.network.enabled to false.TAKT then omits --sandbox and the sandbox_mode / sandbox_workspace_write overrides, while keeping --ignore-rules, --profile, and approval_policy: never. Without the option, and for Phase 1 and Phase 3, behavior is unchanged.
If the base profile grants write on an individual path, that path remains writable through the derived profile. Codex prefers the more specific path entry, and TAKT does not prevent this. Make paths that Phase 2 must not write to read or deny in the base profile.
# Example base profile `review-base`
# (place it in the $CODEX_HOME/<name>.config.toml selected by `config_profile`)
[permissions.review-base]
[permissions.review-base.filesystem]
":minimal" = "read"
"~/.ssh" = "deny"
"~/.aws" = "deny"
[permissions.review-base.network]
enabled = false
This example denies sensitive files and has no individual write entries. TAKT does not read or rewrite the user’s Codex configuration.
skills)TAKT workflows do not inherit repository or user Codex Skills by default. Enable either scope explicitly with a runtime profile or the enable-skills capability when a workflow should use those environment-dependent instructions. takt exec keeps the resolved capability in its generated workflow, while provider/model/options remain in runtime configuration. A TAKT_PROVIDER_OPTIONS_CODEX_SKILLS_* environment override supplied to a later invocation remains higher priority.
provider_options:
codex:
skills:
repo: true
user: false
repo covers .agents/skills directories from the Codex execution CWD through the repository root.user covers $HOME/.agents/skills and the compatibility location $CODEX_HOME/skills. The .system directory below the compatibility location is excluded.false discovers each SKILL.md in that scope, resolves symlinks to absolute paths, removes duplicates, and passes an exact enabled: false override to the Codex process.true passes no enable override for that scope, so Codex’s standard behavior and existing user configuration remain in effect.Discovery uses the same depth, directory, and entry limits as Codex. If a scan exceeds a limit, TAKT fails the provider call instead of applying a partial deny list. These settings do not modify the user’s Codex config. ADMIN, SYSTEM, and Plugin Skills are outside their discovery roots and retain Codex’s standard behavior. The settings use the normal provider-option leaf priority and apply unchanged to retries and resumed sessions.
skills)TAKT disables filesystem Skill discovery for claude-sdk, claude, claude-headless, and claude-terminal by default. Enable it only when a workflow intentionally depends on repository or user Skills:
provider_options:
claude:
skills:
enabled: true
With enabled: false, claude-sdk and its claude alias receive skills: []; claude-headless and claude-terminal receive --disable-slash-commands. This also disables custom Claude slash commands for those CLI sessions. With enabled: true, TAKT adds no Skill option or flag, preserving Claude’s normal discovery. The setting follows normal provider-option leaf priority, including TAKT_PROVIDER_OPTIONS_CLAUDE_SKILLS_ENABLED, and is retained for retries and resumed sessions.
This is a context filter, not a sandbox: a Skill file can still be reachable through Read or Bash. TAKT does not change settingSources, Claude settings, or user/repository Skill files. The pinned Agent SDK version for managed installation is 0.3.300. CLI sessions require a Claude Code version that supports --disable-slash-commands; TAKT verifies the flag before starting either a headless (claude-headless) or terminal (claude-terminal) CLI session and reports an update error when unavailable. Claude Code 2.1.220 is the verified minimum.
allow_unsandboxed_commands)With permission_mode: edit, the Claude SDK runs Bash commands inside a macOS Seatbelt sandbox. This can cause ~/.gradle writes and JVM-based build tools to fail with Operation not permitted. To run Bash commands outside the sandbox while keeping file-edit permissions controlled, use:
provider_options:
claude:
sandbox:
allow_unsandboxed_commands: true
File-edit permissions continue to be governed by permission_mode.
permissions)To have a Claude process started by TAKT apply permissions.deny rules such as Read(./.env), pass the rules to Claude with provider_options.claude.permissions:
provider_options:
claude:
permissions:
deny:
- "Read(./.env)"
- "Read(~/.ssh/**)"
import_user_read_deny: true
| Key | Type | Default | Meaning |
|---|---|---|---|
deny |
list of non-empty strings | none | Rules written in TAKT config. They are passed to Claude as written, so TAKT does not limit them to Read( rules. |
import_user_read_deny |
boolean | false |
When true, also imports the rules that start with Read( (case-sensitive) from permissions.deny in ~/.claude/settings.json. Bash rules, MCP rules, and any other rule are not imported. |
Read( rule stops.
According to the Claude Code permissions documentation, the rules apply to Claude’s built-in file tools (Claude applies Read rules to tools such as Grep and Glob on a best-effort basis) and to file commands Claude Code recognizes in Bash, such as cat, head, tail, sed, and tee.
They do not apply to a command that reads files without naming them, such as grep -r pattern ., or to a script that opens files itself, such as a Python or Node script.
To block the shell commands Claude runs in the sandbox, and the processes they start, from accessing a path at the OS level, add a Read( deny rule for that path and enable the Claude Code sandbox with filesystem isolation. Do not set sandbox.filesystem.disabled to true, because that setting lets sandboxed commands read host files. Commands that run outside the sandbox, such as commands matched by excludedCommands or run with allow_unsandboxed_commands, are not blocked.
Processes in the sandbox can still read paths that have no deny rule.
Hooks, MCP servers, and other processes outside the sandbox are not blocked.deny and the imported rules, without duplicates. TAKT passes them as permissions.deny in Claude’s flag settings (the SDK settings option for claude-sdk, --settings for claude-headless), so they also apply to isolated internal calls such as status judgment.claude-sdk (including its claude alias) and claude-headless, in workflow steps, internal calls, and the interactive assistant. claude-terminal does not receive them and never triggers the warning below.~/.claude/settings.json under the current user’s home directory; CLAUDE_CONFIG_DIR is not consulted. It is read only when import_user_read_deny is true, once for each Claude launch. With both keys unset, nothing is read and the Claude launch arguments stay as before.permissions or permissions.deny value of the wrong type, TAKT prints a warning and starts Claude with only the rules from deny. A readable file with no Read( rule imports nothing and prints no warning. Entries in permissions.deny that are not strings are ignored.provider_options leaves. A higher layer replaces the whole deny list; lists are not concatenated. Environment variables: TAKT_PROVIDER_OPTIONS_CLAUDE_PERMISSIONS_DENY (a JSON array) and TAKT_PROVIDER_OPTIONS_CLAUDE_PERMISSIONS_IMPORT_USER_READ_DENY.extensions, no_*)Use provider_options.pi when a TAKT run should load Pi packages / extensions or restrict which Pi resource types are discovered:
provider_options:
pi:
extensions:
- npm:pi-fff
# - git:https://github.com/example/pi-extension
# - /absolute/path/to/local-extension
no_extensions: true # Disable discovery; still load the explicit extensions above
no_skills: true # Disable Pi Skill discovery
no_prompt_templates: true # Disable Pi prompt-template discovery
no_themes: true # Disable Pi theme discovery
no_context_files: true # Disable Pi context-file discovery
extensions. Unversioned npm sources reuse existing project and user installs in order, then resolve temporarily if neither works. Versioned npm and other sources are resolved temporarily.no_extensions stops automatic discovery but still loads sources listed in extensions. Other no_* settings stop discovery for their respective resources.readonly or edit, explicitly name their source in extensions. With allowedTools, only listed tools can run; an empty list denies all tools. The same permissions apply when an extension replaces a builtin tool of the same name.full mode without allowedTools, registered tools are available. If tool provenance cannot be verified, the Pi call stops.These settings follow normal provider-option leaf priority, including TAKT_PROVIDER_OPTIONS_PI_*.
system_prompt_mode)provider_options.pi.system_prompt_mode controls how TAKT delivers its runtime prompt (persona, workflow context, and the step instruction) to the Pi SDK.
provider_options:
pi:
system_prompt_mode: append # default
append (default): TAKT adds its runtime prompt after Pi’s own system prompt. Pi keeps its built-in instructions, including documentation pointers, tool guidance, and the skill catalogreplace: TAKT replaces Pi’s built-in system prompt with its runtime prompt. Use this to keep the previous behavior or to control the Pi system prompt yourselfChoose append to keep Pi’s built-in instructions, or replace to use only TAKT’s instructions.
Organize workflows into categories for better UI presentation in the takt workflow selection prompt.
In a category file, put category names under top-level workflow_categories. List workflow names, such as default, under each category’s workflows. Use show_others_category and others_category_name to adjust the uncategorized group.
Categories can be configured in:
builtins/{lang}/workflow-categories.yaml — default builtin categories (bundled with TAKT)~/.takt/preferences/workflow-categories.yaml — user overlay file, or a custom path set with workflow_categories_file in ~/.takt/config.yamlWrite categories in a separate file. If needed, set its path with workflow_categories_file in ~/.takt/config.yaml:
# ~/.takt/preferences/workflow-categories.yaml (or the file set by workflow_categories_file)
workflow_categories:
Development:
workflows:
- default: "Standard coding workflow" # name: description adds it to the selection label
- simple
Backend:
workflows: [dual-cqrs]
Frontend:
workflows: [dual]
Research:
workflows: [research, magi]
show_others_category: true # Show uncategorized workflows (default: true)
others_category_name: "Other Workflows" # Name for uncategorized category
- name: description under workflows: to show a description in the selection screen. Use the same description if a workflow appears in several categories.show_others_category: false)enable_builtin_workflows: false, or specific names with disabled_builtins: [name1, name2]. This also applies to workflow_call: a call to an excluded builtin (for example call: development-core) fails. takt workflow doctor and the run error name the call, the searched paths, and the reason the builtin was excluded; copy the workflow (and, when enable_builtin_workflows: false, any dependent builtin workflows it calls recursively) into .takt/workflows/, or re-enable the builtin.Reset workflow categories to builtin defaults:
takt reset categories
Pipeline mode (--pipeline) supports customizable templates for branch names, commit messages, and PR bodies.
# ~/.takt/config.yaml
pipeline:
default_branch_prefix: "takt/"
commit_message_template: "feat: {title} (#{issue})"
pr_body_template: |
## Summary
{issue_body}
Closes #{issue}
| Variable | Available In | Description |
|---|---|---|
{title} |
Commit message | Issue title |
{issue} |
Commit message, PR body | Issue number |
{issue_body} |
PR body | Issue body |
{report} |
PR body | Workflow execution report |
| Option | Description |
|---|---|
--pipeline |
Enable pipeline (non-interactive) mode |
--auto-pr |
Create PR after execution |
--draft |
Create the auto-created PR as a draft (requires --auto-pr or auto_pr config) |
--skip-git |
Skip branch creation, commit, and push (workflow-only) |
--repo <owner/repo> |
Repository for PR creation |
--auto-strategy <strategy> |
Override auto routing strategy (cost | balanced | performance) |
-q, --quiet |
Minimal output mode (suppress AI output) |
Enable debug logging by setting logging.debug: true in ~/.takt/config.yaml (the logging key is global-only):
logging:
debug: true
General debug logs are process-scoped and written to .takt/runs/debug-{timestamp}/logs/debug-{timestamp}.log in NDJSON format. Prompt/response logs are workflow-run-scoped and written to .takt/runs/<run>/logs/<sessionId>-prompts.jsonl.
Enable detailed console output by setting logging.level: debug:
# ~/.takt/config.yaml
logging:
level: debug
This also enables the internal verbose console mode used by the CLI. logging.level: debug alone additionally enables both the process-scoped general debug log and workflow-run-scoped prompt/response logs described above without setting logging.debug separately. Any of logging.debug: true, logging.trace: true, or logging.level: debug enables them.
To use Companions, configure a provider in runtime.yaml. Assign a fixed profile to each name under provider.targets.companions; unassigned companions use provider.defaults. Companion targets cannot use a pool or ladder. If you still use legacy config.yaml provider settings, migrate them to runtime configuration.
version: 1
provider:
profiles:
review:
provider: codex
model: gpt-5
defaults:
profile: review
targets:
companions:
security-reviewer:
profile: review
Companion reviewers, moderators, and selectors run in readonly permission mode even if their profile sets another mode.
| Provider | Implementer tool events |
|---|---|
claude-sdk / claude |
Live |
codex |
Live |
claude-headless |
Live |
claude-terminal |
Replayed after the turn |
mock |
Scenario-dependent |
opencode |
Live |
pi |
Live |
devin |
Live |
cursor, copilot, kiro |
Unavailable |
When live tool events are unavailable, completion review and turn-boundary finding delivery still run.
Claude SDK, Codex, OpenCode, Pi and DeepSeek Harness SDKs are separate from the normal TAKT installation. Each TAKT release ships pinned manifests and locks. Installation uses npm ci --omit=dev --ignore-scripts in the managed directory and requires npm and registry access.
takt install claude-sdk
takt install codex
takt install opencode
takt install pi
takt install deepseek-harness
takt update # Update installed providers with version drift only
takt update codex # Update the selected provider only
Interactive entry points confirm required installations and approximate disk space before execution. Declining to install a missing SDK prevents execution; conversations explain how to install it and return to input. Declining an update keeps the intact older SDK with a warning; if that version fails, TAKT explains how to update it. Running workflows never prompt, install or update. Install required providers explicitly before CI, pipeline and watcher execution.
Approximate sizes are 250 MB for Claude SDK, 340 MB for Codex, 60 MB for OpenCode, 52 MB for Pi and 510 MB for DeepSeek Harness (measured on macOS arm64). Sizes vary by OS and architecture. Claude and Codex include managed CLI binaries. Explicit TAKT_CLAUDE_CLI_PATH and TAKT_CODEX_CLI_PATH overrides remain supported; same-name commands on PATH are not reused automatically. Install the external OpenCode CLI separately. Use takt install <provider> --force to reinstall. Failed updates preserve the previous intact generation.
Pi’s exception handler does not add update advice. If you are using an older SDK, update it with takt update pi.
GitLab supports MR details, CI status acquisition, and bulk selection. When Caccia is enabled, its effect in takt merge and from_pr tasks returns skipped with github_unavailable and continues to CI on the returned head. Merged results pipelines are matched through the merge commit’s second parent and the source head. Missing pipelines and pipelines for an older head do not pass CI. Selecting a merge method or constraining the head is still unsupported: merge_pr fails when either is supplied. Completing the CI wait does not imply a successful merge.
The default merge.workflow is merge-review-fix-simple. After AI conflict resolution, it gathers context, runs one read-only reviewer with dynamic facets, then adjudicates findings and handles fixes and verification in separate steps before the shared push, CI, CHANGES_REQUESTED, and merge flow. A clean sync skips this full review and proceeds to push, Caccia, and CI. Set merge.workflow: merge-review-fix to use parallel review. A CLI --workflow overrides this setting.
Bulk takt merge runs use merge.concurrency: 2 by default. Set it to a positive safe integer to change the number of concurrent PR workflows. The --concurrency CLI option overrides this setting. Root concurrency continues to control takt run and takt watch. An explicit PR number runs only that PR.
For a bulk takt merge run, TAKT collects all open PR numbers in creation order before reading each PR’s details and applying merge.where, include_draft, and include_forks. A PR closed before its details are read is skipped. If the number listing fails, no PR workflow starts. An explicit PR number ignores selection conditions and still runs the fork threat check.
assistant.formal_spec also applies to manager goal proposals. The manager does not ask at each registration: true and "Y/n" include both Quint and Alloy, while false and "y/N" omit them. Project configuration takes precedence over global configuration, resolving object fields independently. comments and model_check_timeout_seconds use the same settings as interactive mode.
Development and implementation goals use Gherkin for important observable behavior where a misunderstanding would change the result. Do not repeat those expected outcomes in acceptance criteria. Gherkin keywords are English; descriptions may use the conversation language. Goals for research, documentation, operations, or other non-implementation work do not use Gherkin.
Enter /verify in the manager conversation in either TUI or Slack to generate Quint and Alloy specifications from the current agreement and run the same checkers as interactive mode. Results return to the same conversation for the manager to interpret diagnostics and counterexamples. When formal specifications are disabled, verification is reported as unavailable. Registration does not automatically run verification, and verification alone does not register a goal or modify its proposal or saved specifications.