Knowledge

Knowledge is a folder of files about your project. Runs add to it from real work, and every change to it is a git commit you can read and take back.

Where it lives

By default the folder is .nolzu/knowledge in the project, so it is versioned with the project and a teammate who clones it has it too. In a workspace that is the workspace's own repository. For another folder, fill in Knowledge location in Settings / Project, at /settings/project. Leave it empty for the default. Knowledge stays with this project, and no other project reads it.

The folder is grouped by repository:

  • Each repository has a folder named after it, with its repository.md and its notes, such as api/repository.md and api/search.md.
  • A note about more than one repository goes to shared/.
  • The run recipe, run-recipe.md, sits at the top.

A project of one repository at its root keeps a flat folder, with its repository.md at the top.

Who writes it

Of the runs, only the wrap-up phase, Optimize, Learn your repositories and Learn this project write knowledge. Wrap-up is the agent column near the end of every board: Delivery, Epics, Research and PR reviews. Optimize rewrites one file you pick, Learn your repositories fills in each repository's file, and Learn this project writes a few files from what people wrote about the project. None of the last three belongs to a card. Nolzu itself writes only the first lines of each repository file and the run recipe, from what it reads in each repository.

A wrap-up reads how the card went: what you said, the moves back, and each QA that did not pass. It keeps a learning only when losing it would cause rework and it will still hold in three months. It keeps a fact that was costly to find: a test the test script never runs, two files kept in step by hand, a pattern to copy, a place not to look. It checks each claim against the code first, and it corrects a wrong file before it adds a new one. Each note goes into the folder of the repository its paths belong to, or into shared/.

Each file a wrap-up writes opens with frontmatter. Its description says when to read the file, its source names the card and the commit it came from, and its paths list the files it depends on, as git keeps them on the base branch. Optimize keeps that shape.

Each run's change is one git commit, with a message that names the card and the run, such as knowledge: APP-1 run 12. Nothing is pushed. One such run works at a time, in the knowledge lane, and the folder is locked until it ends. A wrap-up whose change waits for your review keeps its card on Wrap-up, so the card does not close before you decide.

Where Nolzu's wall starts, every engine runs the runs that write knowledge. Where it cannot, only Claude Code and Codex run them, and Nolzu refuses Cursor before the run starts and says why.

Repository files and the run recipe

Every project gets one starting file per repository, whatever its shape: api/repository.md for a repository in the folder api, and repository.md at the top for the project folder when it holds code itself. A workspace's own folder gets none, because no card changes it.

A starting file holds only where the repository sits and its base branch. It names no stack and no top folders, because a run reads those from the code and a copy goes stale. What the repository is for is left for Learn your repositories, or for a run that learns it on the way.

The run recipe, run-recipe.md, has one section per repository. It gives the command that installs, tests, lints, type-checks, builds and starts it, each with where it comes from. For a Node repository Nolzu reads them from its package.json scripts and its lockfile. For a PHP, Python, Go, Rust, Java, .NET, Ruby or other repository it writes the usual commands for the files it finds, such as composer install and vendor/bin/phpunit, each marked as a first guess with the file it came from. A command it cannot read says "Not read". This is the one file that repeats what the code holds, because every card needs it and finding the right command costs runs.

When Implement or QA meets a command that failed, needed something more, or stood in for a "Not read" line, it notes it for the recipe. The next wrap-up of the card writes it into the recipe.

New project writes these files, and so do Add a repository, Clone on a missing repository and Scan again, for each repository they add. Each time the new files go into one commit, knowledge: repository files. A knowledge folder in no git repository still gets them, with no commit, and the answer says so. The answer of Add a repository names them, such as "Added api, starting from develop. Wrote api/repository.md, run-recipe.md in the knowledge folder." A repository file that is already there is never touched, and the recipe only gets the sections it lacks. A repository you remove keeps its file.

The index every run reads

Every phase that reads code gets an index of the knowledge folder in its prompt, under Project knowledge. Each line names one file and gives its description, or its first line for a file without one. The index follows the card's repositories: the run recipe first, then each of them with its repository.md and its newest notes, then shared/, then the other notes at the top. The files of other repositories are left out and counted in one line, so a project of many repositories does not push the card's own notes out.

The index lists at most 30 files, but the card's own part always fits: the run recipe, and each of the card's repositories with its repository.md and its five newest notes. A run with no card, such as an assessment, and a card with no list of repositories yet get the whole folder: the run recipe first, then the repository files, then the newest.

The run picks at most three files that match its work and reads them before the code. The folder is read only for that run. What a run learns on the way goes into the card's discoveries.md, for the wrap-up. A question you ask about a card on its Discussion tab gets no index, and neither do the runs that write knowledge.

The Knowledge screen

