Repository navigation
v21.4.0
A minor release. The brain format (version: 8), bf.yaml and the queue format are unchanged; the search and read reply schemas gain two optional fields, generated and degraded, bf status replies gain a published schema, sensors may report what they missed, and the search cache rebuilds itself once because its format changed. Run bf skills DIR to update installed skills, and copy the example programs you use again from the release tag to get their changes. An existing brain can merge the new AGENTS.md template once to gain its ## Your rules heading and its instruction to load bf-use first (refresh brain instructions); nothing else needs an upgrade step. After a sensor reports incomplete, its run history no longer loads in 21.3.0 or earlier, so a downgrade loses that sensor's local run history.
Fixed
- A new assistant schedule no longer fails
bf status --checkbefore it is due. A schedule that has not run yet still showsfreshness: never, but joinsattentiononly once it is due, when watch would start it: amon–frischeduleat: "07:30"declared on Sunday evening stays out until Monday at 07:30. The watch dashboard counts it the same way. Sensors and routines with no success are due at once, as before. word*prefixes find words that English stemming shortens or respells.pay*now findspayment,key*findskeyboard,organi*findsorganizationandevaluat*findsévaluation; before, they matched nothing and showed inunmatched. A prefix of three or more letters adds the stems of up to 64 words it begins. The cache now counts each word that stemming changes beside its stem, and a refresh forgets a word once no note or record holds it, so the matches equal a full build's; hence the rebuild. The retrieval reference explains prefixes, folded accents, split elisions and irregular forms such aschevalandchevaux.- Documentation and skills. The assistant guide's gate examples use the shipped records gate instead of scripts you had to write, say a gate reads records through
bf export --kind items --scope memories/SOURCEfiltered onobserved, and saybf runnever runs a gate. Retry advice no longer relies on prompt text:idempotent: [schedule, wake]is safe only when the harness's arguments stop those runs from acting, because a retry reruns every tool the failed attempt used. The export reference's sample showsupdatedandobservedand says the export lists only single-value fields. The status, retrieval and skill references say a program thatneversucceeded needs attention once it is due.
Added
- Search results and exact reads mark assistant records with
"generated":true. The optional field, in both reply schemas, marks the model output of an assistant the brain'sbf.yamldeclares; to keep a retired assistant's records marked, leave it declared withenabled: false. Later text pages of a large record repeat it; listings leave it out. The MCP instructions, the retrieval reference and the bf-use evidence guide say never to cite such a record as the source of a fact: read what it cites. - New brains type parent items and labels.
bf initdeclares two more standard fields:part-of, from/attributes/parent_refs, andlabel, from/attributes/label_refs. The Drive folders, Gmail headers and GitHub issues example sensors print them: Drive parents asdrive:ID, the Gmail thread asgmail-thread:THREAD, Gmail labels asgmail-label:IDand GitHub labels as lowercaselabel:github.com/OWNER/REPO/NAME. Their existing links andlabelsattributes stay. An older brain declares the two fields underfields:to use them, as each sensor's header shows. bf initlinks new files to their editor schemas. A newbf.yamlandevals/retrieval.yamlcarry a# yaml-language-server: $schema=line naming the schema published with the installed release, so editors flag a misspelled key, such asrefesh, as you type. Only the editor downloads the schema; BF stays offline. An older brain can add the line by hand, with the versionbf --versionnames (editor schemas).- New brains keep your agent rules apart from BF's guidance.
bf initendsAGENTS.mdwith a## Your rulesheading. A refresh replaces only the text above it, so a diff against a scratchbf initcopy shows your rules as additions. - The sensor kit reads credentials with
secret(path). It returns the content of a regular file you own and only you can read, such as with mode 600, outside the brain and at most 64 KiB, without its trailing newline. It refuses links, shared permissions and files insideBF_BRAIN, and its errors never quote the content. Credentials ranks the options: a provider CLI login, a private file passed by path, then the OS keyring for interactive sessions only. A recipe sets per-program variables, such as a provider account, withenv, and the service guide warns that systemd and launchd units set onlyPATH, so shell profile variables are absent there. - A copy-in records gate for event-driven assistants.
examples/routines/records-gate.pyreports, once, each record a source gained or changed since the schedule's last check, named by itsbf://address, so your harness runs only when evidence changed. It streamsbf export --kind items --scope memories/SOURCE(bf 21.3.0 or later), filters single-value fields with--where FIELD=VALUEand fails closed without quoting records; its guide measures the cost of a check and lists its limits. The four-tool walkthrough adds a gatedwatcher: its stand-in harness answers once for the first collection, a recheck that finds nothing starts no harness, and the harness answers again after the Jira change. From a checkout, it now puts the checkout's.venv/binfirst on PATH instead of usinguv run --project. - The assistant guide starts small and separates proposing from acting. Start with one assistant sets up a weekday morning brief with a read-only harness, posted through the new send-only desktop adapter,
examples/channels/channels/desktop.py, which shows each message withnotify-sendorosascriptand passes the text only as arguments, never as script code; process listings show those arguments while the notifier runs. Propose, then act splits an assistant into a read-onlyscoutthat posts numbered proposals and anactorwith wider permissions that answers your reply, such asdo 2; the messaging example runs both offline. With one assistant,examples/prompts/routines/harness.pyadds the arguments you name only whenBF_TRIGGERisinput, so other runs keep the narrower command. Review what a run changed matchesbf queuejob times to the brain's Git history. - Trust boundaries and team reviews. Privacy and security separates what BF enforces from what your channel adapters, agent harness and reviews must enforce, for the owner, admitted senders, teammates, provider content, the harness and MCP hosts; SECURITY.md links it. Team setup replaces
git pullwith fetch, review, thengit merge --ff-onlyof exactly the reviewed commit, listing every incoming change except notes and records and every agent instruction file. It also explains how to give a cloud agent only a team brain. Connect an agent with MCP adds goose and explains why BF serves only local stdio withsearchandread. - Brain-local workflow skills. Add your own workflow skills covers the
skills/NAME/SKILL.mdlayout, lookups through the installedbf, per-machine links into a host folder kept out of Git and theskills-refvalidator.examples/brain/skills/weekly-review/shows one. - Reference pages for newcomers. Versioning and stability says what each kind of release may change and when the brain format
versionmoves. Core concepts maps terms from other assistants, such as connector, memory and trigger, to BF, and the glossary gains Gate, Harness, Mode, Ontology, Post, Queue, Routine, Schedule, Wake and Watch. The schema page calls the field vocabulary the ontology, keeps its old anchor and maps ontology terms to BF, stating that BF runs no reasoner. Linking knowledge adds recipes for people, organizations and aconcepts/me.mdhub, and getting started points Windows users to WSL2. - Governance.
GOVERNANCE.mdnames the maintainer and says how to propose a change. It lists each scope decision with its reason and the evidence that would reopen it, and the breaks held for the next major release. Contributing adds a pull request policy, maps each area to its files and focused tests, and states thatbf.*Python modules are internal and may change in any release. The feature request form asks which scope decision a request crosses. - Sensors can report what they missed instead of failing. A sensor may print
{"records": [...], "incomplete": {"missed": 1, "of": 3}}: BF saves the records, removes none that run (snapshots andexpire_afterwait for a complete run; forgotten records still leave) and repeatsincompletein the reply.bf status, search coverage andmemoriespages show"degraded": {"runs", "missed", "of"}; after three incomplete runs in a row a scheduled source joinsattention, which failsbf status --checkand shows inbf watch. The kit'semit(records, missed=, of=)prints it (report partial coverage). bf statusreplies have a published schema.bf schema --kind status-replyprints it, anddocs/status-reply.schema.jsonjoins the major-21 contract, so scripts that parsebf statuscan validate it.
Changed
bf.yamlmistakes read plainly. An unknown key readsunknown keyand names the closest keys allowed at its place, such assensors.brief.refesh: unknown key; did you mean refresh?, instead ofExtra inputs are not permitted; evaluation suites and the registry do the same. A malformedat,pathorcommandsays what it expects, such asexpected HH:MM such as 08:00, instead of a raw pattern. Values are never quoted, and provider output keeps its redacted messages. Thebf.yamlschema now describes every key, so editors also show help for channels, assistant inputs and schedules.- The Git history sensor and the session hook recognize repositories on any host.
examples/sensors/git-history.pyandexamples/hooks/session-context.pylinkhttps://HOST/OWNER/NAME,ssh://git@HOST/OWNER/NAMEandgit@HOST:OWNER/NAMEremotes as lowercaserepo:HOST/OWNER/NAME, instead of github.com only. A remote with a token or another user, a port, a nested group or an ssh alias without a dot gets no identity, so no credential reaches a record or the session context. GitHub identities are unchanged; copy the hook again to use this. - Skills and brain instructions. bf-use names "what needs my attention" and "brief me" and starts those answers from
bf read. bf-maintain points to the credentials order, the records gate, choosing inputs, propose-then-act, reviewing what a run changed and the## Your rulesrefresh. The generatedAGENTS.mdasks agents to loadbf-usebefore answering, keeping its steps for hosts without skills, says the same in fewer words and describesbf readas showing what needs attention; in the skill evaluation (sonnet, 5 trials per case), the five cases 21.3.0 also has pass 23 of 25 trials instead of 15 of 25, both new cases pass 5 of 5, and every read question now loadsbf-use. The example brain'sAGENTS.mdis now the generated starter plus one local rule, so skill evaluations load what a new brain loads. - The sample assistant prompt and the full configuration act more carefully. On schedules and wakes, the prompt speaks only when a decision, deadline or conflict needs you within two days; it runs only
bf readandbf search, drafts anything else and asks for a wake only for a dated follow-up. The offline example's prompt gains the same rules. The full configuration no longer answers an inbox: mail arrives through a sensor and a records gate, and answers go to your own chat. Choose inputs says to declare a channel as an input only when every sender its adapter admits may read what the harness can read. - Positioning and package metadata. The README, the documentation home and the PyPI summary open with one sentence: a local-first brain for you and your AI agents, in plain files you own, connected through an ontology you declare, searched offline and able to wake your harness when a gate you review finds an event. The README adds three differentiators and a "Let your agent come to you" section. PyPI gains keywords such as
knowledge-graphandontology, an audience, two topics and a link to the security policy. - Repository checks. The scale benchmark times a
prefixsearch and reportscache_bytes, the size of a fresh full build. The skill evaluation gains two cases, an instruction planted in a note and an attention brief, and awritesetup step confined to the trial brain; the release checklist asks for before-and-after evaluation summaries when a packaged skill changes.