Shape how your AI thinks
The problem
Section titled “The problem”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.
How it works
Section titled “How it works”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.
Quickstart
Section titled “Quickstart”
curl -fsSL https://get.brainjar.sh/brainjar/install.sh | shbrainjar initThat gives you a workspace, a default API key, and everything you need to start composing. Already have a large config file? Migrate it.
Built for agents
Section titled “Built for agents”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.
brainjar status # human: formatted with contextbrainjar status --json # agent: structured dataThese 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).