Skip to main content

Exit codes

Tome exits 0 on success. Every failure class maps to its own specific non-zero code — there is no generic "unknown error" arm — so you can branch on the exact failure in scripts. The --json error output also includes a snake-case category for each failure (mostly one per code, though a couple of codes share a category — e.g. 52 and 73 both report schema_too_new).

CodeCategoryMeaning
0Success.
1internalInternal error.
2usageInvalid usage / arguments.
3catalog_not_foundCatalog not found.
4catalog_already_existsCatalog already exists.
5manifest_invalidCatalog manifest (tome-catalog.toml) invalid.
6git_failedA git operation failed.
7ioI/O error.
8interruptedInterrupted (SIGINT / Ctrl-C).
9plugin_data_dir_write_failedFailed to write a plugin's data directory.
13workspace_not_foundWorkspace not found.
14workspace_already_existsWorkspace already exists.
15workspace_name_invalidInvalid workspace name.
16workspace_has_bound_projectsWorkspace still has bound projects.
17composition_errorWorkspace composition error.
18harness_not_supportedUnsupported harness.
19harness_clashHarness configuration clash.
20plugin_not_foundPlugin not found.
21plugin_already_in_statePlugin already in the requested state.
22plugin_manifest_parse_errorplugin.json parse error.
23skill_frontmatter_parse_errorSKILL.md frontmatter parse error.
24summariser_failureSummariser failure.
25workspace_data_dir_write_failedFailed to write a workspace's data directory.
26prompt_argument_mismatchMCP prompt argument mismatch.
27entry_not_foundEntry not found.
28substitution_failedVariable substitution failed.
29invalid_argument_frontmatterInvalid argument frontmatter.
30model_missingA required model is missing.
31model_corruptA model file is corrupt.
32model_checksum_mismatchModel checksum mismatch.
33model_registration_parse_errorModel registration parse error.
34inference_runtime_init_failureInference runtime failed to initialise.
35vector_extension_init_failureVector extension failed to initialise.
36embedding_generation_failureEmbedding generation failed.
37reranking_failureReranking failed.
40query_no_results_strict--strict query returned no results.
41embedder_name_driftEmbedder name drift (index vs. configured model).
42embedder_version_driftEmbedder version drift.
43hook_spec_parse_errorHook spec parse error.
44hook_settings_write_failedFailed to write hook settings.
45agent_translation_failedAgent translation failed.
46guardrails_write_failedFailed to write the guardrails/rules file.
50index_busyThe index is locked by another process.
51index_integrity_check_failureIndex integrity check failed.
52schema_too_newIndex schema is newer than this binary supports.
53catalog_has_enabled_pluginsCatalog still has enabled plugins (use --force).
54not_a_terminalAn interactive command was run without a terminal.
60mcp_startupMCP server failed to start.
61mcp_ioMCP protocol I/O error.
70workspace_malformedWorkspace data on disk is malformed.
73schema_too_newWorkspace schema version too new.
74schema_migrationSchema migration failed.
75doctor_fix_unsafeA doctor --fix repair was not safe to apply.