agentleFS
7xuanlu7xuanlu/wenlan/app/AGENTS.md

wenlan / app

AGENTS.md79 starsChanged 5 months agoApache-2.0View on GitHub

Tauri 2 Rust crate and desktop runtime boundary. This directory owns app startup, Tauri plugins, sidecar declarations, macOS lifecycle helpers, daemon HTTP calls, and eval fixtures used by the app crate. - Debug builds refuse to start outside scripts/dev-runtime.sh. See that script for the variable set; release builds read none of these. - Keep daemon access behind WenlanClient in src/api.rs; do not scatter raw URLs or response-shape parsing through command handlers. Anything that talks to "the daemon" must go through…

The file

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

7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    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
  1. Very specific:

    Keep daemon access behind WenlanClient in src/api.rs.

    line 25
  2. Very specific:

    Prefer module-local Rust unit tests near the behavior under #[cfg(test)].

    line 30
  3. Very specific:

    Use app/tests/*.rs only for cross-module or daemon-backed integration.

    line 31
  4. Distinctive:

    Do not interpret CI's touched sidecar placeholders as real daemon validation.

    line 41
  5. Very specific:

    Do not make remote_access.rs failures silent without a recovery path or log.

    line 42
  6. Very specific:

    Do not change launchd/plist behavior without checking stale Origin and Wenlan migration paths in lifecycle.rs.

    line 43
  7. Distinctive:

    Do not add a new daemon API shape in Rust without updating the frontend wrapper if the UI consumes it.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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 - app/

OVERVIEW

Tauri 2 Rust crate and desktop runtime boundary. This directory owns app startup, Tauri plugins, sidecar declarations, macOS lifecycle helpers, daemon HTTP calls, and eval fixtures used by the app crate.

WHERE TO LOOK

TaskLocationNotes
Add/modify Tauri commandsrc/search.rs, src/lib.rscommand body plus generate_handler! registration
Change daemon route usagesrc/api.rskeep typed request/response wrappers here
Startup, tray, window behaviorsrc/lib.rshigh fan-out; verify app lifecycle
Run-at-login or plist repairsrc/lifecycle.rsmacOS persistence and legacy Origin paths
Remote MCP behaviorsrc/remote_access.rs, src/remote_relay/local wenlan-mcp, native reverse transport, relay registration
Sources integrationsrc/sources/source traits, sync, uploads, wire types
Eval fixture editseval/fixtures/data-only TOML scenarios

CONVENTIONS

  • Debug builds refuse to start outside scripts/dev-runtime.sh. See that script for the variable set; release builds read none of these.
  • Keep daemon access behind WenlanClient in src/api.rs; do not scatter raw URLs or response-shape parsing through command handlers. Anything that talks to "the daemon" must go through client.base_url(), never a literal 127.0.0.1:7878 — an isolated dev app selects a different port.
  • Register new Tauri commands in src/lib.rs after adding the command function.
  • Prefer module-local Rust unit tests near the behavior under #[cfg(test)]. Use app/tests/*.rs only for cross-module or daemon-backed integration.
  • app/tests/sources_integration.rs is ignored because it needs a live daemon.
  • tauri.conf.json declares wenlan, wenlan-server, and wenlan-mcp as externalBin; packaging can fail before app code runs. Native reverse transport does not require a tunnel sidecar. Retain legacy process-ownership cleanup without restoring that packaging dependency.
  • eval/fixtures/gen/ is generated-data territory.

ANTI-PATTERNS

  • Do not interpret CI's touched sidecar placeholders as real daemon validation.
  • Do not make remote_access.rs failures silent without a recovery path or log.
  • Do not change launchd/plist behavior without checking stale Origin and Wenlan migration paths in lifecycle.rs.
  • Do not add a new daemon API shape in Rust without updating the frontend wrapper if the UI consumes it.

COMMANDS

cd app && cargo test
cargo fmt --check --all
cargo clippy --workspace --exclude wenlan-app --all-targets -- -D warnings
pnpm test:all

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.