Skip to content

Exit codes and errors ​

Last updated Nov 30, 2026 View as Markdown

Every command exits with one of a few codes, and a failing command says what went wrong with a stable error code, the problems it found, and the commands that fix them. Output and errors shows the error document that --json prints.

Exit codes ​

CodeMeaning
0Success. A dry run that would start, and a quest that waits for the user, also exit 0.
1Pandra failed, with an error code from the list below. pandra lock --check and pandra guild lock --check also exit 1 when their lockfile is stale, or missing although it is required.
2Usage error: the command line is not valid (usage_error).
124pandra session wait and pandra quest wait: the timeout ended the wait while the run or the quest was still running.
129, 143A command that SIGHUP or SIGTERM stopped, other than quest run and a run, resume, or guild run without --dry-run: 128 plus the signal's number. It prints nothing, also with --json. Those commands report the interruption in their output instead.
130Interrupted, for example with Ctrl-C, and also when you answer no to a question the command needs to go on, or cancel it; the command goes no further, and what it already did is kept.
OtherWhen the harness reports a failed turn, run and resume exit with the harness's exit code, or 1 when that is 0, or 128 plus N when a signal N that Pandra did not send ended the harness. A TUI run exits with the harness's own exit code, or 128 plus N when a signal N ended the harness. pandra quest run exits with the status of a failed command step's script, with quest_command_failed.

A dry run that would not start exits with the code the run would exit with.

Error codes ​

The code of an error says what failed. Codes are stable: a code is never reused for another meaning.

