baloo-bear
AGENTS.md38 starsChanged 8 months agoMITView on GitHub
CLAUDE.md and GEMINI.md point here as compatibility symlinks. Baloo is a GitHub application that provides automated code reviews for pull requests. It analyzes PRs submitted to selected repositories, provides feedback as comments, and can accept or reject changes. The agent runs on every new commit to a PR and uses PI (pi-coding-agent) as the agentic runtime, with Anthropic models for code analysis. GitHub App that: 1. Listens for PR events via GitHub webhooks 2. Analyzes code changes using Anthropic's Claude…
- Reads credentials
- Installs packages
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
Prefer linking larger changes to a GitHub issue or pull request discussion.
- Distinctive: line 57
Keep changes scoped and easy to review.
- Very specific: line 58
Use descriptive branch names such as feat/review-routing, fix/checks-api-fallback, or chore/update-agent-guidelines.
- Very specific: line 59
Never add agent or tool prefixes such as [codex] to branch names or PR titles.
- Very specific: line 60
Use PR titles that describe the change directly, such as Add review routing or Fix checks API fallback.
- Distinctive: line 61
When creating branches or PRs, follow the repository naming conventions above.
- Distinctive: line 62
Use semantic commit messages.
- Distinctive: line 63
Before pushing, address open review comments explicitly: fix, decline with reasoning, or explain the tradeoff.
- Very specific: line 67
When adding a new setting to baloo/config/settings.py, always update all four of these in the same change:
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md
This file provides guidance to coding agents working in this repository. CLAUDE.md and GEMINI.md point here as compatibility symlinks.
Project Overview
Baloo is a GitHub application that provides automated code reviews for pull requests. It analyzes PRs submitted to selected repositories, provides feedback as comments, and can accept or reject changes. The agent runs on every new commit to a PR and uses PI (pi-coding-agent) as the agentic runtime, with Anthropic models for code analysis.
Development Environment
- Language: Python 3.10+
- Package Manager: uv
- Key Dependencies: pi-coding-agent (Node.js, RPC subprocess), FastAPI, PyGithub
Common Commands
# Install dependencies
uv sync
npm install
# Run the server
uv run python main.py
# Run tests
uv run pytest
# Run tests with coverage
uv run pytest --cov=baloo
# Lint
uv run ruff check baloo tests
# Format
uv run black baloo testsArchitecture
GitHub App that:
- Listens for PR events via GitHub webhooks
- Analyzes code changes using Anthropic's Claude models
- Generates review comments and feedback
- Posts results back to the PR as comments
- Provides approval/rejection decisions
Components:
baloo/github/- GitHub integration (webhooks, API client, auth)baloo/agent/- PI agent runtime (prompts, config, review logic via RPC subprocess)baloo/processor/- Review processing (filtering, formatting, decisions)baloo/config/- Configuration management
Workflow Guidelines
- Prefer linking larger changes to a GitHub issue or pull request discussion.
- Keep changes scoped and easy to review.
- Use descriptive branch names such as
feat/review-routing,fix/checks-api-fallback, orchore/update-agent-guidelines. - Never add agent or tool prefixes such as
[codex]to branch names or PR titles. - Use PR titles that describe the change directly, such as
Add review routingorFix checks API fallback. - When creating branches or PRs, follow the repository naming conventions above.
- Use semantic commit messages.
- Before pushing, address open review comments explicitly: fix, decline with reasoning, or explain the tradeoff.
Adding Environment Variables
When adding a new setting to baloo/config/settings.py, always update all four of these in the same change:
.env.example— add the variable with its default valuedocker-compose.yml— addVAR_NAME: ${VAR_NAME:-default}docs/configuration.md— add a row to the relevant table with variable, default, and description- Alembic migration (if the setting affects the database schema)
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

