Memory
Bravebot keeps two kinds of thing for you across sessions, and treats them differently on purpose.
- Rules are instructions. Every rule is loaded in full, every turn, and is never dropped to save tokens or ranked against anything.
- Facts are things worth knowing. They are looked up when a question calls for one, and the few that match your prompt closely are put in front of the planner as background, not as instructions.
Both live under ~/.bravebot, so both are trusted for sitting there, and neither is ever written from
content nobody vouched for.
Rules
A rule comes from one of three layers, read in this order:
| Layer | File | Applies to |
|---|---|---|
| home | ~/.bravebot/AGENTS.md | every project |
| per project | ~/.bravebot/projects/<id>/rules.md | the project you are in |
| project | the project's own AGENTS.md | that project |
Where your file and the project's disagree, the project's wins, and the system prompt says so. The project is named by its origin once you have vouched for the workspace, and by its path before. See Instructions for how the files are found and sized.
The planner can propose a rule with propose_rule. You are
asked, shown the text, the file and the reason, and only your yes writes it. You can type your own
wording instead. Each rule is one line, - <text> (<date>) why: <reason>, and /undo takes it back.
You can also edit either file by hand.
A home rule is written only to a file spelled exactly AGENTS.md, the only spelling read as your
rules. Where ~/.bravebot holds agents.md or another spelling instead, what happens depends on
the volume. On one that tells upper and lower case apart, AGENTS.md is made beside it and the rule
is written there. On one that does not, such as a default macOS volume, you are not asked, nothing
is written, and you are told to rename the file to AGENTS.md.
A rule is never promoted from a fact. If a fact deserves to be a rule, say so, or approve the planner's proposal.
Facts
A fact is one markdown file, ~/.bravebot/projects/<id>/facts/<key>.md for one project or
~/.bravebot/facts/<key>.md for all of them, with a few lines of front matter at the top: who asked for
it (source), whether it is public or private, when it was saved and last verified, and the key
of any fact that replaced it. A fact holds one thing. You can write or edit them by hand; a file with
the front matter missing is read as an agent's, private fact.
The planner saves one with remember and looks one up with
recall. Saving again under the same key replaces the text and
marks it verified today. A fact the planner learned from a private context is private, and reading
a private fact makes the rest of the turn private, so it cannot be sent to a public surface. A fact
you write by hand with source: person is never overwritten by the planner.
Before a turn that plans, your prompt is ranked against your facts, and up to three that match strongly on at least two distinct words are put in the system prompt, each with its key and verified date, once per session. A short prompt or a slash command injects nothing. Delegates are given no facts.
Looking at what is kept
/memory lists the rule files and each fact, with its key, scope,
source, label, verified date and whether another replaced it. It never shows a fact's text.
Incognito
An incognito session saves no fact, proposes no rule and makes no project directory. It still reads your rules and facts, so it behaves as you configured.