Nothing leaves your Mac unless you send it.
AgentMark is a local app. The folder stays where it is, the index lives in application support, and the only network calls are the ones you start with your own key.
The short version
- No account, no sign-in, no sync, no admin console.
- No content telemetry. The app does not report what you read, write, or connect.
- No background network calls. The MCP server performs none at all.
- The folder is read-only unless you accept a suggested change.
Trust boundaries
Four rules shape the implementation:
- Markdown is untrusted. Agents and people can write anything into a file.
- Files are untrusted until you pick them. Only folders you choose are read.
- The webview is untrusted from Rust's side. Every native command validates its own input and scope.
- The network is off by default. There is no account, sync, or content telemetry.
How rendering is contained
- Raw HTML
- Disabled in the Markdown renderer. Unsafe link protocols are rejected.
- Links
- External links open in your browser; the app never navigates away from itself.
- Mermaid
- Strict mode, no HTML labels, size and edge caps, and the generated SVG is sanitized.
- Remote images
- Blocked by the content security policy, so a tracking pixel cannot load.
- CSP
- Strict, with a separate development policy for hot reload.
The MCP socket
Writes travel over a Unix domain socket at~/Library/Application Support/com.mohitkhare.agentmark/agentmark.sock, mode 0600, with a peer user check. There is no TCP listener.
- Reads are limited to folders you added.
- Live reads reject absolute paths,
.., symlinks, and files over 2 MB. - Writes are rate-limited to 20 per client per minute and 50 proposals per submission.
- Proposal shape and session linkage are re-validated inside the app, not trusted from the client.
Your key
Provider keys are stored in the macOS Keychain under one service, one entry per provider. They are never written to the database, local storage, logs, or event payloads. The interface only learns whether a key exists.
Known limits
Being specific is more useful than claiming perfection:
- Mermaid currently needs
unsafe-evalin the content security policy. Removing it is tracked and blocked on a test harness. - Folder import trusts your selection rather than enforcing a native allowlist. Symlinks are skipped and caps apply.
- The updater is not built yet. When it lands it will use a pinned signing key and HTTPS only.
Security questions
Does AgentMark upload my documents?
No. There is no account, no sync, and no content telemetry. The index, snapshots, notes, and history stay in a local database on your Mac.
When does text leave my Mac?
Only when you use Ask with your own key. The first send per document and scope asks for confirmation, and it goes to the provider you chose over HTTPS.
Can a Markdown file run code?
No. Raw HTML is disabled in the renderer, unsafe link protocols are rejected, and Mermaid runs in strict mode with its SVG sanitized.
Where are API keys kept?
In the macOS Keychain, one entry per provider. The webview only ever sees whether a key exists, never the key itself.
What can the MCP server reach?
Only folders you added. It reads the database directly and never writes files; writes go through the app and need your approval.