briar is a local-first command-line tool designed to help AI coding assistants better understand how a team works and its codebase. It achieves this through two core parts: first, it collects facts from the tools the team uses (such as GitHub, Bitbucket, Jira, Linear, AWS, GCP, Azure, Fireflies meeting notes, etc.) and stores these facts as plain-text Markdown files on the local machine, called "knowledge". Second, it provides this knowledge to autonomous AI agents, which can perform coding tasks based on it, such as implementing code from a ticket and creating a draft PR, or fixing review comments on a PR.
Key capabilities include:
- 23 extractors for reading specific types of facts from various tools, such as PR merge times, code hotspots, reviewer profiles, etc., and outputting them as Markdown files or storing them in a Postgres database.
- Two AI agents:
briar agent implementreceives a ticket, reads the relevant knowledge, writes code in a fresh git worktree, runs tests, and creates a draft PR;briar agent prfixmakes small fixes for each review comment on a PR and commits them, replying to the comments. The agent does not force-push, amend commits, or rebase, ensuring history is not rewritten. briar plancan read a Jira board or GitHub Project, order the cards, and process them one by one, supporting dependencies between cards.- Integration with Claude Code: via
--merge-claude-mdadds knowledge to the CLAUDE.md file; viabriar mcp serveprovides an MCP interface to share knowledge with any application that supports MCP. - Runs locally, no account required, secrets are stored in local files or AWS Secrets Manager, SSM, Vault.
Usage:
- Installation: requires Python 3.10 or higher; the base installation covers GitHub, Bitbucket, AWS, Jira, Linear, Fireflies, Anthropic, and AWS Bedrock, with support for file or Postgres storage. A Docker image is also available.
- Quick start: run
briar initto initialize configuration,briar doctorto check the environment,briar extractto extract knowledge,briar context getto view knowledge. - Running agents: after setting ANTHROPIC_API_KEY, use
briar agent implementorbriar agent prfix, optionally with--dry-runto preview prompts without actually executing. - Scheduling: define scheduled tasks using a runbook file, and run the scheduler via
briar serve.
Use cases:
- Teams want AI coding assistants to better understand project conventions, testing processes, review habits, etc.
- Automate the workflow from ticket to draft PR, reducing manual work.
- Quickly respond to PR review comments, automatically fixing and replying.
- Need localized, privacy-first AI-assisted development tools.
Limitations:
- Requires Python 3.10+, and running agents also requires git and GitHub CLI (gh).
- Coding agents are based on Anthropic models and require the user's own API key.
- Agents only create draft PRs and do not auto-merge; final review and merging are done by the user.
- Error reports and usage counts are sent by default (containing no sensitive information), and can be disabled via
briar telemetry off. - Specific details such as fees, pricing, and platform support are not yet provided.