Modular agent harness — every capability is an optional, hot-swappable Brick
Project description
🧱 brikie
build your agent · brick by brick
brikie is a modular agent harness where every capability is an optional, hot-swappable Brick seated on a minimal kernel. There is no fixed feature set: you pick an interface, a provider, and whatever else you want — tools, memory, logging, security, orchestration souls — and that is your agent.
→ brikie.co — pick your bricks, get a one-line installer.
Quick start
# compose your own stack at https://brikie.co, or:
curl -fsSL "https://brikie.co/install.sh?bricks=BRK-300,BRK-200,BRK-410,BRK-420&name=custom" | sh
brikie --set custom
Or just:
pip install brikie
brikie
First run on a terminal opens a 60-second setup: brikie detects running
local servers (Ollama, LM Studio, vLLM) and API keys already in your
environment, and one keystroke later you're chatting. Rerun it any time
with brikie --onboard, or compose a full custom stack with
python3 -m brikie.install.
What makes it different
- Everything is optional. The only minimum is one Interface Brick + one Provider Brick. No brick may assume another exists.
- Agents grow themselves. A running agent can search the
brikie.co registry, install bricks at runtime
(sha256-verified), author brand-new bricks from source
(
registry_create_brick), and publish them back for everyone else (registry_publish). Tools seated mid-conversation are callable on the very next model round. - AFK mode. A Dreamer soul mines diagnostics and proposes improvements, a Foreman evaluates them against its constraints, and Mason sub-agents build the approved ones.
- Tripartite memory. Lossless context (SQLite + DAG compaction), a spatial knowledge graph (MemPalace), and a synthesized markdown wiki — each one an optional brick.
The brick blocks
| Block | Category | Examples |
|---|---|---|
| 200 | Provider | HTTP provider (OpenAI/Claude-format APIs, local vLLM) |
| 300 | Interface | transcript CLI, internal event bus |
| 400 | Tool | shell/file tools, CloakBrowser, registry installer |
| 500 | Soul | Foreman, Dreamer, Mason (config, not runtime bricks) |
| 600 | Memory | LCM, MemPalace, Wiki |
| 700 | Logging | token logger, tool tracer, diagnostics |
| 800 | Security | command firewall, sandbox |
| 900 | Improvement | auto-fixer |
Running your own registry
The brikie.co server is stdlib-only:
python3 -m brikie.server --port 8321 --data-dir ~/.brikie/registry
It serves the brick index, manifests, checksummed downloads, the
installer generator, and a token-protected publish endpoint
(--publish-token / $BRIKIE_PUBLISH_TOKEN).
Development
pip install -e ".[dev]"
python3 -m pytest tests/ -q # 442 tests
ruff check brikie/ tests/
Read AGENTS.md before contributing — it is the working contract for every developer and agent on this codebase, including the non-negotiable architecture rules and the definition of done.
The crown isn't stolen — it's built. 🧱👑
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file brikie-0.1.0.tar.gz.
File metadata
- Download URL: brikie-0.1.0.tar.gz
- Upload date:
- Size: 192.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e8eba2fb3ce8d41635aac348a8209bb516e47e8f99a9e14ea3b07d0f81a7de2
|
|
| MD5 |
6b6d965984cc1af03c941aa23b46c3fc
|
|
| BLAKE2b-256 |
ab3c41c494e0d1c17d29287900389f6f4dd244bbe9ac604ba750b315e06e1a59
|
File details
Details for the file brikie-0.1.0-py3-none-any.whl.
File metadata
- Download URL: brikie-0.1.0-py3-none-any.whl
- Upload date:
- Size: 184.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8d27e05304615bcf360dd5a5f0a6733ffb815eacac14b05b0ad415ad08c4fed
|
|
| MD5 |
ebcf59735f0835154730f37cd3a046a6
|
|
| BLAKE2b-256 |
20f7939aceb39dff4d264de38376a3b960db870ebb051ac42e030d670bb27ddc
|