Skip to content

Commit 8b70cd9

Browse files
committed
docs(openCode): document OpenCode storage layout
Clarify where OpenCode stores session diffs, tool output, and docs. This helps avoid incorrect assumptions about project-scoped paths when inspecting prior sessions or tool results.
1 parent 0a1b9ed commit 8b70cd9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.agents/docs/opencode.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# OpenCode Policies
22

3+
## Storage Layout
4+
5+
When inspecting prior OpenCode sessions or tool results, verify the local storage
6+
layout before assuming project-scoped paths from documentation.
7+
8+
- OpenCode data lives under `~/.local/share/opencode/`
9+
- OpenCode docs may describe project-scoped storage under
10+
`~/.local/share/opencode/project/<project-slug>/storage/`
11+
- Session diffs are stored in `~/.local/share/opencode/storage/session_diff/`
12+
- Tool output is stored in `~/.local/share/opencode/tool-output/`
13+
- Prefer targeted inspection of these known paths over broad recursive searches
14+
in large directory trees
15+
316
## Command Chaining Approval
417

518
When a chained command is submitted using `&&`, `;`, `||`, or `|`:

0 commit comments

Comments
 (0)