research-kit

Documentation

Getting started

A first project, step by step, as the commands the agent runs and the files they write; you never need to type them, but they show what the agent does and what a record holds. From “The records” on, the shell blocks run in order in one empty directory, and the kit’s tests run them exactly so. In a project with an agent, /research:research-init does the setup of the first block and more; The research setup says what it probes, asks and writes.

A fresh project in Claude Code

This is the whole first day in Claude Code, from an empty directory to the first commit, as you would type it; the sections below show what the agent runs behind it. The blocks here are fenced as text: they are keystrokes and prompts, not a script, and the kit’s tests run none of them.

Start in the shell, before Claude Code starts, since the skills load when a session starts, and a plugin installed first needs no restart:

mkdir my-project && cd my-project
git init
claude plugin marketplace add 'lividgreen/research-kit#latest' --scope project
claude plugin install research@research-kit --scope project
claude

The first command adds the kit’s marketplace at latest, the branch each release moves to its tag, and writes it into .claude/settings.json; the second installs the research plugin and enables it there. Both record the install for this project, so a collaborator who clones it has the marketplace and the plugin named in the repository and installs once. Install has the other agents and the other ways in.

Say the setup, the first thing in the session:

/research:research-init

The agent probes the project and the machine and says in one message what exists, what it will write and what is missing, with the command for each. Then it asks with its question tool, each question with its options and a recommended one first. The first is the idea of the project, asked alone, since the others are put against it: where the folder’s name says what the project is, the agent proposes the idea in a sentence for you to take or reword, and where it does not, it asks for it in your own words, or you decline and the setup goes on. An idea can be this plain:

Whether a short plain-language summary at the top of a report changes how often readers finish it.

The other questions follow together. One is the install: which proposals to take, among them the hooks and the pins to the kit’s latest release, and the log’s name, WORKLOG.md by default. Another is the evidence forms the project accepts, a choice of several (stated, reference, statistical, peer-reviewed and formal, all five offered in every project, the question split in two where the agent’s tool takes fewer options), each with an example of what it takes, formal saying that it needs the formal plugin, which the setup installs on your word, and a Lean workspace, which a task it leaves you takes up; the list is changed later in flow.toml. You answer; nothing is installed before.

Then the setup writes, and names each file in its report: flow.toml, the records directory with records/INDEX.md, INBOX.md and the log WORKLOG.md; library.toml and library/; a section ## Records and method in CLAUDE.md, which the next session reads; .pre-commit-config.yaml with the two hooks, installed in the git repository; and, from your idea, the project’s first idea card, with your words in its body, left in the common deck for the first whatsnext. It commits nothing; the first commit is the freeze’s.

Leave Claude Code and run claude again. The setup wrote the instructions file, which, Claude Code’s documentation says, is read at the start of a session. It says nothing of a reload within one, and /clear is not documented as one. In the new session the work begins:

/research:whatsnext

It reads the project, ranks the next list, and draws the cards the agent will work into its hand, the first idea among them. Then the agent works what its hand holds: it reads the idea for what it holds, mints the questions and tasks that follow from it, and consumes the idea once everything in it is folded into them. Where the idea names a destination you would commit to or a direction your interest points, the agent asks you in the turn whether to open it as a goal or a direction, with the title drafted from your words, and opens it on your yes; with no such thing in the idea, it opens none. To see the cards, run the dashboard, which serves the table of hands, goals, directions and decks on localhost, and, to end the session, the freeze, which saves what the conversation found and no record holds, runs the checks and makes the first commit:

/research:dashboard
/research:freeze

A restart is needed in two cases only. A plugin installed or updated while a session is open is applied by a restart, or by Claude Code’s /reload-plugins, which its documentation gives for that. After the setup, a new session reads the instructions file. A plugin installed before Claude Code starts needs none, as above, and between whatsnext, the work, the dashboard and the freeze there is never one: they run in one session.

The records

flow init --log WORKLOG.md     # flow.toml, records/{ideas,tasks,questions,findings,goals,directions,archive} with records/INDEX.md, INBOX.md, a first log entry
library init --kept --scan records --scan WORKLOG.md --documents "papers/*.md"
flow idea "A might imply B" --source "a talk" --summary "A hunch from a talk that every A has the property B, which nobody has tried on a small case."
printf 'A finite counterexample answers it, or a proof.\n' | flow question "Does A imply B?" --ref idea-0001 --body - --summary "Whether every A has the property B, asked to decide if the hunch from the talk is worth a proof."
flow task "prove the lemma" --ref question-0001 --tag research --summary "Prove the lemma that carries the step from A to B, so that the question can be answered by a proof."
flow task "design the route" --ref question-0001 --tag research --summary "Choose between a direct proof of the lemma and a search for a counterexample, before either is started."
flow check
flow state

