agentleFS
tony1223tony1223/better-agent-terminal/AGENTS.md

better-agent-terminal

AGENTS.md515 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 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.

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

    Follow the project guidance in CLAUDE.md.

    line 3
  2. Very specific:

    Use pnpm install --frozen-lockfile for reproducible installs.

    line 9
  3. Very specific:

    Use pnpm exec <tool> instead of npx <tool>.

    line 10
  4. Very specific:

    Keep pnpm-lock.yaml committed and do not reintroduce package-lock.json.

    line 11
  5. Very specific:

    Run pnpm exec tsc --noEmit --pretty false for type checking.

    line 16
  6. Very specific:

    Run pnpm run compile for the standard build check.

    line 17
  7. Very specific:

    Run pnpm run test:sidecar when touching Node sidecar resolution or runtime startup.

    line 18
  8. Very specific:

    Run pnpm run check:tauri-rust when touching Rust/Tauri runtime code.

    line 19
  9. Distinctive:

    Do not replace the built-in status line implementation.

    line 25
  10. Distinctive:

    When modifying shared code such as stores, IPC handlers, or shared types, trace consumers before committing.

    line 28
  11. Very specific:

    Treat renderer-facing IPC as a compatibility contract.

    line 32
  12. Very specific:

    Do not rename or reshape existing agent events such as claude:message, claude:stream, claude:status, claude:history, claude:resume-loading, …

    line 33
  13. Distinctive:

    Keep runtime ownership per session explicit.

    line 36

≈ “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.

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

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, or npx for project workflows.
  • The pinned package manager is declared in package.json (packageManager: pnpm@10.33.2).
  • Use pnpm install --frozen-lockfile for reproducible installs.
  • Use pnpm exec <tool> instead of npx <tool>.
  • Keep pnpm-lock.yaml committed and do not reintroduce package-lock.json.
  • pnpm v10 blocks dependency lifecycle scripts unless explicitly allowed; required build-script packages are listed under pnpm.onlyBuiltDependencies in package.json.

Verification

  • Run pnpm exec tsc --noEmit --pretty false for type checking.
  • Run pnpm run compile for the standard build check.
  • Run pnpm run test:sidecar when touching Node sidecar resolution or runtime startup.
  • Run pnpm run check:tauri-rust when touching Rust/Tauri runtime code. Run pnpm run test:tauri-rust when 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 in debug.log, sidecar logs in sidecar.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_DIR overrides 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, or claude: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_message internally for Codex sessions, but the renderer should keep calling the existing host.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.

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.