kicad-mcp-pro / src-tauri
AGENTS.md169 starsChanged 18 days agoMITView on GitHub
These instructions apply to src-tauri/** and supplement the repository root AGENTS.md. The desktop app is a Rust/Tauri shell around the local KiCad MCP Pro backend. It owns desktop lifecycle, backend startup/health negotiation, loopback UI connectivity, Tauri capabilities, and desktop packaging. It must not become an alternate implementation of server policy. The desktop/backend compatibility handshake is a release contract. Do not silently fall forward/backward to a different Python release merely because uvx can resolve one. The desktop UI/backend relationship is intentionally…
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 5 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Do not silently fall forward/backward to a different Python release merely because uvx can resolve one.
- Distinctive: line 35
Keep backend bind/connect assumptions on loopback unless security policy is intentionally redesigned.
- Very specific: line 36
Do not broaden CSP connect-src or local service exposure for convenience.
- Very specific: line 37
Treat shell/dialog/plugin capability changes as security-sensitive.
- Distinctive: line 38
Do not turn an unavailable or incompatible backend into an implicit remote/fallback service.
- Distinctive: line 43
Keep health/startup timeouts bounded and consistent with the frontend/backend startup contract.
- Distinctive: line 44
Avoid blind restart loops when startup may still be in progress.
- Distinctive: line 45
Do not leak tokens, sensitive environment data, or private project contents into desktop logs.
≈ “Common” is an estimate: at least 1 in 5 of the 36,368 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
Tauri Desktop Instructions
These instructions apply to src-tauri/** and supplement the repository root AGENTS.md.
Boundary
The desktop app is a Rust/Tauri shell around the local KiCad MCP Pro backend. It owns desktop lifecycle, backend startup/health negotiation, loopback UI connectivity, Tauri capabilities, and desktop packaging. It must not become an alternate implementation of server policy.
Read first:
ARCHITECTURE.mddocs/security/threat-model.mddocs/development/release-process.mdsrc-tauri/tauri.conf.jsonsrc-tauri/src/lib.rs
Backend compatibility
The desktop/backend compatibility handshake is a release contract.
Preserve:
- exact release-version policy where currently required;
- the desktop API contract version;
- health-check validation before treating an existing service as compatible;
- explicit failure for a different/incompatible service already bound to the port;
- exact backend package selection for release builds.
Do not silently fall forward/backward to a different Python release merely because uvx can resolve one.
Local service and CSP boundary
The desktop UI/backend relationship is intentionally local.
- Keep backend bind/connect assumptions on loopback unless security policy is intentionally redesigned.
- Do not broaden CSP
connect-srcor local service exposure for convenience. - Treat shell/dialog/plugin capability changes as security-sensitive.
- Do not turn an unavailable or incompatible backend into an implicit remote/fallback service.
Process lifecycle
- Preserve child-process cleanup on app shutdown.
- Keep health/startup timeouts bounded and consistent with the frontend/backend startup contract.
- Avoid blind restart loops when startup may still be in progress.
- Do not leak tokens, sensitive environment data, or private project contents into desktop logs.
- User-selected working directories remain untrusted filesystem input and must not bypass server path policy.
Version and release parity
Desktop version changes must remain synchronized with the repository release/version policy and relevant Python/package metadata. Do not bump Cargo.toml or tauri.conf.json in isolation when the release process expects cross-surface parity.
Generated icons/bundles are outputs; use repository-owned generation/build commands.
Verification
For Rust/Tauri changes run focused tests plus:
cargo check --manifest-path src-tauri/Cargo.toml
task pre-pushFor user-visible desktop changes use the applicable web/desktop smoke path. For packaging/release changes use the release/GUI workflows or dry-run checks required by repository policy.
Definition of done
A desktop change is complete only when backend compatibility, loopback/CSP security, lifecycle, capabilities, version parity, tests, and packaging behavior remain aligned.
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 28,693 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 repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- integrations/AGENTS.mdAGENTS.md
- packages/AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- docs/llms.txtllms.txt
- drc-checkSkill
- fabrication-outputSkill
- kicad-design-reviewSkill
- pcb-designSkill
- schematic-reviewSkill
- visual-excellenceSkill
- wired-subcircuit-designSkill
- code-reviewSkill
- drc-checkSkill
- fabrication-outputSkill
- kicad-design-reviewSkill
- pcb-designSkill
- schematic-reviewSkill
- visual-excellenceSkill
- wired-subcircuit-designSkill
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.

