Skip to content

Generated config reference ​

Auto-generated from AgentProjectConfig and nested models in src/xcodon/config.py. Do not edit by hand.

Regenerate after config changes:

bash
python scripts/gen_config_reference.py

For curated explanations and examples, see configuration.md.

AgentProjectConfig (AgentProjectConfig) ​

FieldTypeDefaultDescription
modelstrgemini/gemini-3.8-flash
llm_tool_choiceOptional[str]autotool_choice for the agent loop's requests (OpenAI-style chat via LiteLLM). "auto" (default) sends none, so the provider decides, and sends "required" once after a turn that answered in prose instead of acting. null never sends one, not even then: a local vLLM server returns HTTP 400 for any tool_choice unless started with --enable-auto-tool-choice and --tool-call-parser <parser>. Any other value (for example "required" or "none") is sent on every request that carries tools, except that a forced choice becomes "auto" on Claude models that refuse it.
llm_max_output_tokensOptional[int]nullMost tokens one agent model reply may use, reasoning included (sent as max_tokens). None leaves it to the provider. Set it for a self-hosted server whose default is the whole window: one reply stuck in a reasoning loop can then fill it.
llm_temperatureOptional[float]0.2Sampling temperature for the agent loop and the /compact summary (0.0–2.0). Default 0.2 keeps tool use steady. null sends no temperature, so the provider default applies (usually 1.0). Models that refuse a custom temperature never get one, whatever this says: GPT-5, Gemini 3, Claude Opus 4.7+ / Sonnet 5+ / Fable, and any Claude model while thinking. Planning, review and skill calls keep their own fixed values.
max_stepsint20Max LLM rounds per user message; raise if work spans many tool rounds. This is also used as the per-step hard cap — the deepagents backend translates it into the LangGraph recursion_limit so a stuck agent can't blow past the configured budget (previous versions silently allowed up to max(96, max_steps * 16) internal steps, which is how a ~10-round budget could bleed into ~95 rounds of identical retries).
same_tool_max_repeatsint5Hard cap on how many times a single (tool_name, arguments) pair can be dispatched within one user turn. The 5th identical call is blocked and returns a REPEAT-CALL GUARD observation that quotes the first identical call's result; after three blocks of one call the turn ends (super mode continues with a "Loop stopped" message). Set to 0 to disable (not recommended — this is what prevents the curl ... && exit=6 spin loops reported in practice).
execution_approvalbooltrueWhen True (default), only read/list/discover tools are available until the user sends an explicit approval line (e.g. proceed / run it / ok). Shell, writes, Coala execute, coala_invoke, MCP, and handoff require that unlock.
human_in_the_loopbooltrueIf True, system prompt asks the model to pause for user approval between major steps.
super_modeboolfalse
super_mode_max_continuationsint8When super_mode is on, nudge the agent to continue if it ends a turn with text-only while the reproduction checklist is incomplete (up to this many continuations per user message).
harness_enabledbooltrueAppend session + tool I/O to outputs/harness_notebook.md (notebook-style).
harness_solution_llmbooltrueWhen true (default), each harness_report.md rebuild runs one LiteLLM call to format #### Solution (minimal complete generation/retrieval code—lookups via MCP/API, downloads, and transforms), #### Output (path bullets), and #### Notes (short prose) per checklist step (falls back to heuristics on failure). Set false in agent.yaml for heuristics only (no extra API call).
harness_solution_llm_modelOptional[str]nullModel id for harness solution extraction; defaults to model.
harness_solution_llm_total_budget_charsint96000Max total characters of merged step bodies sent to the solution LLM (each step is also capped separately).
harness_validation_llmbooltrueWhen true (default), each harness_report.md rebuild runs one LiteLLM call to add #### Validation per checklist step (request alignment, outcome plausibility, red flags). Set false to skip.
harness_validation_llm_modelOptional[str]nullModel id for harness validation review; defaults to harness_solution_llm_model then model.
step_data_factsboolfalseOff by default: on 18 benchmark tasks the records cost 15 to 24 rounds each, described file shapes (mostly of files the run wrote itself) rather than what a method depends on, and changed almost no step. When true, before a checklist step computes the agent investigates each input in its Data: line with its own code and writes workspace/data_facts/<input>.md; once the step's required records are current, one call checks the step's Data and Method against them (agent/step_data_facts.py). Set false to skip.
improve_roundsboolfalseOff by default: resumed on six benchmark tasks, the rounds added 540 model calls, raised no grade and lowered three. Each round shipped whichever candidate scored better on the agent's own simulation or cross-validation, and those disagreed with the grader. When true, an autonomous run that would stop with time left after its score step adds up to three steps that try another method for the result furthest from its bar (agent/improve_rounds.py).
explore_before_planboolfalseHeadless runs only. When true and no plan exists yet, the agent loop first runs once out of super mode (at most explore_before_plan_steps steps) to look at the data and keep workspace/exploration/notes.md; the planner then reads those notes beside the task, so the plan's measures and settings come after looking (agent/explore_before_plan.py).
explore_before_plan_stepsint120Step cap for the exploration before planning.
explore_before_plan_review_stepsint60Step cap for a second, fresh pass that reads the notes against the task and fills the conditions they leave out or searched only in part. 0 turns it off.
run_modeLiteralautoThe run mode the terminal interface and the web page set up for a project, decided when its subject is known. Direct mode is offered only for the user's own plan or a typed task (subject kind own_plan); a paper, a template or a software project always runs in plan mode. auto (default) and direct: the user's own plan runs in direct mode, and the setup step lets them pick plan mode instead. plan: every subject runs in plan mode. Setup writes the result to direct_mode, which is what a run reads; a headless run reads direct_mode only (project_init.set_run_mode_for_subject).
direct_modeboolfalseHeadless runs only. When true, the run has no plan and no checklist steps: one conversation goes from the first look at the data to the final files (at most direct_mode_steps model calls), then fresh conversations review each condition the task names, and last the hard-fact checks on the deliverable files run (agent/direct_mode.py). The agent gets a short system prompt, three tools, plain script output and no per-round digest.
direct_mode_stepsint150Model-call cap for the work turn of a direct run.
direct_mode_check_stepsint30Model-call cap for the last review conversation (units with two conditions, and the files). 0 turns every review off.
direct_mode_condition_stepsint20Model-call cap for the review of one condition the task names (0: use direct_mode_check_steps).
direct_mode_reviewsLiteralautoHow a direct run reviews its work. each: a fresh conversation per condition the task names, then the last review (units with two conditions, the reference, the files). one: only the last review. auto (default): one when an ACP agent does the turns (direct_mode_agent, or an acp/ model), which finds the task's faults in its own looks, and each for xcodon's own loop, where the condition reviews found faults the work turn missed.
direct_mode_condition_close_stepsint8Model-call cap for a closing turn, in the same conversation, after a condition review that ended without a line in its log: the verdict and the fix from what it already printed (0: none).
direct_mode_tool_searchbooltrueWhen true, a direct run also gets coala_search and coala_invoke (skill import) and is told to look for an established tool before it writes a known method by hand. The tool runs from a script call that names the skill's image as docker_image. A task with no packaged tool runs as before: the agent does not search.
direct_mode_agentOptional[str]nullA /codon handoff preset with protocol: acp (for example antigravity). When set, a direct run sends each conversation turn to that agent over the Agent Client Protocol instead of xcodon's own loop: the work turn, the finish turns, each condition review and each fix round, plus the side calls (the tool search's and the condition list). The agent works in the project root with its own shell and file tools and, unless the preset sets xcodon_tools: false, xcodon's script and tool-search tools; no LiteLLM model or key is needed. The domain-skill lookup is skipped (agent/acp_worker.py).
direct_mode_agent_sec_per_stepint60An ACP agent cannot be held to a number of model calls, so each turn gets a time limit instead: this many seconds per call the turn would have had (150 calls for the work turn at 60 s is 2.5 hours).
direct_mode_domain_skillsbooltrueWhen true, a direct run looks for domain skills before its work turn, as a plan-mode run does before its plan: the skills the user chose on the setup page, else the automatic lookup on the task text (tools.skill_finder_enabled). The matches reach the agent as a list of skill files to read, beside the host's own domain rules for the task's topics (agent/direct_skills.py).
direct_mode_method_rulesbooltrueWhen true, the first message of a direct run carries, after the task text, the method rules of the bundled skills scientific-basics and analysis-method-selection: which method a kind of data and question calls for, what it must cover and what is reported with it (plan_skill_context.direct_run_method_rules). The call that lists the task's methods for the tool search (direct_mode_tool_search) reads the same tables, so it names the field's method where the task leaves one open. When false, the system prompt only names the skill files as optional reading.
direct_mode_fix_roundsint2How often a failed hard-fact check (a named deliverable is missing or unreadable, an identifier no input holds) goes back to the conversation.
plan_reviewbooltrueHeadless plan-mode runs. When true, a run whose checklist is complete goes on with the reviews of a direct run: each condition the task names is reviewed in a fresh conversation, then the files are checked (agent/plan_review.py; the call caps are the direct_mode_check_steps settings). It runs only when the user's own task text names a condition and one recorded script writes the task's files under outputs/; a report or an answer the agent typed gets no review here. Where that script reads files earlier scripts of the run wrote, their recorded code is copied to workspace/review/earlier/ and each review message names them.
cheap_looksbooltruePlan-mode runs. When true (default), a look at the data costs one model call, as in a direct run: the script tools take inline code through a short schema, mount the project folders by default and return the script's plain output, and no digest message follows a tool round (sets tools.coala_short_script_tools, tools.coala_default_mounts, tools.coala_plain_output and turns round_digest_enabled off for the run). A saved plan-mode run spent 2.6 model calls per script it ran, a direct run 1.5.
plan_styleLiteralgoalWhat a plan-mode plan fixes. goal (default): a step states its goal, the result the sources expect, and every tool and method the task, the paper or a given document names. Those are followed as written; the agent decides what they leave open in the step, after it looks at the data, and reports the measurement behind each choice. One problem is one step. The exploration step, the plan's alignment to the data profile, the extra plan drafts and the tool declaration are skipped: each exists to repair a method fixed too early. On three runs of one benchmark task this style found 9 of 10 faulty units each time, against 7 for the method style, with fewer model calls. method: every checklist step carries its full method, with models, parameters and cut-offs, written before any code runs on the data; a first exploration step and one re-plan call then revise it (agent/planning.py, agent/workflow.py).
round_digest_enabledbooltrueWhen true, each tool round is followed by an automated digest message that asks for prose before the next tool call. Direct runs turn it off: the agent reads the tool output itself.
history_arg_truncationbooltrueWhen true, long tool arguments older than the last 20 messages are cut from the history. Direct runs turn it off: the arguments are the scripts the agent ran.
explore_firstbooltrueAutonomous and interactive sessions. When true, a fresh run's plan gets a first step (or one right after the plan's leading download steps) that measures, on the inputs, each condition the task names and reads every parameter the input files hold (workspace/exploration/findings.md); when it is complete, one call revises the pending steps so each threshold, rule or setting comes from the task, an input file or the findings (agent/explore_step.py). Autonomous runs also run the exploration's condition checks on the deliverables before they stop. Set false to keep the plan as written.
harness_validation_agent_retrybooltrueWhen true (default), after a step is marked complete, if report validation fails the agent is nudged to redo that step with tools (instead of asking the user to proceed).
harness_validation_max_continuationsint3Max agent continuations per user message when harness validation fails after a completed step.
harness_gate_enabledbooltrueRun the deterministic step gate (artifacts, declared checks, restrictions, plan-number bindings, Output consistency, sources, deliverables, claims) before any LLM judge. A red gate is reported to the agent as a table with no LLM call.
harness_gate_groupslist[str]['core', 'integrity']Gate check groups that run (all for every group). core: promised files exist, the agent's own declared checks pass and stand unweakened, graded files keep their shape, outputs trace back to the inputs. integrity: the fabrication scan (per step and on the graded files at the end), data-facts records, figure views, claims against the step's own tables, one value per quantity. plan_binding: the plan's restrictions and stated numbers proven on the output, its named items and row keys. tools: each named tool ran, each named source was reached, the share of data used. Off by default: across 40 benchmark runs the tools rows raised only false alarms (over 90 rounds), and plan_binding caught nothing there.
harness_judge_scopeLiteralallWhich steps the LLM judge reviews. all (default): every analysis and synthesis step. graded: only the last step and every step whose Expected output names a file the task grades (every step when the task names no graded file) — fewer judge calls, the main cost of the judge, but a step that builds a graded value in an intermediate file goes unjudged: on one run that skipped the only judge catch that changed a test.
harness_gate_max_roundsint3Agent rounds a step may spend clearing its gate before the step is marked fail_blocked.
harness_gate_per_stepbooltrueIn super mode, run the step gate the moment a checklist step is announced done and nudge a red step back into the live run, instead of waiting for the run to end. Costs nothing on a green step; a red step spends the same validation rounds it would at turn end.
harness_judge_enabledbooltrueRun the LLM judge for analysis and synthesis steps whose gate is green. harness_validation_llm: false also turns this off.
harness_judge_max_roundsint1Solution-LLM revision rounds after a judge fail_fixable.
harness_final_review_enabledbooltrueRun one referee pass over the graded deliverables before the run is allowed to stop. It can only append checklist steps for a missing piece of the investigation (a baseline never compared, a per-item result only summarized, a provided file no step analysed).
harness_final_review_max_roundsint1Referee passes a session may spend. One is the intended budget: the pass exists to catch a missing limb once, not to iterate.
harness_judge_mechanical_stepsboolfalseAlso judge mechanical steps (acquire / inventory / upstream pipeline). Off by default: a script-checkable step gets no LLM review.
skill_auto_applybooltrueWhen true (default), skill_apply_pending runs a compose step in the same turn: one model call decides MERGE, REVISE or KEEP for the proposal in skills/_pending/<name>.md, the result is validated, and the old file is kept under skills/<name>/.history/. Set false to keep proposals pending for manual merge. Only gates writing skill updates — skill loading and use are unaffected.
skill_file_max_charsint20000Largest skills/<name>/SKILL.md the skill_apply_pending compose step may write. A merge result over this size is rejected and the skill is left unchanged.
plan_reasoning_effortLiteralhighThinking budget for planning — the initial research plan, own-data regeneration, /codon plan, the plan-instruction review and the end-of-run referee — on models that support a reasoning mode. The plan is the one artefact every later step is measured against, and a weak plan is not recoverable downstream, so this defaults to "high". It was "medium" because Gemini's longer high-effort replies intermittently truncate mid-body; acompletion_with_length_retry and num_retries cover that, and lowering this to "medium" remains the fallback if a provider proves fragile. No effect on models without a reasoning mode.
plan_modelOptional[str]nullOptional LiteLLM model for the planning-side calls only: the research plan and its own-data regeneration, the plan-instruction review, /codon plan, /codon split suggestions, and the skills.sh keyword extraction and match gate. These are the few calls with the highest leverage — planning happens once per project, running takes dozens of rounds per step — so a stronger model here pays for itself while model stays fast for the agent loop. None (default) uses model: single-model setups are unchanged. Pair with harness_validation_llm_model to give the step judge and final referee the same stronger model.
plan_draftsint3Independent drafts of the research plan written before its review. With more than one, a merge call keeps, for each part of the Question, the draft whose step answers it most completely — the method that fits the data, the comparison the Question implies, a selection with both a significance and an effect-size cutoff — and adds nothing no draft has. One draft varied from run to run under the same prompt: on 50 benchmark tasks the better choice was often in one run's plan and missing from the next. Drafts run in parallel on the planning model, a small share of a run's tokens; a failed merge keeps the first draft. The drafts and the merge are saved in workspace/plan_drafts/. 1 writes a single draft, as before.
validation_reasoning_effortOptional[Literal]highThinking budget for the LLM validation judge (and the run-end fabrication review). "high" (default): the judgement the deterministic gate cannot make gets a full budget. None sends no reasoning_effort and leaves the provider's default (medium for GPT-6.1 Sol), as sweeps before 0.5.9 ran.
agent_reasoning_effortOptional[Literal]highThinking budget for the agent loop itself, the model that does the work. "high" (default). This is the busiest call by far — tens of calls per step against a large context — so it changes both quality and output spend more than any other knob here; None sends nothing and lets the provider decide, as sweeps before 0.5.9 ran. Models without a reasoning mode are unaffected: xcodon sends the setting only where the model takes it. "xhigh" and "max" go only to models that list them (GPT-6.x); others get the highest level they take. GPT-6.1 Terra thinks for 0 tokens on tool-bearing calls at "high" and "xhigh"; only "max" makes it reason (about 400–800 tokens) before it acts.
plan_excerpt_max_charsint40000Max characters of outputs/research_plan.md injected into the system prompt (each request).
heartbeat_excerpt_max_charsint6000If >0 and HEARTBEAT.md exists at project root, inject it (OpenClaw-style operating context). 0 disables.
vfs_rootslist[str]['inputs', 'workspace', 'outputs']Project-relative directories indexed by WorkspaceVfs (default: inputs, workspace, outputs).
vfs_prompt_max_charsint8000Max characters of VFS tree + delta injected into the system prompt. 0 disables.
vfs_index_max_entriesint50000Stop adding paths to state/vfs_index.json when the index reaches this size.
skill_digest_max_charsint800Max characters per SKILL.md excerpt in the system prompt.
plan_context_digest_max_charsint8000If >0, inject recent outputs/plan_context_digest.md (Deep Agents summarization cache) into /codon plan.
plan_context_digest_file_max_charsint48000When appending summarization summaries (automatic or /compact), trim oldest digest sections so the file stays under this size.
plan_digest_substance_min_charsint400If the digest file is at least this large, /codon plan uses a shorter checkpoint tail (cache hit).
context_budget_tokensint200000Most tokens one agent model call should carry. The working budget is the smaller of this and the model's context window; 0 uses the full window. Compaction runs at compaction_trigger_fraction of the budget, keeping the most recent 15% of it verbatim and replacing the rest with a handoff recap. Lower it to cut cost per call; raise it (or 0) if long turns lose detail. Must be 0 or at least 32,000.
compaction_trigger_fractionfloat0.8Share of the context budget at which the conversation is compacted (0.5–0.95).
model_context_window_tokensOptional[int]nullContext window of the agent model, for models LiteLLM does not know (e.g. a local vLLM server). None asks LiteLLM and falls back to 128,000 tokens.
reflection_enabledbooltrueAfter a clean agent turn, run a reflection LLM pass. When the turn shows a finding a future run could not work out again from its files (a strategy, a checked rule, a tool quirk or a multi-try fix), it writes a lesson entry (or bumps Seen on a known one) in the project lesson log; otherwise it skips. Set false to disable.
host_memory_enabledbooltrueRead and dream host memory (~/.xcodon/memory/) for this project. false (benchmark runs) drops the host memory index, page prefetch, plan domain rules and the /global-memory/ mount, keeps reflection off host lessons, and makes xcodon dream and /codon wrap refuse the project.
reflection_skill_folderstrreflectionsKebab-case folder under <project>/memory/<folder>/ for the project lesson log (default reflections). /codon wrap folds it into host ~/.xcodon/memory/lessons.md.
reflection_modelOptional[str]nullLiteLLM model for reflection; defaults to the agent model.
reflection_transcript_max_charsint24000Max characters of checkpoint transcript sent to the reflection model.
reflection_harness_tail_max_charsint12000If >0 and harness is enabled, append this many tail characters of harness_notebook.md to reflection input.
reflection_skill_file_max_charsint40000Size cap for lesson logs and memory/hooks.md. Lesson logs drop the lowest-Seen, oldest entries first.
reflection_on_step_limitboolfalseIf True, also run reflection when the turn ends only because max_steps was reached (still had tool calls).
cwl_failure_reflection_enabledbooltrueWhen true (default), every CWL-backed MCP tool call that reaches a terminal failure (autofix exhausted, runtime error detected, or the repeat-error circuit breaker tripped) appends a debug block to outputs/cwl_failures.md with the tool name, arguments, result body, stderr excerpt, and any structured :class:CwlRuntimeIssue hint. This file is not a persistent reflection skill — it's a per-project debug log safe to delete between sessions (the long-term reflection lives under memory/reflections/SKILL.md).
cwl_failure_reflection_max_charsint120000FIFO cap for outputs/cwl_failures.md. Oldest ## CWL failure — blocks are dropped when this size would be exceeded.
memory_hooksMemoryHooksConfig(see nested section)Programmatic triggers that append ## Memory hook — blocks (see MemoryHooksConfig).
prompt_cachePromptCacheConfig(see nested section)Provider prompt-cache markers; see PromptCacheConfig. Does not change agent semantics.
checkpoint_tool_content_max_charsint12000Truncate each retained tool message past this length (0 = off). Full output stays in harness_notebook.md.
llm_round_tool_output_max_charsint48000Max total characters of tool output returned to the model in one LLM round (sum across tool calls). 0 = no round budget.
llm_round_max_tool_callsint0Optional hard cap on tool calls per LLM round (0 = unlimited; round char budget still applies).
checkpoint_keep_recent_tool_messagesint8Keep full (truncated) bodies only for the last N tool messages; older ones become a short placeholder (0 = keep all tools, truncate only).
session_pruning_enabledbooltruePer-request: trim old tool results in a copy sent to the LLM (OpenClaw-style session pruning).
session_pruning_keep_recent_toolsint8Keep full (or soft-trimmed) bodies for the last N tool messages; older tools are hard-cleared (0 = never hard-clear, soft-trim only).
session_pruning_soft_trim_if_longer_thanint4000For retained tool messages, soft-trim head+tail if longer than this (0 = off).
session_pruning_soft_trim_head_charsint2000
session_pruning_soft_trim_tail_charsint2000
mcp_serverslist[McpServerConfig][]
toolsToolsConfig(see nested section)
mcp_tools_maxint0

