Sirannon can persist an agent's messages, facts, and task state in SQLite files that your application controls. These guides explain how to select the database, restrict the operations that a model can request, and recover stored data after an unwanted change.
Store the agent's memory as rows
Your application defines the tables for conversation history, plans, tool results, and retained facts. Sirannon stores and queries those rows; the model determines how it uses the evidence that your tools return.
For text or semantic retrieval, a Narsil index can rank candidates while Sirannon remains the authoritative database. The retrieval service must verify current ownership before returning text, including when the index contains an earlier version of a row.
What these guides assume
Start with a driver and an open database. Examples that expose data over a network also require the server's runtime peers and authentication, as the server guide describes.
The database demonstrations require no model API key. Tool modules can connect those database operations to an AI SDK agent or another framework. Configure a model separately when the application needs generated answers, and use a local model if those answers must remain available offline.
The guides
- Use a database per AI agent to separate files and bound open databases.
- Record sources and replacement timestamps for memory and forgetting so that queries can retrieve earlier values.
- Rewind memory to a trusted capture and copy back only reviewed later facts.
- Bind AI agent tools to authenticated identities and enforce row ownership in SQL.
- Coordinate shared state through atomic job claims.
- Audit a fleet by saving events with committed actions before collecting them centrally.
- Use retrieval with Narsil to search notes and recheck their current permissions.
- Give offline AI agents local data and reconnect through device sync.
Use encryption when a supported driver must encrypt database files, and use row metering when your application needs query usage counts. Authentication, backup retention, and the permissions for each agent remain application responsibilities.