agentleFS
bluebear-iobluebear-io/baloo-bear/AGENTS.md

baloo-bear

AGENTS.md39 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 code style.

    Of the AGENTS.md files we read, the 33,398 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 repositoryOne other file it gives its agents.

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
  1. Distinctive:

    Prefer linking larger changes to a GitHub issue or pull request discussion.

    line 56
  2. Distinctive:

    Keep changes scoped and easy to review.

    line 57
  3. Very specific:

    Use descriptive branch names such as feat/review-routing, fix/checks-api-fallback, or chore/update-agent-guidelines.

    line 58
  4. Very specific:

    Never add agent or tool prefixes such as [codex] to branch names or PR titles.

    line 59
  5. Very specific:

    Use PR titles that describe the change directly, such as Add review routing or Fix checks API fallback.

    line 60
  6. Distinctive:

    When creating branches or PRs, follow the repository naming conventions above.

    line 61
  7. Distinctive:

    Use semantic commit messages.

    line 62
  8. Distinctive:

    Before pushing, address open review comments explicitly: fix, decline with reasoning, or explain the tradeoff.

    line 63
  9. Very specific:

    When adding a new setting to baloo/config/settings.py, always update all four of these in the same change:

    line 67

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 tests

Architecture

GitHub App that:

  1. Listens for PR events via GitHub webhooks
  2. Analyzes code changes using Anthropic's Claude models
  3. Generates review comments and feedback
  4. Posts results back to the PR as comments
  5. 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, or chore/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 routing or Fix 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:

  1. .env.example — add the variable with its default value
  2. docker-compose.yml — add VAR_NAME: ${VAR_NAME:-default}
  3. docs/configuration.md — add a row to the relevant table with variable, default, and description
  4. Alembic migration (if the setting affects the database schema)

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.