better-agent-terminal
AGENTS.md523 starsChanged 7 months agoMITView on GitHub
Follow the project guidance in CLAUDE.md. The most important operational notes are repeated here for agents that load AGENTS.md first.
- 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 35,337 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
- check-sdk-updatesSkill
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 3
Follow the project guidance in CLAUDE.md.
- Very specific: line 9
Use pnpm install --frozen-lockfile for reproducible installs.
- Very specific: line 10
Use pnpm exec <tool> instead of npx <tool>.
- Very specific: line 11
Keep pnpm-lock.yaml committed and do not reintroduce package-lock.json.
- Very specific: line 16
Run pnpm exec tsc --noEmit --pretty false for type checking.
- Very specific: line 17
Run pnpm run compile for the standard build check.
- Very specific: line 18
Run pnpm run test:sidecar when touching Node sidecar resolution or runtime startup.
- Very specific: line 19
Run pnpm run check:tauri-rust when touching Rust/Tauri runtime code.
- Distinctive: line 25
Do not replace the built-in status line implementation.
- Distinctive: line 28
When modifying shared code such as stores, IPC handlers, or shared types, trace consumers before committing.
- Very specific: line 32
Treat renderer-facing IPC as a compatibility contract.
- Very specific: line 33
Do not rename or reshape existing agent events such as claude:message, claude:stream, claude:status, claude:history, claude:resume-loading, …
- Distinctive: line 36
Keep runtime ownership per session explicit.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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 Guidelines
Follow the project guidance in CLAUDE.md. The most important operational notes are repeated here for agents that load AGENTS.md first.
Package Management
- This repository uses pnpm. Do not use
npm install,npm ci, ornpxfor project workflows. - The pinned package manager is declared in
package.json(packageManager:pnpm@10.33.2). - Use
pnpm install --frozen-lockfilefor reproducible installs. - Use
pnpm exec <tool>instead ofnpx <tool>. - Keep
pnpm-lock.yamlcommitted and do not reintroducepackage-lock.json. - pnpm v10 blocks dependency lifecycle scripts unless explicitly allowed; required build-script packages are listed under
pnpm.onlyBuiltDependenciesinpackage.json.
Verification
- Run
pnpm exec tsc --noEmit --pretty falsefor type checking. - Run
pnpm run compilefor the standard build check. - Run
pnpm run test:sidecarwhen touching Node sidecar resolution or runtime startup. - Run
pnpm run check:tauri-rustwhen touching Rust/Tauri runtime code. Runpnpm run test:tauri-rustwhen touching Rust behavior covered by unit tests; the Windows test harness includes the required Common Controls v6 activation manifest. - For local packaging verification without macOS signing/notarization, run:
pnpm run tauri:build:debug
Project Rules
- Do not replace the built-in status line implementation.
- Renderer logs should use
window.batAppAPI.debug.log(...); Tauri/backend logs should use the project logger/debug helpers. - Tauri logs live under
<app-data>/logs/: renderer/Rust logs indebug.log, sidecar logs insidecar.log. On macOS fresh Tauri installs this is usually~/Library/Application Support/com.tonyq.better-agent-terminal/logs/debug.log; existing Electron migrations may use~/Library/Application Support/BetterAgentTerminal/logs/debug.log.BAT_TAURI_DATA_DIRoverrides this in dev/tests. - When modifying shared code such as stores, IPC handlers, or shared types, trace consumers before committing.
IPC Compatibility
- Treat renderer-facing IPC as a compatibility contract. Existing
host.*,window.batAppAPI.*, and event names/signatures should be additive-only unless a task explicitly includes a coordinated migration. - Do not rename or reshape existing agent events such as
claude:message,claude:stream,claude:status,claude:history,claude:resume-loading,claude:result, orclaude:turn-end; new runtimes must adapt to those event shapes. - Tauri/Rust runtime work should route behind the existing host API when possible. For example, a Rust Codex runtime may handle
claude_start_session/claude_send_messageinternally for Codex sessions, but the renderer should keep calling the existinghost.claude.*methods. - New IPC commands or events may be added for capabilities, diagnostics, metrics, or explicitly new UI features, but they must not be required to keep existing UI workflows functioning.
- Keep runtime ownership per session explicit. A session should be owned by either Rust or the Node sidecar for its lifecycle; avoid mixing Rust and Node responses for the same running session except through deliberate fallback at session start.
- Fallback should happen below the renderer contract. If Rust cannot handle a Codex capability yet, route or degrade inside Tauri/sidecar code without forcing renderer callsite changes.
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.

