Skip to content

Shape how your AI thinks

Composable layers for agent behavior and constraints. Define once, switch instantly.

Agent config files grow into unmanageable walls of text. One monolithic prompt for every task. Copy-paste between projects. No way to switch behavior without rewriting everything. See Why Composable Prompts for the full case.

Instead of one monolithic config file, brainjar separates agent behavior into composable layers. Each layer is a markdown document under your local SQLite store (or a brainjar serve instance). Mix and match them per project or per task.

brainjar quickstart: init, switch persona, check status
Terminal window
curl -fsSL https://get.brainjar.sh/brainjar/install.sh | sh
brainjar init

That gives you a workspace, a default API key, and everything you need to start composing. Already have a large config file? Migrate it.

Every brainjar command takes --json for machine-readable output on stdout and a structured error envelope on stderr. The same binary doubles as an MCP server (brainjar mcp) so agents call composition, state, and content tools natively rather than shelling out.

Terminal window
brainjar status # human: formatted with context
brainjar status --json # agent: structured data

These docs are agent-readable too. Point your agent at brainjar.sh/llms.txt for a doc index, or append .md to any page URL for raw markdown (e.g. /getting-started.md).