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
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 35,117 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 repository10 other files it gives its agents.
- AGENTS.mdAGENTS.md
- scripts/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- scripts/CLAUDE.mdCLAUDE.md
- src-tauri/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- claudette-debugSkill
- claudetteSkill
- lead-engineerSkill
- pr-reviewSkill
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
- Very specific: line 45
All debug code is gated behind #[cfg(debug_assertions)] / import.meta.env.DEV.
≈ “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.
Files
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
defaultisserver,voice,devtools,alternative-backends.voiceaddscpal,candle-*(Whisper),tokenizers,rubatoandhound. Linux needslibasound2-dev. Headless builds drop it with--no-default-features --features tauri/custom-protocol,server.serveraddsclaudette-serverfor Share this machine.alternative-backendsshows Codex Native and the Ollama and OpenAI provider cards in Settings > Models.devtoolsturns 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.rshandles attention notifications (AskUserQuestion, ExitPlanMode).src/commands/chat/handles agent-finished ones.- Both go through
build_notification_commandinsrc/commands/settings.rs. That runssh -c <cmd>on macOS and Linux, andcmd.exe /S /C <cmd>on Windows. - Banners use
mac-notification-syson macOS (click to navigate) andtauri-plugin-notificationon Linux and Windows. - On macOS and Linux, sounds shell out to
afplay,paplayorffplay. On Windows,claudette::audio(src/audio.rsin the core crate) usesPlaySoundWfor system sounds androdiofor sound packs. New Windows audio code goes inaudio.rs, so theunsafeFFI stays in one place.
Voice
- Respect the macOS privacy-prompt contract (root
AGENTS.md). - Each mic click logs one event on the
claudette::voicetracing target, withprovider_id,total_msandstream_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 port19432, overridable with$CLAUDETTE_DEBUG_PORT) that runs JS in the webview. - It exposes
window.__CLAUDETTE_STORE__andwindow.__CLAUDETTE_INVOKE__. - All debug code is gated behind
#[cfg(debug_assertions)]/import.meta.env.DEV.
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.

