Generated config reference
Auto-generated from
AgentProjectConfigand nested models insrc/xcodon/config.py. Do not edit by hand.
Regenerate after config changes:
bash
python scripts/gen_config_reference.pyFor curated explanations and examples, see configuration.md.
AgentProjectConfig (AgentProjectConfig)
| Field | Type | Default | Description |
|---|---|---|---|
model | str | gemini/gemini-3.8-flash | |
llm_tool_choice | Optional[str] | auto | tool_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_tokens | Optional[int] | null | Most 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_temperature | Optional[float] | 0.2 | Sampling 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_steps | int | 20 | Max 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_repeats | int | 5 | Hard 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_approval | bool | true | When 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_loop | bool | true | If True, system prompt asks the model to pause for user approval between major steps. |
super_mode | bool | false | |
super_mode_max_continuations | int | 8 | When 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_enabled | bool | true | Append session + tool I/O to outputs/harness_notebook.md (notebook-style). |
harness_solution_llm | bool | true | When 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_model | Optional[str] | null | Model id for harness solution extraction; defaults to model. |
harness_solution_llm_total_budget_chars | int | 96000 | Max total characters of merged step bodies sent to the solution LLM (each step is also capped separately). |
harness_validation_llm | bool | true | When 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_model | Optional[str] | null | Model id for harness validation review; defaults to harness_solution_llm_model then model. |
step_data_facts | bool | false | Off 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_rounds | bool | false | Off 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_plan | bool | false | Headless 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_steps | int | 120 | Step cap for the exploration before planning. |
explore_before_plan_review_steps | int | 60 | Step 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_mode | Literal | auto | The 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_mode | bool | false | Headless 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_steps | int | 150 | Model-call cap for the work turn of a direct run. |
direct_mode_check_steps | int | 30 | Model-call cap for the last review conversation (units with two conditions, and the files). 0 turns every review off. |
direct_mode_condition_steps | int | 20 | Model-call cap for the review of one condition the task names (0: use direct_mode_check_steps). |
direct_mode_reviews | Literal | auto | How 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_steps | int | 8 | Model-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_search | bool | true | When 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_agent | Optional[str] | null | A /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_step | int | 60 | An 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_skills | bool | true | When 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_rules | bool | true | When 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_rounds | int | 2 | How often a failed hard-fact check (a named deliverable is missing or unreadable, an identifier no input holds) goes back to the conversation. |
plan_review | bool | true | Headless 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_looks | bool | true | Plan-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_style | Literal | goal | What 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_enabled | bool | true | When 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_truncation | bool | true | When 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_first | bool | true | Autonomous 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_retry | bool | true | When 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_continuations | int | 3 | Max agent continuations per user message when harness validation fails after a completed step. |
harness_gate_enabled | bool | true | Run 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_groups | list[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_scope | Literal | all | Which 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_rounds | int | 3 | Agent rounds a step may spend clearing its gate before the step is marked fail_blocked. |
harness_gate_per_step | bool | true | In 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_enabled | bool | true | Run the LLM judge for analysis and synthesis steps whose gate is green. harness_validation_llm: false also turns this off. |
harness_judge_max_rounds | int | 1 | Solution-LLM revision rounds after a judge fail_fixable. |
harness_final_review_enabled | bool | true | Run 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_rounds | int | 1 | Referee 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_steps | bool | false | Also judge mechanical steps (acquire / inventory / upstream pipeline). Off by default: a script-checkable step gets no LLM review. |
skill_auto_apply | bool | true | When 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_chars | int | 20000 | Largest 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_effort | Literal | high | Thinking 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_model | Optional[str] | null | Optional 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_drafts | int | 3 | Independent 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_effort | Optional[Literal] | high | Thinking 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_effort | Optional[Literal] | high | Thinking 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_chars | int | 40000 | Max characters of outputs/research_plan.md injected into the system prompt (each request). |
heartbeat_excerpt_max_chars | int | 6000 | If >0 and HEARTBEAT.md exists at project root, inject it (OpenClaw-style operating context). 0 disables. |
vfs_roots | list[str] | ['inputs', 'workspace', 'outputs'] | Project-relative directories indexed by WorkspaceVfs (default: inputs, workspace, outputs). |
vfs_prompt_max_chars | int | 8000 | Max characters of VFS tree + delta injected into the system prompt. 0 disables. |
vfs_index_max_entries | int | 50000 | Stop adding paths to state/vfs_index.json when the index reaches this size. |
skill_digest_max_chars | int | 800 | Max characters per SKILL.md excerpt in the system prompt. |
plan_context_digest_max_chars | int | 8000 | If >0, inject recent outputs/plan_context_digest.md (Deep Agents summarization cache) into /codon plan. |
plan_context_digest_file_max_chars | int | 48000 | When appending summarization summaries (automatic or /compact), trim oldest digest sections so the file stays under this size. |
plan_digest_substance_min_chars | int | 400 | If the digest file is at least this large, /codon plan uses a shorter checkpoint tail (cache hit). |
context_budget_tokens | int | 200000 | Most 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_fraction | float | 0.8 | Share of the context budget at which the conversation is compacted (0.5–0.95). |
model_context_window_tokens | Optional[int] | null | Context 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_enabled | bool | true | After 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_enabled | bool | true | Read 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_folder | str | reflections | Kebab-case folder under <project>/memory/<folder>/ for the project lesson log (default reflections). /codon wrap folds it into host ~/.xcodon/memory/lessons.md. |
reflection_model | Optional[str] | null | LiteLLM model for reflection; defaults to the agent model. |
reflection_transcript_max_chars | int | 24000 | Max characters of checkpoint transcript sent to the reflection model. |
reflection_harness_tail_max_chars | int | 12000 | If >0 and harness is enabled, append this many tail characters of harness_notebook.md to reflection input. |
reflection_skill_file_max_chars | int | 40000 | Size cap for lesson logs and memory/hooks.md. Lesson logs drop the lowest-Seen, oldest entries first. |
reflection_on_step_limit | bool | false | If True, also run reflection when the turn ends only because max_steps was reached (still had tool calls). |
cwl_failure_reflection_enabled | bool | true | When 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_chars | int | 120000 | FIFO cap for outputs/cwl_failures.md. Oldest ## CWL failure — blocks are dropped when this size would be exceeded. |
memory_hooks | MemoryHooksConfig | (see nested section) | Programmatic triggers that append ## Memory hook — blocks (see MemoryHooksConfig). |
prompt_cache | PromptCacheConfig | (see nested section) | Provider prompt-cache markers; see PromptCacheConfig. Does not change agent semantics. |
checkpoint_tool_content_max_chars | int | 12000 | Truncate each retained tool message past this length (0 = off). Full output stays in harness_notebook.md. |
llm_round_tool_output_max_chars | int | 48000 | Max 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_calls | int | 0 | Optional hard cap on tool calls per LLM round (0 = unlimited; round char budget still applies). |
checkpoint_keep_recent_tool_messages | int | 8 | Keep full (truncated) bodies only for the last N tool messages; older ones become a short placeholder (0 = keep all tools, truncate only). |
session_pruning_enabled | bool | true | Per-request: trim old tool results in a copy sent to the LLM (OpenClaw-style session pruning). |
session_pruning_keep_recent_tools | int | 8 | Keep 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_than | int | 4000 | For retained tool messages, soft-trim head+tail if longer than this (0 = off). |
session_pruning_soft_trim_head_chars | int | 2000 | |
session_pruning_soft_trim_tail_chars | int | 2000 | |
mcp_servers | list[McpServerConfig] | [] | |
tools | ToolsConfig | (see nested section) | |
mcp_tools_max | int | 0 |
memory_hooks (MemoryHooksConfig)
| Field | Type | Default | Description |
|---|---|---|---|
memory_hooks.enabled | bool | true | Master switch for programmatic memory hooks (independent of reflection_enabled). |
memory_hooks.on_tool_error | bool | true | After a tool round, if any tool output looks like a failure, append one stub block. |
memory_hooks.on_compaction | bool | true | After a successful context compaction, append a short stub with summary preview. |
memory_hooks.target_folder | str | reflections | No longer used: hooks always write to memory/hooks.md. Kept so older agent.yaml files still load. |
prompt_cache (PromptCacheConfig)
| Field | Type | Default | Description |
|---|---|---|---|
prompt_cache.enabled | bool | true | When 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)
| Field | Type | Default | Description |
|---|---|---|---|
tools.allow_shell | bool | true | Host run_shell (git, wget, unzip, etc.). Set false to block shell in untrusted/automated runs. |
tools.shell_timeout_sec | int | 120 | Quick-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_sec | int | 14400 | Hard 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_sec | int | 30 | How 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_sec | int | 1800 | Kill 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_keep | int | 50 | How 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_bytes | int | 20000000 | Cap 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_max | str | 80% | 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_high | str | `` | 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_adj | int | 700 | oom_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_executions | bool | true | Record 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_project | bool | true | When 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_prefixes | list[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_chars | int | 12000 | Max 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_bytes | int | 65536 | Max characters returned from read_*_file and Deep Agents read per file (excerpt head+tail when larger). 0 = no cap. |
tools.read_inputs_max_bytes | int | 32768 | Stricter per-file cap under inputs/ when read_inputs_extra_strict is true. |
tools.read_file_refuse_bytes | int | 5242880 | Refuse reads (built-in + read) when file size exceeds this (default 5 MiB). 0 = never refuse on size alone. |
tools.read_inputs_extra_strict | bool | true | Apply read_inputs_max_bytes under inputs/ (user data). |
tools.shell_refuse_inputs_read_bytes | int | 5242880 | Refuse run_shell cat/less/more on inputs/ files larger than this. 0 = off. |
tools.shell_head_max_lines | int | 500 | Cap head -n N when N exceeds this value. |
tools.allow_coala_cli | bool | true | Allow 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_search | bool | true | When 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_import | bool | true | When 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_output | bool | false | When 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_mounts | bool | false | When 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_tools | bool | false | When 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_prefetch | bool | true | |
tools.allow_coala_skill_import | bool | true | |
tools.coala_skill_skip_libraries | list[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_enabled | bool | true | When 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_sec | int | 120 | Timeout (seconds) for each skills.sh discovery/install HTTP call or subprocess (git clone fallback, coala skill …). |
tools.skill_finder_max_candidates | int | 5 | Max 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_owner | Optional[str] | null | Optional GitHub owner/org filter passed to the skills.sh search (owner=); None searches all owners. |
tools.coala_search_timeout_sec | int | 90 | |
tools.coala_invoke_timeout_sec | int | 600 | Timeout for coala mcp/skill imports via coala_invoke (can be slow). |
tools.coala_execute_timeout_sec | int | 3600 | Injected 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_sec | int | 3600 | Clamp 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_sec | int | 14700 | Read 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_python | bool | true | When 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_cli | ExternalCliConfig | (see nested section) | |
tools.handoff_cli_presets | dict[str, HandoffCliPreset] | {} | Extra or overriding /codon <name> handoff profiles (keys are case-insensitive). Merged over built-in gemini / codex / antigravity (ACP). |
tools.coala_runtime_server | Optional[str] | coala-runtime | MCP server name that exposes coala_python_executor / coala_r_executor (default matches DEFAULT_COALA_RUNTIME_MCP_SERVER). |
tools.coala_runtime_container_engine | Literal | docker | Container 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_engine | Literal | docker | CWL 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_fallback | bool | true | When 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_relative | Optional[str] | null | If 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_relative | Optional[str] | .xcrunner-env | Project-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_image | Optional[str] | null | Default 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_image | Optional[str] | null | Default 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_images | bool | false | |
tools.coala_runtime_base_python_packages | list[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_env | dict[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_env | dict[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_backend | Literal | container_artifact | How 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_enabled | bool | false | Deprecated 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_relative | str | workspace/.pixi-env | Project-relative directory containing pixi.toml (host-local tooling only). |
tools.pixi_extra_deps | list[str] | [] | Extra pixi/conda dependency names for host-local pixi manifests (not coala-runtime). |
tools.container_cache_relative | str | workspace/container_cache | Project-relative directory for recipes, .sif files, and build contexts. |
tools.auto_built_image_label | bool | true | When 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_fakeroot | bool | true | Pass --fakeroot to apptainer/singularity build when supported. |
tools.container_build_timeout_sec | int | 3600 | Timeout for container image / .sif builds. |
tools.pixi_install_timeout_sec | int | 1800 | Timeout for pixi install when using host-local pixi tooling. |
tools.external_cli (ExternalCliConfig)
| Field | Type | Default | Description |
|---|---|---|---|
tools.external_cli.protocol | Literal | cli | cli 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.mode | Optional[str] | null | ACP only: session mode to set first, as the agent names it (Antigravity: default, accept-edits, auto, plan). |
tools.external_cli.model | Optional[str] | null | ACP only: value for the agent's model session option. |
tools.external_cli.permission | Literal | allow | ACP 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_tools | bool | true | ACP 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.command | str | gemini | |
tools.external_cli.args | list[str] | [] | |
tools.external_cli.timeout_sec | int | 600 |
tools.handoff_cli_presets.<name> (HandoffCliPreset)
| Field | Type | Default | Description |
|---|---|---|---|
tools.handoff_cli_presets.<name>.protocol | Literal | cli | cli 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>.mode | Optional[str] | null | ACP only: session mode to set first, as the agent names it (Antigravity: default, accept-edits, auto, plan). |
tools.handoff_cli_presets.<name>.model | Optional[str] | null | ACP only: value for the agent's model session option. |
tools.handoff_cli_presets.<name>.permission | Literal | allow | ACP 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_tools | bool | true | ACP 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>.command | str | (required) | |
tools.handoff_cli_presets.<name>.args | list[str] | [] | |
tools.handoff_cli_presets.<name>.timeout_sec | Optional[int] | null | If set, overrides tools.external_cli.timeout_sec for this preset only. |
mcp_servers[] (McpServerConfig)
| Field | Type | Default | Description |
|---|---|---|---|
mcp_servers[].name | str | (required) | |
mcp_servers[].command | str | (required) | |
mcp_servers[].args | list[str] | [] | |
mcp_servers[].env | dict[str, str] | {} |
