Claudexor
v6.3.0Route coding work across Claude Code, Codex, Cursor, and OpenCode with shared context.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
claudexor_ask
Enqueue a read-only Claudexor answer; pass deepScan:true for a bounded multi-scout research sweep with synthesis. Returns a durable run handle, not terminal output; use claudexor_run_status/result for the final answer.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The user task or question to run through Claudexor. |
access | string | Optional access profile for this run. |
attachments | array | Immutable resource references from upload finalize. Paths, base64 and internal resolved attachments are rejected; ordinary lane admission still applies. |
credentialProfileId | string | Strict credential profile for this run; never falls back to another account. |
deepScan | boolean | Widen the answer into a bounded multi-scout research sweep with synthesis. |
effort | string | Optional reasoning effort for every harness this run executes (not its reviewers), instead of each harness's Settings default. Expects a reasoning-effort level the resolved harness/model advertises (a… |
execution | object | |
externalContextPolicy | string | Alias of web for control-api parity. |
harness | string | Optional harness id to force for this one-shot run. |
idempotencyKey | string | Caller-owned key for this exact launch; requires an explicit repoPath (on claudexor_ask, or noProject: true). After an unknown response, repeat the same key and arguments to recover the accepted job o… |
maxSeconds | integer | Initial run time limit in seconds. Explicit limits default to hard unless timeLimitMode is soft. |
model | string | Optional model override for the primary harness. |
n | integer | Optional best-of-N width for candidate races (or deep-scan scout width). |
noProject | boolean | true answers a general question without a project: no project is registered, Claudexor adds no project context, and the run is kept in the user-level no-project store. Cannot be combined with repoPath… |
paidBudget | Incremental-cash budget: explicitly unlimited or a finite non-negative USD cap. | |
primaryHarness | string | Optional primary harness id for this run. |
processingPreference | string | Advisory service preference; omission inherits captured settings and explicit Standard requests ordinary service. |
repoPath | string | Absolute path of the target project. Defaults to the MCP server cwd; with idempotencyKey, pass it or noProject: true. |
taskGroupId | string | Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority. |
timeLimitMode | string | With maxSeconds: soft warns and continues; hard cancels on expiry. |
web | string | External context policy for this run. |
claudexor_run
Enqueue an Agent-mode Claudexor run. Internal model review is off by default; review:true selects a panel automatically, and an explicit reviewerPanel enables review. Returns a durable run handle plus any immediate start facts; use claudexor_run_status/result for the terminal WorkProduct.
claudexor_best_of
Enqueue a best-of-N Claudexor run with cross-family review. Returns a durable run handle; use claudexor_run_status/result for terminal output.
claudexor_plan
Enqueue a read-only Claudexor implementation plan. Returns a durable run handle; use claudexor_run_status/result for the final plan.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The user task or question to run through Claudexor. |
access | string | Optional access profile for this run. |
attachments | array | Immutable resource references from upload finalize. Paths, base64 and internal resolved attachments are rejected; ordinary lane admission still applies. |
council | boolean | Draft n plans (2 to the configured cap), then merge one plan and question set. |
credentialProfileId | string | Strict credential profile for this run; never falls back to another account. |
effort | string | Optional reasoning effort for every harness this run executes (not its reviewers), instead of each harness's Settings default. Expects a reasoning-effort level the resolved harness/model advertises (a… |
execution | object | |
externalContextPolicy | string | Alias of web for control-api parity. |
harness | string | Optional harness id to force for this one-shot run. |
idempotencyKey | string | Caller-owned key for this exact launch; requires an explicit repoPath (on claudexor_ask, or noProject: true). After an unknown response, repeat the same key and arguments to recover the accepted job o… |
maxSeconds | integer | Initial run time limit in seconds. Explicit limits default to hard unless timeLimitMode is soft. |
model | string | Optional model override for the primary harness. |
n | integer | Optional best-of-N width for candidate races (or deep-scan scout width). |
paidBudget | Incremental-cash budget: explicitly unlimited or a finite non-negative USD cap. | |
primaryHarness | string | Optional primary harness id for this run. |
processingPreference | string | Advisory service preference; omission inherits captured settings and explicit Standard requests ordinary service. |
repoPath | string | Absolute path of the target project. Defaults to the MCP server cwd; required with idempotencyKey. |
taskGroupId | string | Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority. |
timeLimitMode | string | With maxSeconds: soft warns and continues; hard cancels on expiry. |
web | string | External context policy for this run. |
claudexor_create
Enqueue a create-from-scratch Claudexor run. Returns a durable run handle; use claudexor_run_status/result for terminal output.
claudexor_thread_history
Read one bounded page of thread turns with answer previews and receipt facts. limit 1..20; choose at most one cursor, beforeTurnId, afterTurnId or aroundTurnId. No selector reads the newest turns. aroundTurnId returns the anchor and earlier turns; follow newerCursor for later turns. Ascending ordinals; cursors bind store, epoch, thread and limit. Replay refreshes current facts. Requires an existing daemon; never starts work.
| Parameter | Type | Description |
|---|---|---|
threadId * | string | Thread id. |
afterTurnId | string | Thread id. |
aroundTurnId | string | Thread id. |
beforeTurnId | string | Thread id. |
cursor | string | |
expectedStoreId | string | |
limit | integer |
claudexor_thread_prompt
Read a bounded UTF-8 part of any turn's complete stored prompt, including refused turns. Continue at nextOffset; totalBytes and sha256 identify the full prompt. Requires an existing daemon.
| Parameter | Type | Description |
|---|---|---|
threadId * | string | Thread id. |
turnId * | string | Thread id. |
expectedStoreId | string | |
maxBytes | integer | |
offset | integer |
claudexor_thread_create
Create a persistent Claudexor thread bound to a project and optional strict account profile. Creation starts no model. Write turns default to editing the project directory directly (in_place); choose workspace=isolated to use a persistent thread worktree created on the first write turn, then thread Apply to merge changes into the project. workspace=delegated with workspaceRoot binds every turn to that caller-owned directory under delegated authority (persistent, never applied to the project). Use claudexor_thread_turn to start work in it.
| Parameter | Type | Description |
|---|---|---|
repoPath * | string | Absolute path of the target project. |
access | string | |
credentialProfileId | string | |
defaultMode | string | |
eligibleHarnesses | array | |
idempotencyKey | string | Caller-owned key for this exact creation. Reuse after an unknown response; a different request with the same key conflicts. |
primaryHarness | string | |
title | string | |
workspace | string | Per-thread workspace mode: in_place mutates the live project tree directly (the default); isolated keeps a persistent git worktree per thread that apply merges into the project; delegated runs every t… |
workspaceRoot | string | Required exactly with workspace=delegated: absolute existing caller-owned directory every turn executes in. Every later turn inherits delegated authority (no repository full-access trust record, no ou… |
claudexor_thread_turn
Enqueue a turn on a persistent Claudexor thread with optional routing and strict account overrides. Supply idempotencyKey to recover a lost response without creating another paid turn. Returns durable thread and turn handles plus runId or a queued jobId.
| Parameter | Type | Description |
|---|---|---|
prompt * | string | The next user turn for the persistent thread. |
threadId * | string | |
access | string | |
attachments | array | Immutable resource references from upload finalize. Paths, base64 and internal resolved attachments are rejected; ordinary lane admission still applies. |
credentialProfileId | string | |
effort | string | Optional effort override for this turn. Expects a reasoning-effort level the resolved harness/model advertises (a lowercase slug; each vendor lists its own levels, weakest to strongest); an advertised… |
execution | object | This turn's own auxiliary writable directories; the thread's project and execution tree stay fixed, and omitting the list grants nothing. |
harness | string | |
idempotencyKey | string | Caller-owned key for one logical turn. Retry an unknown outcome with the same key and body; use a new key for an intentional next turn. |
maxSeconds | integer | |
model | string | |
primaryHarness | string | |
runMode | string | |
timeLimitMode | string | |
web | string |
claudexor_thread_read
Read a thread's daemon-owned turns and native session handles, including earlier turns after a lost response; use the run status/result tools for terminal output.
| Parameter | Type | Description |
|---|---|---|
threadId * | string |
claudexor_store_identity
Read the running daemon's durable store identity (storeId) through the opt-in handshake. Save storeId durably with each import key BEFORE claudexor_upload_import, and replay that saved value unchanged; never replace it with a later answer. Resource ids and import keys belong to that store only.
claudexor_upload_import
Import one explicit absolute regular file ON THE MCP-SERVER HOST as a ready immutable attachment in one call. First save expectedStoreId (from claudexor_store_identity) and idempotencyKey with the exact arguments; another store is refused before the file is touched. After any uncertainty or failure repeat the identical call: a completed import returns its original resource without reading the file again, even if the file has since changed or been deleted. Different arguments under a used key are refused; a new edition of the file needs a new key. Pass resource.resourceId in run/turn attachment…
| Parameter | Type | Description |
|---|---|---|
expectedStoreId * | string | Store UUID from the opt-in handshake, saved with the key BEFORE the first import and replayed unchanged; never replaced by the current store. A different store is refused before any effect. |
idempotencyKey * | string | Caller-owned key for this one import. Save it with the exact arguments before calling and repeat both after any uncertainty; a completed import returns its original resource without reading the file a… |
path * | string | Explicit absolute regular file on the MCP-server host, never the remote client's filesystem. |
kind | string | Default: image when the effective MIME type starts with image/, otherwise file. |
mime | string | Default from the file extension (unknown extensions are application/octet-stream). |
name | string | Display name. Default: the file's base name. |
claudexor_upload_create
Low-level stage (claudexor_upload_import is the one-call keyed path). Create an ordinary attachment upload. Save the caller-owned idempotencyKey and exact request before calling; replay both after a lost response. Save uploadId before importing bytes.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | Caller-owned key for this exact stage. Save key and body before calling; replay both after an unknown response. |
request * | object |
claudexor_upload_import_local
Stream one explicit absolute regular file ON THE MCP-SERVER HOST into an existing upload using one PUT. No remote-client path, URL, glob or directory. Save uploadId and returned expectedSha256. After an uncertain PUT read status: uploaded -> finalize, uploading -> observe, cancelled -> explicitly create a new upload. Already uploaded bytes are never overwritten; this call can hash the same local file to recover its digest.
| Parameter | Type | Description |
|---|---|---|
path * | string | Explicit absolute regular file on the MCP-server host, never the remote client's filesystem. |
uploadId * | string | Non-empty identifier string. |
claudexor_upload_status
Read existing upload state once. A finalized upload can return 404: replay finalize with the original key/body to recover its resource; absence is not proof of failure.
| Parameter | Type | Description |
|---|---|---|
uploadId * | string | Non-empty identifier string. |
claudexor_upload_finalize
Finalize immutable attachment bytes. Save and replay the original caller-owned key and exact request after an unknown response, even if status returns 404. Never auto-cancel uncertain finalization. Attach the returned resourceId to run/turn attachments.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | Caller-owned key for this exact stage. Save key and body before calling; replay both after an unknown response. |
request * | object | |
uploadId * | string | Non-empty identifier string. |
claudexor_upload_cancel
Explicitly cancel an unfinished upload. Do not use cancellation to recover an unknown finalize outcome.
| Parameter | Type | Description |
|---|---|---|
uploadId * | string | Non-empty identifier string. |
claudexor_run_time_limit
Read, set, extend, or disable one live run's time limit. Mutations require the current expectedRevision from a read; a conflicting revision must be read again before retrying.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
runId * | string | |
expectedRevision | integer | |
mode | string | For set only; omission keeps the timer's current mode. |
seconds | integer |
claudexor_run_message
Send a live message to an existing run's active attempt. Requires an explicit stable caller idempotencyKey (the message id); reuse the same key and body to read its recorded receipt. accepted proves native acceptance only (a later live_input_delivered harness event with the same message_id, seen through claudexor_run_wait, reports consumption), delivered proves observed consumption, neither proves obedience. delivery_unknown may have landed: never resend it under a new key. Refusals remain typed outcomes: a pending blocking question answers not_active/interaction_pending (an async question, du…
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | The submission's identity: the Idempotency-Key verbatim. Replaying it returns this receipt again; a new message needs a new key. |
runId * | string | Run the message was addressed to. |
text * | string | The message to place into the run's active attempt. 1..65536 UTF-16 code units (the JS string length, not bytes or visible characters); an over-long body is a 400, never truncated. The text is deliver… |
expectedAttemptId | string | Target attempt id. Required when the run has several live attempts (race n>1): without it the daemon answers rejected/multi_attempt. A mismatch with the live attempt answers not_active/attempt_mismatc… |
claudexor_run_continue
Start one successor of a terminal single-candidate Agent or Ask run on the existing daemon. The daemon inherits only mode, scope, execution, harness, model and the prompt-cache lifetime, which this tool cannot change (another lifetime, Default included, needs a new run); every other omitted control takes its ordinary new-run default, not the predecessor's value, so restate access, web, account, effort, budget, time limit and review when the successor must keep them. Budget and time limits apply to this successor alone, never as a remainder of the chain. prompt is optional and may be empty. Sup…
claudexor_next_message
Operator-only editable next message for one daemon-owned single-candidate Agent/Ask predecessor. request.action create captures controls once and reserves its one successor; replace changes only the full prompt/ref list at expectedRevision; clear releases only the draft. Every mutation requires a stable idempotencyKey. Eligible settled success dispatches one ordinary continuation; failures, Stop, restart or admission refusal hold without retry. Held edits never rearm. The successor keeps the predecessor's execution: after a successful isolated (envelope) Agent it starts from the project base a…
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | |
request * | One editable reserved next message of a daemon-owned one-shot Agent/Ask. Every mutation requires Idempotency-Key; replace/clear require the exact revision. |
claudexor_next_message_read
Read one exact deferred draft: bounded prompt/ref preview with explicit omissions, predecessor result path, successor handles and `controls`, the values frozen at creation by origin (inherited from the predecessor, resolved at creation, captured Settings preferences) with their capture time. Permissions, trust, accounts and quota are not frozen. This read never dispatches. A terminal predecessor may still have a waiting or held draft; inspect its state.
| Parameter | Type | Description |
|---|---|---|
draftId * | string | Non-empty identifier string. |
claudexor_run_wait
Observe an existing durable run (or a queued job id) through bounded event replay. Defaults: afterSeq=0, waitMs=25000, maxEvents=50, wake=batch. Events already available at the snapshot fence are returned first, even while a question is pending. wake=batch then keeps collecting until the page fills, it includes a question event (also one written before the wait), the run ends, or waitMs elapses; wake=event returns as soon as any event is available. waitMs=0 returns only the already available page. A pending question whose event is not in the page never ends a wait by itself; it is always repor…
| Parameter | Type | Description |
|---|---|---|
runId * | string | Run id, or the job id of an accepted launch that may still be queued. |
afterSeq | integer | Last durable event seq already consumed (the previous nextSeq), never snapshotSeq. |
maxEvents | integer | |
waitMs | integer | Bound of the event stage. Zero never waits for new events: it returns the bounded page already available at the snapshot fence, read within a separate 5s budget. Daemon discovery and each snapshot rea… |
wake | string | batch (default): collect events until the page fills, it includes a question event (interaction.requested, also one written before the wait), the run ends, or waitMs elapses. event: return as soon as… |
claudexor_run_event_read
Read one bounded part of one run event by run id and seq, typically claudexor_run_wait's oversizedEvent. Returns the exact UTF-8 bytes [offset, nextOffset) of the stored serialization the run event stream delivers, with totalBytes and the sha256 of the whole event; parts never split a character. Read from offset 0, then each nextOffset until it equals totalBytes; a partial read is not a consumed event, so do not move claudexor_run_wait past it until the last part. Only validated events of this run are readable; there is no path, artifact or whole-log access.
| Parameter | Type | Description |
|---|---|---|
runId * | string | |
seq * | integer | The event to read, e.g. claudexor_run_wait's oversizedEvent.seq. |
maxBytes | integer | Upper bound of this part's UTF-8 bytes; a part may end earlier at a character boundary. |
offset | integer | 0, or the previous part's nextOffset. |
claudexor_runs_wait
Observe lifecycle and pending attention from 1..1000 existing durable job/run handles in one read. targets contains {runId, seen?}; waitMs defaults to 25000 (0..50000). Echo each summary token as that target's seen to suppress unchanged terminal/question attention; tokens are not event cursors or answers. Returns ascending attention indexes and compact summaries in input order, including duplicates and explicit unknowns, within 128 KiB of logical JSON. includeBlocking=true adds blocking to each summary with pending questions: false only when every one is async and the agent keeps working. wait…
| Parameter | Type | Description |
|---|---|---|
targets * | array | |
includeBlocking | boolean | true adds `blocking` to each summary with pending questions; omitted or false returns the compact rows unchanged. |
waitMs | integer |
claudexor_task_group_runs
Read exactly one retained task group page by caller UUID, optionally checking expectedStoreId. limit is 1..200 (default 50); state filters lifecycle; cursor (at most 2048 characters) is bound to group/filter/store/current served generations. The logical result is at most 131072 UTF-8 bytes and may return fewer members; resume only with nextCursor. Retained-only/current-served qualifiers are not a permanent roster or proof of submission. Job handles remain canonical while runId is null until binding. Explicit unavailable observations are unknown. Requires an existing supporting daemon; discover…
| Parameter | Type | Description |
|---|---|---|
taskGroupId * | string | Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority. |
cursor | string | |
expectedStoreId | string | |
limit | integer | |
state | string | Control-plane run state = the run LIFECYCLE (D8): queued/running while live, then exactly one of succeeded / failed / cancelled / interrupted. Outcome quality (checks/review/delivery) is orthogonal   |
claudexor_status
Return doctor-backed Claudexor runtime status: per-harness verdicts with enabled/disabled intents, doctor reasons and checks, and the configured model.
claudexor_capabilities
Return the derived AgentCapabilityCatalog: per-harness doctor-backed capabilities (the daemon may answer from a recent composition; generatedAt dates it), canonical modes, the mutability matrix, run-control keys, run-decision actions (including taken for a captured terminal patch), CLI verbs, and the run-apply-state vocabulary.
claudexor_accounts
Return the read-only Accounts view: registered profiles, readiness, quota freshness, and routing identity. accountPools.next_up is the configured default model's verdict, never a forecast for another model; routingEvidence carries model-scoped recent refusals, temporary per-model capability marks, and each account's last service per requested model (a routing observation, not a quota or authentication verdict). Default combines current quota and registry facts with retained readiness observations: one coalesced cold acquisition, including failure, then passive reads with the original check tim…
| Parameter | Type | Description |
|---|---|---|
fresh | boolean | true = the expensive atomic Accounts snapshot (fresh probes + doctor + vendor quota fan-out); false/absent = current quota/registry facts with retained readiness observations and their age. |
claudexor_account_resources
Read typed account balances, spending, reset offers and quota, plus API-key spending limits (each API-key harness's default key with target.profile_id null, and its enabled registered API-key accounts). refresh:true requests provider data; target selects one exact registered account, including a disabled portable profile. No login or spending-policy change.
| Parameter | Type | Description |
|---|---|---|
model | string | |
refresh | boolean | |
target | object |
claudexor_account_reset
Explicitly consume a selected account reset, outside inference capacity. Supply target, offer_id, optional grant_id and idempotency_key. Retain the original key and request after a timeout and repeat them to recover; never replace the key automatically. Or supply operation_id to read a receipt. Provider outcome and resource readback are separate; Claude already_used is not proof of this operation's success.
| Parameter | Type | Description |
|---|---|---|
grant_id | string | |
idempotency_key | string | |
offer_id | string | |
operation_id | string | |
target | object |
claudexor_runs
List recent daemon-tracked Claudexor runs (recovery: find a lost runId).
claudexor_inspect
Inspect a daemon-tracked run: status, summary, decision verdict, and the derived applyEligibility (what unblocks apply).
| Parameter | Type | Description |
|---|---|---|
runId * | string | Daemon run id (from a run tool's runId trailer or claudexor_runs). |
claudexor_run_status
Read the current daemon-acknowledged state of a durable Claudexor run.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Daemon run id (from a run tool's runId trailer or claudexor_runs). |
claudexor_run_result
Read a durable run's terminal result and apply eligibility; non-terminal runs report their current state without pretending to be complete.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Daemon run id (from a run tool's runId trailer or claudexor_runs). |
claudexor_run_cancel
Request cancellation of a daemon-owned run; success is returned only after the control API acknowledges the durable command. The same call holds the run's next message (claudexor_next_message) that is not accepted yet, also after the run ended; an already accepted successor fails next_message_dispatched with its job handle and keeps running. If that hold cannot be saved, the call fails next_message_hold_failed (retryable) after any cancel was applied; the next message is still not sent, and a retried cancel records the hold.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Daemon run id (from a run tool's runId trailer or claudexor_runs). |
claudexor_run_interactions
List the complete daemon-persisted questions still awaiting answers for a run, including bodies claudexor_run_wait omitted; the text content carries the same JSON.
| Parameter | Type | Description |
|---|---|---|
runId * | string | Daemon run id (from a run tool's runId trailer or claudexor_runs). |
claudexor_answer_interaction
Answer a daemon-persisted run interaction; success (status delivered) is reported only after the control API acknowledges the journal mutation. Refusals keep their typed status as the failure code: not_found, already_resolved (never proof that this answer landed) or rejected. Answers have no replay key and are not retried.
| Parameter | Type | Description |
|---|---|---|
answers * | array | |
interactionId * | string | |
runId * | string |
claudexor_apply_check
Dry-check whether a run's patch would apply cleanly to its original project (no mutation).
| Parameter | Type | Description |
|---|---|---|
runId * | string | Daemon run id (from a run tool's runId trailer or claudexor_runs). |
claudexor_journal_recovery
Inspect, validate, or export one durable journal partition through v2.
| Parameter | Type | Description |
|---|---|---|
action * | string | |
partition * | string |
claudexor_quarantine_journal
Quarantine a corrupt partition and start a fresh epoch after exact confirmation.
| Parameter | Type | Description |
|---|---|---|
confirmation * | string | |
expectedFingerprint * | string | |
partition * | string |