Repository navigation
feat(core): rename the home memory workspace to files - #67263
Conversation
There was a problem hiding this comment.
Looks sound. It's a prompt-only change behind the home_memory flag. The new maintenance instruction relies on each conversation's directory, and that holds: transcripts are already wrapped in <conversation ... directory="...">. The home-memory tests pass and tsc -b type-checks cleanly. I couldn't check whether a model actually follows the per-repo folder layout, because that needs a real model.
Public API is unchanged: the edits are to prompt text only, with no config, schema, plugin API or file-format changes. Existing loose files in memory/projects/ aren't migrated, but the maintenance step that reorganizes files should move them over time.
There was a problem hiding this comment.
The new commit is fine. It changes the per-project folder to memory/projects/<name>/, named after the project, and drops the index.md instruction. The maintenance prompt still tells the model to use each conversation's directory, which the transcripts include. The home-memory tests and tsc -b both pass. I couldn't check whether a model actually follows the new layout, because that needs a real model.
Public API is unchanged: the edits are to prompt text only.
Issue for this PR
n/a
Type of change
What does this PR do?
renames the home memory workspace folder to
filesand tightens its instructions. still behind the existinghome_memoryflag, which keeps its name.~/.local/share/opencode/memoryto~/.local/share/opencode/files(stillmemory/,docs/,scripts/inside), and the reference is now namedfileswith a description that starts "Your personal workspace…"memory/projects/<name>/, named after the project, with no rules about what goes inside. rules every contributor should follow stay in the project's ownAGENTS.md. same wording in the daily maintenance prompt, which uses each conversation's directory to tell projects apartmemory/<project-id>folders and nostate/<project-id>key migration. only the internal team uses this, so existing folders get moved by handHow did you verify your code works?
bun run script/test.ts test/plugin/home-memory.test.ts --rerun-each 5andbun run typecheck:tscinpackages/core, plusbun run checkfrom the root.Screenshots / recordings
n/a
Checklist