brain-framework 24.0.0__tar.gz → 25.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-25.0.0/PKG-INFO +96 -0
- brain_framework-25.0.0/README.md +62 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/pyproject.toml +1 -1
- {brain_framework-24.0.0 → brain_framework-25.0.0}/pyproject.toml.orig +1 -1
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/__init__.py +1 -1
- brain_framework-25.0.0/src/bf/cli.py +847 -0
- brain_framework-25.0.0/src/bf/collect.py +414 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/config.py +75 -137
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/evaluate.py +17 -43
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/guide.py +1 -1
- brain_framework-25.0.0/src/bf/guides/assist.md +142 -0
- brain_framework-25.0.0/src/bf/guides/authoring.md +74 -0
- brain_framework-25.0.0/src/bf/guides/getting-started.md +230 -0
- brain_framework-25.0.0/src/bf/guides/index.md +57 -0
- brain_framework-25.0.0/src/bf/guides/jobs.md +158 -0
- brain_framework-25.0.0/src/bf/guides/operations.md +74 -0
- brain_framework-25.0.0/src/bf/guides/reference.md +85 -0
- brain_framework-25.0.0/src/bf/guides/retrieval.md +70 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/health.py +97 -217
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/index.py +153 -467
- brain_framework-25.0.0/src/bf/install.py +247 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/jobs.py +331 -489
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/map.py +45 -63
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/markdown.py +20 -128
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/mcp.py +11 -42
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/models.py +204 -310
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/pages.py +65 -212
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/records.py +20 -100
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/replies.py +110 -117
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/retrieve.py +21 -122
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/runtime.py +357 -225
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/skills/bf/SKILL.md +12 -12
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/starter/AGENTS.md +1 -1
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/starter/evals/retrieval.yaml +1 -1
- brain_framework-25.0.0/src/bf/storage.py +505 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/update.py +52 -58
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/usage.py +47 -96
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/validate.py +78 -155
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/watch.py +130 -137
- brain_framework-25.0.0/src/bf/watch_settings.py +85 -0
- brain_framework-24.0.0/PKG-INFO +0 -187
- brain_framework-24.0.0/README.md +0 -153
- brain_framework-24.0.0/src/bf/cli.py +0 -973
- brain_framework-24.0.0/src/bf/collect.py +0 -483
- brain_framework-24.0.0/src/bf/guides/authoring.md +0 -58
- brain_framework-24.0.0/src/bf/guides/events.md +0 -60
- brain_framework-24.0.0/src/bf/guides/getting-started.md +0 -73
- brain_framework-24.0.0/src/bf/guides/index.md +0 -37
- brain_framework-24.0.0/src/bf/guides/jobs.md +0 -60
- brain_framework-24.0.0/src/bf/guides/operations.md +0 -65
- brain_framework-24.0.0/src/bf/guides/reference.md +0 -69
- brain_framework-24.0.0/src/bf/guides/retrieval.md +0 -60
- brain_framework-24.0.0/src/bf/install.py +0 -314
- brain_framework-24.0.0/src/bf/storage.py +0 -659
- brain_framework-24.0.0/src/bf/watch_settings.py +0 -129
- {brain_framework-24.0.0 → brain_framework-25.0.0}/LICENSE +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/THIRD_PARTY_NOTICES.md +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/__main__.py +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/graph.py +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/links.py +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/ontology.py +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/py.typed +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/schemas.py +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/starter/concepts/index.md +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/starter/concepts/welcome.md +0 -0
- {brain_framework-24.0.0 → brain_framework-25.0.0}/src/bf/starter/gitignore +0 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: brain-framework
|
|
3
|
+
Version: 25.0.0
|
|
4
|
+
Summary: Brain Framework is a local-first brain for you and your AI agents. It collects evidence from your tools into plain files you own, connects them through an ontology you declare, lets any agent harness search and read offline, and wakes your harness when declarative when: rules or reviewed gates spot new evidence.
|
|
5
|
+
Keywords: ai,ai-agents,agent-memory,agent-skills,agents-md,context-engineering,knowledge-graph,knowledge-management,local-first,mcp,model-context-protocol,ontology,personal-knowledge-management,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: Intended Audience :: Developers
|
|
13
|
+
Classifier: Operating System :: MacOS
|
|
14
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
18
|
+
Classifier: Topic :: Text Processing :: Indexing
|
|
19
|
+
Classifier: Typing :: Typed
|
|
20
|
+
Requires-Dist: markdown-it-py>=4.2.0,<5
|
|
21
|
+
Requires-Dist: pydantic>=2.13.5,<3
|
|
22
|
+
Requires-Dist: pyyaml>=6.0.3,<7
|
|
23
|
+
Requires-Dist: rich>=15.0.0,<16
|
|
24
|
+
Requires-Dist: typer>=0.27.2
|
|
25
|
+
Requires-Dist: mcp>=2.1.1,<3 ; extra == 'mcp'
|
|
26
|
+
Requires-Python: >=3.14
|
|
27
|
+
Project-URL: Changelog, https://fmind.github.io/brain-framework/changelog/
|
|
28
|
+
Project-URL: Documentation, https://fmind.github.io/brain-framework/
|
|
29
|
+
Project-URL: Issues, https://github.com/fmind/brain-framework/issues
|
|
30
|
+
Project-URL: Repository, https://github.com/fmind/brain-framework
|
|
31
|
+
Project-URL: Security, https://github.com/fmind/brain-framework/security/policy
|
|
32
|
+
Provides-Extra: mcp
|
|
33
|
+
Description-Content-Type: text/markdown
|
|
34
|
+
|
|
35
|
+
<p align="center">
|
|
36
|
+
<img
|
|
37
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-framework.svg"
|
|
38
|
+
alt="Brain Framework — Plain-file knowledge and offline retrieval for humans and AI agents"
|
|
39
|
+
width="100%"
|
|
40
|
+
/>
|
|
41
|
+
</p>
|
|
42
|
+
|
|
43
|
+
Brain Framework (`bf`) turns a folder of plain Markdown notes and collected JSON records into a local, verifiable knowledge graph for you and any coding agent.
|
|
44
|
+
|
|
45
|
+
- **Plain files you own.** Notes (`projects/`, `concepts/`, `actions/`), records (`memories/`), and config (`bf.yaml`, `evals/`), accessible through `bf`, local stdio [MCP](https://fmind.github.io/brain-framework/docs/retrieval/), [Agent Skills](https://agentskills.io/specification), and `AGENTS.md`.
|
|
46
|
+
- **Gather, connect, act offline.** Scheduled or streaming `jobs:` collect or ingest records (`bf collect`, `bf ingest`), declarative `map:` normalizes fields, BM25 + graph links trace every claim, and prompt jobs wake harnesses only when events or gates fire.
|
|
47
|
+
- **No lock-in or built-in LLM.** BF runs zero models, accounts, or telemetry; search and read stay 100% offline.
|
|
48
|
+
|
|
49
|
+
[](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)
|
|
50
|
+
|
|
51
|
+
## Try it
|
|
52
|
+
|
|
53
|
+
Requires Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/) — no model or cloud account needed:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
uv tool install --python 3.14 brain-framework
|
|
57
|
+
bf init ~/brain
|
|
58
|
+
cd ~/brain
|
|
59
|
+
bf guide # Offline documentation inside the CLI
|
|
60
|
+
bf validate
|
|
61
|
+
bf eval
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Explore the [four-tool walkthrough](https://github.com/fmind/brain-framework/blob/main/examples/context-hub/README.md) (Workspace, Jira, GitHub, and Google Cloud fixtures) or read [Getting started](https://fmind.github.io/brain-framework/docs/getting-started/).
|
|
65
|
+
|
|
66
|
+
## How it works
|
|
67
|
+
|
|
68
|
+
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg">
|
|
69
|
+
<img
|
|
70
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg"
|
|
71
|
+
alt="Gather, normalize, organize, act, and learn loop"
|
|
72
|
+
width="100%"
|
|
73
|
+
/>
|
|
74
|
+
</a>
|
|
75
|
+
|
|
76
|
+
- **Notes & graph ([Authoring](https://fmind.github.io/brain-framework/docs/authoring/)):** OKF Markdown notes with explicit `relations:` and `attributes:`, plus tracked `ACTION.md` workflows (`bf action new|status`).
|
|
77
|
+
- **Offline retrieval ([Retrieval](https://fmind.github.io/brain-framework/docs/retrieval/)):** Disposable `.bf/cache.sqlite3` powers `bf search`, `bf read`, review pages, `bf export`, `bf eval`, and `bf mcp`.
|
|
78
|
+
- **Agents & skills ([Getting started](https://fmind.github.io/brain-framework/docs/getting-started/)):** Install the `/bf` skill (`bf skill install --global`) and register brains (`bf register . --default`); optional host [hooks](https://github.com/fmind/brain-framework/tree/main/examples/hooks) surface brain state automatically.
|
|
79
|
+
- **Sensors, ingest & routines ([Jobs](https://fmind.github.io/brain-framework/docs/jobs/)):** Copy stdlib scripts from [sensors](https://github.com/fmind/brain-framework/tree/main/examples/sensors) and [routines](https://github.com/fmind/brain-framework/tree/main/examples/routines), pipe external JSON via `bf ingest`, and normalize fields with declarative `map:`.
|
|
80
|
+
- **Prompts, channels & watch ([Assist](https://fmind.github.io/brain-framework/docs/assist/)):** Event-driven prompt jobs (`record.*`, `note.changed`, `message.received`, `job.failed`), DM allowlists (`{{lines:...}}`), durable channel queues, failure incidents, and `bf watch` ([demo](https://github.com/fmind/brain-framework/tree/main/examples/watch)).
|
|
81
|
+
|
|
82
|
+
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
|
|
83
|
+
<img
|
|
84
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg"
|
|
85
|
+
alt="bf watch terminal dashboard"
|
|
86
|
+
width="100%"
|
|
87
|
+
/>
|
|
88
|
+
</a>
|
|
89
|
+
|
|
90
|
+
## Good to know
|
|
91
|
+
|
|
92
|
+
1. **Local-first and private.** Retrieval runs offline; `.bf/` locks, caches, and durable queues (`runtime.sqlite3`) never touch the network ([Operations](https://fmind.github.io/brain-framework/docs/operations/)).
|
|
93
|
+
2. **Harnesses reason; BF verifies.** BF invokes your configured CLI harness only on explicit runs, schedules, or event/gate matches, and validates every note, record, and `bf.yaml` (`version: 11`) ([Reference](https://fmind.github.io/brain-framework/docs/reference/)).
|
|
94
|
+
3. **Git-native collaboration.** Track notes, `bf.yaml`, `jobs/`, and `evals/` in Git while ignoring `memories/`, `actions/`, `logs/`, and `.bf/`.
|
|
95
|
+
|
|
96
|
+
[Documentation](https://fmind.github.io/brain-framework/) · [Reference](https://fmind.github.io/brain-framework/docs/reference/) · [Issues](https://github.com/fmind/brain-framework/issues) · [Contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md) · [Governance](https://github.com/fmind/brain-framework/blob/main/GOVERNANCE.md) · [MIT License](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,62 @@
|
|
|
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 — Plain-file knowledge and offline retrieval for humans and AI agents"
|
|
5
|
+
width="100%"
|
|
6
|
+
/>
|
|
7
|
+
</p>
|
|
8
|
+
|
|
9
|
+
Brain Framework (`bf`) turns a folder of plain Markdown notes and collected JSON records into a local, verifiable knowledge graph for you and any coding agent.
|
|
10
|
+
|
|
11
|
+
- **Plain files you own.** Notes (`projects/`, `concepts/`, `actions/`), records (`memories/`), and config (`bf.yaml`, `evals/`), accessible through `bf`, local stdio [MCP](https://fmind.github.io/brain-framework/docs/retrieval/), [Agent Skills](https://agentskills.io/specification), and `AGENTS.md`.
|
|
12
|
+
- **Gather, connect, act offline.** Scheduled or streaming `jobs:` collect or ingest records (`bf collect`, `bf ingest`), declarative `map:` normalizes fields, BM25 + graph links trace every claim, and prompt jobs wake harnesses only when events or gates fire.
|
|
13
|
+
- **No lock-in or built-in LLM.** BF runs zero models, accounts, or telemetry; search and read stay 100% offline.
|
|
14
|
+
|
|
15
|
+
[](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)
|
|
16
|
+
|
|
17
|
+
## Try it
|
|
18
|
+
|
|
19
|
+
Requires Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/) — no model or cloud account needed:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
uv tool install --python 3.14 brain-framework
|
|
23
|
+
bf init ~/brain
|
|
24
|
+
cd ~/brain
|
|
25
|
+
bf guide # Offline documentation inside the CLI
|
|
26
|
+
bf validate
|
|
27
|
+
bf eval
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Explore the [four-tool walkthrough](https://github.com/fmind/brain-framework/blob/main/examples/context-hub/README.md) (Workspace, Jira, GitHub, and Google Cloud fixtures) or read [Getting started](https://fmind.github.io/brain-framework/docs/getting-started/).
|
|
31
|
+
|
|
32
|
+
## How it works
|
|
33
|
+
|
|
34
|
+
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg">
|
|
35
|
+
<img
|
|
36
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg"
|
|
37
|
+
alt="Gather, normalize, organize, act, and learn loop"
|
|
38
|
+
width="100%"
|
|
39
|
+
/>
|
|
40
|
+
</a>
|
|
41
|
+
|
|
42
|
+
- **Notes & graph ([Authoring](https://fmind.github.io/brain-framework/docs/authoring/)):** OKF Markdown notes with explicit `relations:` and `attributes:`, plus tracked `ACTION.md` workflows (`bf action new|status`).
|
|
43
|
+
- **Offline retrieval ([Retrieval](https://fmind.github.io/brain-framework/docs/retrieval/)):** Disposable `.bf/cache.sqlite3` powers `bf search`, `bf read`, review pages, `bf export`, `bf eval`, and `bf mcp`.
|
|
44
|
+
- **Agents & skills ([Getting started](https://fmind.github.io/brain-framework/docs/getting-started/)):** Install the `/bf` skill (`bf skill install --global`) and register brains (`bf register . --default`); optional host [hooks](https://github.com/fmind/brain-framework/tree/main/examples/hooks) surface brain state automatically.
|
|
45
|
+
- **Sensors, ingest & routines ([Jobs](https://fmind.github.io/brain-framework/docs/jobs/)):** Copy stdlib scripts from [sensors](https://github.com/fmind/brain-framework/tree/main/examples/sensors) and [routines](https://github.com/fmind/brain-framework/tree/main/examples/routines), pipe external JSON via `bf ingest`, and normalize fields with declarative `map:`.
|
|
46
|
+
- **Prompts, channels & watch ([Assist](https://fmind.github.io/brain-framework/docs/assist/)):** Event-driven prompt jobs (`record.*`, `note.changed`, `message.received`, `job.failed`), DM allowlists (`{{lines:...}}`), durable channel queues, failure incidents, and `bf watch` ([demo](https://github.com/fmind/brain-framework/tree/main/examples/watch)).
|
|
47
|
+
|
|
48
|
+
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
|
|
49
|
+
<img
|
|
50
|
+
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg"
|
|
51
|
+
alt="bf watch terminal dashboard"
|
|
52
|
+
width="100%"
|
|
53
|
+
/>
|
|
54
|
+
</a>
|
|
55
|
+
|
|
56
|
+
## Good to know
|
|
57
|
+
|
|
58
|
+
1. **Local-first and private.** Retrieval runs offline; `.bf/` locks, caches, and durable queues (`runtime.sqlite3`) never touch the network ([Operations](https://fmind.github.io/brain-framework/docs/operations/)).
|
|
59
|
+
2. **Harnesses reason; BF verifies.** BF invokes your configured CLI harness only on explicit runs, schedules, or event/gate matches, and validates every note, record, and `bf.yaml` (`version: 11`) ([Reference](https://fmind.github.io/brain-framework/docs/reference/)).
|
|
60
|
+
3. **Git-native collaboration.** Track notes, `bf.yaml`, `jobs/`, and `evals/` in Git while ignoring `memories/`, `actions/`, `logs/`, and `.bf/`.
|
|
61
|
+
|
|
62
|
+
[Documentation](https://fmind.github.io/brain-framework/) · [Reference](https://fmind.github.io/brain-framework/docs/reference/) · [Issues](https://github.com/fmind/brain-framework/issues) · [Contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md) · [Governance](https://github.com/fmind/brain-framework/blob/main/GOVERNANCE.md) · [MIT License](https://github.com/fmind/brain-framework/blob/main/LICENSE) · [Third-party notices](https://github.com/fmind/brain-framework/blob/main/THIRD_PARTY_NOTICES.md)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "brain-framework"
|
|
3
|
-
version = "
|
|
3
|
+
version = "25.0.0"
|
|
4
4
|
description = "Brain Framework is a local-first brain for you and your AI agents. It collects evidence from your tools into plain files you own, connects them through an ontology you declare, lets any agent harness search and read offline, and wakes your harness when declarative when: rules or reviewed gates spot new evidence."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# https://packaging.python.org/en/latest/specifications/pyproject-toml/
|
|
2
2
|
[project]
|
|
3
3
|
name = "brain-framework"
|
|
4
|
-
version = "
|
|
4
|
+
version = "25.0.0"
|
|
5
5
|
description = "Brain Framework is a local-first brain for you and your AI agents. It collects evidence from your tools into plain files you own, connects them through an ontology you declare, lets any agent harness search and read offline, and wakes your harness when declarative when: rules or reviewed gates spot new evidence."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
requires-python = ">=3.14"
|