CodeMeaning
usage_errorThe command line is not valid.
project_not_foundThe directory has no pandra.toml.
project_existspandra init found a pandra.toml already.
project_invalidpandra.toml is not a valid agent definition.
name_requiredNo valid agent name can be derived, so one has to be given.
lockfile_invalidpandra.lock or pandra-guild.lock cannot be read.
lockfile_stalepandra.lock does not match the definition, or pandra-guild.lock the guild file.
source_invalidA source of the definition cannot be read or is not allowed.
plugin_invalidA source cannot be taken as a plugin.
base_cycleA chain of bases comes back to a project it started from.
base_chain_too_deepA chain of bases is deeper than 4.
repository_unsupportedThe project's Git repository has its work tree elsewhere, as core.worktree can set it.
package_invalidThe package would break the package format.
package_too_largeThe package has more entries or bytes than allowed.
not_supported_yetThe command needs something this version of Pandra does not support yet.
io_errorReading or writing a file failed.
interruptedThe command was interrupted, or the user answered no to a question it needs or cancelled one; nothing was changed.
configuration_not_foundThe configuration file named explicitly does not exist.
agent_not_foundThe store has no agent for the reference.
reference_without_tagAn OCI reference has neither a tag nor a digest.
name_in_useThe local name is in use, such as by the configuration.
name_movedA reference pins a local name to a digest, and the name refers to another package now.
ambiguous_digestA digest is recorded under several identities.
package_in_useSessions still use the package.
package_without_identityA stored package has no identity that refers to it.
not_a_stored_agentThe reference does not name an agent in the store, such as a project directory.
package_file_invalidThe package file is not a valid package.
path_invalidA path is not allowed or cannot be used.
store_corruptThe store's records are damaged.
store_newerThe store was written by a newer version of Pandra.
session_not_foundNo session matches the selector.
session_ambiguousThe selector matches several sessions.
quest_id_not_foundNo quest has the ID or prefix.
quest_ambiguousThe ID prefix matches several quests.
session_busyAnother run is working in the session.
quest_busyThe quest is running.
quest_completedThe quest completed: its resume has no --prompt to carry it out again with, or it completed while the resume prepared.
quest_changedThe quest's definition changed since it started.
session_unavailableThe session cannot be used.
session_removingThe session is being removed.
session_name_takenAnother session has the name.
session_requiredThe command needs a session and none was given.
workspace_protectedRemoving the session would delete a workspace with work in it; --force overrides it.
removal_incompleteRemoving the session stopped part way after it changed something; running the command again finishes it.
confirmation_requiredThe command asks for a confirmation and nobody can be asked; --yes answers it.
protocol_unsupportedThe run's control protocol version is not supported by this client.
run_not_foundNo run matches the identifier.
log_entry_not_foundA number given with --item is past the last entry the log read of the session; details.requested is the first such number and details.last the last entry read, or null when the log read none. The log reads at most the first 256 MiB of the harness's record, so past them an entry with a larger number can exist.
stop_timeoutThe run did not stop in time.
session_not_runningsession send found no run working on the session, or a run that is stopping or whose last turn has ended; an idle session's remediation resumes it with the message.
session_not_headlesssession send reached a TUI run or an ACP endpoint, which takes no message.
send_timeoutThe run did not begin handing the message to its harness within 60 seconds, and dropped it unsent; sending it again is safe.
send_unconfirmedThe message may have reached the harness, and no answer came: the harness did not answer within 60 seconds, the run ended first, or the connection to the run ended. Before the message is sent again, pandra logs shows whether the agent read it.
record_invalidA session, run, or quest record cannot be read.
workspace_missingThe session's workspace no longer exists.
package_missingThe session's package is no longer in the store.
preflight_failedThe checks before a run found problems; issues lists them.
launch_failedThe harness could not be started.
detach_failed--detach could not move the run or the quest to the background; details names the session and the run when the run had started, or the quest (quest_id) once a quest has its ID.
harness_failedThe harness reported a failed turn.
harness_exitedThe harness exited before it ended the turn.
harness_protocol_errorThe harness wrote something its protocol does not allow.
harness_not_logged_inThe harness has no login to use.
harness_authentication_failedThe harness's credential was rejected.
harness_provider_mismatchThe session's conversation was started with another model provider than the run's, which the harness does not switch; a new session continues instead.
harness_model_not_foundThe harness rejected the model the run asked for.
permission_mode_unavailableThe harness did not put the requested permission mode in effect.
output_schema_mismatchThe final answer does not match the output schema; details.answer holds the raw answer and details.errors what failed.
lockfile_missingThe definition has external sources and there is no pandra.lock, or the guild has a remote member and there is no pandra-guild.lock.
digest_mismatchContent does not have the digest the lockfile or the definition pins.
revision_not_foundThe pinned commit is no longer where the source's ref points, or the server no longer has it.
ref_not_foundThe remote has no branch or tag of the name.
ref_ambiguousA Git reference's @ref names both a tag and a branch; details.candidates lists the full ref names that pick one.
source_unreachableThe source's server cannot be reached, or it refused the request.
git_not_foundA Git source needs the git command, and none is on PATH.
offline_unavailableThe command needs the network, and network access is off.
source_too_largeA download or a fetched selection is larger than allowed.
archive_invalidA downloaded archive cannot be read, or has an entry that is not allowed.
submodule_unsupportedThe selected part of a Git source contains a submodule.
lfs_unsupportedThe selected part of a Git source contains a Git LFS pointer.
skill_ambiguousThe source holds several skills and none was chosen; details.skills lists them.
skill_not_foundThe source has no skill of the name or path given.
component_not_foundNo component of the definition matches the selector.
component_ambiguousThe selector matches several components of the definition.
prompt_existsThe definition has a prompt already.
trust_store_invalidThe trusted certificates cannot be loaded.
proxy_invalidA proxy variable is not a valid proxy URL.
secret_missingA secret's source has no value at its reference.
secret_unreadableA secret's value exists, or should, but cannot be used.
secret_store_unavailableA secret's store cannot be used: not installed, not signed in, locked, or unreachable.
secret_proxy_failedThe secret proxy could not start.
configuration_invalidThe configuration file breaks a rule of the specification; issues lists every problem.
target_not_foundThe target the run selects is not in the configuration.
target_harness_mismatchThe target recorded for a session now names another harness than the session's.
nested_refusedA nested invocation tried something only a top-level invocation may do.
nested_mode_unsupportedA nested invocation asked for a mode that only a top-level invocation can carry out, such as --detach under a TUI run or an ACP endpoint, or a quest's --detach.
parent_run_not_foundThe run that started a nested invocation is not a running run of its owner, or its owner cannot be reached.
detached_children_exceededA run has 4 detached children already, the most it can have at once.
harness_sandboxedA run cannot write Pandra's data directory or use a Unix socket there, with an error a sandbox gives: in a nested run a read-only file system, a permission denied, or an operation not permitted; in a top-level run only a read-only file system or an operation not permitted. Run the command again with the sandbox's escalation or outside the sandbox; a nested run whose calling agent runs in read-only is the user's to run outside the agent.
configuration_changedThe configuration file changed while a copy of it was being edited.
secret_store_read_onlyA value was offered to a secret store Pandra does not write.
secret_value_missingNo secret value was given, or it cannot be read without echoing it.
mcp_server_failedA required MCP server did not connect.
mcp_registry_errorThe MCP Registry answered with an unexpected status or a body that does not read.
mcp_registry_entry_not_foundThe MCP Registry does not serve the server version.
mcp_method_requiredAn MCP server offers several supported methods and none was chosen.
mcp_no_supported_methodNo execution method of the MCP server can run.
mcp_method_goneThe selected execution method is not among the new version's supported methods.
mcp_name_takenThe [mcp-servers] table name holds another server.
mcp_server_not_namedA value of pandra add --mcp without / is a search term, and no server could be chosen from its matches (no terminal, --json, --no-interactive, or a nested invocation).
schema_not_foundpandra schema embeds no schema with the given name.
mcp_configuration_in_useAn MCP configuration cannot be removed while an agent uses it.
mcp_server_unknown--server names no MCP server of the agent.
input_unknownAn input the server does not declare is named, or a required one is missing.
setup_file_refusedconfig setup --file holds keys a template cannot contain.
registry_unauthorizedThe registry refused the credentials, or asked for some that Pandra does not have.
registry_deniedThe registry accepted the credentials but denies access to the repository.
registry_not_foundThe registry does not serve the reference, or hides a private one from the login used.
registry_unreachableThe registry cannot be reached, or kept failing until the retries ran out.
registry_rejectedThe registry refused an upload or a manifest; details carries its message.
not_an_agent_packageThe registry serves something other than one agent package.
credential_helper_missingDocker's configuration names a credential helper that is not installed.
credential_helper_failedA credential helper failed.
several_referencesSeveral references hold the package; details.references lists them.
approval_not_foundNo approval covers the reference.
harness_version_unsupportedThe harness version is known to be incompatible with Pandra and cannot be installed.
harness_platform_unsupportedThe harness has no build for this platform, or its build cannot run here.
harness_verification_failedA harness release does not match its manifest.
harness_download_failedDownloading a harness release failed; details.status holds the HTTP status or null.
harness_installation_not_foundThe managed version to remove is not installed.
harness_ambiguousSeveral harnesses are installed and none is selected; details.candidates lists them.
prompt_is_commandThe harness would read the prompt as one of its commands; details.command names it. The prompt was not sent.
workspace_skills_too_manyThe workspace holds more skills of other tools than a launch can disable.
mcp_value_undeliverableAn MCP server's value cannot reach it as configured on this harness; details.servers names the servers.
sync_incompletepandra sync prepared what it could, and the items issues lists are missing, each with the command that installs it; from pandra guild sync, details.members gives each member's outcome, as guild-outcome does.
guild_not_foundNo pandra-guild.toml was found; the message names the directories searched.
guild_invalidpandra-guild.toml or a quest file it names is invalid, or a path member, a quest's path, or a step's or a check's output-schema leads out of its directory.
member_not_foundA name given to a pandra guild command is not a member; the message lists the members.
member_in_useA member that a profile or a step or check of a quest names cannot be removed; the message names each.
quest_not_foundThe name given to pandra quest run is not a quest; the message lists the quests.
profile_not_foundThe profile a pandra guild or pandra quest command was given is not a profile of the guild; the message says where the name came from and lists the profiles.
quest_checks_failedA check still did not approve after its step was sent back max-retries times; the message names the checks that did not approve and those that never started behind them. details.checks holds the whole last output of every check whose last verdict asked for changes, and details.not_started the names of the checks that never started.
quest_field_missingA field that a quest's template or a step's next names is missing from a step's output, or is a field of something that is not an object.
quest_failed_by_stepA step's next failed the quest with to = "fail"; details holds the step's name and output.
quest_command_failedA command step's script failed, or was stopped for writing too much on stdout; the message is the report, and details holds the step's name, the status, the script, and the output the report shows.
not_available_in_vmA command other than skill and version ran inside a microVM guest, where a run cannot start other agents.
vm_asset_missingA part a VM run needs (the kernel, the guest binary, the image, or the harness's Linux build) is missing and cannot be downloaded now, or cannot be used; an issue names each part, vm_asset_missing for one that is missing and record_invalid or io_error for one whose record or file cannot be read.
vm_image_unsupportedAn image cannot be a VM's root disk: it is not built from Pandra's base image, has no linux/arm64 image, or is past a limit or not an image Pandra can unpack.
vm_disk_clone_unsupportedThe volume of the data directory cannot clone files, which a VM disk needs; details.path names the data directory.
vm_disk_busyThe VM disk of the session is in use by another run; details holds the session_id, the run that holds it when known, and the session it is shared_with.
vm_start_failedThe VM did not start, or its guest did not answer in time; details.console holds the console's last lines.
vm_port_in_useA host port a VM run publishes cannot be bound, in use above all; details holds the host_port and the guest_port.
vm_login_expiredThe host's login that a VM run uses has expired, or cannot be read or parsed; the user starts the harness on the host once so that it renews its login.

Issue codes ​

An error lists the problems it found as issues, each with its own code, such as the blockers of pandra agent list and the problems of a dry run.

CodeMeaning
key_unknownA file has a key its format does not define.
key_missingA required key is missing.
value_invalidA value has the wrong type or is not allowed.
skill_duplicateTwo skills have the same name.
skill_name_mismatchA skill table's key differs from the name in its SKILL.md; details.rename_to is the table to write.
plugin_name_mismatchA plugin table's key differs from the plugin's own name; details.rename_to is the table to write.
excluded_not_foundAn exclude- key, or a plugin's skills, names something its plugin or base does not have.
namespace_duplicateTwo tables give one namespace, or two that differ only in ASCII case.
lockfile_entry_missingAn external source of the definition has no entry in pandra.lock.
lockfile_entry_unusedAn entry of pandra.lock has no source in the definition.
lockfile_entry_changedAn external source differs from its entry in pandra.lock.
license_file_skippedA license or notice file that the package format does not allow was left out.
provenance_omittedThe package records no source repository; details.reason says why.
package_not_approvedA stored package is not approved to run.
configuration_unreadableThe configuration cannot be read, so a name decision was made without it.
session_not_foundNo session matches the selector.
session_ambiguousThe selector matches several sessions.
session_busyAnother run is working in the session.
quest_busyThe quest is running; details.quest_id names it.
session_name_takenAnother session has the name; details.session_id names it.
workspace_protectedRemoving the session would delete a workspace with work in it (a warning).
record_invalidA session, run, or quest record cannot be read (a warning).
conversation_record_missingThe harness's record of the session's conversation is missing or cannot be read, so the log shows the runs alone (a warning); details.path names the record.
log_entries_skippedLines of the harness's record were longer than 16 MiB or not in a format the adapter reads, and the log left them out (a warning); details.count says how many.
log_tail_shortened--tail N showed fewer than N entries, because together they held more than 64 MiB (a warning); details.requested and details.shown give the two numbers.
log_record_cutThe log read the first 256 MiB of the harness's record, the most it reads, and the record goes on, so the entries after them are left out (a warning); details.bytes gives the bound in bytes.
package_keptA package stays in the store because releasing it failed (a warning).
quest_keptA quest's record and output stay because removing them failed, or because its worktree holds work (a warning).
workspace_keptA quest's workspace stays for the sessions that still work in it (a warning); details.path names it and details.session_ids the sessions.
io_errorA file could not be read; the message names it and the system's error (a warning).
quest_list_incompleteThe listing reached the most quest output it reads; details.quests holds the IDs of the quests it left out (a warning).
workspace_not_foundThe workspace directory does not exist.
workspace_not_directoryThe workspace path is not a directory.
workspace_inside_data_dirThe workspace is inside Pandra's data directory.
worktree_unavailable--worktree cannot make a worktree: no Git repository contains the current directory, it has no commit yet, or the git command is missing.
worktree_branch_existsThe branch a worktree session would start on exists already; details.branch names it.
parent_run_not_foundThe parent run named for a nested session does not exist.
harness_sandboxedA run cannot write Pandra's data directory or use a Unix socket there, with an error a sandbox gives: in a nested run a read-only file system, a permission denied, or an operation not permitted; in a top-level run only a read-only file system or an operation not permitted. Run the command again with the sandbox's escalation or outside the sandbox; a nested run whose calling agent runs in read-only is the user's to run outside the agent.
nesting_depth_exceededThe nesting of sessions is deeper than allowed.
not_supported_yetThe run needs something this version of Pandra does not support.
harness_not_foundThe selected harness has no installation: none is pinned, on PATH, or managed.
harness_ambiguousSeveral harnesses are installed and nothing selects one, so a run that cannot ask would fail with the error harness_ambiguous; details.candidates lists them. Listings report it as a blocker, and a quest's preflight reports it for each member that has no harness, with the member's agent in details.agent.
shell_not_foundA quest has a command, and bash is not on PATH.
harness_version_not_installedA pinned version is not installed and cannot be downloaded now; details.reason says why.
harness_path_missingA pinned path is not an executable file; details.file and details.line say where it is set.
harness_version_unsupportedThe harness's version is older than the oldest its adapter supports, or known not to work.
harness_version_unknownThe harness's version cannot be read.
env_missingAn environment variable the agent requires is not set.
env_reservedAn environment variable the agent declares is one Pandra removes or sets.
bypass_requires_non_rootSkipping permissions as root, which the harness refuses.
prompt_missingThe run has no prompt to send, or a quest that waits for the user was resumed without an answer.
prompt_invalidThe package's prompt is not UTF-8.
prompt_input_invalidThe prompt read from standard input is not UTF-8 or is larger than allowed, or a quest's message would be larger than allowed after expansion.
harness_args_overlapHarness arguments repeat flags the adapter passes itself; details.overlaps lists them.
output_schema_invalidThe output schema is not one self-contained JSON Schema draft-07 object of at most 1 MiB whose root describes an object, or, for a check's own schema, does not keep approved and each finding's priority and message.
output_schema_unsupportedThe output schema uses keywords the harness cannot enforce; details.keywords lists them.
provider_unsupportedThe model provider is not one the harness offers; details.providers lists them.
permission_deniedPermission requests of the harness were denied in a headless run (a warning).
background_work_stoppedThe agent's background work was still running at the wait's limit and was stopped; the answer is what the turns gave so far (a warning).
ref_ambiguousA ref names both a branch and a tag, and the branch was taken (a warning); details.tag names the tag.
secret_proxy_connection_failedThe secret proxy could not serve one connection of the harness (a warning); details.origin and details.reason say which and why.
secret_proxy_redirectedA substitution origin redirected the harness to another origin, which received only the placeholder (a warning); details.origin and details.location name both.
configuration_invalidThe configuration file breaks a rule of the specification; details.file and details.line say where.
target_not_foundThe target the run selects is not in the configuration.
target_harness_mismatchThe target recorded for a session now names another harness than the session's.
instructions_missinginstructions-mode is replace for an agent that has no instructions.
pandra_skill_invalidA Pandra-level skill was left out of a run; details.skill and details.path name it.
instructions_file_skippedAn instruction file of the home or repo source was left out of a run; details.source and details.path name it.
preload_skill_not_foundA skill the agent's preload-skills names is not one the run installs, and was skipped; details.skill names it as written.
client_cert_with_proxyA client certificate is configured while the secret proxy serves a credential.
harness_features_unsupportedA harness-features name the harness does not have.
secret_missingA secret's source has no value at its reference (an error's issue, or a warning when a secret is registered where its value is not).
secret_unreadableA secret's value exists, or should, but cannot be used.
secret_store_unavailableA secret's store cannot be used.
input_missingA required input of an MCP server has no value.
input_invalidAn input's value fails its choices or format, or a header built from it has a control character.
mcp_method_unsupportedThe selected execution method of an MCP server cannot run; details.reasons lists why.
mcp_value_unsupportedAn argument, environment variable's value, or header value of an MCP server contains ${, which the harness would expand.
mcp_value_undeliverableAn MCP server cannot reach the harness as configured, such as an SSE server on a harness without SSE or an argument the harness would rewrite; details.servers names the server and details.place the value.
mcp_client_server_skippedAn MCP server an ACP client added was left out, because the agent, or the client before, has a server of that name (a warning); details.server names it.
runtime_mcp_not_supported_in_vmThe MCP servers an ACP client added were left out, because a session in a VM starts no program or connection of the client's computer (a warning); details.servers names each.
permission_mode_unavailableThe harness cannot run in the requested permission mode: whatever its version, when details has harness, permission_mode, and modes; because of an entry in the session's harness home, in a dry run of a resume, when details has only permission_mode.
runner_missingThe runner an MCP server's method needs is not installed or not configured.
mcp_server_failedAn MCP server did not connect; details has server, status, identity, and required.
mcp_registry_version_deprecatedThe pinned MCP Registry version is deprecated (a warning).
mcp_registry_entries_skippedA search left out MCP Registry entries whose name or version breaks the registry's rules (a warning); details.count says how many.
mcp_registry_matchA server the MCP Registry matched for a value of pandra add --mcp that is not a full name; details holds its name, version, and methods.
mcp_server_not_allowedAn MCP server is assigned a configuration but has no allowed-server record.
mcp_server_changedAn MCP server differs from its allowed-server record; details has server, changed, allowed, and current.
mcp_method_unknownA configuration's method names no method of the server, or a short form names several.
input_not_secretA logical secret is assigned to an input the server does not declare secret.
package_changedA stored package changed since its source was approved; details.changes lists what needs approval.
registry_name_differsAn MCP server's registry name does not match what the registry serves (a warning).
effort_adjustedThe model lacks the requested effort level, so the run goes on at the level the harness applied (a warning); details has effort, applied, and levels.
cache_in_useA cache another process is using, which pandra system prune leaves alone.
offline_unavailableSomething a command needs must be downloaded, and network access is off; details.what names it.
agent_not_foundThe store lacks a guild member's pinned package; details.step is pandra guild pull.
lockfile_missingThe guild has a remote member and no pandra-guild.lock, or a path member's project has external sources and no pandra.lock; details.step gives the command that writes it.
lockfile_stalepandra-guild.lock, or a path member's pandra.lock, does not match its file; details.step gives the command that updates it.
lockfile_invalidA path member's pandra.lock cannot be read.
project_not_foundA path member's directory has no pandra.toml.
project_invalidA path member's pandra.toml is not a valid agent definition.
messages_not_readMessages that the run's harness had taken were not read, because the turn failed or was interrupted, or the harness left them queued (a warning); details.count says how many. Resuming the session with them is the remedy.
vm_asset_missingA part a VM run needs is missing and cannot be downloaded now; details.part is kernel, guest, image, or harness.
backend_unsupportedThe run selects the VM backend, which this machine cannot run; details.reason is not_mac_os, not_apple_silicon, os_too_old, or virtualization_unavailable.
vm_entitlement_missingThe running binary is not signed with the virtualization entitlement a VM needs; details.binary names it.
vm_workspace_too_broadA directory a VM run would share with the guest is or contains one of Pandra's own directories, or, for a Git directory, lies inside one; details holds the path shared, the share (workspace or git), Pandra's directory it is, contains, or lies inside (contains), and its kind (data, configuration, or cache).
vm_server_unsupportedAn MCP server of the agent is distributed as an OCI image, which a VM cannot run; details.server names it.
destination_refusedA warning: a VM run's network refused a destination; details is a RefusedDestination, with the host, the port (null for a name refused at lookup), and the allow_command that allows it for the session, or null when allowing it would not help.
vm_quest_unsupportedThe configuration selects the VM backend for a quest's member, and a quest does not run members in a VM; details.agent is the member's identity and details.member its name.
placeholder_misplacedA warning: a VM run's guest sent a placeholder of the run's to a host it is not bound to, which got it unchanged; details.host names the host, never the placeholder.
vm_login_expiredThe host's login that a VM run uses has expired, or cannot be read or parsed; details.harness names the harness.
vm_login_unsupportedThe host's login cannot be used in a VM, since it cannot work with a placeholder or lies outside the harness's login store; details.harness names the harness.

Released under the Apache License 2.0