memory_hooks (MemoryHooksConfig) ​

FieldTypeDefaultDescription
memory_hooks.enabledbooltrueMaster switch for programmatic memory hooks (independent of reflection_enabled).
memory_hooks.on_tool_errorbooltrueAfter a tool round, if any tool output looks like a failure, append one stub block.
memory_hooks.on_compactionbooltrueAfter a successful context compaction, append a short stub with summary preview.
memory_hooks.target_folderstrreflectionsNo longer used: hooks always write to memory/hooks.md. Kept so older agent.yaml files still load.

prompt_cache (PromptCacheConfig) ​

FieldTypeDefaultDescription
prompt_cache.enabledbooltrueWhen true, attach cache breakpoints to the stable system prefix when the provider supports them. Prompt stable/volatile split always applies; this flag only toggles markers.

tools (ToolsConfig) ​

FieldTypeDefaultDescription
tools.allow_shellbooltrueHost run_shell (git, wget, unzip, etc.). Set false to block shell in untrusted/automated runs.
tools.shell_timeout_secint120Quick-command budget for run_shell. A command that runs longer is not killed: it becomes a tracked long job that xcodon waits for (up to shell_job_max_sec) with no LLM call in between. Only the tool result changes — a footer says how long the job ran and where its logs are.
tools.shell_job_max_secint14400Hard cap on one run_shell command (default 4 h; inside a Slurm job, at least the job's remaining time less 10 min — see agent/job_time.py). The process group is killed at the cap and the result says so. Longer than coala_execute_timeout_max_sec on purpose — the coala executor caps itself at 1 h, so a multi-hour job runs here.
tools.shell_job_watch_secint30How often the watcher samples a running long job (elapsed time, output bytes, CPU time and disk writes of the process group) and appends a line to state/jobs/<id>/watch.log. Also the interval of the "still running" log line during long coala_execute_* / MCP calls.
tools.shell_job_stall_secint1800Kill a long job when its process group's CPU time, output bytes and disk-write bytes have all stopped growing for this long. A silent compute-heavy tool keeps burning CPU and is never stalled; a quiet download grows its write bytes. 0 disables the check. Needs /proc (Linux); off elsewhere.
tools.shell_job_keepint50How many state/jobs/<id>/ directories to keep. A new long job deletes the oldest ones first (ids sort by their UTC timestamp), so a long session cannot fill the project with job logs. 0 keeps every job.
tools.shell_job_log_max_bytesint20000000Cap on each stdout.log / stderr.log left on disk after a long job ends (default 20 MB). A larger log is rewritten as its head and tail with a one-line marker in between, so one runaway command cannot fill the project disk. 0 keeps the whole log.
tools.shell_job_memory_maxstr80%Memory ceiling for one run_shell long job, as a systemd value (80%, 40G). The job runs inside a systemd user scope, so the kernel's cgroup OOM killer stays inside that scope: a runaway takes itself down instead of the machine. Default 80% of RAM, leaving the desktop and xcodon room to survive. Set "" to run without a scope (no ceiling). Ignored where systemd user scopes are unavailable (an HPC compute node with no user manager), where shell_job_oom_score_adj is the remaining protection.
tools.shell_job_memory_highstr``Optional throttle point below shell_job_memory_max (systemd MemoryHigh). Off by default, deliberately. Past this point the kernel reclaims hard and the job slows instead of dying — measured on a four-way runaway, the ceiling alone killed it in 0.2 s, while adding a throttle left it thrashing until shell_job_max_sec (four hours in production) because reclaim keeps the CPU busy and the stall check never fires. Set it only when a known job merely peaks over the line and you would rather it crawl than die.
tools.shell_job_oom_score_adjint700oom_score_adj given to a long job's processes (-1000..1000; 0 disables). If a global OOM happens anyway — on a host with no systemd scope — the kernel picks the highest score, so the job dies instead of the user's session. The default is deliberately above a desktop browser's (~300): in the incident this guards against, the 13 GB runaway scored 100 and the browser was killed instead.
tools.trace_executionsbooltrueRecord what every execution reads, writes and runs in state/provenance/ledger.jsonl: run_shell under strace (when installed), container scripts through a short tracing preamble, MCP tool calls through the paths they are given, and files the agent writes itself as typed. The step gate uses the ledger to check that each output traces back to the input data, that the tools the plan names actually ran, and that the data used is a plausible share of what the plan names. Set false to run without tracing (the gate then skips those checks).
tools.shell_block_outside_projectbooltrueWhen true (default), run_shell refuses commands that scan or read paths outside the project home (e.g. find /, grep -r /home, cat /etc/passwd, ls ~/.ssh) — keeping the agent's footprint inside project_root plus built-in temp/device roots (/tmp, /var/tmp, …) and any shell_extra_allowed_absolute_prefixes. Set false only if you trust the agent to enumerate the host (rare).
tools.shell_extra_allowed_absolute_prefixeslist[str][]Absolute path prefixes (each must start with /) that run_shell may list/read when shell_block_outside_project is true. Use on HPC hosts where Singularity/coala-runtime stages under job scratch (e.g. /scratch). Entries containing .. are ignored. Does not relax find/grep -r across the whole prefix unless the command targets paths under these prefixes.
tools.shell_output_max_charsint12000Max characters returned from run_shell to the model (stdout+stderr); larger output is truncated (full log in harness when enabled). 0 = no cap.
tools.read_file_max_bytesint65536Max characters returned from read_*_file and Deep Agents read per file (excerpt head+tail when larger). 0 = no cap.
tools.read_inputs_max_bytesint32768Stricter per-file cap under inputs/ when read_inputs_extra_strict is true.
tools.read_file_refuse_bytesint5242880Refuse reads (built-in + read) when file size exceeds this (default 5 MiB). 0 = never refuse on size alone.
tools.read_inputs_extra_strictbooltrueApply read_inputs_max_bytes under inputs/ (user data).
tools.shell_refuse_inputs_read_bytesint5242880Refuse run_shell cat/less/more on inputs/ files larger than this. 0 = off.
tools.shell_head_max_linesint500Cap head -n N when N exceeds this value.
tools.allow_coala_clibooltrueAllow coala_search / coala_invoke in the agent loop. With default coala_dispatch_python, the coala-client library is used (no coala binary required). When false, /codon plan may still run read-only index search if plan_allow_coala_search is true.
tools.plan_allow_coala_searchbooltrueWhen true (default), /codon plan prefetches the Coala tools index via coala search before the planner LLM—even if allow_coala_cli is false. Skill import during prefetch is controlled separately by plan_allow_coala_skill_import.
tools.plan_allow_coala_skill_importbooltrueWhen true (default), /codon plan may run coala_invoke ["coala","skill",…] after search so SKILL.md (e.g. docker_image) lands under .agents/skills/—even if allow_coala_cli is false. The live agent loop still requires allow_coala_cli for coala_invoke. Set false to prefetch search only.
tools.coala_plain_outputboolfalseWhen true, a coala_execute_* result reaches the model as the script's plain output (stdout, then stderr and the exit code when it failed) rather than the executor's JSON record.
tools.coala_default_mountsboolfalseWhen true, a coala_execute_* call with no input_files mounts the project's inputs, workspace and outputs folders at /inputs, /workspace_host and /outputs.
tools.coala_short_script_toolsboolfalseWhen true, the two coala_execute_* tools take their fields at the top level (no params wrapper) and carry a short description that asks for inline code for a look and a saved file for a script that writes results.
tools.library_skill_prefetchbooltrue
tools.allow_coala_skill_importbooltrue
tools.coala_skill_skip_librarieslist[str]['pandas', 'numpy', 'scipy', 'scikit-learn', 'sklearn', 'matplotlib', 'seaborn']Libraries for which no Coala skill is fetched: they are skipped by the automatic prefetch and refused on a manual coala_search / coala_invoke ["coala","skill",…], with the reason. Defaults to the general-purpose Python data, ML and plotting stack — pandas, numpy, scipy, scikit-learn/sklearn, matplotlib, seaborn — whose SKILL.md tells a competent model nothing it does not already know; add your own field's staples as needed. Names are matched case-insensitively with . and - treated alike, so data.table also covers data-table. Set to [] to fetch a skill for every library.
tools.skill_finder_enabledbooltrueWhen true (default), plan generation and /codon plan look for a matching domain skill on skills.sh, confirm it against the aim or step text with an LLM gate, and on a match download and install third-party skill code into the project (.agents/skills/). The aim-level search keywords are the analysis methods the model extracts from the aim (fine-mapping, cis-eQTL, LD pruning); each compound method name is also searched on its own. Fetched skill directories are cached for 24 h under ~/.xcodon/cache/skills/ (XCODON_SKILL_CACHE_ROOT); when the skills.sh download API is rate-limited the skill comes from a shallow git clone. Set false to disable all skills.sh discovery/installation.
tools.skill_finder_timeout_secint120Timeout (seconds) for each skills.sh discovery/install HTTP call or subprocess (git clone fallback, coala skill …).
tools.skill_finder_max_candidatesint5Max candidates kept per search query before the LLM match gate runs (the merged pool across the primary and per-method queries is capped at twice this).
tools.skill_finder_ownerOptional[str]nullOptional GitHub owner/org filter passed to the skills.sh search (owner=); None searches all owners.
tools.coala_search_timeout_secint90
tools.coala_invoke_timeout_secint600Timeout for coala mcp/skill imports via coala_invoke (can be slow).
tools.coala_execute_timeout_secint3600Injected as params.timeout on coala_execute_* when the call omits a positive int (coala-runtime’s own default is 300s). Default 1 h, because coala-runtime’s PythonExecutorInput refuses any timeout above 3600 — a higher value here is not a longer run, it is a rejected call.
tools.coala_execute_timeout_max_secint3600Clamp for params.timeout after default or explicit value (seconds). Must not exceed 3600: the executor validates the field itself and rejects the whole call, so anything larger turns a slow script into a failed one. A job needing longer belongs in run_shell, which has its own cap.
tools.mcp_call_timeout_secint14700Read timeout for every MCP tool call (ClientSession.call_tool(read_timeout_seconds=…)), including Coala CWL toolsets and the coala-runtime executors. A hung job returns an error after this long instead of blocking the run forever. Inside a Slurm job it is raised to the job's remaining time less 10 min when that is longer, so a long tool (Cell Ranger, a genome build) is not cut off while the job still has time (agent/job_time.py). Kept well above coala_execute_timeout_max_sec (and above shell_job_max_sec): at the same value the two caps race, and the bare MCP timeout would win over the container's own timeout message and its partial stdout. 0 keeps an unlimited wait.
tools.coala_dispatch_pythonbooltrueWhen true (default), coala_search / coala_invoke use the coala-client Python APIs (tools index, skill import, MCP import) into the project's .agents/ tree—no coala binary on PATH is required. Set false to force the legacy coala subprocess (e.g. for tests or custom CLI builds).
tools.external_cliExternalCliConfig(see nested section)
tools.handoff_cli_presetsdict[str, HandoffCliPreset]{}Extra or overriding /codon <name> handoff profiles (keys are case-insensitive). Merged over built-in gemini / codex / antigravity (ACP).
tools.coala_runtime_serverOptional[str]coala-runtimeMCP server name that exposes coala_python_executor / coala_r_executor (default matches DEFAULT_COALA_RUNTIME_MCP_SERVER).
tools.coala_runtime_container_engineLiteraldockerContainer engine for coala-runtime MCP. Merged into that server's env as COALA_CONTAINER_ENGINE (what coala-runtime reads; same as --engine). Also sets COALA_RUNTIME_CONTAINER_ENGINE for older notes.
tools.coala_mcp_container_engineLiteraldockerCWL container runner for coala mcp imports: passed to coala-client container_runner and to subprocess coala mcp --container-runner (docker, podman, singularity, xcrunner; apptainer is sent as singularity). Also merged as COALA_MCP_CONTAINER_ENGINE on run_mcp.py MCP servers for downstream hints.
tools.container_engine_fallbackbooltrueWhen an engine above is docker and no Docker daemon answers docker info, run coala-runtime containers and CWL toolsets on xcrunner for this session instead of failing. Decided once per session and logged as a warning; agent.yaml is not rewritten. Only a docker value is switched — podman, singularity, apptainer and an explicit xcrunner are left alone — and only when the installed packages can actually run xcrunner (the published coala-runtime 0.1.0 and coala-cli 0.2.1 cannot). Set false to keep docker and let it fail, which a run comparing engines needs.
tools.coala_runtime_tmpdir_project_relativeOptional[str]nullIf set (e.g. workspace/tmp), xcodon sets TMPDIR on the coala-runtime MCP process to <project_root>/<path> (resolved). Upstream coala-runtime stages host output dirs via tempfile.mkdtemp(); TMPDIR steers that away from system /tmp into the project tree. The directory is created if missing. Paths must resolve inside the project root; override with coala_runtime_mcp_extra_env.TMPDIR.
tools.xcrunner_env_project_relativeOptional[str].xcrunner-envProject-relative folder that holds the xcrunner writable layer, passed to the coala-runtime MCP process as XCRUNNER_ENV_DIR when the engine is xcrunner. Tools installed inside a container (pip, apt, R) persist there across calls and runs, keyed by image id. The default sits at the project root, outside workspace/, so the agent's file tools never see the layer. Paths must resolve inside the project root; override with coala_runtime_mcp_extra_env.XCRUNNER_ENV_DIR. Set to null to disable. With the xcrunner engine, xcodon also puts docker, conda, mamba and micromamba shims in <folder>/bin at the front of its own PATH and sets XCRUNNER_ENV_DIR for every command it starts, so the agent's docker builds and conda installs go through xcrunner.
tools.coala_runtime_default_python_imageOptional[str]nullDefault docker_image for coala_execute_python when params.docker_image is omitted (e.g. python:3.12-slim). Does not override per-call or SKILL frontmatter values.
tools.coala_runtime_default_r_imageOptional[str]nullDefault docker_image for coala_execute_r when params.docker_image is omitted (e.g. bioconductor/bioconductor_docker:RELEASE_3_20). Replaces the coala-runtime stock R image (coala-runtime-r:latest, published as ghcr.io/coala-info/coala-runtime-r) for those runs.
tools.coala_runtime_enforce_default_imagesboolfalse
tools.coala_runtime_base_python_packageslist[str]['pandas', 'numpy', 'scipy', 'scikit-learn', 'matplotlib', 'seaborn']Python packages the stock coala-runtime-python image already ships. Declaring one in params.packages would build a derived image to install what is already there — minutes per task, for nothing — so these names are dropped before the build decision, and a run whose only dependencies are these runs straight on the default image. Applies only when the run targets the default image and that image is the stock one: an explicit docker_image (a biocontainer, say) or your own coala_runtime_default_python_image may not have them, so nothing is stripped there.
tools.coala_runtime_mcp_extra_envdict[str, str]{}Extra env merged onto the coala_runtime_server MCP entry after engine defaults (e.g. SINGULARITY_CACHEDIR). Values here override conflicting keys set by coala_runtime_container_engine.
tools.coala_mcp_extra_envdict[str, str]{}Extra env merged onto each run_mcp.py MCP server after engine defaults; override keys from coala_mcp_container_engine when needed.
tools.deps_backendLiteralcontainer_artifactHow to persist R/Python deps for built_image_label: bake a Docker/Podman tag or Apptainer .sif (container_artifact). pixi and auto are accepted for compat but coala-runtime save/reuse always uses container artifacts — pixi is host-local only.
tools.pixi_enabledboolfalseDeprecated for coala-runtime: previously allowed auto → pixi fallback after a failed container bake. Pixi envs cannot be wired into coala-runtime Docker; leave false.
tools.pixi_project_relativestrworkspace/.pixi-envProject-relative directory containing pixi.toml (host-local tooling only).
tools.pixi_extra_depslist[str][]Extra pixi/conda dependency names for host-local pixi manifests (not coala-runtime).
tools.container_cache_relativestrworkspace/container_cacheProject-relative directory for recipes, .sif files, and build contexts.
tools.auto_built_image_labelbooltrueWhen true, coala_execute_* with packages and no built_image_label uses python-deps / r-deps for this project so a successful install is saved and later matching or subset calls skip reinstall; extra packages delta-extend the bake. Explicit built_image_label still wins.
tools.container_build_fakerootbooltruePass --fakeroot to apptainer/singularity build when supported.
tools.container_build_timeout_secint3600Timeout for container image / .sif builds.
tools.pixi_install_timeout_secint1800Timeout for pixi install when using host-local pixi tooling.

tools.external_cli (ExternalCliConfig) ​

FieldTypeDefaultDescription
tools.external_cli.protocolLiteralclicli runs command *args handoff/prompt.md and reads its output. acp starts command *args as an Agent Client Protocol server (e.g. agy acp) and sends the prompt over the protocol.
tools.external_cli.modeOptional[str]nullACP only: session mode to set first, as the agent names it (Antigravity: default, accept-edits, auto, plan).
tools.external_cli.modelOptional[str]nullACP only: value for the agent's model session option.
tools.external_cli.permissionLiteralallowACP only: the answer to each permission request the agent sends (allow once or reject once). The handoff runs unattended, and each answer is listed in the result.
tools.external_cli.xcodon_toolsbooltrueACP only: start the agent's session with xcodon's tools as an MCP server (agent/acp_tools_server.py): coala_execute_python / coala_execute_r in the task's image with the project mounted, and coala_search / coala_invoke when direct_mode_tool_search is on. Off, the agent has only its own tools.
tools.external_cli.commandstrgemini
tools.external_cli.argslist[str][]
tools.external_cli.timeout_secint600

tools.handoff_cli_presets.<name> (HandoffCliPreset) ​

FieldTypeDefaultDescription
tools.handoff_cli_presets.<name>.protocolLiteralclicli runs command *args handoff/prompt.md and reads its output. acp starts command *args as an Agent Client Protocol server (e.g. agy acp) and sends the prompt over the protocol.
tools.handoff_cli_presets.<name>.modeOptional[str]nullACP only: session mode to set first, as the agent names it (Antigravity: default, accept-edits, auto, plan).
tools.handoff_cli_presets.<name>.modelOptional[str]nullACP only: value for the agent's model session option.
tools.handoff_cli_presets.<name>.permissionLiteralallowACP only: the answer to each permission request the agent sends (allow once or reject once). The handoff runs unattended, and each answer is listed in the result.
tools.handoff_cli_presets.<name>.xcodon_toolsbooltrueACP only: start the agent's session with xcodon's tools as an MCP server (agent/acp_tools_server.py): coala_execute_python / coala_execute_r in the task's image with the project mounted, and coala_search / coala_invoke when direct_mode_tool_search is on. Off, the agent has only its own tools.
tools.handoff_cli_presets.<name>.commandstr(required)
tools.handoff_cli_presets.<name>.argslist[str][]
tools.handoff_cli_presets.<name>.timeout_secOptional[int]nullIf set, overrides tools.external_cli.timeout_sec for this preset only.

mcp_servers[] (McpServerConfig) ​

FieldTypeDefaultDescription
mcp_servers[].namestr(required)
mcp_servers[].commandstr(required)
mcp_servers[].argslist[str][]
mcp_servers[].envdict[str, str]{}

Released under the PolyForm Noncommercial License 1.0.0.