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…
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,736 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 repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- e2e/AGENTS.mdAGENTS.md
- preview/AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- src/AGENTS.mdAGENTS.md
- app/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- e2e/CLAUDE.mdCLAUDE.md
- preview/CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- src/CLAUDE.mdCLAUDE.md
- proveSkill
- run-wenlan-appSkill
- run-wenlanSkill
- verifySkill
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
- Very specific: line 25
Keep daemon access behind WenlanClient in src/api.rs.
- Very specific: line 30
Prefer module-local Rust unit tests near the behavior under #[cfg(test)].
- Very specific: line 31
Use app/tests/*.rs only for cross-module or daemon-backed integration.
- Distinctive: line 41
Do not interpret CI's touched sidecar placeholders as real daemon validation.
- Very specific: line 42
Do not make remote_access.rs failures silent without a recovery path or log.
- Very specific: line 43
Do not change launchd/plist behavior without checking stale Origin and Wenlan migration paths in lifecycle.rs.
- Distinctive: line 45
Do not add a new daemon API shape in Rust without updating the frontend wrapper if the UI consumes it.
≈ “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.
Files
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
| Task | Location | Notes |
| Add/modify Tauri command | src/search.rs, src/lib.rs | command body plus generate_handler! registration |
| Change daemon route usage | src/api.rs | keep typed request/response wrappers here |
| Startup, tray, window behavior | src/lib.rs | high fan-out; verify app lifecycle |
| Run-at-login or plist repair | src/lifecycle.rs | macOS persistence and legacy Origin paths |
| Remote MCP behavior | src/remote_access.rs, src/remote_relay/ | local wenlan-mcp, native reverse transport, relay registration |
| Sources integration | src/sources/ | source traits, sync, uploads, wire types |
| Eval fixture edits | eval/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
WenlanClientinsrc/api.rs; do not scatter raw URLs or response-shape parsing through command handlers. Anything that talks to "the daemon" must go throughclient.base_url(), never a literal127.0.0.1:7878— an isolated dev app selects a different port. - Register new Tauri commands in
src/lib.rsafter adding the command function. - Prefer module-local Rust unit tests near the behavior under
#[cfg(test)]. Useapp/tests/*.rsonly for cross-module or daemon-backed integration. app/tests/sources_integration.rsis ignored because it needs a live daemon.tauri.conf.jsondeclareswenlan,wenlan-server, andwenlan-mcpasexternalBin; 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.rsfailures 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:allDoes 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.

