Skip to content

user guide data layout

github-actions[bot] edited this page Nov 4, 2026 · 53 revisions

Data layout

Solomon stores user data outside the repository under ~/.solomon. Project-scoped data is keyed by the canonical working directory and grouped under a stable project id (project.Resolve).

flowchart LR
  home["~/.solomon/<br/><small>Solomon user data root</small>"]

  config["config.toml<br/><small>providers, model, user name,<br/>reasoning, language, logging,<br/>token caps, compaction,<br/>[tools] legacy XML</small>"]
  mcpConfig["mcp.json<br/><small>optional MCP servers</small>"]
  cloakDir["cloakbrowser/<br/><small>official npm wrapper + browser cache</small>"]
  webUsage["websearch-usage.json<br/><small>monthly Exa/Parallel balance</small>"]
  projectMap["projectsId.json<br/><small>canonical root -> 64-char id</small>"]
  logs["logs/<br/><small>file logs, 7-day retention</small>"]
  exported["exported/<br/><small>/export markdown by date</small>"]
  exportFile["YYYY-MM-DD/*.md"]
  globalSkillsDir["skills/<br/><small>global skill files</small>"]
  globalAgents["AGENTS.md<br/><small>global agent instructions</small>"]
  globalRules["rules/<br/><small>rule_NN.txt custom rules</small>"]
  promptTemplates["prompts/templates/<br/><small>*.tmpl system prompts</small>"]
  subagents["subagents/<br/><small>scheduled subagents + active registry</small>"]
  scheduledSubagent["<subchat-id>.json"]
  activeSubagents["activeSubagents.json"]
  skillsRegistry["skills.json<br/><small>global + per-project registry</small>"]

  projects["projects/<br/><small>per-project partitions</small>"]
  projectNode["&lt;project-id&gt;/"]
  chats["chats/<br/><small>session JSON</small>"]
  chatFile["*.json"]
  research["research/<br/><small>deep research records and reports</small>"]
  researchJob["&lt;slug&gt;.json"]
  researchReport["&lt;slug&gt;.html"]
  subchats["subchats/"]
  subchatFile["*.json"]
  plans["plans/<br/><small>plan markdown</small>"]
  planFile["*.md"]
  temp["temp/<br/><small>tool output spill (until last process exits)</small>"]
  tempQueue["temp.txt<br/><small>deferred temp cleanup queue</small>"]
  projectSkills["skills/"]
  projectRules["rules/<br/><small>project rule_NN.txt</small>"]

  repoAgents["&lt;workspace&gt;/AGENTS.md<br/><small>repo instructions (optional)</small>"]
  repoSubAgents["&lt;workspace&gt;/.../AGENTS.md<br/><small>subdir instructions (on activation)</small>"]

  workspaceRoot["&lt;workspace&gt;/.solomon/"]
  workspaceSkills["skills/"]
  localMirror["skills.json"]
  localFiles["..."]

  home --> config
  home --> mcpConfig
  home --> cloakDir
  home --> webUsage
  home --> projectMap
  home --> logs
  home --> exported
  exported --> exportFile
  home --> tempQueue
  home --> globalSkillsDir
  home --> globalAgents
  home --> globalRules
  home --> promptTemplates
  home --> subagents
  subagents --> scheduledSubagent
  subagents --> activeSubagents
  home --> skillsRegistry
  home --> projects
  projects --> projectNode
  projectNode --> chats
  chats --> chatFile
  chats --> subchats
  subchats --> subchatFile
  projectNode --> research
  research --> researchJob
  research --> researchReport
  projectNode --> plans
  plans --> planFile
  projectNode --> temp
  projectNode --> projectSkills
  projectNode --> projectRules

  workspaceRoot --> workspaceSkills
  workspaceSkills --> localMirror
  workspaceSkills --> localFiles

  classDef folder fill:#eef6ff,stroke:#5b8def,color:#102a43
  classDef file fill:#fff7e6,stroke:#d9822b,color:#3d2b1f
  class home,logs,exported,cloakDir,globalSkillsDir,globalRules,promptTemplates,subagents,projects,projectNode,chats,research,subchats,plans,temp,projectSkills,projectRules,workspaceRoot,workspaceSkills folder
  class config,mcpConfig,webUsage,projectMap,skillsRegistry,tempQueue,chatFile,researchJob,researchReport,subchatFile,scheduledSubagent,activeSubagents,planFile,exportFile,localMirror,localFiles,globalAgents,repoAgents,repoSubAgents file
