Skip to content

Releases

Brainy 0.2.0

Choose a tag to compare

@memokar memokar released this 07 Oct 11:20

New feature: resource claims.

Agents can now reserve arbitrary resources — a free-form key per space, e.g. a file path or area (repo:app/src/auth/**, deploy:staging) — with the same model as task claims: atomic claim, lease, claim_token, renew/release. Exactly one holder at a time; expired or released claims become free again. This is the "two coding agents in the same repo don't touch the same files" piece.

New MCP tools: claim_resource, renew_resource, release_resource, list_resource_claims.

  • Permissions reuse the task capability/scopes (can_claim_tasks / brainy:tasks:write to claim/renew/release, can_read / brainy:tasks:read to list) — no new capability.
  • Migration 007_resource_claims.sql (one row per (space, resource_key), UNIQUE).
  • Read-only list in the web admin at /admin/resources.
  • New tests/test_resources.py (17 checks): 20-way parallel claim → 1 winner / 19 conflicts, lease expiry → re-claimable, foreign/expired token → StaleToken, ACL denial, release frees it, list filtered by read ACL.

Full suite green (17 files, 355 checks). No breaking changes.

docker run --rm -i ghcr.io/memokar/brainy:0.2.0 --demo

Brainy 0.1.1

Choose a tag to compare

@memokar memokar released this 07 Oct 10:41

Hardening and docs release.

Concurrency

  • Knowledge writes now run the HEAD-check and commit under a per-repo write lock (in-process threading.Lock + POSIX fcntl.flock), closing a TOCTOU race under the multi-threaded server. A stale expected_git_commit is still rejected as Conflict.
  • New tests/test_concurrency.py: 20 agents claiming one task → exactly 1 winner / 19 conflicts; 20 agents writing the same file → exactly 1 commit / 19 conflicts (repo stays clean); 20 distinct-file writes all succeed.
  • MCP instructions gained a TASK CLAIMS rule: claim before working, never touch a task another actor holds, retry on write conflict.

Docs

  • README: "Why not just a markdown file?" and an honest comparison with Beads, Central Brain and a plain shared notes file (facts sourced from their own docs).

Try it in one command (no clone, no setup):

docker run --rm -i ghcr.io/memokar/brainy:0.1.1 --demo

Full test suite green (16 files, 338 checks). No breaking changes.

Brainy 0.1.0 — a shared brain for your AI agents

Choose a tag to compare

@memokar memokar released this 06 Oct 15:36

First public release of Brainy: a self-hosted knowledge and task backbone that Claude, ChatGPT and any MCP client connect to through one controlled endpoint.

Highlights

  • AIs that collaborate: one shared task queue with atomic claims (claim token + lease), so agents can hand work to each other and never process the same task twice.
  • Git-versioned knowledge: plain Markdown, every write is a commit (history, diff, rollback), optimistic concurrency, secret detection.
  • Safe by default: no shell/filesystem/eval over MCP, per-space ACL, roles, hashed tokens, append-only audit log, human approval for proposed edits.
  • Connect anything: MCP endpoint with service tokens and OAuth 2.1 (Claude.ai / ChatGPT remote connectors), web admin UI.
  • Zero dependencies: Python standard library + SQLite. 312 automated tests.

Install

docker run -d --name brainy -p 127.0.0.1:8765:8765 -v brainy-data:/data ghcr.io/memokar/brainy:0.1.0
docker logs brainy   # one-time ADMIN token

Also listed in the official MCP Registry as io.github.memokar/brainy.

License: AGPL-3.0, commercial license available (see COMMERCIAL.md).