agentbro
AGENTS.md203 starsChanged 4 months agoApache-2.0View on GitHub
Project guidance for AI coding agents (Codex / Cursor / Aider / GitHub Copilot / Gemini CLI / …). Claude Code users should also read .claude/CLAUDE.md for deeper detail. AgentBro is a macOS-only Tauri app (Rust backend + React 19 / TypeScript frontend) that surfaces events from AI coding agents (Claude Code, Codex, Gemini CLI, Cursor, Copilot, etc.) into a floating "Dynamic Island" overlay. Before any PR, all of these must be green: pnpm lint, pnpm test:run, pnpm build, cargo…
- 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 repository4 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- agentbro-releaseSkill
- source-command-checkSkill
- agentbro-pr-mergeSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
14 rules. About 0 are common, 9 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Before any PR, all of these must be green: pnpm lint, pnpm test:run, pnpm build, cargo check.
- Distinctive: line 29
Use this workflow for every task that changes repository files, including bug fixes, features, refactors, tests, documentation, and …
- Distinctive: line 36
Search open Issues for the same scope.
- Very specific: line 37
Start from the latest origin/dev on a dedicated branch named <agent>/issue-<number>-<slug> (for example, …
- Distinctive: line 38
If another task owns the current branch or worktree, preserve it and use a separate git worktree.
- Distinctive: line 39
Do not edit files until the Issue exists and its number is known.
- Distinctive: line 43
Run the required local checks and fix failures before publishing.
- Very specific: line 53
After the PR merges, verify that the linked Issue was closed by the Close linked Issues workflow.
- Distinctive: line 56
Do not create duplicate or empty Issues just to increase activity.
- Very specific: line 74
Do NOT bump version numbers in PRs.
- Very specific: line 85
If you fork and redistribute, you must rename the product — see TRADEMARKS.md.
- Distinctive: line 89
Default to no comments. Only write one when the WHY is non-obvious (hidden constraint, prior bug, surprising behavior).
- Distinctive: line 90
Don't add features, refactor, or introduce abstractions beyond what the task requires.
- Distinctive: line 93
No new dependencies without discussing in the issue/PR first — extra Tauri crates inflate the binary noticeably.
≈ “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
Project guidance for AI coding agents (Codex / Cursor / Aider / GitHub Copilot / Gemini CLI / …). Claude Code users should also read
.claude/CLAUDE.mdfor deeper detail.
What this is
AgentBro is a macOS-only Tauri app (Rust backend + React 19 / TypeScript frontend) that surfaces events from AI coding agents (Claude Code, Codex, Gemini CLI, Cursor, Copilot, etc.) into a floating "Dynamic Island" overlay.
Local commands
pnpm install # one-time
pnpm dev # browser UI only at http://localhost:1423
pnpm tauri:dev # full native app
pnpm lint # ESLint
pnpm test:run # vitest (one-shot)
pnpm build # tsc + vite build
cargo check --manifest-path src-tauri/Cargo.toml # Rust quick check
cargo test --manifest-path src-tauri/Cargo.toml # Rust tests
cargo fmt --manifest-path src-tauri/Cargo.toml # Rust format
cargo clippy --manifest-path src-tauri/Cargo.toml -- -D warningsBefore any PR, all of these must be green: pnpm lint, pnpm test:run, pnpm build, cargo check.
Mandatory GitHub delivery workflow
Use this workflow for every task that changes repository files, including bug fixes, features, refactors, tests, documentation, and configuration.
Pure questions, explanations, code review, read-only diagnosis, and research do not require an Issue or PR unless they turn into a repository change.
Before editing
- Confirm GitHub access with
gh auth statusand inspect the current branch and worktree. - Search open Issues for the same scope. Reuse an existing Issue only when it describes the requested work; otherwise create a focused Issue with context, goal, acceptance criteria, and constraints.
- Start from the latest
origin/devon a dedicated branch named<agent>/issue-<number>-<slug>(for example,codex/issue-61-agent-github-workflow). Never implement ondev,main, or an unrelated task branch. - If another task owns the current branch or worktree, preserve it and use a separate git worktree.
- Do not edit files until the Issue exists and its number is known.
Finishing the task
- Run the required local checks and fix failures before publishing.
- Review the diff for unrelated edits and secrets, then create a Conventional Commit.
- Push the task branch and open a PR against
dev. The PR body must containCloses #<issue-number>so the repository automation can close the Issue after the PR merges. Enable squash auto-merge with branch deletion:
gh pr merge --auto --squash --delete-branch- Monitor required checks. If a check fails, diagnose it, update the same branch, and leave auto-merge enabled. Never bypass checks, force-push shared branches, or merge a failing PR.
- After the PR merges, verify that the linked Issue was closed by the
Close linked Issuesworkflow. If it remains open, close it withgh issue close <number> --reason completedand report the fallback. - The task is complete only when the PR is merged and its Issue is closed (or when a concrete external blocker is reported). Report the Issue, PR, checks, and merge result.
Do not create duplicate or empty Issues just to increase activity. The Issue and PR must represent real, reviewable work.
Where to make changes
| Goal | Files | |||
| Add a new Agent adapter | src-tauri/src/agents/<name>.rs + register in src-tauri/src/agents/mod.rs (all_adapters(), impl_default_adapter!) + add profile in src-tauri/src/agents/profiles.rs. Simplest reference: kimi.rs. | |||
| Add a Tauri IPC command | #[tauri::command] in src-tauri/src/commands/, register in src-tauri/src/lib.rs invoke_handler, wrap in src/services/tauriApi.ts, listen via src/hooks/useTauri.ts if event-driven | |||
| Add a frontend component | `src/components/{notch | settings | shared | overlay}/, plain .css+ BEM, theme viavar(--*)CSS variables, state via existing Zustand stores insrc/stores/` |
| Add a translation | src/i18n/locales/{en,zh,ja,ko,tr}.json — all five must be updated together | |||
| Add a theme | src/themes/ + README theme table + i18n names |
Detailed extension recipes: see .claude/CLAUDE.md and CONTRIBUTING.md.
Branching & commits
- Branch off
dev. PRs targetdev, notmain. - Conventional Commits:
feat:,fix:,docs:,refactor:,test:,chore:. - Do NOT bump version numbers in PRs. Versions are kept in sync by maintainers across four files (
package.json,src-tauri/tauri.conf.json,src-tauri/Cargo.toml,Cargo.lock);pnpm release:checkvalidates this.
Do NOT touch
- Brand assets:
public/agentbro-*.{png,jpg},docs/brand/,src-tauri/icons/ - Legal / trademark:
LICENSE,NOTICE,TRADEMARKS.md - Signing / release:
src-tauri/Entitlements.plist, any*.key/*.p12/*.pem/*.mobileprovision,.github/workflows/release.yml,homebrew/ - Generated:
src-tauri/target/,dist/,output/,node_modules/
Never commit secrets (.env, signing keys, API tokens). .gitignore covers the common patterns; double-check before staging.
If you fork and redistribute, you must rename the product — see TRADEMARKS.md.
Code style
- Default to no comments. Only write one when the WHY is non-obvious (hidden constraint, prior bug, surprising behavior). Don't explain WHAT.
- Don't add features, refactor, or introduce abstractions beyond what the task requires.
- Frontend: hooks > class components; no
any; reuse Zustand stores insrc/stores/. - Rust: errors as
Result<T, String>at the Tauri boundary;unwrap()only in tests. - No new dependencies without discussing in the issue/PR first — extra Tauri crates inflate the binary noticeably.
Platform support
macOS only for now. Windows is on the roadmap but the codebase is not yet abstracted for it — don't #[cfg(windows)]-pepper the code preemptively.
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.

