agentleFS
edison7009edison7009/EchoBird/AGENTS.md

EchoBird

AGENTS.md3.3k starsChanged 2 months agoMITView on GitHub

Instructions for agents (ZCode / Claude Code / Codex) working in this repo. Read this before modifying code. Tauri desktop app: React + TypeScript + Vite frontend in src/, Rust backend in src-tauri/. Two-tier tool/feature registries often ship in both a bundled copy and a remote copy (e.g. src/data/<x>.json vs docs/api/<...>/index.json) — when adding or editing an entry, update both files unless told otherwise; they share one schema and the remote wins at runtime. Prettier governs the frontend JSON/TS; rustfmt…

Trending

More talk lately.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 1 mentionSep 2026: 1 mentionOct 2026: 3 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the edison7009/EchoBird repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • 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.

The file

Show its rules and text

We split this AGENTS.md into the rules it gives an agent

18 rules. About 0 are common, 9 are distinctive, and 9 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.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read this before modifying code.

    line 4
  2. Very specific:

    Keep the mouse cursor as the system default everywhere.

    line 19
  3. Distinctive:

    Before adding a feature similar to one already in the app, identify the reference files and trace the full interaction through handlers, …

    line 28
  4. Distinctive:

    Before implementation, record the requested capabilities against all three platforms, with the existing code to reuse and the verification …

    line 47
  5. Distinctive:

    If existing implementations disagree, follow the user's confirmed behavior and these conventions.

    line 53
  6. Distinctive:

    Ask a focused question only when a product decision remains unresolved.

    line 55
  7. Distinctive:

    Before calling an integration complete, reconcile that capability table with evidence for detection, installation, launch, and the …

    line 63
  8. Very specific:

    Run all of them, every push.

    line 94
  9. Very specific:

    Commit 4774b1d5 passed cargo check + cargo clippy + cargo test locally but failed CI because cargo fmt hadn't been run (a braced-import …

    line 101
  10. Very specific:

    After writing Rust: cargo fmt, then cargo clippy --all-targets --all-features -- -D warnings, then cargo test.

    line 110
  11. Very specific:

    After writing TS/TSX/JSON: npm run format (or format:check), npm run typecheck, npm run lint.

    line 111
  12. Very specific:

    Don't add #![cfg(...)] inside a module file when the mod declaration in services/mod.rs already gates it with #[cfg(...)] — rustfmt flags …

    line 116
  13. Very specific:

    Use src/pages/AppManager/AccountSectionPrimitives.tsx for account login buttons and rows.

    line 125
  14. Very specific:

    Keep provider colors via colorClassName and provider quota content via secondary.

    line 128
  15. Distinctive:

    Use Lucide refresh/delete icons.

    line 136
  16. Distinctive:

    Keep the existing delete confirmation.

    line 141
  17. Distinctive:

    No extra explanatory copy, hover tips, or cursor changes.

    line 143
  18. Very specific:

    Commit only when asked. Push only when asked.

    line 155

≈ “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 — EchoBird

Instructions for agents (ZCode / Claude Code / Codex) working in this repo. Read this before modifying code.

Project shape

Tauri desktop app: React + TypeScript + Vite frontend in src/, Rust backend in src-tauri/. Two-tier tool/feature registries often ship in both a bundled copy and a remote copy (e.g. src/data/<x>.json vs docs/api/<...>/index.json) — when adding or editing an entry, update both files unless told otherwise; they share one schema and the remote wins at runtime. Prettier governs the frontend JSON/TS; rustfmt governs src-tauri/.

Desktop interaction rules

  • EchoBird is a desktop application, not a website. Do not add custom hover tips, custom tooltips, or other web-style hover-only guidance.
  • Keep the mouse cursor as the system default everywhere. Do not use cursor: pointer or any other cursor-changing style for buttons, links, draggable areas, disabled controls, or other interactive elements.

Existing behavior first

  • For integration work, read internal-docs/integration-memory.md when present (local-only feedback). Recheck current code; older notes may describe retired layouts or an earlier, incomplete implementation.
  • Before adding a feature similar to one already in the app, identify the reference files and trace the full interaction through handlers, effects, and backend calls. Compare loading, selection, refresh, errors, and saved state; matching the appearance alone is insufficient.
  • Reuse existing components and behavior. Keep provider-specific differences limited to necessary authentication, storage, and API details. Do not add automatic actions, new interaction flows, or new frameworks unless the task requires them. State any necessary behavioral difference and its reason before implementing it.
  • Tool detection and executable resolution belong in services/tool_manager.rs with catalog entries in tools/<id>/paths.json; Windows Store package lookup uses services/msix.rs. Launch through services/process_manager.rs and create background commands with utils/process.rs so Windows console suppression is shared. Keep explicit interactive terminal launches separate.
  • Evaluate Windows, macOS, and Linux for every new integration. Separate vendor availability from EchoBird implementation gaps; do not silently restrict an existing cross-platform client to Windows. Verify native paths, credential storage, process handling, and installation on supported systems, and state any platform limitation before release.
  • Before implementation, record the requested capabilities against all three platforms, with the existing code to reuse and the verification for each. Distinguish implemented, unverified, and vendor-unavailable; do not turn an excluded capability into new scope to fill the table.
  • A visual-only request must preserve unrelated typography, spacing, layout, and interaction. Keep the latest user-approved result as the baseline.
  • If existing implementations disagree, follow the user's confirmed behavior and these conventions. Do not silently choose one and call it consistent. Ask a focused question only when a product decision remains unresolved.
  • For behavior changes, establish regression expectations from the agreed workflow before coding. Cover entry, exit, tool/tab switching, missing local state, pending requests, and failures where relevant. Assert which network calls, writes, and dialogs must not happen during passive navigation.
  • Review against the reference behavior as well as code correctness. Passing tests alone does not establish consistency. Report what was reused and any necessary differences; keep unrelated implementations outside the change.
  • Before calling an integration complete, reconcile that capability table with evidence for detection, installation, launch, and the requested account or model operations. A Windows build or UI approval does not verify other OSes or native account switching. Report build, fixture, and live-client checks separately; verify test instrumentation with a positive control.
  • At a handoff or interruption, save the current goal, approved decisions, reference files, changed/committed state, verification limits, and next step in a local note. Resume from that note and current Git state; do not restart the design or silently drop unfinished parts when the user gives feedback.

