synaplan-desktop
AGENTS.md257 starsChanged 48 days agoApache-2.0View on GitHub
Tauri 2 + Vue 3 desktop client that pairs with a Synaplan workspace and runs Agent Skills locally
- 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 31,774 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 repository14 other files it gives its agents.
- calendar-eventSkill
- chartSkill
- csv-insightsSkill
- data-tableSkill
- docxSkill
- email-draftSkill
- hello-filesSkill
- invoiceSkill
- json-csvSkill
- pptxSkill
- slidesSkill
- vcardSkill
- web-reportSkill
- xlsxSkill
The file
We split this AGENTS.md into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 58
The gate is the proof: Always run make ci-local before committing.
- Very specific: line 66
No secrets, ever: Not the API key (OS secret store), not signing material (.signing/ is gitignored).
- Distinctive: line 86
Never: add AI attribution ("Generated with…", "Co-Authored-By: …").
- Very specific: line 176
All user-facing strings via vue-i18n.
- Very specific: line 179
Never put a forbidden term in primary UI copy (see the plan's 12_ux_and_i18n.md §2.1): Claude, Anthropic, MCP, shell, Bash, tool_use, sk_, …
- Distinctive: line 196
Commit to main, force-push main, or add AI attribution.
- Very specific: line 197
Commit secrets, keys, pairing codes, dist/, src-tauri/target/, or node_modules/.
- Very specific: line 202
Add a #[cfg(target_os)] path/secret branch outside platform/.
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 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
Synaplan Desktop — Development Guide
A small, separate desktop app (Windows, macOS, Linux) that pairs with a Synaplan workspace, chats with the user's Synaplan account through the Anthropic-compatible Messages gateway, and (from Sprint B2 on) runs installed Agent Skills on the user's own computer under a filesystem allowlist.
Stack: Tauri 2 + Rust (path confinement, process spawn, OS secret store) +
Vue 3 / TypeScript / Vite. It is not an Electron wrap of the Synaplan web
SPA, and it never embeds web.synaplan.com in a WebView.
Plan of record: vendored in this repo at
_extras/planning/20260829-desktop-agent-client/
(source of truth is the synaplan repo). This client is Phase B; the whole
server side (Phase A) is already merged and its job/check-in contract is
frozen at protocol: 1.
User docs: docs.synaplan.com/desktop (overview, skills, folders, local tools).
Start here (60-second orientation)
New to this repo — or driving it with an AI assistant ("vibe coding")? Read this,
then skim _extras/planning/…/00_master_plan.md.
What the app is: a Tauri window that (1) pairs with a Synaplan instance, (2) chats through the instance's Messages gateway, and (3) — soon — runs local Agent Skills under a strict folder allowlist. The security model is the product; treat it as load-bearing, not a detail.
Where things live (the mental model):
| You want to change… | Go to… |
| The UI | src/ (Vue). Talk to Rust only through src/services/tauri.ts. |
| Behavior needing the OS (files, processes, secrets, network) | src-tauri/synaplan-core/ (pure, unit-tested), then add a thin #[tauri::command] in src-tauri/src/commands/. |
| Anything OS-specific (paths, secret store, later path confinement) | only src-tauri/synaplan-core/src/platform/. |
| User-facing text | all five locales in src/i18n/ (a test enforces key parity). |
The loop that keeps you safe: small change → make ci-local → commit on a
branch → PR. Green locally ⇒ green CI.
Working with an AI assistant (vibe coding)
This repo is friendly to AI-assisted development. A few habits keep it clean and reviewable:
- Small, reviewable steps. One concern per PR — the plan is already sliced
into
DC*steps, so follow them. Don't let an assistant rewrite half the app in one commit. - The gate is the proof. Always run
make ci-localbefore committing; if the assistant says "done", that's what confirms it. Never commit red. - Don't invent the server contract. Pairing / job / messages shapes are fixed
by the
synaplanserver. The frozen fixtures intests/fixtures/desktop-contract/are the source of truth — conform to them, never edit them to make code pass. - Keep platform code in one place. A
#[cfg(target_os = …)]for paths or secrets outsideplatform/is a bug — move it. - No secrets, ever. Not the API key (OS secret store), not signing material
(
.signing/is gitignored). If an assistant tries to log or commit a key, stop it. - Ask before adding dependencies (npm or cargo) and say so in the PR.
- When unsure, read the plan in
_extras/planning/— it explains why a rule exists (especially the no-shell and path-confinement rules).
Critical rules
Language
- Code, comments, commit messages: always English. Chat responses follow the user's language.
Git — allowed, but never on main
- Feature branches + PRs only. Never commit or push directly to
main, never force-pushmain. - Conventional Commits:
feat:,fix:,refactor:,docs:,chore:,test:,ci:. - Never add AI attribution ("Generated with…", "Co-Authored-By: …").
- Merge conflicts: merge both sides manually; never
git checkout --ours/--theirson code; if unsure, ask.
main is guarded by repository rulesets (the same shape as synaplan,
kept to what a desktop app needs). Classic branch protection is not the gate:
it let admins push straight to main.
| Ruleset | What it enforces | Who can bypass |
BaseRules | Changes reach main only through a pull request. No force-push, no deleting main. | Nobody |
ReviewCode | One approving review. Stale reviews are dismissed, and review threads must be resolved. | Organisation admins, and the repository maintain and admin roles |
RequiredWorkflows | The All Checks Passed job is green, on a branch that is up to date with main. | Nobody |
A green local make ci-local is not a merge. The pull request's All Checks
Passed job is the merge gate: lint and types, the no-shell guard, unit tests
on Windows, macOS, and Linux, and a debug build on all three. Do not rename
that job. Do not turn the ruleset off to land a red pull request.
A release tag (v*) or a manual release run builds installers only when the
commit is already on main and the latest CI run for that push to main
succeeded. A green pull-request run does not count, and tagging a red commit
does not publish a release.
gh api repos/metadist/synaplan-desktop/rulesets --jq '.[] | {id, name, enforcement}'The pre-commit gate — make ci-local
make ci-local is the gate and mirrors CI 1:1 (green locally ⇒ green CI). It runs:
| Step | Checks |
npm run lint | ESLint + Prettier |
npm run type-check | vue-tsc |
npm run test | Vitest (incl. i18n parity) |
scripts/no-shell-guard.sh | C12 — no shell is ever constructed |
cargo fmt --all --check | Rust formatting |
cargo clippy … -D warnings | Rust lints (core, then whole workspace) |
cargo test -p synaplan-core | Rust unit tests |
npm run build + cargo build | Frontend + debug app build |
CI runs the unit tests and the debug build on all three OSes
(ubuntu-latest, windows-latest, macos-latest) on every PR. A control
verified on one OS is an assumption on the other two (invariant C11). Never
weaken the three-runner matrix; if minutes are tight, drop the debug build on
Windows/macOS to push-only — never the tests.
Architecture — where things live
src-tauri/synaplan-core/— the platform-independent, unit-tested core (paths, secret store, pairing, SSE, config, the frozen contract types). No Tauri dependency, so it compiles and tests fast on all three OSes.src-tauri/synaplan-core/src/platform/— the only place OS differences live (app_dirs,secret_store). No#[cfg(target_os = …)]for paths or secrets anywhere else. A reviewer reads one directory to know what differs.src-tauri/src/— a thin Tauri shell: wires core functions to#[tauri::command]s and events. No business logic, no platform branch.src/— Vue 3 (<script setup lang="ts">), talks to Rust only throughsrc/services/tauri.ts.
Runtime config & secrets
- No
VITE_*env var for the Synaplan URL — it is unknown at build time and comes from pairing at runtime. Dev-only flags (e.g.VITE_SYNAPLAN_DEV_URLto pre-fill the address field) are OK. - The scoped API key lives in the OS secret store (
SecretStore), never in the config file, the webview, the audit log, a crash report, or a subprocess env. On 401 it is deleted, not left behind. - Never commit an
sk_…key, a keychain dump, or a pairing code.
The frozen contract (C9)
tests/fixtures/desktop-contract/is vendored byte-for-byte from thesynaplanserver repo (source commit recorded in its README). Do not edit these files — a change is aprotocol: 2decision on the server side. A checksum test fails the build if a byte drifts.- A job's device-facing input is only
{skill, prompt, fileIds}— structurally enforced bydeny_unknown_fields. There is no field through which a shell string can reach the computer.
No shell, ever (C12)
- Local tools (Sprint B2+) take
{program, args[], workdir}.sh -c,cmd /c,powershell -Command, andosascript -eare never constructed.scripts/no-shell-guard.shgreps for them in CI.
i18n
- All user-facing strings via
vue-i18n. Update all five locales in the same commit:en,de,es,fr,tr(src/i18n/).tests/unit/i18n/enforces full key parity. - Never put a forbidden term in primary UI copy (see the plan's
12_ux_and_i18n.md§2.1):Claude,Anthropic,MCP,shell,Bash,tool_use,sk_,Tauri,lease, etc. Show platform-native paths in the UI, never~/…on Windows.
Boundaries
Ask first before
- Adding dependencies (npm / cargo) or a native plugin.
- Changing the CI matrix, bundle identifier (
com.synaplan.desktop), the vendor path (Synaplan\Desktop), or theapp_dirslayout — these are permanent once a user installs. - Widening what a skill may do, or touching the pairing/secret/execution paths.
Never do
- Commit to
main, force-pushmain, or add AI attribution. - Commit secrets, keys, pairing codes,
dist/,src-tauri/target/, ornode_modules/. Code-signing material lives in the gitignored.signing/directory (only itsREADME.md+secrets.env.exampleare tracked) and is never committed. - Copy the Synaplan Vue SPA into this repo or add a Claude Code dependency.
- Add a
#[cfg(target_os)]path/secret branch outsideplatform/. - Skip the pre-commit gate.
Detailed documentation
docs/DEVELOPMENT.md— local setup, dev loop, the mock server.docs/PLATFORMS.md— per-OS build prerequisites and the signing plan.docs/LOCAL_TOOLS.md— how local skills use Python/Node/LibreOffice: the doctor, the binary allowlist, and the no-shell execution model.docs/SHOWCASE_SKILLS.md— the curated catalog of demo skills (Win/mac), in waves by dependency, with the bundle priority._extras/planning/— the vendored plan of record (read00_master_plan.md).
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.

