Session storage overhaul and per-model system prompts
By RepoJournal , from @anurag629's public GitHub activity
Anurag Verma landed two major features in quantized-ai/luca-py, moving session files out of project directories and adding model-aware prompts to the agent.
The first change relocates sessions from wherever the TUI was launched to a project-specific directory under ~/.luca/projects/ [1]. Sessions had accumulated as loose JSON files next to code, and resuming a conversation required copying its id from the goodbye line. The encoding for project paths follows Claude Code's standard, replacing path separators with dashes. The root directory can be moved via sessions.directory in luca.json, but the per-project subdirectory is always applied underneath it [3].
The second feature reads AGENTS.md to select a base system prompt matched to the model family [2]. The demo agent originally shipped with a three-line prompt tuned to its math tools. The new system matches on model id rather than provider, since openrouter serves all families. It uses two plugins: SystemPromptPlugin contributes a shared base plus a model-specific addendum, while InstructionsPlugin reads project-level rules from LUCA.md and AGENTS.md [4]. Both parts are callables, so switching models with /model updates the prompt mid-session.
One email a day. Unsubscribe in one click.
A short briefing every day anurag629 ships something — in about 3 minutes.
One email a day. Unsubscribe in one click. Read a past issue →
References
- [1] Per-project session store + /resume ↗ quantized-ai/luca-py
- [2] Read AGENTS.md + per-model system prompts ↗ quantized-ai/luca-py
- [3] Store sessions per project and add /resume (#34) quantized-ai/luca-py
- [4] Read AGENTS.md and pick the base system prompt per model family (#32) quantized-ai/luca-py