# Copy to ~/.afk-developer/config.yml. Credentials belong in Windows Credential Manager, # referenced as ${secret:name}; never put API keys in this file. # # Reasoner handles clarification, planning, reflection, and PRD synthesis. # Coder handles project modification. Researcher and validator are read-only # roles; omitted routes safely inherit the reasoner route. endpoints: copilot: type: copilot deepseek: type: openai_compatible base_url: https://api.deepseek.com api_key_ref: ${secret:deepseek-api-key} roles: reasoner: endpoint: copilot model: gpt-5.6-terra timeout: 300 # reasoning_effort: high coder: endpoint: copilot model: gpt-5.6-terra timeout: 900 # Bounded implementation workers should be inexpensive. DeepSeek V4 Flash is the # recommended worker route when the configured endpoint exposes it. # Example alternate coder route: # coder: # endpoint: deepseek # model: deepseek-v4-flash # timeout: 900 # Research and independent acceptance validation use Terra deliberately. # They are read-only and are invoked only by an explicitly profiled task. researcher: endpoint: copilot model: gpt-5.6-terra timeout: 300 reasoning_effort: high validator: endpoint: copilot model: gpt-5.6-terra timeout: 300 reasoning_effort: high # Foreman proposes a bounded split after a task is genuinely stuck. It never # mutates the queue: a Terra supervisor must approve every proposal. # foreman: # endpoint: deepseek # model: deepseek-v4-pro # timeout: 300 # reasoning_effort: high # Coder_light is an optional cheaper coder route reserved for future elastic # worker-pool use (fanned-out subtasks, best-of-N). Omitted, it safely inherits # the normal coder route. # coder_light: # endpoint: deepseek # model: deepseek-v4-flash # timeout: 900 # reasoning_effort: medium # Recovery remains disabled until a new plan explicitly opts into a bounded # researcher/validator workflow. Limits are per task and are persisted in plans. # Automatic semantic repair never selects xhigh reasoning effort. # Note: `afk campaign create` does not use this global default -- every campaign batch # gets its own bounded recovery policy (2 attempts each) from CampaignLimits instead, # so a campaign can absorb one more validator finding or missing-evidence supplement # before escalating than a plain (non-campaign) plan does. recovery: mode: off semantic_repair_limit: 1 research_supplement_limit: 1 high_reasoning_repair_limit: 1 xhigh_requires_explicit_enable: true # max_decompositions is a whole-plan budget (not per task): how many different # retries-exhausted tasks the foreman may split, total, for this plan/campaign. max_decompositions: 1 max_subtasks_per_decomposition: 5 max_decomposition_depth: 1 # A foreman proposal is inert until an explicit supervisor approval. A # decomposed parent likewise stays unresolved until post-merge coherence is # verified by the supervisor; child PASS statuses alone never complete it. require_supervisor_decomposition_approval: true require_supervisor_parent_coherence: true # Strict linting remains the default. Baseline mode is an explicit brownfield # policy that requires a saved Ruff baseline for the target project. review: lint_mode: strict max_auto_resume_passes: 10 # Per-attempt tool-calling turn budget, scaled by a task's estimated_effort. # "medium" (50) matches the long-standing worker default; tune per project. worker: max_turns_by_effort: small: 20 medium: 50 large: 80 # Keep only the most recent N turns of a task attempt's tool-call transcript # verbatim; older turns are collapsed into one deterministic progress-summary # message (tool-call counts + files changed so far), refreshed every turn. # Bounds context growth and nudges a coder stuck in an unproductive research # loop (e.g. repeatedly introspecting a library's internals) to notice no # files have changed yet and start implementing instead. Set to 0 to disable. summarization_window_turns: 12 # Independently cap the serialized tool transcript. If recent tool results are # unusually large, older whole turns are compacted further even before the # turn window is reached. Set to 0 to disable this size cap. summarization_max_context_chars: 300000 # A mutating coder may explore normally until either non-zero budget is # reached. With no successful write/edit yet, AFK then requires the coder to # write the bounded artifact or report one precise blocker. A later turn that # ignores the tool rejection ends promptly instead of exhausting all turns. # Read-only tasks are excluded. Set either value to 0 to disable that gate; # set both to 0 to disable the governor. discovery_progress_turn_limit: 8 discovery_progress_tool_limit: 20 # "inplace" (default) checks a task's branch out directly in the shared project # directory, exactly as AFK has always worked. "worktree" isolates each task in its # own `git worktree` under ~/.afk-developer/projects//worktrees/ instead -- # a prerequisite for ever running more than one task at a time against one repo. execution: isolation: inplace # Absolute target-project interpreter used for Ruff, pytest, and typed # verification. If omitted, AFK requires a project-local .venv interpreter; # it never falls back to the interpreter running AFK itself. # target_python: C:/projects/example/.venv/Scripts/python.exe