agentleFS
utensilsutensils/claudette/src-tauri/AGENTS.md

claudette / src-tauri

AGENTS.md91 starsChanged 10 days agoMITView on GitHub

claudette-tauri builds the app binary, claudette-app. It holds thin #[tauri::command] wrappers (one module per domain, listed in src/commands/mod.rs; debug is dev-build only), plus app setup and command registration (src/main.rs), the CLI IPC server (src/ipc.rs), PTYs, the tray, the remote client and host, and voice. Business logic belongs in the claudette crate, never in a command body. CI compiles this crate's tests but never runs them, and never lints it. When you change anything here, run: Both stage the CLI sidecar…

  • Reads credentials

The file

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

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All debug code is gated behind #[cfg(debug_assertions)] / import.meta.env.DEV.

    line 45

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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 binary crate (src-tauri/)

claudette-tauri builds the app binary, claudette-app. It holds thin #[tauri::command] wrappers (one module per domain, listed in src/commands/mod.rs; debug is dev-build only), plus app setup and command registration (src/main.rs), the CLI IPC server (src/ipc.rs), PTYs, the tray, the remote client and host, and voice. Business logic belongs in the claudette crate, never in a command body.

Checks

CI compiles this crate's tests but never runs them, and never lints it. When you change anything here, run:

make check-tauri                 # lint-tauri + test-tauri
make test-tauri T=<filter>

Both stage the CLI sidecar first (make sidecar): the binaries/claudette externalBin has to exist before the crate builds.

lint-tauri reports clippy warnings without failing, because the crate carries existing findings CI never caught. Don't add new ones: compare its output for the files you touched against plain origin/main. If a test fails on code you didn't touch, check it on origin/main and report it as pre-existing. clippy.toml's raw Command::new ban isn't enforced by CI here, so check new spawn sites by hand (root AGENTS.md, Windows specifics).

Feature flags

  • default is server, voice, devtools, alternative-backends.
  • voice adds cpal, candle-* (Whisper), tokenizers, rubato and hound. Linux needs libasound2-dev. Headless builds drop it with --no-default-features --features tauri/custom-protocol,server.
  • server adds claudette-server for Share this machine.
  • alternative-backends shows Codex Native and the Ollama and OpenAI provider cards in Settings > Models.
  • devtools turns on the Tauri devtools.

Notification architecture

  • Notification sounds and commands run on the Rust side, because macOS suspends webview JS while the window is hidden. A new attention signal handled only in the webview never fires in the background.
  • src/tray.rs handles attention notifications (AskUserQuestion, ExitPlanMode). src/commands/chat/ handles agent-finished ones.
  • Both go through build_notification_command in src/commands/settings.rs. That runs sh -c <cmd> on macOS and Linux, and cmd.exe /S /C <cmd> on Windows.
  • Banners use mac-notification-sys on macOS (click to navigate) and tauri-plugin-notification on Linux and Windows.
  • On macOS and Linux, sounds shell out to afplay, paplay or ffplay. On Windows, claudette::audio (src/audio.rs in the core crate) uses PlaySoundW for system sounds and rodio for sound packs. New Windows audio code goes in audio.rs, so the unsafe FFI stays in one place.

Voice

  • Respect the macOS privacy-prompt contract (root AGENTS.md).
  • Each mic click logs one event on the claudette::voice tracing target, with provider_id, total_ms and stream_open_ms. Failed starts log at error level.
  • Dev builds also emit voice://debug/start_latency.
  • See site/src/content/docs/features/diagnostics.mdx.

Debug server (dev builds only)

  • Dev builds run a TCP eval server on 127.0.0.1 (default port 19432, overridable with $CLAUDETTE_DEBUG_PORT) that runs JS in the webview.
  • It exposes window.__CLAUDETTE_STORE__ and window.__CLAUDETTE_INVOKE__.
  • All debug code is gated behind #[cfg(debug_assertions)] / import.meta.env.DEV.

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.