Learned skills
parmanu learns from its own sessions in a project. Every session writes a ledger (.anu/runs/<id>/ledger.jsonl). anu learn reads those ledgers, finds what keeps happening, and writes it up as skills for you to review. No model is involved: the lessons come straight from the ledgers, and every one cites the ledger lines it came from.
What it learns
A lesson has to show up in two sessions before it is proposed. One session teaches nothing.
| Skill | Lesson |
|---|---|
learned-checks | A command that checked the changes and passed, such as bun test |
learned-command-fixes | A command that failed because of the environment (command not found, No module named …) and the command that worked next |
learned-library-notes | A library name the model reached for that does not exist, and the names that do |
learned-refused-commands | A destructive command you refused |
learned-answers | Your answer to a question the model asked you (answers given automatically do not count) |
Each skill ends with a ## Sources section: one line per lesson source, with the run, the ledger line and a quote.
Review them
anu learn # mine the ledgers; list the skills to review
anu learn show <name> # print one
anu learn approve <name> # move it to .anu/skills/<name>/SKILL.md
anu learn reject <name> # drop it; its lessons are not proposed againCandidates wait in .anu/learned/<name>/. Approving one copies it to .anu/skills/, where new sessions load it like any other project skill (the project has to be trusted: /trust). In the chat, /learn does the same: pick a skill, then Show, Approve or Reject. After approving, /reload loads it into the current chat.
Approved and rejected lessons are kept in .anu/learned/state.json. A skill comes back only when a new lesson of its kind turns up; an approved skill is then rewritten with the old lessons and the new one.
The notice
When a chat ends and the ledgers hold lessons that were not waiting for review before, parmanu prints one line:
parmanu learned 1 new thing from your sessions; review with: anu learnSet ANU_LEARN=0 to turn it off. --no-session chats never print it.
This page is built from docs/learn.md in parmanu 0.4.14.