More screenshots

    Works with the AI Agents you already use

    Persistent Agents Sqlite Memory

    by Mohamed Mostafa Metawea

    1

    Add persistent identity, keyword-based memory, and isolated chat history to agents using a lightweight SQLite backend.

    $9.99

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Persistent Agents Sqlite Memory

    Persistent Agents Sqlite Memory

    Example session with this skill installed

    I want my agents to keep their role, notes and chat history between runs. Design the storage and the remember and recall tools.

    • Read your context and instructions
    • Compiled the persistent agents sqlite

    Summary

    Illustrative outline of the design. This is a sample, not captured output from a live model.

    1. Create tables for agents, notes, chat messages and stats in one SQLite file.
    2. Add a remember tool that saves a note for the agent, and a recall tool that searches notes by keyword.
    3. At the start of each run, add the agent's job description and recent notes to the system prompt.
    4. Update stats after each run.

    Next steps

    1. Decide how many notes to inject per run.
    2. Expect keyword recall to miss paraphrases.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Give an agent a persistent identity in one SQLite file: name, job description, tool list, skills, memory notes, chat history and stats, with remember and recall tools and memory added to the system prompt on each run. It comes from a small Python reference app (AI Office, standard library only) and was checked against that code.

    What it does

    • Stores each agent's profile, job description, tools, skills and stats in SQLite.
    • Gives agents remember and recall tools for memory notes.
    • Adds relevant memory to the system prompt per run.
    • Keeps chat history per agent.

    How it works

    The skill lists the tables, the memory tools and how memory is injected into the prompt.

    Frameworks & tools

    Plain Python with the standard library and SQLite. A written playbook, not an installable package.

    Use cases

    • Agents that keep their role and notes between sessions.
    • A small team of named agents sharing one database.

    Known limitations

    Memory is keyword based, which is the known weak point. SQLite fits a single user or small team and was not tested under multi-user load in the reference app.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Frequently Asked Questions

    This skill allows agents to maintain a consistent identity, job description, and memory across system restarts by using a structured SQLite backend. It solves the problem of context loss and fragmented agent behavior that typically occurs when an LLM session ends.

    The skill provides a dual mode approach where agents use a tool to save notes and a keyword search tool to retrieve them. Additionally, the system automatically injects recent memory notes into the prompt before each run so the agent is aware of its own past actions.

    You will get a structured database schema and logic for managing employee rosters, tool permissions, and isolated chat histories. It also includes automated state hygiene to triage interrupted tasks after a system crash and logs token usage for cost tracking.

    Memory retrieval relies on keyword matching rather than vector embeddings, so it may miss information if different vocabulary is used. Furthermore, the SQLite implementation is designed for single user or small team loads and is not intended for high concurrency environments.

    You can instruct your agent to use the remember tool to save specific facts or the recall tool to search its history for a particular keyword. You can also ask it to review its assigned role and job description to ensure it is operating within its defined parameters.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.