Memory Structure
MEMORY.md
The curated memory file is loaded into every agent prompt. It contains important facts the agent should always know: your preferences, project context, key decisions, recurring patterns. The agent updatesMEMORY.md when it learns something worth remembering. You can also edit it directly.
Daily Logs
Each day gets a log file (YYYY-MM-DD.md). The agent appends to the current day’s log during sessions. Recent daily logs (last 3 days) are auto-loaded into the prompt for recency context.
Skill Memories
When the agent works on a specific domain (fitness, language learning, a project), it creates a skill memory file inmemory/skills/. These capture domain-specific context that doesn’t belong in the general MEMORY.md.
Job Memories
Each scheduled job gets its own memory file atmemory/jobs/<job-name>.md. The job executor loads this file at the start of each run, so the agent knows what it did last time. This enables progressive context — a fitness coaching job that tracks workout progression over weeks.
Automatic Knowledge Extraction
After each conversation, Fliiq runs a post-session LLM pass to extract institutional knowledge and persist it automatically. No manual effort required. What gets extracted:- People — names, roles, relationships, preferences, contact details
- Topics — ongoing projects, recurring interests, goals, decisions made
- Decisions — non-trivial choices with reasoning
memory/people/ or memory/topics/. On subsequent runs, Fliiq merges new facts into existing files rather than duplicating them.
What’s filtered out: one-time tasks, ephemeral instructions, vague observations, and implementation details with no lasting value.
This means context about your projects, collaborators, and preferences accumulates automatically — the agent gets more useful the more you use it.
Self-Improving Lessons Loop
After each conversation, a second post-session pass scans the transcript for behavioral corrections and reusable procedures, then writes or refines markdown lesson files undermemory/lessons/. Lessons are injected into the system prompt at the start of every future session.
What triggers a lesson:
- You corrected style, tone, format, or verbosity (“stop doing X”, “too verbose”, “just give me the answer”)
- You corrected the agent’s workflow or approach
- A non-trivial technique or fix emerged that should be repeated
- An existing lesson turned out to be wrong or outdated (the pass refines it in place)
Session Search
Fliiq indexes conversation messages in a local SQLite FTS5 database at.fliiq/sessions.db. Use the search_sessions skill to recall past conversations:
session_id and around_ts to retrieve the surrounding message context for any hit.
Memory Skills
The agent manages memory through three built-in skills:
These are called naturally by the agent — you don’t need to instruct it to use memory. If you mention a preference or the agent learns something useful, it writes it to the appropriate memory file.