commonplace

1 archive: texts, saves, videos, searches, posts, code, promptsMIT, and a template you own

commonplaceyour personal data kit for agents

Your personal data, searchable by your agents.

Bring accounts, local files and exports into one archive on your machine. Connect agents through the CLI or MCP.

Ask your coding agent to add another source. It writes the code in your repo.

~1,400
lines in the core

0 runtime packages: Bun and its SQLite

~/my-commonplacebash
$ commonplace search kyoto --limit 5 2026-11-13 chat chat:imessage:iMessage;+;chat482913570 (kyoto crew) kyoto crew 2026-11-12 query query:ryokan kyoto (ryokan kyoto) ryokan kyoto 2026-11-11 url url:japan-guide.com/railpass/kyoto (Kyoto by train: is the JR Pass worth it?) Kyoto by train: is the JR Pass worth it? 2026-11-08 prompted prompts:26348b2f071effb3 (trips) cheapest way from kansai airport to kyoto with two bags 2026-11-13 received imessage:6B2E1F0A-3C4D-4E5F-8A9B-0C1D2E3F4A54 (kyoto crew) found a ramen counter by kyoto station that opens at 6am $ commonplace timeline --limit 3 2026-11-14 prompted prompts:beb29332c5155063 (tidepool) the tide chart is unreadable in dark mode. follow the system theme, no toggle 2026-11-14 sent imessage:6B2E1F0A-3C4D-4E5F-8A9B-0C1D2E3F4A55 (+15550103) running late, save me a seat 2026-11-13 liked liked:x:tweet:1846203117740000103 a database in one file, with full-text search built in, on every phone you've ever owned $ commonplace stats github latest 2026-11-14 3 snapshot(s) 2 things 3 events imessage latest 2026-11-14 3 snapshot(s) 2 things 5 events prompts latest 2026-11-14 3 snapshot(s) 3 things 5 events raindrop latest 2026-11-11 1 snapshot(s) 3 things 3 events takeout latest 2026-11-13 1 snapshot(s) 5 things 5 events x latest 2026-11-14 3 snapshot(s) 4 things 4 events kinds tweet 4 · session 3 · url 3 · chat 2 · query 2 · video 2 · place 1 · pr 1 · repo 1 verbs saved 6 · prompted 5 · sent 3 · committed 2 · received 2 · searched 2 · watched 2 · liked 1 · opened 1 · posted 1 $

Real output from the shipped sources, run on a small made-up archive.github.com/AVGVSTVS96/commonplace

01Everything

Bring your history together.

Search messages, saved posts, watched videos and past prompts in one place. Add more sources with your agent.

One shape for all of it: things, events, links. Same page saved in two apps is one record.

  1. prompted“the tide chart is unreadable in dark mode. follow the system theme, no toggle”
  2. sent“running late, save me a seat”
  3. liked“a database in one file, with full-text search built in, on every phone you've ever owned”
  4. received“found a ramen counter by kyoto station that opens at 6am”
  5. posted“first pass at kerning the tidepool wordmark by hand. the r and n were fighting”
  6. committed“Read tide tables in the station's local time”
  7. prompted“add a test for the tide table parser, the noaa file with the blank rows”
  8. watchedKyoto in three days, on foot
  9. searchedryokan kyoto
  10. saved“two weeks in kyoto and osaka. what worked: arashiyama before 8am, fushimi inari at dawn…”
  11. openedKern the wordmark by hand
  12. committed“Kern the wordmark: r, n and the tail of the p”

02Why

Let your agent look up the history behind your request.

It can find what you saved, what you said and how you asked last time.

The more an agent can look up, the less you have to say, and the more you can hand it.

claudebash · commonplace
youmake me a packing list for kyoto agent$ commonplace search "packing list" 2026-06-02 prompted prompts:7e5f78a55710462f (trips) packing list for lisbon. carry-on only, i never check a bag $ commonplace search "kyoto april" 2026-11-10 received imessage:6B2E1F0A-3C4D-4E5F-8A9B-0C1D2E3F4A51 (kyoto crew) ryokan in kyoto is booked! april 14 to 18, right by the philosopher's path $ commonplace search fushimi 2026-11-10 place place:17291468421904536081 (Fushimi Inari Taisha) Fushimi Inari Taisha 2026-11-12 tweet x:tweet:1846203117740000102 …arashiyama before 8am, fushimi inari at dawn (two hours of stairs, wear real shoes), one ryokan night is plenty agentCarry-on only, like your Lisbon list. You're in Kyoto April 14 to 18, so five days of clothes, and real shoes for the two hours of stairs at Fushimi Inari. Want it as a checklist?

03Sources

Sources, by how much setup they need.

Eight ship today: five fetch on their own and three read an export you download. Your agent can write more.

8ship today
Built inFrom an exportWritten by your agent

Built in5

github
your pull requests, issues, reviews, review comments, stars and commits
gh signed in
prompts
every prompt you typed into Claude Code, Codex and Pi, or sent from chat apps
nothing, read from disk
imessage
your conversations
macOS, Full Disk Access
x
your bookmarks with their folders, likes, posts and replies
agent-browser, signed in to X. No paid API key.
mail
every message you sent and received, from any provider with IMAP
an app password in ~/.netrc, set up