Open it from the rail, the column on the left of the app that lists the boards and screens. Or press G then K. The top bar has a search box and, while a file is open, Optimize. Below it the screen has three parts:

  • The file list, as a folder tree: one folder per repository with its repository.md first, then Shared, then the files at the top. A folded folder counts its files, and the changes in it that wait for review. A project of one repository shows its files with no folder row. The foot says when Optimize last ran and where the folder is.
  • The file you pick, drawn as Markdown, without its frontmatter. Its newest change sits on top: who wrote it, Show the change, which draws its lines inside the file, and Revert.
  • What is known about that file: Taught by, Depends on and History.

Depends on lists each path from the file's frontmatter, checked against the base branch of its repository: on the base branch, not on the base branch, or not checked. It says "not on" and not "gone", because a file a card added is not on a local base branch until you pull the merge.

Taught by lists each card whose applied change is in the file, once each, in the order they taught it. An Optimize run reads "maintenance". History lists every change of the file, newest first, with the card, the day, a status when it is not applied (reverted, waiting for review or returned) and the lines it added and took out. Open its Diff to read it.

While a run writes the folder, a line at the top says so, such as "APP-1 is writing knowledge. The folder is locked until that run ends." The screen reads again when a knowledge run ends, so what it wrote shows up with no reload. An empty folder says "No knowledge yet. It is earned from real work, never generated from a scan."

Revert

The newest applied change of a file has a Revert button, at the top of the open file: "Commits this file back to what it was before this change." Revert is a new commit, never a reset, so the history stays whole. The answer reads like "Took .nolzu/knowledge/api/search.md back to what it was before commit a1b2c3d. The revert is commit e4f5a6b."

Only the newest applied change has the button, because it is the one the file can still take back. Revert is refused while a run writes the folder. A change that waits for review, or was returned, was never applied, so it has nothing to revert.

Optimize

Optimize sits in the top bar while a file is open: "Rewrites this file so it stays short and true." It starts an agent run, so it is an amber button. The answer is "A maintenance run is rewriting stack.md. Open the file again to see how it ended." The button is off while the knowledge lane is busy.

The run's model comes from the Optimize row of the preset. On Claude Code that is haiku at low effort in Light, sonnet at low effort in Balanced, and sonnet at medium effort in Heavy.

Learn your repositories

Learn your repositories reads each repository's README, CI files and build files, such as package.json or composer.json. It writes what the repository is for and how to install, run, test, lint and build it into its repository.md and its section of the run recipe, each line with where it was read. It reads more than Node files, so it covers a PHP, Python or Go repository too.

It sits on the Knowledge screen while no file is open. Tick all repositories or a few, and the screen shows the engine, the model and the estimate before you start. The runs go one after another on a small model, one per repository, in the knowledge lane. What each run writes waits for your review, and Apply keeps the other repositories' sections.

A new project lists it first under Set up the project, as the one required step. Until it is done, the first drag of a card to an agent column asks first: Learn and then start runs the Learn runs, then the card, and I will write it myself says what runs will lack and starts the card.

Learn this project

Learn this project reads what people wrote about the project: the README, a contributing guide, the agent files, decision records, the CI and the manifests. It does not read the code. It may ask you up to four questions, one at a time, such as what agents get wrong here or which command is right when several look right. Then it writes at most three short files, about 60 lines in all. Each line ends with where it came from, a file or "told by the person", and a project rule is written as what not to do, with its reason.

It never starts by itself, because it spends your engine's quota. Start it on the Knowledge screen, while no file is open, with the Learn this project button, or in the answer of Add a repository, with the Learn button for that repository, such as Learn api.

It runs like Optimize: in the project folder, on the knowledge lane, and with no card. Its questions show on the Knowledge screen under "Learn this project asks", with one button per answer it offers. A press fills the reply and sends nothing, and Send and resume goes on in the same session.

What it writes always waits for your review, whatever the setting below says. A note you return with its change goes to the next Learn this project run. On Claude Code its preset row is haiku at low effort in Light, sonnet at low effort in Balanced, and sonnet at medium effort in Heavy.

Review before applying

The setting Review knowledge changes before they apply, at the foot of Settings / Runs, is off by default. The foot of the Knowledge screen has the same switch, as Review changes before applying. Off, a wrap-up or Optimize commits what it wrote. On, the run's change is held aside, and your knowledge files stay as they are until you decide. Learn your repositories and Learn this project are always held.

A held change shows under Pending review on the Knowledge screen, one group per run, because one run is one commit. Read in full opens the whole change in a wide dialog. Apply "Writes the files and commits them." Its answer reads like "Applied 2 files as commit a1b2c3d." Return needs a note under Why it goes back, and beside it the screen says "Drops the files. The next wrap-up of this card reads the note." Its answer reads like "Returned. The next wrap-up of APP-1 reads the note." With more than one change held, Apply all applies them oldest first, one commit each, and stops at the first refusal. With nothing held, the list says "Nothing waits for a person."

The Concepts guide says where knowledge fits among boards, cards and lanes.