explaingit

rohitg00/agentbrain

Analysis updated 2026-05-18

14PythonAudience · developerComplexity · 3/5Setup · moderate

TLDR

Agent Brain is a repository add-on that gives AI coding agents structured rules, so they plan, verify, and prove their work with evidence instead of guessing.

Mindmap

mindmap
  root((Agent Brain))
    What it does
      Adds operating rules
      State machine pipeline
      Requires evidence
    Habits enforced
      Plan before build
      Verify before trust
      Learn from evidence
    Tech stack
      Python 3.11
      Documentation first
    Supported agents
      Claude Code
      Codex
      Cursor

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add Agent Brain to a repository so any coding agent follows a state machine that requires evidence before building.

USE CASE 2

Force an AI coding agent to plan, research, and challenge a vague request before writing any code.

USE CASE 3

Turn a coding agent's confident claims into verifiable proof using tests, logs, diffs, and screenshots.

What is it built with?

Python

How does it compare?

rohitg00/agentbrain0c33/agentic-aiadennng/stock_strategy_lab
Stars141414
LanguagePythonPythonPython
Setup difficultymoderatehardhard
Complexity3/54/54/5
Audiencedeveloperdeveloperresearcher

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Requires Python 3.11 to run the local quality gate and cloning the repo into your agent's working directory.

License badge is present in the repository, but the exact terms are not stated in the excerpted source material.

In plain English

Agent Brain is a portable set of files and rules that you add to a code repository to give AI coding agents better operating discipline. It does not replace or run the agent itself. Instead, it layers on top of whatever coding AI you already use, it explicitly supports Claude Code, Codex, Gemini CLI, Cursor, Copilot, Windsurf, OpenCode, OpenClaw, and Hermes, and gives that agent a structured process to follow. The problem it addresses is that most AI coding agent failures are not technical errors but judgment errors: the agent builds the wrong thing, trusts outdated context, skips tests, accepts vague requirements, or ships without a rollback plan. Without structure, agents charge ahead based on chat momentum rather than evidence. Agent Brain enforces three habits. First, plan before build, vague requests must pass through intake, research, challenge, and design before any implementation starts. Second, verify before trust, tests, logs, diffs, screenshots, and approvals count as proof, while confident summaries from the agent are treated as claims until backed by evidence. Third, learn only from evidence, repeatable successful workflows get distilled into small, neutral skills rather than absorbed carelessly. The system supplies a state machine, command specifications, skill definitions, schemas for artifacts, evaluation gates, and handoff contracts. A request flows through this pipeline: raw request, state, command, skill, artifact, evidence, handoff. Nothing proceeds to the next stage without the required artifact from the previous one. It is documentation-first and written in Python 3.11, released under an open source license visible in the repository.

Copy-paste prompts

Prompt 1
Add Agent Brain to my repository and have my coding agent read AGENTBRAIN.md before starting a new task.
Prompt 2
Explain the state machine Agent Brain uses to move a request from intake to a finished, verified artifact.
Prompt 3
How does Agent Brain stop a coding agent from skipping tests or shipping without a rollback plan?
Prompt 4
Which coding agent runtimes does Agent Brain support, and how do I point one at it?

Frequently asked questions

What is agentbrain?

Agent Brain is a repository add-on that gives AI coding agents structured rules, so they plan, verify, and prove their work with evidence instead of guessing.

What language is agentbrain written in?

Mainly Python. The stack also includes Python.

What license does agentbrain use?

License badge is present in the repository, but the exact terms are not stated in the excerpted source material.

How hard is agentbrain to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is agentbrain for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.