agentleFS
oaslanankaoaslananka/kicad-mcp-pro/src-tauri/AGENTS.md

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

    Do not silently fall forward/backward to a different Python release merely because uvx can resolve one.

    line 29
  2. Distinctive:

    Keep backend bind/connect assumptions on loopback unless security policy is intentionally redesigned.

    line 35
  3. Very specific:

    Do not broaden CSP connect-src or local service exposure for convenience.

    line 36
  4. Very specific:

    Treat shell/dialog/plugin capability changes as security-sensitive.

    line 37
  5. Distinctive:

    Do not turn an unavailable or incompatible backend into an implicit remote/fallback service.

    line 38
  6. Distinctive:

    Keep health/startup timeouts bounded and consistent with the frontend/backend startup contract.

    line 43
  7. Distinctive:

    Avoid blind restart loops when startup may still be in progress.

    line 44
  8. Distinctive:

    Do not leak tokens, sensitive environment data, or private project contents into desktop logs.

    line 45

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

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

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.md
  • docs/security/threat-model.md
  • docs/development/release-process.md
  • src-tauri/tauri.conf.json
  • src-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-src or 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-push

For 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.

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.