brain-framework 12.0.2__tar.gz → 14.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- brain_framework-14.0.0/PKG-INFO +190 -0
- brain_framework-14.0.0/README.md +162 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/THIRD_PARTY_NOTICES.md +28 -28
- {brain_framework-12.0.2 → brain_framework-14.0.0}/pyproject.toml +17 -16
- {brain_framework-12.0.2 → brain_framework-14.0.0}/pyproject.toml.orig +27 -14
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/__init__.py +2 -2
- brain_framework-14.0.0/src/bf/cli.py +581 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/collect.py +162 -133
- brain_framework-14.0.0/src/bf/config.py +383 -0
- brain_framework-14.0.0/src/bf/evaluate.py +247 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/graph.py +24 -13
- brain_framework-14.0.0/src/bf/health.py +205 -0
- brain_framework-14.0.0/src/bf/history.py +105 -0
- brain_framework-14.0.0/src/bf/index.py +859 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/links.py +52 -6
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/markdown.py +167 -58
- brain_framework-14.0.0/src/bf/mcp.py +112 -0
- brain_framework-14.0.0/src/bf/models.py +677 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/ontology.py +41 -15
- brain_framework-14.0.0/src/bf/pages.py +867 -0
- brain_framework-14.0.0/src/bf/records.py +306 -0
- brain_framework-14.0.0/src/bf/retrieve.py +353 -0
- brain_framework-14.0.0/src/bf/schedule.py +231 -0
- brain_framework-14.0.0/src/bf/schemas.py +16 -0
- brain_framework-14.0.0/src/bf/storage.py +371 -0
- brain_framework-14.0.0/src/bf/update.py +117 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/usage.py +6 -4
- brain_framework-14.0.0/src/bf/validate.py +223 -0
- brain_framework-14.0.0/src/bf/watch.py +695 -0
- brain_framework-14.0.0/src/bf/watch_settings.py +145 -0
- brain_framework-12.0.2/PKG-INFO +0 -198
- brain_framework-12.0.2/README.md +0 -171
- brain_framework-12.0.2/src/bf/cli.py +0 -320
- brain_framework-12.0.2/src/bf/config.py +0 -232
- brain_framework-12.0.2/src/bf/evaluate.py +0 -140
- brain_framework-12.0.2/src/bf/health.py +0 -176
- brain_framework-12.0.2/src/bf/index.py +0 -659
- brain_framework-12.0.2/src/bf/mcp.py +0 -56
- brain_framework-12.0.2/src/bf/models.py +0 -425
- brain_framework-12.0.2/src/bf/pages.py +0 -574
- brain_framework-12.0.2/src/bf/records.py +0 -280
- brain_framework-12.0.2/src/bf/retrieve.py +0 -290
- brain_framework-12.0.2/src/bf/storage.py +0 -240
- brain_framework-12.0.2/src/bf/update.py +0 -77
- brain_framework-12.0.2/src/bf/validate.py +0 -133
- {brain_framework-12.0.2 → brain_framework-14.0.0}/LICENSE +0 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/__main__.py +0 -0
- {brain_framework-12.0.2 → brain_framework-14.0.0}/src/bf/py.typed +0 -0
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: brain-framework
|
|
3
|
+
Version: 14.0.0
|
|
4
|
+
Summary: 🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies.
|
|
5
|
+
Keywords: ai,ai-agents,agent-memory,context-engineering,knowledge-management,local-first,mcp,model-context-protocol,python,second-brain
|
|
6
|
+
Author: Médéric Hurier
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
License-File: THIRD_PARTY_NOTICES.md
|
|
10
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
11
|
+
Classifier: Environment :: Console
|
|
12
|
+
Classifier: Operating System :: MacOS
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Programming Language :: Python :: 3
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
|
+
Classifier: Typing :: Typed
|
|
17
|
+
Requires-Dist: markdown-it-py>=4.2.0,<5
|
|
18
|
+
Requires-Dist: mcp>=2.1.1,<3
|
|
19
|
+
Requires-Dist: pydantic>=2.13.5,<3
|
|
20
|
+
Requires-Dist: pyyaml>=6.0.3,<7
|
|
21
|
+
Requires-Dist: rich>=15.0.0,<16
|
|
22
|
+
Requires-Dist: typer>=0.27.2,<1
|
|
23
|
+
Requires-Python: >=3.14
|
|
24
|
+
Project-URL: Documentation, https://fmind.github.io/brain-framework/
|
|
25
|
+
Project-URL: Issues, https://github.com/fmind/brain-framework/issues
|
|
26
|
+
Project-URL: Repository, https://github.com/fmind/brain-framework
|
|
27
|
+
Description-Content-Type: text/markdown
|
|
28
|
+
|
|
29
|
+
<p align="center">
|
|
30
|
+
<img
|
|
31
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-framework.svg"
|
|
32
|
+
alt="Brain Framework: an exposed brain in an opening shell above twin aperture eyes"
|
|
33
|
+
width="256"
|
|
34
|
+
height="256"
|
|
35
|
+
>
|
|
36
|
+
</p>
|
|
37
|
+
|
|
38
|
+
# Brain Framework 🧠
|
|
39
|
+
|
|
40
|
+
**Reusable context for you and your AI agents.** Collect information from your tools, connect it to your decisions and pick up work with the evidence at hand.
|
|
41
|
+
|
|
42
|
+
🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies.
|
|
43
|
+
|
|
44
|
+
[](https://github.com/fmind/brain-framework/actions/workflows/ci.yml) [](https://pypi.org/project/brain-framework/) [](https://pypi.org/project/brain-framework/) [](https://github.com/fmind/brain-framework/blob/main/LICENSE)
|
|
45
|
+
|
|
46
|
+
Your meeting notes, issues and project decisions live in different places. Brain Framework (BF) brings selected information into a folder of Markdown notes and source records you own. Search it across sessions, trace decisions to their sources and use the same context with different agents.
|
|
47
|
+
|
|
48
|
+
[Try it](https://github.com/fmind/brain-framework#try-it) · [Connect an agent](https://github.com/fmind/brain-framework#agents) · [Four-tool demo](https://fmind.github.io/brain-framework/docs/context-hub/) · [Documentation](https://fmind.github.io/brain-framework/)
|
|
49
|
+
|
|
50
|
+
## What can you do with it?
|
|
51
|
+
|
|
52
|
+
**Turn meeting notes into GitHub issues.** Collect Calendar event descriptions, then ask your agent:
|
|
53
|
+
|
|
54
|
+
> Turn today's meeting notes into GitHub issues in my chosen repository. Cite the source event for each issue.
|
|
55
|
+
|
|
56
|
+
BF supplies the saved notes; your agent uses `gh` to create the issues you authorize. Follow the [Calendar-to-issues example](https://fmind.github.io/brain-framework/docs/sensors/#from-meeting-notes-to-github-issues) for setup and prerequisites.
|
|
57
|
+
|
|
58
|
+
| When you need to… | BF helps you… |
|
|
59
|
+
| ----------------------- | ------------------------------------------------------------------- |
|
|
60
|
+
| Resume a project | Find the last verified outcome and next step. |
|
|
61
|
+
| Explain a decision | Read the original reasoning and linked evidence. |
|
|
62
|
+
| Check work across tools | Follow explicit connections between briefs, issues and deployments. |
|
|
63
|
+
| Reuse what worked | Keep lessons in notes that any editor or agent can read. |
|
|
64
|
+
|
|
65
|
+
See the [runnable four-tool demo](https://github.com/fmind/brain-framework/tree/main/examples/context-hub): GitHub says the implementation is merged and Gcloud shows a healthy preview, but Jira still blocks launch on accessibility review. Reading all four sources explains what remains. The records are fictional; the collection and retrieval are runnable locally. The [examples index](https://github.com/fmind/brain-framework/tree/main/examples) also covers decision reviews, retrieval checks, hooks, routines, monitoring and team collaboration.
|
|
66
|
+
|
|
67
|
+
## Try it
|
|
68
|
+
|
|
69
|
+
Start with one decision you can find again. This walkthrough needs Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/), which installs the tested Python 3.14 if needed ([install details](https://fmind.github.io/brain-framework/docs/upgrades/#install)). No model or provider account is required.
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
uv tool install --python 3.14 brain-framework
|
|
73
|
+
bf init ~/brain
|
|
74
|
+
cd ~/brain
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
If `bf` is not on PATH, run `uv tool update-shell` and open a new shell. You can choose another empty folder instead of `~/brain`.
|
|
78
|
+
|
|
79
|
+
Create `projects/new-website.md` in your editor, or ask your agent to save this fictional decision. Use today's date for `updated`:
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
---
|
|
83
|
+
type: project
|
|
84
|
+
status: draft
|
|
85
|
+
updated: 2026-09-27
|
|
86
|
+
summary: Launch a product website that helps visitors understand the product.
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
# New website
|
|
90
|
+
|
|
91
|
+
## Decision
|
|
92
|
+
|
|
93
|
+
Start with a single product page because visitors need a clear explanation before signing up.
|
|
94
|
+
|
|
95
|
+
## Next actions
|
|
96
|
+
|
|
97
|
+
- [ ] Draft the product page.
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Find the reason, read its source and check the brain:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
bf search "visitors clear explanation"
|
|
104
|
+
bf read projects/new-website.md#decision
|
|
105
|
+
bf validate
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
Search returns this match in `items` (other fields omitted):
|
|
109
|
+
|
|
110
|
+
```json
|
|
111
|
+
{ "ref": "projects/new-website.md#decision", "title": "New website — Decision" }
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
`read` returns the original Decision section; validation reports `"valid":true`. Edit the note and search again: BF notices changes automatically. You now have a decision an agent can find and cite.
|
|
115
|
+
|
|
116
|
+
The [getting-started guide](https://fmind.github.io/brain-framework/docs/getting-started/) continues with a local source, a schema mapping and a link from the decision to its evidence.
|
|
117
|
+
|
|
118
|
+
## Agents
|
|
119
|
+
|
|
120
|
+
Use the same brain with [Claude Code](https://code.claude.com/docs/en/overview), [Codex](https://openai.com/codex/), [GitHub Copilot](https://github.com/features/copilot) or another agent host.
|
|
121
|
+
|
|
122
|
+
| Your agent can… | Start with… |
|
|
123
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
124
|
+
| Run terminal commands | The `bf` CLI and the prompt below. No skill installation needed for this first task. |
|
|
125
|
+
| Use MCP tools | A stdio server running `bf mcp`, with explicit executable and brain paths. Follow [MCP setup](https://fmind.github.io/brain-framework/docs/mcp/). |
|
|
126
|
+
|
|
127
|
+
After the quickstart, give your terminal agent this prompt:
|
|
128
|
+
|
|
129
|
+
> Work in ~/brain and use the bf CLI. Find why we chose a single product page. Read the source, cite its ref and tell me the project's next action.
|
|
130
|
+
|
|
131
|
+
Check that it reads the decision and next actions, cites `projects/new-website.md#decision` and identifies “Draft the product page.” as the next task.
|
|
132
|
+
|
|
133
|
+
MCP exposes two read-only tools: `search` and `read`. For ongoing use, install the optional [workflow skills](https://github.com/fmind/brain-framework/blob/main/skills/README.md): `bf-use` for retrieval, `bf-action` to track work and `bf-learn` to retain verified outcomes. See the [agent guide](https://fmind.github.io/brain-framework/docs/agents/) for setup and examples.
|
|
134
|
+
|
|
135
|
+
## How it works
|
|
136
|
+
|
|
137
|
+
**Gather → normalize → organize and connect → act → learn.** Sensors collect selected evidence; configured mappings give sources shared fields and explicit relationships. You and your agents use that context to do work, then keep the outcome and next step in the brain.
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
brain/
|
|
141
|
+
├── bf.yaml # configuration and source mappings
|
|
142
|
+
├── projects/ # what you're working on and why
|
|
143
|
+
├── concepts/ # what you've learned and can reuse
|
|
144
|
+
├── actions/ # work to start, resume and review
|
|
145
|
+
└── memories/ # evidence gathered from your sources
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Notes are Markdown with structured metadata; each collected record is a JSON file. Open them in any editor and use Git for history. The local search cache is disposable. See the [file conventions](https://fmind.github.io/brain-framework/docs/brain/).
|
|
149
|
+
|
|
150
|
+
[Links and backlinks](https://fmind.github.io/brain-framework/docs/links/) connect decisions to evidence. Keep personal and shared context in separate [team brains](https://fmind.github.io/brain-framework/docs/team/), and search related brains together. Identities and relationship meanings are explicit; BF never guesses them from similar names.
|
|
151
|
+
|
|
152
|
+
## Bring your tools
|
|
153
|
+
|
|
154
|
+
A **sensor** is a small script that reads a CLI, API or file and prints JSON records. BF validates, maps and saves them. Start with the reviewed examples or write a script for another source:
|
|
155
|
+
|
|
156
|
+
| Source | Starting point |
|
|
157
|
+
| ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
158
|
+
| Local files, highlights and Git | [Document](https://github.com/fmind/brain-framework/blob/main/examples/sensors/local-documents.py), [highlight](https://github.com/fmind/brain-framework/blob/main/examples/sensors/highlights.py) and [Git history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/git-history.py) sensors. |
|
|
159
|
+
| Google Calendar and Drive | [Calendar](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-calendar.py) and [Drive folder catalog](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-drive-folders.py) sensors using [`gws`](https://github.com/googleworkspace/cli). |
|
|
160
|
+
| GitHub, Jira, Confluence and Google Cloud | Write a sensor using [`gh`](https://cli.github.com/), [`acli`](https://developer.atlassian.com/cloud/acli/), [`gcloud`](https://cloud.google.com/sdk/gcloud) or their APIs. |
|
|
161
|
+
|
|
162
|
+
Start with [one local source](https://fmind.github.io/brain-framework/docs/getting-started/#collect-your-first-source); use [schema mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings) to connect sources. Provider tools handle authentication; your script selects what to collect.
|
|
163
|
+
|
|
164
|
+
After reviewing your sensors, run `bf watch` to keep sources refreshed and see recent changes. See [Watch and schedule updates](https://fmind.github.io/brain-framework/docs/schedule/) for timing, desktop alerts and optional native schedules.
|
|
165
|
+
|
|
166
|
+
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
|
|
167
|
+
<img
|
|
168
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg"
|
|
169
|
+
alt="Watch dashboard for the fictional offline demo: five sensors sorted by state, with a failed sensor's details beside their last success, next due time, item count and record changes."
|
|
170
|
+
width="720"
|
|
171
|
+
>
|
|
172
|
+
</a>
|
|
173
|
+
|
|
174
|
+
The dashboard above shows the fictional [offline terminal demo](https://github.com/fmind/brain-framework/tree/main/examples/watch), which runs without provider accounts.
|
|
175
|
+
|
|
176
|
+
## Fit and limits
|
|
177
|
+
|
|
178
|
+
BF fits projects where decisions and evidence need to survive a chat session. Start with one recurring question and the sources needed to answer it.
|
|
179
|
+
|
|
180
|
+
- **Your files, your control.** BF sends no telemetry or personal data to us. A connected cloud agent may send what it reads to its provider; see [privacy and security](https://fmind.github.io/brain-framework/docs/privacy/).
|
|
181
|
+
- **Offline retrieval.** Search and read never contact providers or run sensors. Refresh sources explicitly when you need newer evidence; incomplete retrieval is reported.
|
|
182
|
+
- **People and agents supply the judgment.** BF uses word search and explicit identities, runs no model and does not learn automatically from conversations. Keep notes current as work changes.
|
|
183
|
+
|
|
184
|
+
## Next steps
|
|
185
|
+
|
|
186
|
+
- [Browse the commands](https://fmind.github.io/brain-framework/docs/commands/) for home pages, tasks, freshness and retrieval checks.
|
|
187
|
+
- [Share a team brain](https://fmind.github.io/brain-framework/docs/team/) or [run a pilot](https://fmind.github.io/brain-framework/docs/pilot/) on your own work.
|
|
188
|
+
- [Report an issue](https://github.com/fmind/brain-framework/issues) or [contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md).
|
|
189
|
+
|
|
190
|
+
[MIT licensed](https://github.com/fmind/brain-framework/blob/main/LICENSE) · [Third-party notices](https://github.com/fmind/brain-framework/blob/main/THIRD_PARTY_NOTICES.md)
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img
|
|
3
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-framework.svg"
|
|
4
|
+
alt="Brain Framework: an exposed brain in an opening shell above twin aperture eyes"
|
|
5
|
+
width="256"
|
|
6
|
+
height="256"
|
|
7
|
+
>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
# Brain Framework 🧠
|
|
11
|
+
|
|
12
|
+
**Reusable context for you and your AI agents.** Collect information from your tools, connect it to your decisions and pick up work with the evidence at hand.
|
|
13
|
+
|
|
14
|
+
🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies.
|
|
15
|
+
|
|
16
|
+
[](https://github.com/fmind/brain-framework/actions/workflows/ci.yml) [](https://pypi.org/project/brain-framework/) [](https://pypi.org/project/brain-framework/) [](https://github.com/fmind/brain-framework/blob/main/LICENSE)
|
|
17
|
+
|
|
18
|
+
Your meeting notes, issues and project decisions live in different places. Brain Framework (BF) brings selected information into a folder of Markdown notes and source records you own. Search it across sessions, trace decisions to their sources and use the same context with different agents.
|
|
19
|
+
|
|
20
|
+
[Try it](https://github.com/fmind/brain-framework#try-it) · [Connect an agent](https://github.com/fmind/brain-framework#agents) · [Four-tool demo](https://fmind.github.io/brain-framework/docs/context-hub/) · [Documentation](https://fmind.github.io/brain-framework/)
|
|
21
|
+
|
|
22
|
+
## What can you do with it?
|
|
23
|
+
|
|
24
|
+
**Turn meeting notes into GitHub issues.** Collect Calendar event descriptions, then ask your agent:
|
|
25
|
+
|
|
26
|
+
> Turn today's meeting notes into GitHub issues in my chosen repository. Cite the source event for each issue.
|
|
27
|
+
|
|
28
|
+
BF supplies the saved notes; your agent uses `gh` to create the issues you authorize. Follow the [Calendar-to-issues example](https://fmind.github.io/brain-framework/docs/sensors/#from-meeting-notes-to-github-issues) for setup and prerequisites.
|
|
29
|
+
|
|
30
|
+
| When you need to… | BF helps you… |
|
|
31
|
+
| ----------------------- | ------------------------------------------------------------------- |
|
|
32
|
+
| Resume a project | Find the last verified outcome and next step. |
|
|
33
|
+
| Explain a decision | Read the original reasoning and linked evidence. |
|
|
34
|
+
| Check work across tools | Follow explicit connections between briefs, issues and deployments. |
|
|
35
|
+
| Reuse what worked | Keep lessons in notes that any editor or agent can read. |
|
|
36
|
+
|
|
37
|
+
See the [runnable four-tool demo](https://github.com/fmind/brain-framework/tree/main/examples/context-hub): GitHub says the implementation is merged and Gcloud shows a healthy preview, but Jira still blocks launch on accessibility review. Reading all four sources explains what remains. The records are fictional; the collection and retrieval are runnable locally. The [examples index](https://github.com/fmind/brain-framework/tree/main/examples) also covers decision reviews, retrieval checks, hooks, routines, monitoring and team collaboration.
|
|
38
|
+
|
|
39
|
+
## Try it
|
|
40
|
+
|
|
41
|
+
Start with one decision you can find again. This walkthrough needs Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/), which installs the tested Python 3.14 if needed ([install details](https://fmind.github.io/brain-framework/docs/upgrades/#install)). No model or provider account is required.
|
|
42
|
+
|
|
43
|
+
```bash
|
|
44
|
+
uv tool install --python 3.14 brain-framework
|
|
45
|
+
bf init ~/brain
|
|
46
|
+
cd ~/brain
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
If `bf` is not on PATH, run `uv tool update-shell` and open a new shell. You can choose another empty folder instead of `~/brain`.
|
|
50
|
+
|
|
51
|
+
Create `projects/new-website.md` in your editor, or ask your agent to save this fictional decision. Use today's date for `updated`:
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
---
|
|
55
|
+
type: project
|
|
56
|
+
status: draft
|
|
57
|
+
updated: 2026-09-27
|
|
58
|
+
summary: Launch a product website that helps visitors understand the product.
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
# New website
|
|
62
|
+
|
|
63
|
+
## Decision
|
|
64
|
+
|
|
65
|
+
Start with a single product page because visitors need a clear explanation before signing up.
|
|
66
|
+
|
|
67
|
+
## Next actions
|
|
68
|
+
|
|
69
|
+
- [ ] Draft the product page.
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
Find the reason, read its source and check the brain:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
bf search "visitors clear explanation"
|
|
76
|
+
bf read projects/new-website.md#decision
|
|
77
|
+
bf validate
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Search returns this match in `items` (other fields omitted):
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
{ "ref": "projects/new-website.md#decision", "title": "New website — Decision" }
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
`read` returns the original Decision section; validation reports `"valid":true`. Edit the note and search again: BF notices changes automatically. You now have a decision an agent can find and cite.
|
|
87
|
+
|
|
88
|
+
The [getting-started guide](https://fmind.github.io/brain-framework/docs/getting-started/) continues with a local source, a schema mapping and a link from the decision to its evidence.
|
|
89
|
+
|
|
90
|
+
## Agents
|
|
91
|
+
|
|
92
|
+
Use the same brain with [Claude Code](https://code.claude.com/docs/en/overview), [Codex](https://openai.com/codex/), [GitHub Copilot](https://github.com/features/copilot) or another agent host.
|
|
93
|
+
|
|
94
|
+
| Your agent can… | Start with… |
|
|
95
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
96
|
+
| Run terminal commands | The `bf` CLI and the prompt below. No skill installation needed for this first task. |
|
|
97
|
+
| Use MCP tools | A stdio server running `bf mcp`, with explicit executable and brain paths. Follow [MCP setup](https://fmind.github.io/brain-framework/docs/mcp/). |
|
|
98
|
+
|
|
99
|
+
After the quickstart, give your terminal agent this prompt:
|
|
100
|
+
|
|
101
|
+
> Work in ~/brain and use the bf CLI. Find why we chose a single product page. Read the source, cite its ref and tell me the project's next action.
|
|
102
|
+
|
|
103
|
+
Check that it reads the decision and next actions, cites `projects/new-website.md#decision` and identifies “Draft the product page.” as the next task.
|
|
104
|
+
|
|
105
|
+
MCP exposes two read-only tools: `search` and `read`. For ongoing use, install the optional [workflow skills](https://github.com/fmind/brain-framework/blob/main/skills/README.md): `bf-use` for retrieval, `bf-action` to track work and `bf-learn` to retain verified outcomes. See the [agent guide](https://fmind.github.io/brain-framework/docs/agents/) for setup and examples.
|
|
106
|
+
|
|
107
|
+
## How it works
|
|
108
|
+
|
|
109
|
+
**Gather → normalize → organize and connect → act → learn.** Sensors collect selected evidence; configured mappings give sources shared fields and explicit relationships. You and your agents use that context to do work, then keep the outcome and next step in the brain.
|
|
110
|
+
|
|
111
|
+
```text
|
|
112
|
+
brain/
|
|
113
|
+
├── bf.yaml # configuration and source mappings
|
|
114
|
+
├── projects/ # what you're working on and why
|
|
115
|
+
├── concepts/ # what you've learned and can reuse
|
|
116
|
+
├── actions/ # work to start, resume and review
|
|
117
|
+
└── memories/ # evidence gathered from your sources
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Notes are Markdown with structured metadata; each collected record is a JSON file. Open them in any editor and use Git for history. The local search cache is disposable. See the [file conventions](https://fmind.github.io/brain-framework/docs/brain/).
|
|
121
|
+
|
|
122
|
+
[Links and backlinks](https://fmind.github.io/brain-framework/docs/links/) connect decisions to evidence. Keep personal and shared context in separate [team brains](https://fmind.github.io/brain-framework/docs/team/), and search related brains together. Identities and relationship meanings are explicit; BF never guesses them from similar names.
|
|
123
|
+
|
|
124
|
+
## Bring your tools
|
|
125
|
+
|
|
126
|
+
A **sensor** is a small script that reads a CLI, API or file and prints JSON records. BF validates, maps and saves them. Start with the reviewed examples or write a script for another source:
|
|
127
|
+
|
|
128
|
+
| Source | Starting point |
|
|
129
|
+
| ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
130
|
+
| Local files, highlights and Git | [Document](https://github.com/fmind/brain-framework/blob/main/examples/sensors/local-documents.py), [highlight](https://github.com/fmind/brain-framework/blob/main/examples/sensors/highlights.py) and [Git history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/git-history.py) sensors. |
|
|
131
|
+
| Google Calendar and Drive | [Calendar](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-calendar.py) and [Drive folder catalog](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-drive-folders.py) sensors using [`gws`](https://github.com/googleworkspace/cli). |
|
|
132
|
+
| GitHub, Jira, Confluence and Google Cloud | Write a sensor using [`gh`](https://cli.github.com/), [`acli`](https://developer.atlassian.com/cloud/acli/), [`gcloud`](https://cloud.google.com/sdk/gcloud) or their APIs. |
|
|
133
|
+
|
|
134
|
+
Start with [one local source](https://fmind.github.io/brain-framework/docs/getting-started/#collect-your-first-source); use [schema mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings) to connect sources. Provider tools handle authentication; your script selects what to collect.
|
|
135
|
+
|
|
136
|
+
After reviewing your sensors, run `bf watch` to keep sources refreshed and see recent changes. See [Watch and schedule updates](https://fmind.github.io/brain-framework/docs/schedule/) for timing, desktop alerts and optional native schedules.
|
|
137
|
+
|
|
138
|
+
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
|
|
139
|
+
<img
|
|
140
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg"
|
|
141
|
+
alt="Watch dashboard for the fictional offline demo: five sensors sorted by state, with a failed sensor's details beside their last success, next due time, item count and record changes."
|
|
142
|
+
width="720"
|
|
143
|
+
>
|
|
144
|
+
</a>
|
|
145
|
+
|
|
146
|
+
The dashboard above shows the fictional [offline terminal demo](https://github.com/fmind/brain-framework/tree/main/examples/watch), which runs without provider accounts.
|
|
147
|
+
|
|
148
|
+
## Fit and limits
|
|
149
|
+
|
|
150
|
+
BF fits projects where decisions and evidence need to survive a chat session. Start with one recurring question and the sources needed to answer it.
|
|
151
|
+
|
|
152
|
+
- **Your files, your control.** BF sends no telemetry or personal data to us. A connected cloud agent may send what it reads to its provider; see [privacy and security](https://fmind.github.io/brain-framework/docs/privacy/).
|
|
153
|
+
- **Offline retrieval.** Search and read never contact providers or run sensors. Refresh sources explicitly when you need newer evidence; incomplete retrieval is reported.
|
|
154
|
+
- **People and agents supply the judgment.** BF uses word search and explicit identities, runs no model and does not learn automatically from conversations. Keep notes current as work changes.
|
|
155
|
+
|
|
156
|
+
## Next steps
|
|
157
|
+
|
|
158
|
+
- [Browse the commands](https://fmind.github.io/brain-framework/docs/commands/) for home pages, tasks, freshness and retrieval checks.
|
|
159
|
+
- [Share a team brain](https://fmind.github.io/brain-framework/docs/team/) or [run a pilot](https://fmind.github.io/brain-framework/docs/pilot/) on your own work.
|
|
160
|
+
- [Report an issue](https://github.com/fmind/brain-framework/issues) or [contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md).
|
|
161
|
+
|
|
162
|
+
[MIT licensed](https://github.com/fmind/brain-framework/blob/main/LICENSE) · [Third-party notices](https://github.com/fmind/brain-framework/blob/main/THIRD_PARTY_NOTICES.md)
|
|
@@ -507,15 +507,15 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
|
507
507
|
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
508
508
|
```
|
|
509
509
|
|
|
510
|
-
## httpcore2 2.
|
|
510
|
+
## httpcore2 2.13.1
|
|
511
511
|
|
|
512
512
|
Source: <https://github.com/pydantic/httpx2/blob/main/src/httpcore2>
|
|
513
513
|
|
|
514
514
|
License: `BSD-3-Clause`
|
|
515
515
|
|
|
516
|
-
Evidence: `httpcore2-2.
|
|
516
|
+
Evidence: `httpcore2-2.13.1.dist-info/licenses/LICENSE.md`
|
|
517
517
|
|
|
518
|
-
### httpcore2-2.
|
|
518
|
+
### httpcore2-2.13.1.dist-info/licenses/LICENSE.md
|
|
519
519
|
|
|
520
520
|
```text
|
|
521
521
|
Copyright © 2026 to present Pydantic Services Inc. and individual contributors.
|
|
@@ -548,15 +548,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
548
548
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
549
549
|
```
|
|
550
550
|
|
|
551
|
-
## httpx2 2.
|
|
551
|
+
## httpx2 2.13.1
|
|
552
552
|
|
|
553
553
|
Source: <https://github.com/pydantic/httpx2>
|
|
554
554
|
|
|
555
555
|
License: `BSD-3-Clause`
|
|
556
556
|
|
|
557
|
-
Evidence: `httpx2-2.
|
|
557
|
+
Evidence: `httpx2-2.13.1.dist-info/licenses/LICENSE.md`
|
|
558
558
|
|
|
559
|
-
### httpx2-2.
|
|
559
|
+
### httpx2-2.13.1.dist-info/licenses/LICENSE.md
|
|
560
560
|
|
|
561
561
|
```text
|
|
562
562
|
Copyright © 2026 to present Pydantic Services Inc. and individual contributors.
|
|
@@ -574,15 +574,15 @@ Redistribution and use in source and binary forms, with or without modification,
|
|
|
574
574
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
575
575
|
```
|
|
576
576
|
|
|
577
|
-
## idna 3.
|
|
577
|
+
## idna 3.20
|
|
578
578
|
|
|
579
579
|
Source: <https://github.com/kjd/idna>
|
|
580
580
|
|
|
581
581
|
License: `BSD-3-Clause`
|
|
582
582
|
|
|
583
|
-
Evidence: `idna-3.
|
|
583
|
+
Evidence: `idna-3.20.dist-info/licenses/LICENSE.md`
|
|
584
584
|
|
|
585
|
-
### idna-3.
|
|
585
|
+
### idna-3.20.dist-info/licenses/LICENSE.md
|
|
586
586
|
|
|
587
587
|
```text
|
|
588
588
|
BSD 3-Clause License
|
|
@@ -745,15 +745,15 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
|
|
745
745
|
OTHER DEALINGS IN THE SOFTWARE.
|
|
746
746
|
```
|
|
747
747
|
|
|
748
|
-
## mcp 2.
|
|
748
|
+
## mcp 2.2.0
|
|
749
749
|
|
|
750
750
|
Source: <https://github.com/modelcontextprotocol/python-sdk>
|
|
751
751
|
|
|
752
752
|
License: `MIT`
|
|
753
753
|
|
|
754
|
-
Evidence: `mcp-2.
|
|
754
|
+
Evidence: `mcp-2.2.0.dist-info/licenses/LICENSE`
|
|
755
755
|
|
|
756
|
-
### mcp-2.
|
|
756
|
+
### mcp-2.2.0.dist-info/licenses/LICENSE
|
|
757
757
|
|
|
758
758
|
```text
|
|
759
759
|
MIT License
|
|
@@ -779,15 +779,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
779
779
|
SOFTWARE.
|
|
780
780
|
```
|
|
781
781
|
|
|
782
|
-
## mcp-types 2.
|
|
782
|
+
## mcp-types 2.2.0
|
|
783
783
|
|
|
784
784
|
Source: <https://github.com/modelcontextprotocol/python-sdk>
|
|
785
785
|
|
|
786
786
|
License: `MIT`
|
|
787
787
|
|
|
788
|
-
Evidence: `mcp_types-2.
|
|
788
|
+
Evidence: `mcp_types-2.2.0.dist-info/licenses/LICENSE`
|
|
789
789
|
|
|
790
|
-
### mcp_types-2.
|
|
790
|
+
### mcp_types-2.2.0.dist-info/licenses/LICENSE
|
|
791
791
|
|
|
792
792
|
```text
|
|
793
793
|
MIT License
|
|
@@ -872,15 +872,15 @@ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
|
|
872
872
|
IN THE SOFTWARE.
|
|
873
873
|
```
|
|
874
874
|
|
|
875
|
-
## opentelemetry-api 1.
|
|
875
|
+
## opentelemetry-api 1.45.0
|
|
876
876
|
|
|
877
877
|
Source: <https://github.com/open-telemetry/opentelemetry-python>
|
|
878
878
|
|
|
879
879
|
License: `Apache-2.0`
|
|
880
880
|
|
|
881
|
-
Evidence: `opentelemetry_api-1.
|
|
881
|
+
Evidence: `opentelemetry_api-1.45.0.dist-info/licenses/LICENSE`
|
|
882
882
|
|
|
883
|
-
### opentelemetry_api-1.
|
|
883
|
+
### opentelemetry_api-1.45.0.dist-info/licenses/LICENSE
|
|
884
884
|
|
|
885
885
|
```text
|
|
886
886
|
Apache License
|
|
@@ -1232,15 +1232,15 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
1232
1232
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1233
1233
|
```
|
|
1234
1234
|
|
|
1235
|
-
## pyjwt 2.
|
|
1235
|
+
## pyjwt 2.15.0
|
|
1236
1236
|
|
|
1237
1237
|
Source: <https://github.com/jpadilla/pyjwt>
|
|
1238
1238
|
|
|
1239
1239
|
License: `MIT`
|
|
1240
1240
|
|
|
1241
|
-
Evidence: `pyjwt-2.
|
|
1241
|
+
Evidence: `pyjwt-2.15.0.dist-info/licenses/LICENSE`
|
|
1242
1242
|
|
|
1243
|
-
### pyjwt-2.
|
|
1243
|
+
### pyjwt-2.15.0.dist-info/licenses/LICENSE
|
|
1244
1244
|
|
|
1245
1245
|
```text
|
|
1246
1246
|
The MIT License (MIT)
|
|
@@ -1675,15 +1675,15 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
1675
1675
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
1676
1676
|
```
|
|
1677
1677
|
|
|
1678
|
-
## starlette 1.
|
|
1678
|
+
## starlette 1.7.0
|
|
1679
1679
|
|
|
1680
1680
|
Source: <https://github.com/Kludex/starlette>
|
|
1681
1681
|
|
|
1682
1682
|
License: `BSD-3-Clause`
|
|
1683
1683
|
|
|
1684
|
-
Evidence: `starlette-1.
|
|
1684
|
+
Evidence: `starlette-1.7.0.dist-info/licenses/LICENSE.md`
|
|
1685
1685
|
|
|
1686
|
-
### starlette-1.
|
|
1686
|
+
### starlette-1.7.0.dist-info/licenses/LICENSE.md
|
|
1687
1687
|
|
|
1688
1688
|
```text
|
|
1689
1689
|
Copyright © 2018, [Encode OSS Ltd](https://www.encode.io/).
|
|
@@ -1755,7 +1755,7 @@ Source: <https://github.com/fastapi/typer>
|
|
|
1755
1755
|
|
|
1756
1756
|
License: `MIT`
|
|
1757
1757
|
|
|
1758
|
-
|
|
1758
|
+
The distribution vendors code adapted from Click in `typer/_click/`; its bundled `BSD-3-Clause` license is included below.
|
|
1759
1759
|
|
|
1760
1760
|
Evidence: `typer-0.27.2.dist-info/licenses/LICENSE`
|
|
1761
1761
|
|
|
@@ -2146,15 +2146,15 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
|
2146
2146
|
SOFTWARE.
|
|
2147
2147
|
```
|
|
2148
2148
|
|
|
2149
|
-
## uvicorn 0.
|
|
2149
|
+
## uvicorn 0.54.0
|
|
2150
2150
|
|
|
2151
2151
|
Source: <https://github.com/Kludex/uvicorn>
|
|
2152
2152
|
|
|
2153
2153
|
License: `BSD-3-Clause`
|
|
2154
2154
|
|
|
2155
|
-
Evidence: `uvicorn-0.
|
|
2155
|
+
Evidence: `uvicorn-0.54.0.dist-info/licenses/LICENSE.md`
|
|
2156
2156
|
|
|
2157
|
-
### uvicorn-0.
|
|
2157
|
+
### uvicorn-0.54.0.dist-info/licenses/LICENSE.md
|
|
2158
2158
|
|
|
2159
2159
|
```text
|
|
2160
2160
|
Copyright © 2017-present, [Encode OSS Ltd](https://www.encode.io/).
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "brain-framework"
|
|
3
|
-
version = "
|
|
4
|
-
description = "🧠 AI Brain Factory
|
|
3
|
+
version = "14.0.0"
|
|
4
|
+
description = "🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
7
7
|
license = "MIT"
|
|
@@ -10,15 +10,19 @@ license-files = [
|
|
|
10
10
|
"THIRD_PARTY_NOTICES.md",
|
|
11
11
|
]
|
|
12
12
|
keywords = [
|
|
13
|
+
"ai",
|
|
13
14
|
"ai-agents",
|
|
15
|
+
"agent-memory",
|
|
16
|
+
"context-engineering",
|
|
14
17
|
"knowledge-management",
|
|
15
18
|
"local-first",
|
|
16
19
|
"mcp",
|
|
20
|
+
"model-context-protocol",
|
|
21
|
+
"python",
|
|
17
22
|
"second-brain",
|
|
18
|
-
"plain-text",
|
|
19
23
|
]
|
|
20
24
|
classifiers = [
|
|
21
|
-
"Development Status ::
|
|
25
|
+
"Development Status :: 5 - Production/Stable",
|
|
22
26
|
"Environment :: Console",
|
|
23
27
|
"Operating System :: MacOS",
|
|
24
28
|
"Operating System :: POSIX :: Linux",
|
|
@@ -31,6 +35,7 @@ dependencies = [
|
|
|
31
35
|
"mcp>=2.1.1,<3",
|
|
32
36
|
"pydantic>=2.13.5,<3",
|
|
33
37
|
"pyyaml>=6.0.3,<7",
|
|
38
|
+
"rich>=15.0.0,<16",
|
|
34
39
|
"typer>=0.27.2,<1",
|
|
35
40
|
]
|
|
36
41
|
|
|
@@ -61,6 +66,7 @@ src = [
|
|
|
61
66
|
|
|
62
67
|
[tool.ruff.per-file-target-version]
|
|
63
68
|
"skills/*/scripts/*.py" = "py311"
|
|
69
|
+
"examples/**/*.py" = "py311"
|
|
64
70
|
|
|
65
71
|
[tool.ruff.format]
|
|
66
72
|
docstring-code-format = true
|
|
@@ -117,36 +123,31 @@ ignore = [
|
|
|
117
123
|
"T201",
|
|
118
124
|
]
|
|
119
125
|
|
|
120
|
-
[tool.
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
[tool.pytest.ini_options]
|
|
124
|
-
addopts = [
|
|
125
|
-
"-ra",
|
|
126
|
-
"--strict-config",
|
|
127
|
-
"--strict-markers",
|
|
128
|
-
]
|
|
126
|
+
[tool.pytest]
|
|
127
|
+
addopts = ["-ra"]
|
|
128
|
+
faulthandler_timeout = "120"
|
|
129
129
|
filterwarnings = ["error"]
|
|
130
|
+
strict = true
|
|
130
131
|
testpaths = ["tests"]
|
|
131
|
-
xfail_strict = true
|
|
132
132
|
|
|
133
133
|
[tool.coverage.run]
|
|
134
134
|
branch = true
|
|
135
135
|
source = ["bf"]
|
|
136
136
|
|
|
137
137
|
[tool.coverage.report]
|
|
138
|
-
fail_under =
|
|
138
|
+
fail_under = 95
|
|
139
139
|
show_missing = true
|
|
140
140
|
skip_covered = true
|
|
141
141
|
skip_empty = true
|
|
142
142
|
|
|
143
143
|
[dependency-groups]
|
|
144
144
|
dev = [
|
|
145
|
+
"jsonschema>=4.26.0,<5",
|
|
145
146
|
"pytest-cov>=7.1.0",
|
|
146
147
|
"pytest-watcher>=0.6.3",
|
|
147
148
|
"pytest>=9.1.1",
|
|
148
149
|
"ruff>=0.16.6",
|
|
149
150
|
"ty>=0.0.70,<0.1",
|
|
150
|
-
"validate-pyproject>=0.25",
|
|
151
|
+
"validate-pyproject[all]>=0.25",
|
|
151
152
|
"zensical>=0.0.59,<0.1",
|
|
152
153
|
]
|