<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Livid Work — Blog</title><description>Articles by Mykola Palamarchuk about the software he builds and how he builds it.</description><link>https://www.livid.work/</link><language>en</language><atom:link href="https://www.livid.work/rss.xml" rel="self" type="application/rss+xml"/><item><title>research-kit by example: choosing a local LLM</title><link>https://www.livid.work/blog/research-kit-by-example/</link><guid isPermaLink="true">https://www.livid.work/blog/research-kit-by-example/</guid><description>A walk through research-kit&apos;s research plugin on one small project, from setup to findings, a library and a commit, with the dashboard at each step.</description><pubDate>Tue, 17 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;&lt;a href=&quot;https://www.livid.work/projects/research-kit/&quot;&gt;research-kit&lt;/a&gt; is a kit for doing research with a coding agent, and its &lt;code&gt;research&lt;/code&gt; plugin is the part every project uses.
This page walks through that plugin on one small project, from an empty folder to the first findings, showing at each step what to say to the agent and what the kit does in response.
The &lt;a href=&quot;https://www.livid.work/blog/research-kit-intro/&quot;&gt;first post&lt;/a&gt; tells where the kit came from; this one is about using it.&lt;/p&gt;
&lt;h2 id=&quot;when-the-research-plugin-is-useful&quot;&gt;When the research plugin is useful&lt;/h2&gt;
&lt;p&gt;The plugin is built for one person doing research with one coding agent, over many sessions.
A coding agent starts every session cold, so whatever the research has established has to live somewhere the next session reads and trusts.
The plugin keeps it in the repository, as Markdown files the agent writes through a command-line tool and a check that runs on every commit.&lt;/p&gt;
&lt;p&gt;It fits a project that needs some of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A record of the research itself.&lt;/strong&gt; Ideas, questions, tasks and findings are one file each, and each moves from one state to the next only through the tool, which writes everything the new state needs. A question says what would answer it before any work starts, and a finding names the evidence it rests on.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A task tracker shaped like a card game.&lt;/strong&gt; Ideas, questions and tasks are cards. A card lies in a deck until it is drawn into a hand, the few cards its owner is working on now; the agent and the person each have one, and a ranked list decides what is drawn next.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A visual overview.&lt;/strong&gt; A read-only dashboard on localhost lays the records out as a table of cards, each card’s value shown by its frame, so the state of the project is visible at a glance.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Checks that stay fresh.&lt;/strong&gt; A finding’s evidence is something the check can resolve: a script of the project’s own that asserts its result and can be re-run, a work in the library, or a proved declaration. The commit fails when a record does not hold together, a link points nowhere or a cited work has no card.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A reference library.&lt;/strong&gt; One card per cited work, recording how far it was actually read and the extracts a claim may rest on, so a citation never stands on a summary.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Goals and directions.&lt;/strong&gt; The person can set a destination and say where their interest leans, and the ranking of the next work leans the same way without being bound by it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;A project with a Lean 4 library adds the &lt;code&gt;formal&lt;/code&gt; plugin, which checks the prompt a prover session receives before it is sent and checks what the session reports against the built library before any document changes.
That plugin is out of scope here.&lt;/p&gt;
&lt;p&gt;The example project asks a practical question: which open-weight LLM, served by which runtime, runs best on an old laptop with no discrete GPU.
The screenshots are the plugin’s dashboard at each step, and the records in them are the ones the project produced.&lt;/p&gt;
&lt;h2 id=&quot;installing-the-plugin&quot;&gt;Installing the plugin&lt;/h2&gt;
&lt;p&gt;In Claude Code, the simplest way to start is to install the plugin from the shell, in the project’s folder, before the agent starts, so that its skills are loaded from the first session:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;mkdir best-local-llm-research &amp;amp;&amp;amp; cd best-local-llm-research&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;claude plugin marketplace add &apos;lividgreen/research-kit#latest&apos; --scope project&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;claude plugin install research@research-kit --scope project&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;claude&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The first command adds the kit’s marketplace at &lt;code&gt;latest&lt;/code&gt;, the branch each release moves to its tag, and the second installs the plugin for this project only.
Both are written into &lt;code&gt;.claude/settings.json&lt;/code&gt;, so a collaborator who clones the project finds them named there.
The &lt;a href=&quot;https://research-kit.livid.work/docs/install/&quot;&gt;installation guide&lt;/a&gt; covers Codex, GitHub Copilot, Cursor and the other agents.&lt;/p&gt;
&lt;h2 id=&quot;setting-up-the-project&quot;&gt;Setting up the project&lt;/h2&gt;
&lt;p&gt;The setup is a skill of its own:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/research:research-init&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The agent probes the folder and the machine, says in one message what it found and what it proposes to write, and then asks its questions in the agent’s question dialog.
The first question is the idea of the project.
Where the folder’s name says enough, the agent proposes the idea in a sentence of its own, and the answer can take it, reword it or add to it; here it read &lt;em&gt;find the best LLM to run locally&lt;/em&gt;, and the answer added that the runtime matters as much as the model.&lt;/p&gt;
&lt;p&gt;The next questions settle the setup itself: a git repository, the name of the log, and which forms of evidence a finding in this project may rest on.
This project accepts two: &lt;code&gt;statistical&lt;/code&gt;, a measurement made on this machine by a script of the project’s own, and &lt;code&gt;peer-reviewed&lt;/code&gt;, a work held in the project’s library.
With that choice, a vendor’s blog post or a leaderboard can still be read, but it cannot carry a finding until it is measured here or the work is in the library.&lt;/p&gt;
&lt;p&gt;The setup then writes the records’ directories, the library, the commit hooks that run the checks, and a section of &lt;code&gt;CLAUDE.md&lt;/code&gt; that says how the project works with its records.
That section states no idea or goal of its own: what the project is for is in its records, which the agent reads with &lt;code&gt;flow state&lt;/code&gt;.
The idea becomes the project’s first card, in the common deck, and nothing is committed yet.&lt;/p&gt;
&lt;p&gt;To see what the project holds, ask the agent to start the dashboard:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/research:dashboard&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It serves a read-only page on localhost, and the screenshots below are taken from it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/01-setup-table.webp&quot; alt=&quot;The table after the setup: both hands and the goals and directions empty, and one idea card in the common deck&quot; width=&quot;1400&quot; height=&quot;878&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;p&gt;Because the setup wrote the instructions the agent reads at the start of a session, the next step begins in a new one: leave Claude Code and run &lt;code&gt;claude&lt;/code&gt; again.&lt;/p&gt;
&lt;h2 id=&quot;ranking-and-drawing&quot;&gt;Ranking and drawing&lt;/h2&gt;
&lt;p&gt;The agent decides what to work on with one skill:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/research:whatsnext&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It reviews what its hand holds, reads anything left in the inbox, ranks the open cards under the goals and directions, and draws from the top of the list into its hand until the hand is full or nothing ready is left.
It works no card itself: a card is read to be ranked, and worked once it is in a hand.
With one card in the project, the hand takes the idea.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/02-idea-in-hand.webp&quot; alt=&quot;The agent’s hand holds the idea&quot; width=&quot;1400&quot; height=&quot;528&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;p&gt;To have the agent work what it drew, say so:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Work the cards in your hand.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&quot;working-an-idea&quot;&gt;Working an idea&lt;/h2&gt;
&lt;p&gt;Working an idea means reading it for what it holds and minting that as cards, each naming the idea it came from.
When an idea holds a destination, the agent puts it to the person before anything is minted: a goal is the person’s to commit to.
Here the agent asked in one dialog whether to commit to a goal and which, which hardware, which tasks the model is for, and what wins when quality and speed pull apart.
The answers chose a ranked shortlist over a single winner, this machine, and coding, chat, long documents and local agents as the tasks.&lt;/p&gt;
&lt;p&gt;From them the agent opens a goal, &lt;em&gt;a ranked shortlist of local LLM and runtime pairs measured on this machine&lt;/em&gt;, and the questions that serve it: the machine’s parameters, what counts as usable, which models fit, which runtime is fastest, and one question for each task.
Where a question cannot move until another is answered, it is blocked on that question, so the order of the work is part of the records.
Once everything in the idea lives in a card, the idea is closed as consumed.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/03-goal-and-questions.webp&quot; alt=&quot;The goal on the board and the common deck of questions, the first one ready and the rest waiting on it&quot; width=&quot;1400&quot; height=&quot;443&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;questions-before-probes&quot;&gt;Questions before probes&lt;/h2&gt;
&lt;p&gt;Anything the work needs to find out is a question first, minted before the act that finds it out.
The parameters of the machine are no exception: the question &lt;em&gt;what are the parameters of this computer?&lt;/em&gt; is a card before any command reads the hardware.
The next &lt;code&gt;whatsnext&lt;/code&gt; ranks it first, since every other question depends on it, and draws it.&lt;/p&gt;
&lt;p&gt;Every card has its own page on the dashboard, with the cards it links to and the cards that link to it.
The question of what counts as usable, for example, is blocked on the hardware question and serves the goal:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/04-question-record.webp&quot; alt=&quot;The page of a question: its card blocked on the hardware question, its body, its fields, and the cards it links to and that link to it&quot; width=&quot;1400&quot; height=&quot;907&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;p&gt;A question is answered by a finding, and a finding names its evidence.
Here the evidence is a probe: a script committed to the project that reads the machine, writes its figures to a result file, and has a &lt;code&gt;--check&lt;/code&gt; that reads the machine again and fails when the recorded figures no longer hold.
The finding records the cores, the memory and the GPU drivers the runtimes can use.&lt;/p&gt;
&lt;p&gt;What a probe cannot settle becomes another question rather than a line in a note.
The probe could not read the memory’s speed, which limits how fast a model writes text on such a machine, so the agent minted a question for it, and the next ranking drew it beside two others.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/05-hand-three-of-four.webp&quot; alt=&quot;The agent’s hand: the usable-speed question, the memory bandwidth question and the runtime question&quot; width=&quot;1400&quot; height=&quot;849&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;p&gt;A small benchmark answered it.
Both measurements are now findings with statistical evidence: the check confirms at every commit that each script and its result file are there, and each script’s &lt;code&gt;--check&lt;/code&gt; repeats the measurement whenever it is run.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/07-findings.webp&quot; alt=&quot;The findings list: the machine’s hardware and its memory bandwidth, both resting on committed scripts&quot; width=&quot;1400&quot; height=&quot;585&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;decisions-and-work-that-are-the-persons&quot;&gt;Decisions and work that are the person’s&lt;/h2&gt;
&lt;p&gt;Before the agent asks the person anything, it asks whether a test settles the matter; what is correct is never the person’s choice.
What counts as usable is not like that: no measurement says how much memory a model may take on someone’s laptop.
So the agent proposes figures from the measured hardware and the person rules: here, a memory limit for a model with its runtime, a minimum speed, and no quality floor.
The ruling goes into the goal’s body, dated.&lt;/p&gt;
&lt;p&gt;Some work is the person’s own to do.
The runtimes have to be installed, and here the person chose to install them by hand, so the agent minted a task in the person’s deck listing them and blocked the runtime question on it.
A card waiting on the person sits in its deck with the wait shown, and the agent’s refill passes over it.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/06-decks-blocked.webp&quot; alt=&quot;The person’s deck holds the install task, and the runtime question in the agent’s deck is blocked on it&quot; width=&quot;1400&quot; height=&quot;841&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;setting-a-direction&quot;&gt;Setting a direction&lt;/h2&gt;
&lt;p&gt;A direction is softer than a goal: it says where the person’s interest leans, and the ranking leans with it without excluding anything.
Saying it in plain words is enough:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;I want us to lean towards models with open licenses, such as Apache, MIT and similar ones.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Before minting anything the agent asks what the words leave open: whether this is a lean or a hard rule, and which licenses count as similar.
A lean, and a license the Open Source Initiative approves with no limits on use, become the direction’s body.
When a case falls between the words later, as gpt-oss did with Apache 2.0 plus a usage policy, the agent asks again, and the ruling is added to the direction with its date.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/08-table-goal-direction.webp&quot; alt=&quot;The table with the person’s install task in hand, the agent’s two questions, and below them the goal and the license direction&quot; width=&quot;1400&quot; height=&quot;858&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;reading-with-the-library&quot;&gt;Reading with the library&lt;/h2&gt;
&lt;p&gt;Papers enter the project through the library:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;Before we move on, check recent papers on model quantization that may help us.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The request becomes a question, and the agent searches, registers each work it means to use as a card, fetches the copies and reads the relevant parts itself.
A summary made by another agent does not count as a read.
Each card records how far the work was read, and each claim a finding rests on is an extract: a quotation with its section and page, checked against the kept copy.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/09-library.webp&quot; alt=&quot;The library: seven works, each card with its authors and how far it was read&quot; width=&quot;1400&quot; height=&quot;882&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;p&gt;Here the reading changed the plan.
One paper compares llama.cpp’s quantization formats by quality for their size (&lt;a href=&quot;https://arxiv.org/abs/2601.14277&quot;&gt;Kurt, 2026&lt;/a&gt;), so candidates will be sized at the formats it found best.
Another finds that perplexity flags a damaged quantization but cannot rank good ones (&lt;a href=&quot;https://arxiv.org/abs/2606.19558&quot;&gt;Nikolić et al., 2026&lt;/a&gt;), so the evaluations will rank by task scores.
What the papers left open became a question to measure on this machine.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://www.livid.work/blog/research-kit-by-example/10-library-card.webp&quot; alt=&quot;A work’s page: the notes on what it is used for, and the extracts the findings rest on, each with its section, page and checked date&quot; width=&quot;1400&quot; height=&quot;907&quot; loading=&quot;lazy&quot; decoding=&quot;async&quot;&gt;&lt;/p&gt;
&lt;h2 id=&quot;ending-a-session&quot;&gt;Ending a session&lt;/h2&gt;
&lt;p&gt;A session ends with a freeze:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/research:freeze&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The agent saves what the conversation found and no record holds yet, writes the log entry with a short state paragraph for the next session to trust, runs the checks and commits.
The next session starts from that state rather than from memory: &lt;code&gt;/research:whatsnext&lt;/code&gt; reads it, ranks what is open and fills the hand again.&lt;/p&gt;
&lt;p&gt;At the end of the example the project holds a goal, a direction, its first findings, the open questions in the order they can be worked, and a library of the works it read.
It has no answer yet to which model wins, and it does not need one to be in good order: what comes next, and why, is written down and checked at every commit.&lt;/p&gt;
&lt;h2 id=&quot;continuing-the-research&quot;&gt;Continuing the research&lt;/h2&gt;
&lt;p&gt;Every later session repeats the same cycle: &lt;code&gt;/research:whatsnext&lt;/code&gt;, work on the cards in hand, &lt;code&gt;/research:freeze&lt;/code&gt;.
The person’s part is to answer the agent’s questions, do the tasks in their own deck, and add an idea or a direction whenever one comes to mind.
Questions close as findings answer them, and the goal is reached when the questions that serve it are closed.&lt;/p&gt;
&lt;p&gt;A project is not limited to one goal.
A second goal can be opened beside the first, for example a shortlist for another machine, and the ranking then weighs the open cards under both.&lt;/p&gt;
&lt;p&gt;A reached goal does not have to end the research.
When the conditions change, as when a new model or a new version of a runtime is released, an idea added to the common deck starts a fresh pass: the agent mints the questions it holds, and the earlier findings and their scripts are there to be re-run and compared.
In this way a one-time study becomes one that is repeated whenever there is something new to measure.&lt;/p&gt;
&lt;h2 id=&quot;where-to-go-next&quot;&gt;Where to go next&lt;/h2&gt;
&lt;p&gt;&lt;a href=&quot;https://research-kit.livid.work/docs/research/getting-started/&quot;&gt;Getting started&lt;/a&gt; shows the commands the agent runs behind each step and the files they write, and the &lt;a href=&quot;https://research-kit.livid.work/&quot;&gt;project site&lt;/a&gt; documents every tool.
The source is on &lt;a href=&quot;https://github.com/lividgreen/research-kit&quot;&gt;GitHub&lt;/a&gt; under Apache-2.0.&lt;/p&gt;
</content:encoded><dc:creator>Mykola Palamarchuk</dc:creator><category>ai</category><category>coding-agents</category><category>research</category><category>workflow</category><category>llm</category></item><item><title>Reflective Subsystems: an introduction</title><link>https://www.livid.work/blog/reflective-subsystems-intro/</link><guid isPermaLink="true">https://www.livid.work/blog/reflective-subsystems-intro/</guid><description>An introduction to Reflective Subsystems, a research program in pure mathematics checked by Lean 4, and to how its proofs are written with a coding agent.</description><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Lumps of matter, given enough time, start doing mathematics.
They do not only obey rules; some of them represent the rules and use the representation.
Reflective Subsystems asks where that comes from, and asks it inside mathematics, with no physics assumed.&lt;/p&gt;
&lt;p&gt;The program is a series of papers, in preparation, and three Lean 4 libraries on top of Mathlib that machine-check what the papers claim.
The proofs are written with a coding agent, which raises a second question the post also takes up: how anyone, including me, is supposed to know they are right.&lt;/p&gt;
&lt;h2 id=&quot;the-question&quot;&gt;The question&lt;/h2&gt;
&lt;blockquote&gt;
&lt;p&gt;How much can a bounded observer, living inside a system, work out about the rules of that system, and what does it cost to hold on to what it works out?&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;A subsystem that keeps a model of the world it is part of, and can use that model, is called &lt;em&gt;reflective&lt;/em&gt;.
The claim the program works toward is that reflection is forced, not lucky: a bounded thing in a rich but learnable world is pushed to compress the world into a rule it can hold, and holding and using that rule is reflection.&lt;/p&gt;
&lt;p&gt;The papers price each step of that story.
A model that is overwritten every time it is used cannot be iterated, so predicting several steps ahead needs a read-only copy of the rule, separate from the scratchpad; that separation, with enough memory, is what makes the system’s internal world rich enough to represent arithmetic, and so to inherit Gödel’s blind spot.
Learning the rule beats memorizing the data in any world with enough structure, and a bounded learner’s mistakes are capped however long it lives.
Doing this with reasonable computation works only for nice worlds, and the parity-style rules are the clean counterexample.
A world that overwrites every cell can still carry a message through a moving window, but the window’s reading instructions turn out to contain the world’s own rule, and for a bounded reader they cost more than the world holds.
And the learner’s data has to come from somewhere: a finite deterministic world eventually loops and can vouch for its loop and nothing else, so the world has to grow, and a growing world can emit its own teacher.
The capstone builds one explicit system that meets every prerequisite and, conditional on a named damage model, proves reflective subsystems inevitable in an abstract class of systems.&lt;/p&gt;
&lt;p&gt;One line is drawn hard: all of this is mathematics about a class of systems.
Whether our universe belongs to that class is a separate, largely empirical question, and the program defers it; nothing in the papers or the libraries says that it does.&lt;/p&gt;
&lt;h2 id=&quot;the-second-question-can-a-coding-agent-help-and-how-does-anyone-know&quot;&gt;The second question: can a coding agent help, and how does anyone know&lt;/h2&gt;
&lt;p&gt;The Lean proofs, the probes and most of the prose are written by a coding agent under my direction.
Nobody has to trust the agent, because nothing it writes counts until a machine has checked it.&lt;/p&gt;
&lt;p&gt;What &lt;em&gt;machine-checked&lt;/em&gt; means here is the usual Lean bar, enforced by the build rather than promised in a README: no &lt;code&gt;sorry&lt;/code&gt;, &lt;code&gt;admit&lt;/code&gt; or &lt;code&gt;native_decide&lt;/code&gt;; standard axioms only, &lt;code&gt;propext&lt;/code&gt;, &lt;code&gt;Classical.choice&lt;/code&gt; and &lt;code&gt;Quot.sound&lt;/code&gt;.
Every main result carries a &lt;code&gt;#guard_msgs in #print axioms&lt;/code&gt; guard that pins its exact axiom set, so a proof that quietly starts leaning on something extra fails the build the way a typo fails a program, and CI audits every declaration, not only the guarded ones.
A release is replayed from a clean cache before it is tagged.&lt;/p&gt;
&lt;p&gt;The harness around the agent is where the rest of the checking lives, and it was built one incident at a time.
A theorem starts as a sentence in a paper; the prompt that hands it to a prover session quotes the statement and the declarations it builds on, and is checked before it is sent.
The session works under the language server and &lt;code&gt;lake build&lt;/code&gt;, and never commits.
Its report is checked against the built library rather than read as the truth: the manifest of declarations is diffed, and a fresh agent with no context reads the bare Lean statements and writes them out in prose, which is compared with what the paper says.
On every commit, every Lean name a paper cites is resolved against the library and every count a paper derives from the code is recomputed.
A theorem can pass all of that and still say nothing, so each headline theorem comes with a witness that there was something to prove, usually a counterexample that breaks exactly one hypothesis and keeps the rest.
That habit has rewritten several of my own claims, including two I was confident about.&lt;/p&gt;
&lt;p&gt;What the agent does not do is decide what is worth proving, whether a Lean statement is the one the paper means, or whether a result is new.
The last of these is where it has been least reliable: a literature search once returned a plausible, confidently described competing project that did not exist, and since then every “first in a prover” claim is checked against primary sources, with the searches that came up empty listed in the paper.&lt;/p&gt;
&lt;h2 id=&quot;how-the-work-is-organized-and-where-it-came-from&quot;&gt;How the work is organized, and where it came from&lt;/h2&gt;
&lt;p&gt;The project began in June 2026 as one manuscript.
An internal review found citation errors, an inconsistency over whether a sub-problem was open or solved, and an unproved proposition the argument rested on.
So the manuscript was split into named papers, each a result that stands on its own, with the dependencies between them explicit and cited as black boxes rather than reconstructed, and a capstone that imports all of them.
The Lean workspace was opened in the first week, the first public release went out in July, and the classical and cellular-automata parts were cut into packages of their own in October.&lt;/p&gt;
&lt;p&gt;Two rules carry through everything.
Every claim is labeled proved, conditional or open, and a condition is a named hypothesis, never buried in prose.
And a paper’s statement of a result is written from the landed proof, not from the plan that commissioned it, because the two come apart exactly where the theorem needed less than the plan assumed.&lt;/p&gt;
&lt;p&gt;The process itself turned out to be worth keeping.
The records of what was tried, decided and settled, the reference library with how far each work was read, and the checks that run on every commit were extracted into &lt;a href=&quot;https://www.livid.work/projects/research-kit/&quot;&gt;research-kit&lt;/a&gt;, and this project now runs on the released kit like any other user of it.
How that happened, and what it did for the research, is &lt;a href=&quot;https://www.livid.work/blog/research-kit-intro/&quot;&gt;its own post&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;three-repositories-and-why&quot;&gt;Three repositories, and why&lt;/h2&gt;
&lt;p&gt;The Lean development is three Lake packages, each requiring the one before it.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/lividgreen/lean-classical-upstream&quot;&gt;&lt;code&gt;lean-classical-upstream&lt;/code&gt;&lt;/a&gt; holds classical theorems of algorithmic information theory, learning theory, information theory, ergodic theory, realizability and combinatorics.
Every statement in it is one the literature already makes; the package adds its proof in Lean, labeled by its standing there: formalized first here as far as a search of the Lean libraries found, ported from a proof in another library that could not be used, or duplicating one.
&lt;a href=&quot;https://lividgreen.github.io/lean-classical-upstream/&quot;&gt;API reference&lt;/a&gt; · &lt;a href=&quot;https://doi.org/10.5281/zenodo.23257423&quot;&gt;DOI 10.5281/zenodo.23257423&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/lividgreen/lean-elementary-cellular-automata&quot;&gt;&lt;code&gt;lean-elementary-cellular-automata&lt;/code&gt;&lt;/a&gt; holds the 256 rules on a line of binary cells in which a cell’s next value depends on itself and its two neighbors: which rules grow from a finite configuration, what a column, a window or a ray of an orbit looks like, which rules reproduce a pattern, and what it costs a rule to erase a local perturbation.
&lt;a href=&quot;https://lividgreen.github.io/lean-elementary-cellular-automata/&quot;&gt;API reference&lt;/a&gt; · &lt;a href=&quot;https://doi.org/10.5281/zenodo.23275249&quot;&gt;DOI 10.5281/zenodo.23275249&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://github.com/lividgreen/lean-reflective-subsystems&quot;&gt;&lt;code&gt;lean-reflective-subsystems&lt;/code&gt;&lt;/a&gt; holds the program’s own results: what nobody had stated before, however small.
&lt;a href=&quot;https://lividgreen.github.io/lean-reflective-subsystems/&quot;&gt;API reference&lt;/a&gt; · &lt;a href=&quot;https://doi.org/10.5281/zenodo.21284775&quot;&gt;DOI 10.5281/zenodo.21284775&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The split follows one rule.
A sentence with prior art, stated in the literature or proved in another Lean library, moves down to the classical package with its proof, however much of the proof is new; a sentence nobody has made stays up.
The point is that a classical theorem should be usable, and upstreamable to Mathlib or its neighbors, by someone with no interest in this program, and the cellular automata are a subject of their own that a reader may want without any learning theory attached.
The import direction, classical to automata to the program’s own library, is checked at every module.&lt;/p&gt;
&lt;h2 id=&quot;some-results&quot;&gt;Some results&lt;/h2&gt;
&lt;p&gt;Each of these is a theorem in one of the three libraries, with its axiom set pinned in the build.
The companion papers state them with their boundaries; here is the short form.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;A finite machine proved to meet a learning theory’s prerequisites from its own dynamics.&lt;/strong&gt;
The statistical-query framework assumes an oracle whose averages behave like samples; &lt;a href=&quot;https://lividgreen.github.io/lean-reflective-subsystems/docs/ReflectiveSubsystems/LearningWitness.html&quot;&gt;&lt;code&gt;LearningWitness.lean&lt;/code&gt;&lt;/a&gt; builds a concrete system and proves, from the system’s own update rule, that what the learner inside it observes satisfies the condition its queries need.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;A growing world that emits its own teacher.&lt;/strong&gt;
A finite deterministic world cannot be its learner’s oracle, because it loops.
&lt;a href=&quot;https://lividgreen.github.io/lean-reflective-subsystems/docs/ReflectiveSubsystems/GrowingHostWitness.html&quot;&gt;&lt;code&gt;GrowingHostWitness.lean&lt;/code&gt;&lt;/a&gt; builds a machine with a read-only program and a tape that appends one cell per step, and proves that its own emitted history has statistics stable enough, with an explicit identification horizon, to serve as that oracle.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The price of memory in a world that overwrites everything.&lt;/strong&gt;
&lt;a href=&quot;https://lividgreen.github.io/lean-reflective-subsystems/docs/ReflectiveSubsystems/PersistenceCapacity.html&quot;&gt;&lt;code&gt;PersistenceCapacity.lean&lt;/code&gt;&lt;/a&gt; prices the decoder an observer must store to read a message through a moving window, with exact constants.
It agrees with Putnam’s argument that everything computes everything, and then shows that no bounded reader can afford it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;The threshold where self-representation turns into incompleteness.&lt;/strong&gt;
&lt;a href=&quot;https://lividgreen.github.io/lean-reflective-subsystems/docs/ReflectiveSubsystems/GodelThreshold.html&quot;&gt;&lt;code&gt;GodelThreshold.lean&lt;/code&gt;&lt;/a&gt; gives the capacity at which a system’s internal world is rich enough to state truths it cannot prove, and &lt;a href=&quot;https://lividgreen.github.io/lean-reflective-subsystems/docs/ReflectiveSubsystems/ChaitinPrefixProgression.html&quot;&gt;&lt;code&gt;ChaitinPrefixProgression.lean&lt;/code&gt;&lt;/a&gt; builds a progression of theories, each with its Chaitin sentence at its own threshold, gaining at least a bit of prefix complexity per step, so that no computable family names the progression uniformly.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Every quiescent elementary rule decided for growth.&lt;/strong&gt;
In the automata package, the growing width of a rule is zero at every time or unbounded at every one of the quiescent rules, and the census of which is which is one theorem over the rule’s Wolfram number (&lt;code&gt;growth_census&lt;/code&gt;), its counts checked by the kernel.
From a single cell, no ray of rule 90 at a rational speed strictly between zero and one is eventually periodic.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Classical theorems proved in Lean for the first time, as far as a dated search found.&lt;/strong&gt;
Chaitin’s incompleteness theorem under consistency alone, over Mathlib’s universal machine, in its plain and its additive form; the statistical-query model with its dimension and parity’s lower bound; the conjunction and decision-list learners verified correct and polynomial-step in one statement, on a cost model over Mathlib’s codes; and the category of assemblies over Kleene’s first algebra, Cartesian closed with finite coproducts.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;where-to-go-next&quot;&gt;Where to go next&lt;/h2&gt;
&lt;p&gt;The &lt;a href=&quot;https://www.livid.work/projects/reflective-subsystems/&quot;&gt;project card&lt;/a&gt; on this site keeps the links to the three repositories current.
Their API references, generated from the source, are the best way into the mathematics, and an issue on any of them is welcome; a statement you think is wrong is the most valuable one you could open.
The tooling the project runs on is &lt;a href=&quot;https://research-kit.livid.work/&quot;&gt;research-kit&lt;/a&gt;, extracted from this project and released on its own.&lt;/p&gt;
&lt;p&gt;Later posts will take the threads one at a time, starting with the threshold.&lt;/p&gt;
</content:encoded><dc:creator>Mykola Palamarchuk</dc:creator><category>lean4</category><category>mathlib</category><category>formal-verification</category><category>learning-theory</category><category>ai</category><category>coding-agents</category><category>research</category></item><item><title>research-kit: how a research project&apos;s records became a kit</title><link>https://www.livid.work/blog/research-kit-intro/</link><guid isPermaLink="true">https://www.livid.work/blog/research-kit-intro/</guid><description>How five months of mathematical research with a coding agent led to research-kit: what failed in the project&apos;s records, what replaced it, and the effect.</description><pubDate>Thu, 05 Nov 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;Since June I have been doing mathematical research with a coding agent: a series of papers, and &lt;a href=&quot;https://www.livid.work/projects/reflective-subsystems/&quot;&gt;three Lean 4 libraries&lt;/a&gt; that machine-check what the papers claim; the program has &lt;a href=&quot;https://www.livid.work/blog/reflective-subsystems-intro/&quot;&gt;its own introduction&lt;/a&gt;.
The agent writes the proofs, runs the checks and drafts the prose; I decide what is worth doing and whether the result is right.&lt;/p&gt;
&lt;p&gt;The mathematics was never the hard part to keep straight.
The hard part was the record around it: what had already been tried, what was decided and why, which question came next, and whether a sentence in a paper still matched the code.
&lt;a href=&quot;https://www.livid.work/projects/research-kit/&quot;&gt;research-kit&lt;/a&gt; is what that record turned into, packaged so another project can use it.
This post is how it got there, and what the project’s own history says about whether it helped.&lt;/p&gt;
&lt;h2 id=&quot;what-broke-and-what-replaced-it&quot;&gt;What broke, and what replaced it&lt;/h2&gt;
&lt;p&gt;A coding agent starts every session cold, so the project’s files were its memory: a file of rules, a roadmap of what to do next, and a brainstorming file where design rounds were written down.
That worked while the files were small.
By mid-September the roadmap was several hundred kilobytes and the brainstorming file some two hundred and fifty design rounds long.&lt;/p&gt;
&lt;p&gt;The first thing to break was not the process but the papers.
A paper cites Lean theorems by name and quotes counts derived from the code, and both go stale silently when the code moves.
So in July the first commit hooks went in: one resolves every Lean name a paper cites, one recomputes every count that can be derived from the code and fails when the prose disagrees.
They set the pattern for everything after: when a mistake happens twice, a check catches it from then on, so nobody has to remember it.&lt;/p&gt;
&lt;p&gt;In August the history moved out of the roadmap into a log, newest entry first, with a short state paragraph on top for the next session to trust, and the roadmap became a pool of open items with a command that triaged the pool to pick the next work.
The command ran sixty-five times in six weeks.
Each run re-tested the parked items and left a dated line behind, and one hard question collected forty-two of them.
The agent was spending real effort deciding what to do instead of doing it.&lt;/p&gt;
&lt;p&gt;August also produced the most stubborn failure of the project: a record that paraphrases a result and is then trusted.
A pool entry would describe a theorem slightly wrong, the next session would build on the description, and in one case three matching citations turned out to be three copies of one error.
It happened nine times that month.&lt;/p&gt;
&lt;p&gt;In September I had the agent read ten whole sessions end to end and measure where the effort went.
In eight of the ten, the project’s own records were the largest thing it read, larger than the papers and the Lean.
Three changes followed in three weeks.
Viewers print a short summary for a cold session instead of the whole roadmap, and a record is edited through one channel.
When a proof lands, a fresh agent with no context reads the bare Lean statements and writes them out in prose, which is compared with what the paper says; the paraphrase failure has been caught before it shipped ever since.
And the triage was replaced by a short ranked list of what to do next, with a reason for each item and no schedule, refreshed when I ask.
The re-tests stopped.&lt;/p&gt;
&lt;h2 id=&quot;the-flow&quot;&gt;The flow&lt;/h2&gt;
&lt;p&gt;On 25 September came the step the kit is built around.
I brought in a guide that models research work as typed records, ideas, questions, tasks and findings, one Markdown file each, &lt;em&gt;produced&lt;/em&gt; by transitions rather than edited into a new state: a question is made from ideas; an idea does not become a question.
I adopted it the same day, with a small command-line tool that is the only thing allowed to change a record’s state, and a validator that runs on every commit.
Every older record was migrated in a day: the pool’s entries became questions, the papers’ results tables became findings, each pointing at the Lean declaration that proves it, and the brainstorming file’s rounds became archived tasks.&lt;/p&gt;
&lt;p&gt;The last failure class was citations.
A literature search had surfaced two recent “resolutions” of open problems that turned out to be withdrawn preprints with invalid proofs, caught only by opening each paper’s own record; a fetched summary had read as more than it was.
In October the reference shelf became a library: one card per cited work, recording how far it was actually read and what may be claimed from it, and a commit fails on a paper citing a work with no card, or one nobody read.&lt;/p&gt;
&lt;p&gt;By then the pieces were general enough to ask whether another project could use them.
On 23 October the agent extracted them into a public repository under one rule: nothing specific to my project goes in.
Six rounds of review followed, four from outside, one my own and one by a fresh agent session reading the kit cold, each claim checked against the code before anything changed.
The kit was released on 26 October, and my project became its first user.
It runs on the released plugins like anyone’s, and when it finds a problem in the kit it sends the problem to the kit instead of patching it locally.&lt;/p&gt;
&lt;p&gt;That loop has run six more releases in ten days, each from what the projects using the kit reported back.
A question now closes one of four ways and says which; the goals I set and the directions I lean toward are records the ranking reads, mine alone to form and to close; a finding’s trust is read from the forms of its evidence, so a theorem proved by hand in a paper is the project’s own word until the Lean proof lands and raises it.
And when the model changed under my project’s 1,350 records, the tool learned to run the mechanical part of the migration itself, which by hand was some ten thousand edits, and to leave the forty-eight cases that need judgment to a person, each named with what to do.&lt;/p&gt;
&lt;h2 id=&quot;did-it-help-the-research&quot;&gt;Did it help the research?&lt;/h2&gt;
&lt;p&gt;I asked the agent to answer that from the project’s history.
The answer is yes, with its size stated.&lt;/p&gt;
&lt;p&gt;The process stopped costing.
After the switch, words like “re-test”, “triage” and “drift” all but disappear from the log, and a session starts from about fourteen kilobytes of generated summary instead of a roadmap that had grown past what any session could read.
I start a session with “go on”, and it goes on.
The research kept its pace, and the paper-facing output rose: per working day, numbered results in the papers went from about 1.5 to about 2.1, and rows of machine-checked results from 2.3 to 2.7, while new Lean declarations per day stayed flat.
Questions got small and finishable: a question framed under the flow carries what would settle it and is framed when it is about to be worked, and such questions were settled in a median of one day.&lt;/p&gt;
&lt;p&gt;Two caveats.
The output numbers cannot separate the tool from the topic: October’s work was a census of cellular automata, which yields many small results, where August’s were fewer and larger.
And the flow did not crack the hard questions inherited from the old roadmap: of about 120, two were settled after the switch.
It organizes and finishes the work in hand; it does not do the mathematics.
Most of the gain came in the three weeks before the flow itself, from the ranked list, the record tools and the read-back; the flow consolidated them into one checked shape, and that shape is what another project can install.&lt;/p&gt;
&lt;h2 id=&quot;where-the-ideas-come-from&quot;&gt;Where the ideas come from&lt;/h2&gt;
&lt;p&gt;None of the pieces is new, and the kit does not claim they are; what the project contributed is how they fit together, and the record of which were worth having.
Each source below was checked at its own text.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The records take their shape from process mining’s &lt;a href=&quot;https://arxiv.org/abs/2010.02047&quot;&gt;object-centric Petri nets&lt;/a&gt;, where places are typed and one transition consumes and produces objects of several types; that is why a question is produced from ideas rather than edited out of one.
The older &lt;a href=&quot;https://www.vdaalst.com/publications/p53.pdf&quot;&gt;workflow nets&lt;/a&gt; add soundness: from every state the end can still be reached, and no task is dead.&lt;/li&gt;
&lt;li&gt;The limit on how many tasks one session holds is &lt;a href=&quot;https://kanbanguides.org/english/&quot;&gt;Kanban’s&lt;/a&gt; control of work in progress.&lt;/li&gt;
&lt;li&gt;A short ranked list with no standing backlog, and a question that carries its own stopping conditions, echo Shape Up’s &lt;a href=&quot;https://basecamp.com/shapeup/2.1-chapter-07&quot;&gt;“bets, not backlogs”&lt;/a&gt; and its &lt;a href=&quot;https://basecamp.com/shapeup/2.2-chapter-08&quot;&gt;circuit breaker&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;A question’s criterion, written before the work, is &lt;a href=&quot;https://www.pnas.org/doi/10.1073/pnas.1708274114&quot;&gt;preregistration’s&lt;/a&gt; move, in a repository rather than a registry.&lt;/li&gt;
&lt;li&gt;One short text file per record, kept in git with a status that can be superseded, is &lt;a href=&quot;https://cognitect.com/blog/2011/11/15/documenting-architecture-decisions&quot;&gt;Nygard’s&lt;/a&gt; architecture decision record.&lt;/li&gt;
&lt;li&gt;A validator that fails when the records disagree with each other plays the role of &lt;a href=&quot;https://beancount.github.io/docs/beancount_language_syntax/&quot;&gt;Beancount’s&lt;/a&gt; balance assertions, and the check that every Lean name a document cites exists is &lt;a href=&quot;https://github.com/PatrickMassot/leanblueprint&quot;&gt;leanblueprint’s&lt;/a&gt; &lt;code&gt;checkdecls&lt;/code&gt;, run on every commit.&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;https://docs.jabref.org/finding-sorting-and-cleaning-entries/specialfields&quot;&gt;JabRef&lt;/a&gt; records a coarse read status and &lt;a href=&quot;https://www.zotero.org/support/related&quot;&gt;Zotero&lt;/a&gt; links related items; the library’s cards add which parts of a work were read and what may be claimed from it.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Agent-native trackers exist too, &lt;a href=&quot;https://github.com/gastownhall/beads&quot;&gt;beads&lt;/a&gt; among them, keeping an agent’s tasks in a dependency graph in a database.
research-kit is narrower: research, one person, one agent, and everything in plain text a human can read.&lt;/p&gt;
&lt;h2 id=&quot;what-is-in-the-kit&quot;&gt;What is in the kit&lt;/h2&gt;
&lt;p&gt;The &lt;code&gt;research&lt;/code&gt; plugin, for any research project: the records, moved between states only by the &lt;code&gt;flow&lt;/code&gt; tool, a new question carrying its criterion and a finding naming evidence a machine can check, its trust the forms that evidence takes; the goals and the directions the owner sets, which bias what comes next and never order it; a ranked list of what to do next, with a reason for each item; the reference library; a read-only dashboard over the records and the cards; the checks on every commit; and the working rules, on review and evidence, design before building, debugging to the root cause, and changing a target honestly at a wall.
The &lt;code&gt;formal&lt;/code&gt; plugin, for a project with a Lean 4 library: the prompt a prover session receives is checked before it is sent, and what the session reports is checked against the built library before any document changes.&lt;/p&gt;
&lt;p&gt;Every tool is a single Python script with no dependencies, and all the data is plain Markdown in git that can be read without the kit.
It runs in Claude Code and the agents that read its plugin format natively, and in Codex, GitHub Copilot, Cursor and others through &lt;a href=&quot;https://agent-plugins.org/&quot;&gt;Agent Plugins&lt;/a&gt; or &lt;a href=&quot;https://agentskills.io/&quot;&gt;Agent Skills&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&quot;trying-it&quot;&gt;Trying it&lt;/h2&gt;
&lt;p&gt;In Claude Code:&lt;/p&gt;
&lt;pre class=&quot;astro-code github-dark&quot; style=&quot;background-color:#24292e;color:#e1e4e8; overflow-x: auto;&quot; tabindex=&quot;0&quot; data-language=&quot;text&quot;&gt;&lt;code&gt;&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/plugin marketplace add lividgreen/research-kit&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;line&quot;&gt;&lt;span&gt;/plugin install research@research-kit&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then ask the agent to set the project up; the setup skill looks at what is there and proposes the rest.
The &lt;a href=&quot;https://research-kit.livid.work/&quot;&gt;project site&lt;/a&gt; has the install steps for every supported agent, the documentation and the changelog, and the source is on &lt;a href=&quot;https://github.com/lividgreen/research-kit&quot;&gt;GitHub&lt;/a&gt; under Apache-2.0.&lt;/p&gt;
</content:encoded><dc:creator>Mykola Palamarchuk</dc:creator><category>ai</category><category>coding-agents</category><category>research</category><category>workflow</category><category>lean4</category></item><item><title>A prototype with a coding agent, milestone by milestone</title><link>https://www.livid.work/blog/coding-agent-milestone-workflow/</link><guid isPermaLink="true">https://www.livid.work/blog/coding-agent-milestone-workflow/</guid><description>A workflow for building a proof of concept with an LLM chat and a coding agent: an architecture proposal, milestones, and a cycle of plan, build, and report.</description><pubDate>Fri, 01 May 2026 00:00:00 GMT</pubDate><content:encoded>&lt;p&gt;A working prototype used to require a team of developers and months of work. With a coding agent, one person can build one in a few evenings. That person works as a technical director does: sets the architecture, reads the plans, and accepts the results. This post describes the workflow I use.&lt;/p&gt;
&lt;h2 id=&quot;models&quot;&gt;Models&lt;/h2&gt;
&lt;p&gt;Claude Opus 4.6 was the first model whose output I could trust with real code. Opus 4.7 is also good, though I do not find it much better. The reasoning effort matters more than the exact version: set it to the maximum. GPT-5.5 is reported to be on par with the latest Opus; I have not verified that myself.&lt;/p&gt;
&lt;h2 id=&quot;prerequisites&quot;&gt;Prerequisites&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;An understanding of software architecture. You direct the project and do not write its code, and for a personal prototype there is no time to review every line. The architecture and your technical intuition are what you check the agent’s work against.&lt;/li&gt;
&lt;li&gt;The core concepts: what an LLM is, tool calling, structured output, an LLM agent, and a multi-agent architecture. They set the right expectations of a coding agent.&lt;/li&gt;
&lt;li&gt;Access to a strong model: an &lt;a href=&quot;https://claude.ai/upgrade&quot;&gt;Anthropic subscription&lt;/a&gt;, or any provider that offers Claude Opus 4.6 or later. A subscription with GPT-5.5 may work too.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&quot;the-workflow&quot;&gt;The workflow&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Shape the idea.&lt;/strong&gt; Open an AI chat with the most capable model and describe the idea in plain words. The description does not have to be interesting; add every detail that comes to mind. Ask for a summary at the end and read it: look for contradictions and weak spots, and have the model refine them. Do not go deep yet; this is still the general idea.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Pick the stack.&lt;/strong&gt; Discuss the technology stack, one you are interested in or comfortable with, and the platform it will run on. Ask for a summary again.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Run deep research.&lt;/strong&gt; Have the model evaluate the idea and the stack, propose better alternatives if any exist, and check everything that bothers you.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Get an architecture proposal.&lt;/strong&gt; Give the research result back to the model and ask for a final architecture proposal for the project.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Switch to a coding agent.&lt;/strong&gt; I use &lt;a href=&quot;https://github.com/features/copilot&quot;&gt;GitHub Copilot&lt;/a&gt; in &lt;a href=&quot;https://code.visualstudio.com/&quot;&gt;VS Code&lt;/a&gt; and &lt;a href=&quot;https://claude.com/claude-code&quot;&gt;Claude Code&lt;/a&gt;; any agent works if it runs a strong model at maximum reasoning effort. Initialize the project the way your agent expects.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Commit the proposal.&lt;/strong&gt; Create &lt;code&gt;ARCHITECTURE-PROPOSAL.md&lt;/code&gt; in the project and paste the proposal into it.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Split it into milestones.&lt;/strong&gt; Ask the agent to break the proposal into milestones, one &lt;code&gt;MILESTONE-X.md&lt;/code&gt; file each, and to write an &lt;code&gt;EPIC.md&lt;/code&gt; that tracks progress across them.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Teach the agent the process.&lt;/strong&gt; Have it update its own instructions so that every milestone goes through the same stages:
&lt;ul&gt;
&lt;li&gt;Planning and investigation: the agent re-checks the requirements and writes an implementation plan. The plan ends with a report of the completed work and demo steps a person can run.&lt;/li&gt;
&lt;li&gt;Development: the agent writes the code and the tests, and makes sure the demo works.&lt;/li&gt;
&lt;li&gt;Documentation.&lt;/li&gt;
&lt;li&gt;The report, and sign-off by a person before the next milestone starts.&lt;/li&gt;
&lt;li&gt;Progress tracking in the milestone and epic files.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Run the cycle, one milestone at a time.&lt;/strong&gt; Clear the context or start a new chat, switch the agent to planning mode, and ask it to plan the next milestone. Read the plan. Refine it with the agent until you are satisfied and it contains the stages above, then let the agent implement it. When it has finished, read the report and run the demo steps. If everything works, tell the agent, so that it updates the progress; if not, work with it until the problem is fixed. Repeat until every milestone is complete.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Continue.&lt;/strong&gt; The result is a working proof of concept. To develop it further, write the next epic and run the same cycle.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 id=&quot;remarks&quot;&gt;Remarks&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;Frameworks exist that do the same in a more elaborate way, for example &lt;a href=&quot;https://github.com/github/spec-kit&quot;&gt;GitHub Spec Kit&lt;/a&gt; and &lt;a href=&quot;https://github.com/obra/superpowers&quot;&gt;Superpowers&lt;/a&gt;. Building the process from scratch is still worth doing once: you see how the agent works through a plan that you wrote.&lt;/li&gt;
&lt;li&gt;Learn your agent’s features: its instruction or rules files, and its skills.&lt;/li&gt;
&lt;li&gt;Turn mistakes into rules. When the agent struggles, takes a wrong approach or makes a careless mistake, ask it why, and have it update its own instructions so that the mistake does not recur. Over time the agent also learns your preferred style of development this way.&lt;/li&gt;
&lt;/ul&gt;
&lt;hr&gt;
&lt;p&gt;&lt;em&gt;Originally published on Medium in May 2026 (with help from Claude Opus 4.7 for grammar and structure); shortened here to the technical part and edited in November 2026.&lt;/em&gt;&lt;/p&gt;
</content:encoded><dc:creator>Mykola Palamarchuk</dc:creator><category>ai</category><category>coding-agents</category><category>llm</category><category>workflow</category></item></channel></rss>