Skip to content

Commit feef295

Browse files
committed
feat(coderd): add shared project memory for chats in a project
Gives every chat in a project a durable, shared memory store modeled on Claude Code's auto memory. Root chats in a project get a <project-memory> index in the system prompt (guidance plus one line per memory, capped at 200 lines / 25 KiB with an explicit truncation notice) and read/save/delete tools that upsert by name. Memories carry a name, one-line description, and markdown body and are sanitized before storage. After each completed root turn a detached, cursor-fenced extraction call reviews new user messages and records facts the agent did not save itself. It is create-only and skips turns where the agent used the memory tools, so it cannot overwrite or delete existing memories. Adds the chat_project_memory RBAC resource (org members may read and write), audited CRUD under /chats/projects/{project}/memories, and a Memory section on the project page listing collapsed memories that expand to show the body with edit and delete.
1 parent d6ed44c commit feef295

62 files changed

Lines changed: 4462 additions & 58 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎coderd/apidoc/docs.go‎

Lines changed: 321 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)