Skip to main content
Lukan has a multi-layered memory system that persists context across sessions.

LUKAN.md (Project Guide)

Auto-generated project guide from package.json and file tree. Created with /lukan command or lukan init. Loaded into the system prompt.

Project Memory

Per-project persistent memory stored in .lukan/memories/MEMORY.md. Updated automatically during compaction (at 50k tokens).

Global Memory

Stored at ~/.config/lukan/memory.md. Always included in system prompt regardless of project. Manage with /gmemory.
Use Alt+M to open the memory viewer overlay in the TUI.

Compaction

Automatic context compression at 150k tokens. Keeps the last 10 messages and generates a summary. Memory is updated at 50k tokens. Manual trigger with /compact.

Memory Layers

All memory layers are combined into the system prompt automatically.