Claudexor

v6.3.0
io.github.razzant/claudexor Checked 5 hours ago Published 10 days ago

Route 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.

ParameterTypeDescription
prompt *stringThe user task or question to run through Claudexor.
accessstringOptional access profile for this run.
attachmentsarrayImmutable resource references from upload finalize. Paths, base64 and internal resolved attachments are rejected; ordinary lane admission still applies.
credentialProfileIdstringStrict credential profile for this run; never falls back to another account.
deepScanbooleanWiden the answer into a bounded multi-scout research sweep with synthesis.
effortstringOptional 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…
executionobject
externalContextPolicystringAlias of web for control-api parity.
harnessstringOptional harness id to force for this one-shot run.
idempotencyKeystringCaller-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…
maxSecondsintegerInitial run time limit in seconds. Explicit limits default to hard unless timeLimitMode is soft.
modelstringOptional model override for the primary harness.
nintegerOptional best-of-N width for candidate races (or deep-scan scout width).
noProjectbooleantrue 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…
paidBudgetIncremental-cash budget: explicitly unlimited or a finite non-negative USD cap.
primaryHarnessstringOptional primary harness id for this run.
processingPreferencestringAdvisory service preference; omission inherits captured settings and explicit Standard requests ordinary service.
repoPathstringAbsolute path of the target project. Defaults to the MCP server cwd; with idempotencyKey, pass it or noProject: true.
taskGroupIdstringCaller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority.
timeLimitModestringWith maxSeconds: soft warns and continues; hard cancels on expiry.
webstringExternal 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.

ParameterTypeDescription
prompt *stringThe user task or question to run through Claudexor.
accessstringOptional access profile for this run.
attachmentsarrayImmutable resource references from upload finalize. Paths, base64 and internal resolved attachments are rejected; ordinary lane admission still applies.
councilbooleanDraft n plans (2 to the configured cap), then merge one plan and question set.
credentialProfileIdstringStrict credential profile for this run; never falls back to another account.
effortstringOptional 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…
executionobject
externalContextPolicystringAlias of web for control-api parity.
harnessstringOptional harness id to force for this one-shot run.
idempotencyKeystringCaller-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…
maxSecondsintegerInitial run time limit in seconds. Explicit limits default to hard unless timeLimitMode is soft.
modelstringOptional model override for the primary harness.
nintegerOptional best-of-N width for candidate races (or deep-scan scout width).
paidBudgetIncremental-cash budget: explicitly unlimited or a finite non-negative USD cap.
primaryHarnessstringOptional primary harness id for this run.
processingPreferencestringAdvisory service preference; omission inherits captured settings and explicit Standard requests ordinary service.
repoPathstringAbsolute path of the target project. Defaults to the MCP server cwd; required with idempotencyKey.
taskGroupIdstringCaller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority.
timeLimitModestringWith maxSeconds: soft warns and continues; hard cancels on expiry.
webstringExternal 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.

ParameterTypeDescription
threadId *stringThread id.
afterTurnIdstringThread id.
aroundTurnIdstringThread id.
beforeTurnIdstringThread id.
cursorstring
expectedStoreIdstring
limitinteger

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.

ParameterTypeDescription
threadId *stringThread id.
turnId *stringThread id.
expectedStoreIdstring
maxBytesinteger
offsetinteger

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.

ParameterTypeDescription
repoPath *stringAbsolute path of the target project.
accessstring
credentialProfileIdstring
defaultModestring
eligibleHarnessesarray
idempotencyKeystringCaller-owned key for this exact creation. Reuse after an unknown response; a different request with the same key conflicts.
primaryHarnessstring
titlestring
workspacestringPer-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…
workspaceRootstringRequired 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.

ParameterTypeDescription
prompt *stringThe next user turn for the persistent thread.
threadId *string
accessstring
attachmentsarrayImmutable resource references from upload finalize. Paths, base64 and internal resolved attachments are rejected; ordinary lane admission still applies.
credentialProfileIdstring
effortstringOptional 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…
executionobjectThis turn's own auxiliary writable directories; the thread's project and execution tree stay fixed, and omitting the list grants nothing.
harnessstring
idempotencyKeystringCaller-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.
maxSecondsinteger
modelstring
primaryHarnessstring
runModestring
timeLimitModestring
webstring

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.

ParameterTypeDescription
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…

ParameterTypeDescription
expectedStoreId *stringStore 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 *stringCaller-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 *stringExplicit absolute regular file on the MCP-server host, never the remote client's filesystem.
kindstringDefault: image when the effective MIME type starts with image/, otherwise file.
mimestringDefault from the file extension (unknown extensions are application/octet-stream).
namestringDisplay 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.

ParameterTypeDescription
idempotencyKey *stringCaller-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.

ParameterTypeDescription
path *stringExplicit absolute regular file on the MCP-server host, never the remote client's filesystem.
uploadId *stringNon-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.

ParameterTypeDescription
uploadId *stringNon-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.

ParameterTypeDescription
idempotencyKey *stringCaller-owned key for this exact stage. Save key and body before calling; replay both after an unknown response.
request *object
uploadId *stringNon-empty identifier string.

claudexor_upload_cancel

Explicitly cancel an unfinished upload. Do not use cancellation to recover an unknown finalize outcome.

ParameterTypeDescription
uploadId *stringNon-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.

ParameterTypeDescription
action *string
runId *string
expectedRevisioninteger
modestringFor set only; omission keeps the timer's current mode.
secondsinteger

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…

ParameterTypeDescription
idempotencyKey *stringThe submission's identity: the Idempotency-Key verbatim. Replaying it returns this receipt again; a new message needs a new key.
runId *stringRun the message was addressed to.
text *stringThe 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…
expectedAttemptIdstringTarget 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…

ParameterTypeDescription
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.

ParameterTypeDescription
draftId *stringNon-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…

ParameterTypeDescription
runId *stringRun id, or the job id of an accepted launch that may still be queued.
afterSeqintegerLast durable event seq already consumed (the previous nextSeq), never snapshotSeq.
maxEventsinteger
waitMsintegerBound 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…
wakestringbatch (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.

ParameterTypeDescription
runId *string
seq *integerThe event to read, e.g. claudexor_run_wait's oversizedEvent.seq.
maxBytesintegerUpper bound of this part's UTF-8 bytes; a part may end earlier at a character boundary.
offsetinteger0, 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…

ParameterTypeDescription
targets *array
includeBlockingbooleantrue adds `blocking` to each summary with pending questions; omitted or false returns the compact rows unchanged.
waitMsinteger

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…

ParameterTypeDescription
taskGroupId *stringCaller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority.
cursorstring
expectedStoreIdstring
limitinteger
statestringControl-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…

ParameterTypeDescription
freshbooleantrue = 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.

ParameterTypeDescription
modelstring
refreshboolean
targetobject

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.

ParameterTypeDescription
grant_idstring
idempotency_keystring
offer_idstring
operation_idstring
targetobject

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).

ParameterTypeDescription
runId *stringDaemon 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.

ParameterTypeDescription
runId *stringDaemon 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.

ParameterTypeDescription
runId *stringDaemon 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.

ParameterTypeDescription
runId *stringDaemon 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.

ParameterTypeDescription
runId *stringDaemon 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.

ParameterTypeDescription
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).

ParameterTypeDescription
runId *stringDaemon 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.

ParameterTypeDescription
action *string
partition *string

claudexor_quarantine_journal

Quarantine a corrupt partition and start a fresh epoch after exact confirmation.

ParameterTypeDescription
confirmation *string
expectedFingerprint *string
partition *string