See where your research has been and where it is going, in one picture.
thought-line is a Claude Code skill that keeps a research project's journal and draws the project as a subway map. Every idea is a branch. It joins the main line only when a result shows it helps, and ends in a cross when it is dropped.
A real project, 18 experiments in. Newest at the top, like git log --graph. Below the dashed "today" line:
what happened. Above it: what is planned.
Research projects lose their thread. Results pile up in notebooks and chats, decisions get made after seeing the numbers, and nobody remembers why an idea was dropped. thought-line keeps one journal and one map, both showing the current status, and checks that they agree with each other.
- Decide before you look. Every experiment gets a rule before its results ("adopt it if the mean beats the baseline"). The journal logs the rule and, later, its outcome.
- Answer first. Every entry opens with its answer in one or two plain sentences; details come after.
- Honest map. A branch merges only after a result. Promising but untested ideas stay open; nothing on the map is a promise.
- Short page, full record. Old entries fold into toggles: their answers stay visible, details one click away.
| You see | It means |
|---|---|
| The blue line | The method itself: adopted changes, milestones, measurements |
| A branch | One idea, coloured by theme |
| A branch joining the main line | The idea was adopted: a result showed it helps |
| A grey branch with ✕, left of the main line | The idea was dropped |
| ◉ | Running now |
| Dashed, above "today" | Planned |
| Dotted | Parked |
| E-numbers | Journal entries (every entry has exactly one station) |
SKILL.md |
The conventions Claude follows: journal layout, entry template, a checklist for launching an experiment and one for recording its results, writing rules, map rules |
scripts/subway_map.py |
Draws the map from a short YAML file, and refuses to draw one that breaks the rules |
scripts/journal_check.py |
Finds gaps (an entry mentioned but missing, a summary that disagrees with what is running); with --fix it rebuilds the contents and folds old entries |
templates/ |
A blank journal and map to start from |
example/ |
A small invented project, filled in |
git clone https://github.com/<user>/thought-line ~/.claude/skills/thought-line
pip install pyyaml pillow # plus the DejaVu fonts, or matplotlib (which bundles them)Ask Claude Code in your project, for example:
- "Start a project journal." It copies the templates into
journal/and fills in your goal. - "I just launched the learning-rate sweep; log it." It writes the rule, an entry stub and a running station.
- "The sweep finished; record the results." It fills in the entry, checks the outcome against the rule, updates the summary and the map, then runs both scripts.
Project-specific rules (who decides, how numbers are reported, figure style) go in journal/conventions.md,
which takes precedence over the skill.
The scripts also work on their own:
python scripts/journal_check.py journal/journal.md --fix
python scripts/subway_map.py journal/subway.yaml journal/figures/subway.png # compact
python scripts/subway_map.py journal/subway.yaml journal/figures/subway_full.png --fullMaps are dark by default; add --light for a white background.
title: "My project"
today: "2026-03-20"
themes:
- {key: main, name: "Method", colour: "#338ced"}
- {key: data, name: "Data", colour: "#0aac23"}
branches:
- {key: aug, theme: data, end: merged}
- {key: mixup, theme: data, end: dead}
stations: # oldest first
- {line: main, kind: kept, label: "E1", text: "Baseline: 79.9% (5 seeds)"}
- {line: aug, kind: merged, label: "E2", text: "+ augmentation: +4.1 points"}
- {line: mixup, kind: dead, label: "E3", text: "Mixup: −0.8 points, dropped"}
- {today: true}
- {line: main, kind: goal, text: "Goal: match real data"}MIT (see LICENSE): free to use, change and share, also commercially; keep the copyright notice.