flow init writes two hands: agent, the agent’s across its sessions, with a limit of four (the cards it holds now: ideas, questions and tasks alike), and owner, the person’s, with no limit (0 is unlimited); --owner names others. Ideas, questions and tasks are cards, kept in decks and hands: a new card lands in the common deck, or in an owner’s deck where it is minted --for that owner, and a hand holds what its owner is working on now. A task has no kind: a tag says what it is, research for work that came from the research and upkeep for the project’s own, any word of yours beside them, and flow tags reports them; a task may reference a question, an idea or another task, named in its references, or stand alone. A question’s body says what counts as an answer, as the one above does, and a task’s body what done means. Every record carries a title, the one line that says what it is, which the positional of a mint gives, and a summary, a brief explanation of it in a paragraph, which --summary gives: an idea, a question, a task and a finding are refused with none, a goal and a direction may have none, and The flow names the limits of both. The question names the idea in its references and the idea lists the question in its consumed_by, both written by the one mint; flow consume idea-0001 closes the idea once everything in it is folded into cards, and flow remove idea-0001 --reason "…" drops one that led to nothing. It also writes INBOX.md, where you leave items between sessions; flow state prints it first, before the due tasks, the open goals and directions, the ranked list, the hands and the log’s top entry. It writes the five evidence forms a finding’s items may take, [evidence] forms in flow.toml, which The flow shows whole: formal, statistical, peer-reviewed, stated and reference; keep the ones the project accepts, add its own words, and say in the project’s instructions what each means here. Then bind the probes register in flow.toml where the project has one: [evidence] probes, a register of self-asserting scripts. Formal evidence needs no binding: where formal.toml stands at the root, flow check asks formal resolve --protocol of the formal plugin installed beside the research one, else a formal command on PATH, and its coverage line says which; [evidence.resolvers] in flow.toml binds another command, for another prover or a form of the project’s own, and formal = [] asks none. The library needs no binding: where library.toml stands at the root, flow check asks the library skill installed beside the flow skill, else a library command on PATH, and its coverage line says which; [library] command in flow.toml names another command, and command = [] asks none. Where no resolver, register or library is found, formal, probe and peer-reviewed evidence is reported unchecked and the check’s coverage line says so.

library init --documents "papers/*.md" binds the documents whose reference entries the library ties to cards: each entry is one line under a ## References heading opening with the authors and the year in parentheses, as Jen, E. (1990). *Title*. Venue., and an entry with no card, or with two, fails the check. A project whose documents keep a BibTeX or numbered bibliography binds no documents and cites by key alone. --kept turns on the tracked kept directory (library/kept) for copies nothing can fetch again; a copy there is redistributed with the repository, so it holds only what the project may redistribute, and library keep writes there only with --redistributable.

What a record looks like

The first task the block above minted is records/tasks/task-0001-prove-the-lemma.md:

---
id: task-0001
type: task
state: open
title: prove the lemma
summary: Prove the lemma that carries the step from A to B, so that the question can be answered by a proof.
references:
- question-0001
size: null
value: null
owner: null
drawn: null
started: null
due: null
after: null
rank: null
parked: null
blocked_by: null
closed: null
origin: current
source: null
created: '2026-10-23'
tags:
- research
---

The front matter is what the tool owns: state, owner, drawn, started, rank, parked, blocked_by, closed and the rest move only through a transition (flow draw task-0001 --owner agent, flow make task-0001 --resolution notes.md), references through --ref at the mint and flow ref after it, value, how much the task is worth, at the mint or with flow set, and due and after, a due date and what follows the task’s completion, are set at the mint or with flow set. The body below it is yours, one sentence per line.

What a failed check looks like

Put the task in the agent’s hand by hand, owner: agent and a drawn date, and run flow check:

records/tasks/task-0001-prove-the-lemma.md: V9 a held card has no started date: the draw writes it
records/INDEX.md: V11 records/INDEX.md is stale — run `flow index`
flow check: 4 records of the kinds idea, question, task, finding, goal, direction; 2 problem(s), 0 warning(s); evidence forms formal, statistical, peer-reviewed, stated, reference; resolver formal unchecked (no formal.toml at the root); probe evidence unchecked (no register bound); reflow via built-in; markdownlint present
library: 0 key(s) cited from the records, 0 record(s) citing; 0 of them excluded cards; the papers' reference entries and the documents the library's scan binds are not read here; asked through the library skill beside this one
to reproduce: `flow check` at the project root, the flow skill's scripts/flow.py; where no skill is loaded, `pre-commit run flow-check --all-files`

The exit code is 1, and the first two lines are the problems, each with its code (The flow lists them). The lines after them are the coverage, which varies by machine: which resolvers were bound, whether the library answered, what was not looked at (here markdownlint was on PATH); the last names the command that reproduces the failure.

A task closed

Set owner and drawn back to null, and the work goes on from where the first block left it:

mkdir probes && printf 'assert 2 + 2 == 4\n' > probes/lemma.py   # a self-asserting script, the finding's evidence
printf 'The lemma holds, and probes/lemma.py asserts it.\n' > resolution.md
flow draw task-0001 --owner agent
flow make task-0001 --resolution resolution.md
flow remove task-0002 --reason "the lemma settles the question, so no route is left to design"
flow finding "A implies B" --evidence statistical:probes/lemma.py --ref task-0001 --answers question-0001 --summary "A implies B, shown by the lemma and asserted by a probe that checks it, which settles the question."
flow check
flow state

