2026-11-27 16:21 UTC

Bottle offers agents a schema-based fact ledger through CLI and MCP

state: expiredheat: lowuncertainty: mediumrelevance: lowagent-memory structured-memory llm-toolingimron

What is this?

Bottle is an open-source Rust CLI and MCP server by imron for storing agent-written facts in user-defined schemas with simple types such as text, number, and enum. Its documented commands include logging, listing, retrieving, amending, ignoring, and summing entries; the creator presents this as a structured alternative to prose notes and a more constrained alternative to giving bots SQL access. These are project documentation and creator claims, not independent evidence of reliability, security, or real-world adoption.

Why it matters

Bottle is a small, practical experiment in a recurring agent-memory problem: prose notes are awkward for consistently storing and aggregating repeated facts, while unrestricted SQL can be more power than an agent needs. Its fixed commands and typed schemas could suit personal or workflow data such as expenses or project hours. The evidence establishes the project’s documented design, not that it is safer, more reliable, or better than existing memory tools in practice; there is no adoption or evaluation evidence here.

Current assessment

The project’s documentation describes Bottle as an open-source Rust CLI that can also run as an MCP server. Users define schemas with simple field types; agents can log, retrieve, amend, ignore, and list entries, and sum numeric fields. The creator frames it as a middle ground between prose-based notes and SQL, with validation and constrained commands intended to make structured facts easier to query and less prone to accidental changes. This is a newly surfaced niche tool rather than evidence of a broader shift or a demonstrated replacement for agent memory systems. The supplied sources are the creator’s Show HN post and GitHub project material; the web results add no independent evaluation. Security, data-integrity guarantees, usability, and real-world uptake remain unestablished.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

09-17 12:28 (minted)⭐ origin echo-reconstructedBottle lets bots log facts against custom schemas and query them through a fixed command set, with typed fields, validation, aggregation, an
imron on github (echo) · attributed from hn.story.49739531 · published time unknown
—
09-17 12:01first on hacker news · published · lag ?Show HN: Bottle – a tiny ledger for bot memory
imron
—
09-17 12:01amplified on hacker news 👑hn.story.49739531
imron
peak 2 · 0 comments · 98% of case engagement
09-17 12:20our radar first saw it · lag ?discovery anchor: hn.story.49739531—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Bottle – a tiny ledger for bot memory
Retrieved article excerpt

Open article · Retrieved 2026-09-17T12:22:05.688818+00:00

# Bottle

Bottle is a tiny ledger that gives autonomous bots the ability to log facts
against custom schemas and query those facts using a fixed set of commands.

It provides lightweight access to structured data.

## Why it exists

Bots are good at noticing facts but bad at keeping them. The usual method is
keeping notes in markdown files, but such notes lack consistent type information
and structure. You cannot sum these facts efficiently, you have no consistent
way to reason about them chronologically and two bots writing about the same
facts cannot safely share information without stepping on each other's toes.

Bottle corrects for these things.

Users specify a schema containing fields with simple types (text, number, enum).
Bots then log facts against those schemas and query those facts back in
meaningful ways.

## Why not markdown

Markdown is prose, bottle entries are structured data. Entries have types, ids,
dates, and declared numbers you can group and sum far more efficiently than
parsing and interpreting text.

## Why not SQL

SQL is amazing and powerful but the full expressive power of SQL causes bots to
overthink and overcomplicate solutions.

Rogue bots with full SQL access can accidentally corrupt your data store more
easily and "Sorry, that's on me" is poor consolation when a bot messes up.

Bottle is there to provide constraint. A small verb set over structured data.

## Why not Karpathy Wikis

Karpathy Wikis give your bots memory via a knowledge graph. They're great for
synthesising large amounts of data over time without requiring an LLM to
rediscover knowledge from scratch.

Bottle gives your bots memory of specific facts. It's great for recalling and
processing facts in a structured way.

Both are useful.

## Why not JSONL or CSV

An append-only file looks like a ledger until you need to link data, or ignore
data or you have a field with bad data, or you need to do something with the
data that the format makes difficult.

Bottle provides structure and validation for your data. It lets you link data,
group data and ignore data, and its output is tab separated fields making it
convenient to use in pipes with all the unix commands you know and love.

## Why not a specialized app

Your training app, bank app, calendar app and other apps all have unique
interfaces with different ways of accessing and storing data. This can make it
tricky and slow for bots to navigate - especially for repeated queries.

These apps can be the source of truth for a fact, and bottle then becomes the
convenient interface that bots use to query data from these sources in a
consistent and reliable manner.

One bot can speak to the specialized apps and ingest data into bottle. Other
bots just need to speak bottle.

# Install

Rust is required ([rustup](https://rustup.rs/)).

```
cargo build --release
```

The binary is `target/release/bottle`.

Compile with musl if you want a static binary that can be copied without needing
glibc:

```
rustup target add x86_64-unknown-linux-musl
cargo build --release --target x86_64-unknown-linux-musl
```

# Commands

```
$ bottle --help

Usage: bottle [OPTIONS] <COMMAND>

Commands:
  help      Print the long explanation of a command
  mcp       Run bottle as an MCP server on stdio
  schema    Declare and change types of entry
  log       Write one entry of a registered schema
  ls        List entries of a schema [alias: list]
  get       Print one entry by schema and id
  sum       Total a number field
  last      Print the most recent entry of a schema
  today     List entries for the current civil day
  amend     Change an existing entry in place
  ignore    Hide an entry from lists and totals
  unignore  Show an ignored entry in lists and totals again
  backup    Copy the ledger to a sqlite file

Options:
      --db <DB>    Path to the database file
      --no-header  Hide the TSV header
  -h, --help       Print help
```

Run `bottle help <command>` to see detailed help for each command.
imron20
🟧 echo.github ⭐Bottle lets bots log facts against custom schemas and query them through a fixed command set, with typed fields, validation, aggregation, animron——

Interpretation history

Decision trace