ThothAI
A memory of what you have actually read, kept on your own machine, so your agent can tell your reading apart from its own world knowledge.
A personal tool, in progress. Version 0 covers papers: a dated reading record and a daily arXiv digest, served to Claude Code. Searching the full text of what you've read, with cited passages, is the next stage.
What it does
Every morning it fetches the day's arXiv announcements in the categories you follow and builds a short digest. You tell your agent which papers you read, and each one joins a dated record of your reading. The agent can then ask what you have read, and when, instead of guessing.
- A daily digest of ten. Eight papers ranked against your stated interests, plus two random picks so the feed doesn't narrow to what you already like. Papers you've read never come back.
- Read means you said so. A paper is marked read only when you tell the agent you read it, never because it was shown to you or summarised for you.
- Over MCP. Claude Code reaches it through a local MCP server with three tools: today's feed, mark a paper read, and the reading ledger. A CLI does the same from a terminal.
How it's built
- Rust for the rules, Python for the fetch. A pure core crate holds the rules (ranking, the ledger, what counts as read); a CLI crate holds the binary and the MCP server. Unsafe code is forbidden workspace-wide, and Clippy runs at pedantic.
- Reading is an event log, not a table. Marking a paper read appends a dated event to a JSON-lines log, under an exclusive file lock. Whether a paper is read is worked out by replaying the log and never stored, so the record can't drift from its history. A damaged line is skipped with a warning, never fatal.
- Reproducible shards. Each announcement day becomes one Parquet file, compressed with zstd and sorted by arXiv id, so fetching the same day twice writes the same bytes. Rust reads the shards directly.
- A polite client. One connection, at least three seconds between requests and backoff on rate limits, as arXiv asks. A backfill command fills in past days the same way.
- Every tool call traced. Each MCP call writes one OpenTelemetry-shaped span with its input and output, so what the agent asked and what it got back can be audited later.
- Checked on every change. About 80 Rust tests and 47 Python tests. CI runs rustfmt, Clippy with warnings as errors and the Rust tests; pre-commit adds the Python tests, strict mypy, every Ruff rule and secret scanning.