flow draw takes the task from the common deck into the agent’s hand, writing owner, drawn and started, and flow make closes it with its resolution, which it requires; the task leaves its hand, keeps its started date and is in the discard pile. The other task, never started, is removed with its reason, since the result settles the question; both tasks are now in records/archive/. Then flow finding mints finding-0001 referencing the made task, its evidence the probe in the statistical form, and --answers closes the question answered by it. A question’s closing is its own act: had the other task stayed open, the question would have closed all the same, and the line printed under it, refers to it, may need a follow-up: …, would have named the task for the agent to decide on. The finding’s trust is the forms its evidence carries, here statistical; a proof formalized later is added with flow evidence finding-0001 formal:Lib/Foo.lean#decl, and an item whose file is later gone is replaced or retired with --replace or --retire, a dated note in the body keeping what it was. The check passes with one warning: no probes register is bound, so the probe is reported unchecked rather than resolved ([evidence] probes in flow.toml binds one, a Markdown table naming each self-asserting script).

The log is not a transition. The entry for the result is written by the agent, or by you, in the same commit as the transitions, newest first — flow log add entry.md puts the file’s entry at the top, reflowed and linted as a record is — and flow state prints the top one:

## 2026-10-23 — A implies B

**State.** question-0001 is answered by finding-0001, asserted by probes/lemma.py; nothing is in flight.

A session’s start and end

With an agent, a session starts with flow state, and then does what your message asks; where the message leaves open what to do, the agent recommends the next moves, /research:whatsnext among them. A fresh project starts from an idea: say the idea of the project in your own words, and the agent mints it as an idea card, its body from what you said, for the first whatsnext to rank and draw, and the session then works it from the hand, asking you in the turn about a goal or a direction the idea holds and minting one on your answer; a thought you call an idea, a question or a task is minted as that card, and one you do not name is minted as the agent judges, asking you the kind where it is unsure. /research:whatsnext, optionally with a focus (/research:whatsnext let's focus on the proofs), reviews what the agent’s hand holds, reads the inbox and proposes what to make of each item, ranks the next list with flow rank under the goals you have formed and the directions you have set (flow goal, flow direction, both on your word), and refills the agent’s hand from the top of the list; What is next says the rest. It ends with /research:freeze, which saves what the conversation found and no record holds, runs flow state --check (the log’s top entry dated today where the tree changed, every changed record named by an entry, written out or within a range such as finding-0015…0035, a record whose only change is its rank not asked to be named), the gates and a commit, and leaves one directive in the inbox for the next session where there is one; The freeze says the rest.

A card

library register "Dynamical Systems and Numerical Analysis" --kind book --author "Stuart, A. M." --author "Humphries, A. R." --year 1996 --isbn 9780521645638 writes library/cards/stuart1996.md:

---
key: stuart1996
state: registered
excluded: null
kind: book
title: "Dynamical Systems and Numerical Analysis"
authors:
- "Stuart, A. M."
- "Humphries, A. R."
year: 1996
venue: null
doi: null
arxiv: null
openalex: null
zbmath: null
isbn: "9780521645638"
url: null
metadata:
  from: hand
  on: "2026-10-23"
  typed: null
verified: null
read:
  grade: unread
  on: null
  what: null
via: null
copy: null
related: []
tags: []
seeded: false
created: "2026-10-23"
---

## Notes

## Extracts

The read grade is a claim about the reader, not the work: it moves only through library read; a record’s cite of an unread card is reported by grade in the check’s coverage line, and a bound document’s reference entry tied to an unread card fails the check unless the card names the work it is known through (via). library resolve "Stuart, A. M. and Humphries, A. R. (1996). Dynamical Systems and Numerical Analysis." --register would have asked the online interfaces for the fields instead; What goes online lists them.

The dashboard

With the above, ask the agent for the dashboard (/research:dashboard in Claude Code) and open http://127.0.0.1:8765/. It mounts every component installed beside it whose bindings file exists at the project root — flow.toml for the records, library.toml for the cards — and dashboard --list says which. It is read-only and reads no record or card file itself: every page is the component’s own command-line answer, rendered.

The agent’s instructions

Each init prints the paragraph the project’s agent instructions (CLAUDE.md, AGENTS.md) should carry, in the project’s own words: where the records are, that a state changes only through a transition, that the check runs before a commit, that the ranked list is the schedule, and that the agent names a record to you with its title. The skills name no project path themselves; the bindings files do.

An existing project

A project that already keeps its research in notes, a roadmap, a to-do list or a bibliography is set up the same way, then asked to bring that material in: “Move our notes and the reading list into research-kit.” The agent maps the material onto the records and the cards by the research-init skill’s references/migration.md, which The research setup summarizes; a record the commands cannot express is written by hand with origin: legacy, and an older reading list loads as seeded cards.