CI gates (must pass locally before pushing)

CI runs two jobs in parallel, each with this order — format runs first and fails the whole job before clippy/test even start, so a format slip hides whether the code is actually sound. Match the order locally:

Frontend (src/, repo root):

npm run typecheck        # tsc --noEmit
npm run format:check     # prettier --check  (or `npm run format` to auto-fix)
npm run lint             # eslint  (or `npm run lint:fix`)
npm test                 # vitest

Rust (src-tauri/, or pass --manifest-path src-tauri/Cargo.toml):

cargo fmt --check        # FORMAT FIRST. `cargo fmt` to auto-fix.
cargo clippy --all-targets --all-features -- -D warnings   # CI denies warnings
cargo test

Run all of them, every push. A green cargo check/cargo test does NOT imply a green CI — cargo fmt --check is a separate gate and the one most often skipped. Same for the frontend: npm run format:check is not implied by typecheck or lint.

Lesson (learned the hard way)

Commit 4774b1d5 passed cargo check + cargo clippy + cargo test locally but failed CI because cargo fmt hadn't been run (a braced-import reorder and a wrapped method chain). CI's cargo fmt --check failed in the first step, so clippy/test never executed — the failure said nothing about correctness, only about formatting. Don't repeat it: treat the format gate as equal to clippy/test, not optional.

Verification habits

  • After writing Rust: cargo fmt, then cargo clippy --all-targets --all-features -- -D warnings, then cargo test.
  • After writing TS/TSX/JSON: npm run format (or format:check), npm run typecheck, npm run lint.
  • The winreg crate's FromRegValue for String does not auto-expand REG_EXPAND_SZ — values like %USERPROFILE%\... come back literal. Expand them via services::tool_manager::expand_path (or expand_path-equivalent) rather than assuming the registry hands back resolved paths.
  • Don't add #![cfg(...)] inside a module file when the mod declaration in services/mod.rs already gates it with #[cfg(...)] — rustfmt flags it as a duplicated attribute.

Account login UI conventions

  • Reuse src/pages/AppManager/useManagedAccounts.ts for account loading, selection, login deadlines/cancellation, refresh and deletion. Provider hooks supply protocol/API and storage adapters; do not copy the lifecycle again.
  • Use src/pages/AppManager/AccountSectionPrimitives.tsx for account login buttons and rows. ChatGPT is the structural reference; do not copy a new provider-specific button/row implementation.
  • Keep provider colors via colorClassName and provider quota content via secondary. Claude, DeepSeek and WorkBuddy retain their designed colors; Grok uses the same black/white treatment as ChatGPT.
  • Buttons are 48px tall, pill-shaped, with a 24px product icon and the existing add-account / waiting-for-browser translations. Login timeout is 60 seconds.
  • Rows are 48px tall: 16px selection marker on the left, identity above quota in the center, plan above refresh/delete actions on the right. Display the plan once. Missing quota is unknown (—), never fabricated as zero.
  • Use Lucide refresh/delete icons. Only show refresh when a real refresh action exists; disable it while pending. Clicks and keyboard actions on nested controls must not change account selection. Rows support Enter/Space.
  • Selecting an account clears the API-model selection and vice versa. Adding an account saves it in EchoBird; applying a selection switches the client. Keep the existing delete confirmation. Cancel and clean up login on timeout or leaving the tool, and ignore late responses from earlier attempts.
  • No extra explanatory copy, hover tips, or cursor changes. New integrations must test selection/action isolation, pending state and their quota display.
  • For new or changed integrations, entering a tool or switching tabs/pages may load saved accounts for an installed client, but must not query quota, start login, or apply account/model changes. Quota refresh is an explicit user action. Uninstalled clients must not load native account configuration.
  • Passive account-loading failures must preserve cached rows and must not open a blocking dialog. Explicit login, refresh, apply, and delete failures remain visible. Include these expectations in navigation regression tests.

Commit policy

Commit only when asked. Push only when asked. Keep history linear (rebase onto origin/main when the remote has moved).

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.