kimi-code
kimi-code copied to clipboard
[Feature Request] Add global memory across sessions
This would be really useful. My idea:
- Add a
~/.kimi-code/memory.mdfile that persists across sessions - On session start, load the memory file and inject it as system context
- On session end (Stop hook), append a summary of key decisions/learnings to the memory file
- Add a
kimi memorycommand to view/edit the global memory
This is similar to how agentscope-java handles memory with MemoryFlushMiddleware — it extracts key information from the session and writes it to a persistent store, then loads it on the next session start.
The memory file could be structured as:
## Decisions
- 2024-01-15: Use pnpm instead of npm for this project
- 2024-01-20: API base URL is https://api.example.com
## Patterns
- This project uses conventional commits
- Tests are in the `tests/` directory, not `__tests__/`
Mind if I take this?
@itxaiohanglover Sure, feel free to take it — thanks for picking this up! Happy to help test or refine the design!