You correct your assistant for the second time on the same point: the wrong file, a missed check, an ignored convention. Next week it will do it again, because the lesson only lived in that conversation. Yet AI-KIDO has never been a frozen method: from the start, its hard points, its Truth Tables and the Memory Bank rules are written, reviewed and corrected by the people of the project, and agents read them to comply. That is AI-KIDO’s self-learning: the knowledge base evolves with what you teach it.

You guide, the command assists

The learning rule did not begin with /learn. Introspection and continuous improvement already belong to AI-KIDO’s original foundations, documented in the first public baseline. You teach, correct and improve the knowledge base; the command gives this practice a shorter, repeatable route.

/learn arrived as reinforcement with AI-KIDO 1.5.2. It does not replace that mechanism and decides nothing on its own: it helps you guide your agents and your knowledge base by turning the corrections of a session into short rules. You read them, you choose which ones to keep, and they are stored in prompts/gen/learned.md, a file read at the start of every request.

You guide, /learn assistsYou correctthe assistant goes the wrong way/learn proposesa short, verifiable ruleYou validatenothing is written before this stepThe rule appliesin learned.md, read with every request
You correct, the command proposes, you validate: nothing is written before you agree.

What you type, what you see

A named command also becomes an interface shortcut. In the Tatami Agent development interface below, the Learn button sits beside the composer. Its tooltip explains the learning action: review the context, identify an error and propose a rule for the knowledge base. The conversation, command suggestions and interactive visualization remain visible around it: learning belongs to the same workspace where you exchange, inspect and guide the assistant. You can also type /learn in the composer to select the project command; choosing that suggestion alone neither starts work nor saves a rule.

Tatami Agent screen with the Learn button and its tooltip in the composer, the conversation and command suggestions on the left, and an interactive matrix visualization on the right
Development preview supplied on 8 November 2026: the Learn button and its tooltip, within Tatami Agent on the Tatami Core stack. The conversation and command controls show the working context; the interactive mathematics panel illustrates the workspace’s visual tools, not a result of /learn. View the larger screenshot.

This is a preview of Tatami Agent, the AI-KIDO LLM CLI interface under development. The public npm CLI of the method installs and updates the Memory Bank; it is a different tool. The same written command can guide an assistant that loads the AI-KIDO instructions, while each host provides its own interface.

After a session where you had to steer the assistant back, you type /learn, with a hint in quotes if you like. The assistant rereads the conversation, shows its proposals, then asks which ones to keep. The exchange below is an illustration.

  1. You
    /learn "I had to remind it to run the tests before pushing"
  2. Assistant
    I reread the session and I propose one rule: L-build-001, run the tests before pushing. It applies before any push to the main branch and asks to read the test result. Do you validate? y accepts all, n rejects all, 1 keeps rule 1, e1 rewords it.
  3. You
    y
  4. Assistant
    Rule stored in prompts/gen/learned.md. It will be read at the start of the next request.

What it looks for

Each finding carries a type, so a rule can say where it comes from. There are six: error, correction, preference, workflow, gap and conflict. Without --type, all of them are scanned.

  • 6learning types
  • 3steps: analyze, propose, commit
  • 40lines of rules at most in learned.md

What a rule looks like

Every rule has the same four parts: when it applies, what to do, how to check it, and why it exists. The example below is an illustration, not a rule from a real project.

markdown
### L-build-001 — Run the tests before pushing
- **When**: before any push to the main branch
- **Rule**: run the test command and read its result before pushing
- **Check**: the last test run in the session is green
- **Why**: a broken build reached the main branch (evidence: user correction)
An illustrative rule in the format used by learned.md.

Why the file stays small

learned.md is read at the start of every request, together with the fundamental rules, so it is kept cheap to read. Beyond 40 lines of rules, /learn moves the detail into scoped files that are opened only when their trigger words match the task.

Try it

  1. Install or update the method using the installation guide. /learn has shipped since 1.5.2; the rule file ships empty and updates preserve the rules you add.
  2. After a session where you corrected the assistant, run /learn --dry-run to see the proposals without writing anything.
  3. Read each proposed rule, then accept it, reword it or refuse it. Only the rules you validate are stored.
  4. Later, run /learn --review to confirm, retire or merge rules.