Skip to content

Kevinsillo/pillbox

Repository files navigation

Pillbox

Pillbox

The persistent memory layer for AI agents — structured, searchable, and built in Rust.

Release Build License Platform Node

Pillbox gives AI agents a structured, searchable memory that survives across sessions. Instead of relying on context windows and ad-hoc notes, the agent actively writes and retrieves knowledge as it works — decisions, bugs fixed, patterns discovered, personal conventions.

Star Pillbox on GitHub

Why Pillbox?

Modern AI agents are stateless by default. Every session starts from scratch. Pillbox solves this by giving the agent two types of persistent memory:

  • Pills — project-specific knowledge. Tied to a codebase. Organized into work sessions.
  • Capsules — personal, cross-project knowledge. Your conventions, workflow preferences, environment context, and long-term goals.

The agent writes knowledge proactively during work, and retrieves it at the start of new sessions. Over time, the agent builds a rich, searchable model of both the project and the person it's working with.

How it works in practice

You install Pillbox once. From that point, the agent handles everything.

When you start working on a project, the agent opens a prescription and loads recent context from previous sessions — what was done, what was decided, what's pending. As work progresses, it saves relevant moments automatically: architectural decisions, bugs and their root causes, patterns established, non-obvious discoveries. When the session ends, it closes the prescription.

You never instruct the agent to remember something. It decides what matters, following the same instincts an experienced engineer would use when writing things down.

The result is an agent that feels like it was already there — one that remembers your codebase, your preferences, and your way of working.

Core concepts

Concept What it is
Bottle A project. Maps a directory to a database.
Prescription A work session within a bottle. Has a title describing the task.
Pill A piece of project knowledge saved within a prescription.
Capsule A piece of personal knowledge — global, not tied to any project.

Multilingual

CLI and web interface fully localized in 6 languages: English, Spanish, French, German, Italian, and Portuguese. Auto-detected from your system locale.

Quick install

Linux / macOS

curl -fsSL https://raw.githubusercontent.com/Kevinsillo/pillbox/main/install.sh | bash

Windows (PowerShell)

irm https://raw.githubusercontent.com/Kevinsillo/pillbox/main/install.ps1 | iex

This installs:

  • pillbox binary (Rust)
  • pillbox-mcp MCP server
  • The Pillbox skill for your AI coding assistant
  • The global database at ~/.pillbox/pillbox.db

See the installation guide for manual installation and platform-specific options.

Quick start

1. Initialize a project

cd my-project
pillbox bottle init

2. The agent takes it from here

The installer configures the MCP server automatically. Once connected, the agent opens prescriptions, saves pills, and retrieves context on its own — guided by the Pillbox skill.

CLI reference

Pillbox CLI demo

pillbox status                    # Global status
pillbox serve start [--port N]    # Start HTTP server
pillbox mcp install               # Install MCP server
pillbox skill install             # Install the Pillbox skill
pillbox bottle init               # Initialize a project

Full reference → kevinsillo.github.io/pillbox-docs/reference/cli/

Web interface

Pillbox WebUI dashboard

The web dashboard gives you a visual overview of any bottle: open prescriptions, recent pills with their compound tags, activity chart, and database size. Accessible at http://pillbox.local:4242 when the server is running.

Architecture

Pillbox is split across four repositories that work together as a single system:

  • pillbox — Rust binary: CLI, HTTP server, SQLite persistence, embedded WebUI
  • pillbox-mcp — TypeScript MCP server, bridges the agent to the core via pillbox exec
  • pillbox-skills — Skills for AI coding assistants
  • pillbox-docs — Documentation and landing page

The MCP server communicates with the binary via pillbox exec — a JSON stdin/stdout dispatcher. All persistence lives in the Rust core; the MCP layer has no direct database dependency.

The web interface is built with Vite and embedded into the binary at compile time via rust-embed. Served at http://pillbox.local:4242 with no external dependencies.

License

PolyForm Noncommercial 1.0.0 — free for non-commercial use.

About

Persistent knowledge memory for AI agents — tiny, dense pills of information stored in SQLite, served over HTTP, consumed via MCP.

Topics

Resources

License

Unknown, Unknown licenses found

Licenses found

Unknown
LICENSE
Unknown
LICENSE-ASSETS

Contributing

Stars

6 stars

Watchers

0 watching

Forks

Packages

 
 
 

Contributors