From an export3

takeout
searches, YouTube watches, comments and playlists, Maps places, Chrome
Google Takeout, My Activity as JSON
x-archive
every post, like, follow, DM and Grok chat
the archive from X's settings
raindrop
bookmarks, collections, tags and highlights
Raindrop's CSV backup

Written by your agentany

Anything with an export, a local database, an API or a CLI. Ask your agent, and the add-source skill has it write the source, run it and check what landed: one file in your repo.

Money
bank and card CSV exportsApple Cardreceipts in Gmail
Browsing
ChromeSafariFirefoxEdgeArcany other browser
Mail and calendar
any mboxany .ics
Chat
SlackDiscordTelegram exports
Saves
InstagramPinterestRedditReadwise
Notes
Obsidianany folder of markdownApple Notes
Media
LetterboxdGoodreadsSpotify
claudeskill · add-source
youadd my browser history to commonplace agentfound Chrome's history and wrote sources/chrome.ts (58 lines) added it to commonplace.config.ts and ran commonplace sync $ commonplace timeline --verb visited --limit 3 2026-11-14 visited chrome:4182 (prefers-color-scheme - CSS | MDN) 2026-11-13 visited chrome:4181 (Kyoto by train: is the JR Pass worth it?) Which passes pay off for Kyoto, Osaka and Nara day trips 2026-11-13 visited chrome:4180 (Tide Predictions - NOAA Tides & Currents)

Any coding agent with file and terminal access can follow the skill, not just Claude Code.

04How it works

Keep the snapshots. Rebuild the archive.

Sources save dated snapshots. Build combines them in SQLite. Agents search through read-only tools.

your dataaccounts, local files, exports
fetch: one dated snapshot per source per day
data/raw/read-only, kept forever, never in git
├ github/
│ ├ 2026-11-12/
│ ├ 2026-11-13/
│ └ 2026-11-14/
├ prompts/
│ └ 2026-11-14/
└ imessage/
  └ 2026-11-14/
build: replay every snapshot, redact as you go
commonplace.dbthings · events · links · search
commonplaceCLI ── search · timeline · show · stats└── mcpClaude Code, Codex, Claude Desktop, any MCP client
  1. 1

    Fetch.

    commonplace sync takes one snapshot per source per day into data/raw/<source>/<date>/. Each one is written through a .partial directory and made read-only, so a crash never leaves half a snapshot. On a Mac, commonplace install runs it at login and when Messages changes, and the Claude Code plugin runs it when a session ends. A source with today's snapshot waits for tomorrow; an export source updates when you add a newer export.

  2. 2

    Build.

    Every build starts from empty and replays every snapshot into one SQLite database. The same raw/ always gives the same database, so you can fix a source and rebuild years of history.

  3. 3

    Read.

    The CLI and the MCP server read the same store, read-only: search, timeline, show, stats, and sql for you.

05Privacy

Choose what you collect and expose.

Data stays in your local data/ folder, which the template keeps out of git. Connected agents can read everything in the built archive, and may send what they read to their model provider.

commonplace.config.tstypescript
export default defineConfig({ sources: [ github(), prompts(), imessage({ drop: (m) => m.handle === "+15550100" }), ], redact: (row) => row.type === "event" && /\b(password|api[_ -]?key|secret)\b/i.test(row.text ?? ""), });
  • is everything the archive holds. A source you leave off is never read.
  • keeps matching messages out of new snapshots.
  • keeps rows out of the database. Raw snapshots stay on disk.
  • Run commonplace build after changing sources or redact.

06Yours

Your repo, your sources, your archive.

About 1,400 lines in the core, plus the sources. Bun and SQLite, with no runtime packages. Read it in an afternoon. Change anything.

Read it.

src/ is ten small files. One schema, one builder, one store, two doors.

src/schema.ts   things, events, links, verbs
src/build.ts    replays snapshots; the only writer
src/store.ts    every read
src/cli.ts      one door
src/mcp.ts      the other

Change it.

A source is one file with two halves: fetch copies what the service gives, rows turns one snapshot into things, events and links.

export default defineSource({
  name: "bookmarks",
  fetch: async ({ dir }) => { … },
  rows: async function* ({ dir }) { … },
});

Keep it.

Your repo, your data, your rules. Updates to the template never touch data/.

my-commonplace/
  commonplace.config.ts   yours
  sources/                yours, plus ours
  data/                   yours, never in git

07

Start

You need Bun, and gh signed in for the GitHub source. On a Mac, iMessage is on by default, so give your terminal Full Disk Access first. X is off until you sign in and add it.

bash
$ gh repo create my-commonplace --template AVGVSTVS96/commonplace --private --clone $ cd my-commonplace $ bun install $ bun add -g "$PWD" $ commonplace sync $ commonplace install # on a Mac: sync on its own

Then connect your agents:

agentsmcp
# Claude Code: MCP server, add-source skill, sync when a session ends /plugin marketplace add AVGVSTVS96/commonplace /plugin install commonplace@commonplace # Codex codex mcp add commonplace -- commonplace mcp # anything else that speaks MCP command: commonplace args: ["mcp"]

Then ask something only your history can answer. “What was I working on the week before my last trip?”