Loading

Session files

Chat sessions live under projects/<project-id>/chats/*.json. Each file holds session id, title, timestamps, messages, tool calls, checkpoint fields, token usage, image references, and activated_instruction_dirs (subdirectory instruction paths active for that chat). Legacy tool settings are not stored per session — they live in global config.toml under [tools]. Old session JSON may still contain a deprecated legacy_tools field; it is ignored on load. See Sessions and storage.

Deep research files

Deep research jobs live under projects/<project-id>/research/. Each job has a <slug>.json record containing status, phase, checkpoints, findings, URL-attempt metadata, provider statistics, and (when available) the HTML path. Completed jobs also have a matching <slug>.html report. The terminal and GUI read this same project-scoped store; there is no separate GUI copy. See Deep research.

The internal Exa/Parallel router stores its cross-process monthly scheduler state in ~/.solomon/websearch-usage.json with mode 0600; a sibling lock file coordinates concurrent Solomon processes. Counts reset automatically at the next UTC month.

Local server runtime

The detached local server writes lifecycle state to ~/.solomon/run/server/state.json and its stdout/stderr log to ~/.solomon/logs/server/server.log. The state file contains process metadata (including the dev-mode Vite process-group leader PID) and the server URLs advertised for loopback, local-network and Tailscale interfaces; it contains no configuration or user content and is removed after a graceful solomon server stop. See Local server.

Subagent files

Project subagent transcripts live under projects/<project-id>/chats/subchats/<subchat-id>.json. Scheduled subagents use ~/.solomon/subagents/<subchat-id>.json. Both contain the nested messages and lifecycle metadata such as title, parent linkage, status, selected role, and reasoning effort. ~/.solomon/subagents/activeSubagents.json is a small active-run registry used for background cancellation and startup reconciliation; it does not contain the transcript. See Subagent persistence and lifecycle.

Exported chats (/export)

Markdown exports from /export live under ~/.solomon/exported/{YYYY-MM-DD}/{basename}.md by default, or under [export].path with the same date subdirectory layout. Files are self-contained transcripts (metadata header, readable message body, optional ## Images appendix with base64 data URIs). Re-exporting the same chat on the same day creates {basename}-1.md, {basename}-2.md, … Solomon does not maintain a separate export index — “already exported today” checks scan for matching basenames in that date folder. Details: Usage and commands — /export.

Project instructions and custom rules

What Where
Global instructions ~/.solomon/AGENTS.md
Global custom rules ~/.solomon/rules/rule_NN.txt
Project custom rules ~/.solomon/projects/<project-id>/rules/rule_NN.txt
Repository instructions <workspace>/AGENTS.md (or CLAUDE.md / GEMINI.md fallback in the same directory)
Subdirectory instructions <workspace>/<subdir>/AGENTS.md (loaded into the prompt only after tool-driven activation in that session)

Rules vs architectural instruction files: Project instructions.

Plans

Plan documents created through plan-mode tools are stored under projects/<project-id>/plans/*.md.

Tool output spill (temp/)

When a tool result exceeds [tool_output] limits (defaults in config), Solomon writes the full payload under projects/<project-id>/temp/ and returns a ---TRUNCATED--- block with full output at <path> in the tool result. Files in temp/ are deleted when the last Solomon process exits; if other instances are still running, the project id is queued in ~/.solomon/temp.txt until then. After a restart with no spill files left, use readFile with line ranges or re-run the tool. See Agent turn pipeline.

Skills

  • Global (/add ... global or default): ~/.solomon/skills/ + skills.json
  • Per project (/add ... project): projects/<project-id>/skills/
  • Per workspace (/add ... local): <workspace>/.solomon/skills/ with local skills.json mirror

npm skills add stages under ~/.agents/skills/; Solomon copies into the scope above and removes npm cwd side-effects (.agents/, skills-lock.json) after a successful install.

Registry and install paths: Skills and slash. User guide: Installing skills.

Prompt templates

System prompt templates are installed under ~/.solomon/prompts/templates/ (*.tmpl). Accepted edits are tracked by SHA256 in config.toml under [prompt_templates]. See Configuration — prompt_templates.

See also

Clone this wiki locally