AI agents

Overview

Store agent state, enforce tool permissions, recover unwanted changes, and search authorised notes.

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 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.