Find the decisions buried in your code comments

Marginalia is a Mac app that reads every comment in a project and asks you yes or no on each one. Noise is marked to delete. The reasons worth keeping become a searchable wiki of short decision records. Your code is never changed.

The signed Mac download is not live yet

src/cache.py5 comments
# SPDX-License-Identifier: MIT# ========= cache helpers =========import time # get the user and return the userdef get_user(uid): # user = db.fetch(uid, retry=3) user = cache.get(uid) # Warm the cache first: a cold # cache times out after a deploy if user is None: user = warm(uid) return user
Five comments. One of them matters
3 noise, marked to delete1 kept1 reason, now a decision record
Your code is not changed
Project wiki
7 of 8

Warm the cache before the first request

A cold cache times out the first request after a deploy.

ADR 0007 · from src/cache.py line 9
The problem

Comments rot

Code changes and the comment above it stays the same. After a few years a project carries thousands of notes nobody trusts, and the few that matter are lost among them.

A bannerDecoration. It divides a file that should have been two files
src/billing.py
# ============ helpers ============
NarrationIt repeats the code under it, so it is wrong the first time that code changes
def charge(order): # get the total and charge the card total = order.total()
Commented-out codeVersion control already remembers the old line
# receipt = legacy_charge(order, total) receipt = gateway.charge(order.card, total)
A rule nothing checksIt holds until the day someone does not read it
# never call this while holding the db lock audit.write(receipt)
A reasonThe one comment here worth keeping. It records a decision, and it is buried under the other four
# Retry twice at most: the bank blocks # a client after three failed charges return retry(receipt, limit=2)
How it works

Scan, answer yes or no, search what you kept

The window on the right is a working copy of the app with a small sample project. Try it.

A flag is a comment that switches off a warning, like noqa or @ts-ignore

ADR stands for architecture decision record: a short note that says what was decided and why

Point Marginalia at a project. It reads every comment and sorts each one into a kind: noise, a reason, a keeper, a rule nothing checks, or a flag.

Marginaliaatc-repoProject wiki 7
67 comments
in 12 files · nothing has been answered yet
41 noise14 reasons6 unenforced rules3 flags3 keep
  • atc-repo67 left
  • src61 left
  • cache.py311
  • billing.py921
  • runway.py1142
  • docs/adr7 decisions
Decision records

The reason outlives the comment

An ADR, short for architecture decision record, is a brief note of one decision and why it was made: what a good comment was trying to be before it rotted or was deleted. Code forgets. The record does not.

src/billing.pylines 31 to 32
# Retry twice at most: the bank blocks# a client after three failed charges
ReasonYour code is not changed
ADR 0004Approved

Retry a failed charge twice at most

Decision
A failed charge is retried twice, and no more.
Why
The bank blocks a client after three failed charges.
Rules out
Retrying until the charge goes throughA retry limit of three or more
from src/billing.py line 31Drafted by Claude Code · approved by you
  • An agent can write the draftWhen a comment carries a lasting reason, your coding agent drafts the record from the comment and the code around it. With no agent connected, you write it in the app.
  • Two keys, never oneA draft is final only when a second approver agrees: you, or a second agent you handed the work to. The agent that wrote a draft can never approve it.
  • It stays where you can find itEach approved ADR is a file in your project’s docs folder. The project wiki lists them all, laid out like the project. Six months on, “why is it built this way?” is one search away.
What it never does

Three things Marginalia never does

  • It never edits your codeMarginalia records your answers. It writes two kinds of file into a project: the wiki, at docs/wiki.md, and the decision records you approve. Removing a comment is a job for you or your coding agent.
  • It never reports on youNo account, no analytics, no usage reports. Apart from one check for updates, which sends nothing about you, the app talks only to itself, on 127.0.0.1, an address that never leaves your own machine.
  • It never leaves your MacEverything it learns sits in one database file in your home folder. An agent sees only the projects you chose to include.
Price

Pay once, keep it for good

No subscription and no account. A key arrives by email, and the app checks it on your Mac without contacting anyone.

Not on sale yet

  • Founding 100

    Free

    The first 100 people get Marginalia free, for good.

    100 of 100 left · counted 29 Nov

    Founding keys are given by hand, by invitation

  • Individual

    $4.99one time

    One key, for one person. It never expires and covers every update to version 1.

  • Teams

    $3 to $5a seat

    One key for each seat, sent to you in one email to hand out.

    Seats
    • 1 to 4$5 a seat
    • 5 to 19$4 a seat
    • 20 or more$3 a seat

    5 seats at $4 a seat is $20, one time

  • The key comes by emailOne email, with the key and the two steps to use it. Keep it. It is your copy of the key.
  • It works with the network offThe app checks the key on your Mac, and the check never contacts a server. A key that needs no server cannot be switched off later.

Prices are in US dollars. Buying takes you to the payment company’s own page. Nothing is paid on this site

Install

Install Marginalia on a Mac

Not live yet

The download opens here soon

Apple checks every Mac app before it will open without a warning. That check is called notarization. The download goes live on this page when Marginalia has passed it. Until then there is nothing to install.

  • MacApple silicon (M1 or later)
  • macOS14 Sonoma or later

What happens on first open

  1. 1
    A welcome, and one buttonFind my projects. No sign-in and nothing to set up.
  2. 2
    It lists the projects on your MacFinding reads folder and file names only. Nothing is opened until you include it.
  3. 3
    You tick a project and scan itMarginalia reads the comments in the files you included and sorts them.
  4. 4
    You answer yes or noOne comment at a time, or hand the rest to an agent. Recording your answers needs a key.
Agents

Let your coding agent do the sorting, on a leash you set

A big project can hold thousands of comments. Your agent can answer the obvious ones while you keep the ones that need a person.

Connect an agent you already use

Marginalia talks to coding agents through MCP, a standard way for an agent to use a tool. One command sets it up.

marginalia install-mcp

Connecting an agent needs a Marginalia key. The app asks for it once

It adds Marginalia to Claude Code, Codex and Antigravity, if they are installed

Or turn on agent mode in the app

Hand the whole pile to your agent from inside Marginalia. You choose how far it may go, and you can take the pile back at any moment.

How much may the agent answer?

7the agent may answer
60wait for you, of 67 comments
3 flags always wait for you. No setting changes that
Answered by Claude Code
  • feed.py 14Marked to deleteClaude Code
  • clock.py 3Marked to deleteClaude Code
  • parse.py 40Marked to deleteClaude Code
  • Flags wait for a personAn agent never answers a comment that switches off a warning.
  • It can only agreeThe agent says yes to Marginalia’s suggestion, or leaves the comment for you.
  • Every answer is labelledThe agent’s name sits beside each answer it gave, in the app, the report and the wiki.
  • Every answer can be undoneUndo one, or undo everything the agent did in one press.