Skip to content

About

A system for journaling and visualizing a thought process

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thought-line

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.

The subway map of a real project, 18 experiments in

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.

Why

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.

Reading the map

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)

What you get

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

Install

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)

Use

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 --full

Maps are dark by default; add --light for a white background.

A map is a short YAML file

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"}

Licence

MIT (see LICENSE): free to use, change and share, also commercially; keep the copyright notice.

About

A system for journaling and visualizing a thought process

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages