Learn something
crbro_learnStore facts, decisions, patterns, preferences, errors, or debts in persistent memory, creating neurons as needed and superseding outdated facts to keep knowledge accurate.
Instructions
Write: store a fact, decision, pattern, preference, error or debt on a topic; the neuron is created if missing (or pass neuron_id). Stage 1 of the lifecycle: a new truth that REPLACES an old one → crbro_learn with supersedes (one call does both); to retire with no replacement use crbro_revise; to delete from disk use crbro_forget. crbro_recall first — it may already exist. The same fact text again is not duplicated: keywords merge (or keywords_replace) and a changed confidence applies (updated_in_place); text matching a retired fact or entry is refused with skipped_retired. Decisions always append; preferences never leave this machine. Credentials are replaced with a marker and listed in redacted — crbro_secret them, record only the name. Returns neuron_id, action, superseded count, near_duplicates (stored anyway; retire the old telling), supersedes_unmatched (still live) and totals.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | error = a mistake plus its correction, in one entry. debt = a deliberate deferral: what was NOT done on purpose, its ceiling, and the revisit condition, e.g. "DEFERRED: protecting the PDFs. CEILING: anyone can download them without signing up. REVISIT WHEN: the signup flow works." | |
| topic | Yes | Topic name, e.g. "OctoChat", "Firebase", "SEO Strategy". | |
| domain | No | Domain, e.g. "proyectos-web". Applied when the neuron is created; on an existing neuron it only replaces the default "general" (crbro_revise domain replaces it unconditionally). | |
| content | Yes | The knowledge itself. Dense and self-contained: it is recalled without this conversation as context. | |
| keywords | No | Facts only. 2-5 words a future question may use that the text does not contain: synonyms, the other language, the generic name of the product named. Indexed with the fact, never shown. The same text again with new keywords merges them. | |
| neuron_id | No | Exact neuron id from crbro_recall, e.g. "project_octochat". Skips name matching entirely. | |
| rationale | No | Why the decision was taken. Stored and indexed with it; ignored for other types. | |
| confidence | No | 0.0-1.0, default 1.0. Facts only. On an exact-duplicate active fact the stored confidence is updated to this value (updated_in_place:true). | |
| supersedes | No | Facts this one replaces: their ids or exact text. They leave recall but stay in the file. Unmatched targets are reported and stay live. | |
| keywords_replace | No | When the exact fact text already exists, replace its stored keywords with `keywords` instead of merging (default false). Teammates in a shared space only ever receive the union. |