Privacy Model
- No telemetry in the installed CLI, MCP server, local web UI, or wiki runtime.
- No hosted backend.
- No external API calls from
serve.pyorlink-mcp. - Raw sources and generated wiki pages are ignored by git by default.
- SQLite search, when available, is an in-memory derived index. Markdown remains the source of truth.
- Optional semantic recall stays local: embedding models load offline-only at recall time (only the explicit
lnk semantic --setupmay fetch a model, once), embeddings live in plain JSON under.link-cache/, and CI blocks outbound network code in the runtime. - Automatic session hooks store proposal-only notes; no durable memory is written without explicit review. Transcript extraction skips tool calls and tool outputs, and it drops text the harness writes with the user's role but the user never typed: subagent reports, slash-command expansions, local command output, interruption markers, compaction summaries and messages from other sessions. Secret-shaped values are redacted before a capture is written to disk; the inbox still names what was redacted so you know to rotate it.
- Session handoffs are delivered to the next session on any agent, framed as notes from a previous session rather than instructions. A handoff carrying injection-shaped instructions is labelled, and the agent is told to show it to you and not act on it until you confirm it is yours.
- Retrieval observability is local-only and minimal. So you can answer "are my agents actually using this?", Link records that a brief or recall happened, when, and which memory names came back — in
.link-usage.jsonat the workspace root. It never records your queries, the answers, the conversation, or anything about the machine; it is bounded to the most recent events; it is excluded fromlnk sync(behavior is not memory, and it never leaves this machine); and it is switched off entirely withLINK_USAGE=off.
The public GitHub Pages documentation may use lightweight analytics to understand install interest. It does not run inside Link, read local wiki data, or capture source/memory content.
Secret Handling
Link scans raw sources, captures, wiki pages, release files, and public artifacts for secret-looking values. It detects common API keys, provider tokens, JWTs, private key blocks, and registry credentials, warns without logging secret values, and refuses normal ingest guidance when raw safety cannot be established. Validation and doctor checks also fail if a secret-looking value is already present in a wiki page before the local UI or MCP tools can serve it as context.
lnk ingest-status
lnk capture-inbox
lnk redact-capture raw/memory-captures/<capture>.md
lnk validate
lnk doctor
python3 scripts/check_release_hygiene.py
HTTP Boundary
The local viewer binds to 127.0.0.1, rejects unexpected host/bind flags and unexpected Host headers, and has no authentication. Do not expose it to the internet without adding an auth layer.
HTTP write actions require X-Link-Local-Action: true. Responses include X-Link-API-Version. Proposal analysis does not write pages.
Backups
lnk backup and MCP admin action backup write local .link-backups/ archives. Raw sources are excluded unless explicitly requested.
lnk backup
lnk backup --include-raw
lnk doctor --fix
Run a backup before broad repair work or large generated changes.
Enforced Rules
A reviewed memory can carry rules that are checked before the agent's tool calls. Because a rule changes what an agent may do, only a person turns one on or off. Over MCP an agent cannot approve, clear, archive, restore or update a memory that carries rules, and the viewer refuses those changes too, because it cannot tell your click from an agent's request: you make them with lnk in your own terminal or in LinkBar. While any rule is active, the session hook also stops an agent that runs Link's own review, enforce, archive or forget commands, or edits a memory file directly, so an agent cannot quietly loosen its own constraints.
Rules are checked through each agent's own pre-tool hook: Claude Code, Cursor, Codex, Gemini CLI, Antigravity, Copilot, Windsurf and Kiro. Some of those agents can only allow or block a call. There, an ask rule holds the call: it is blocked, the agent is told to ask you in chat, and lnk approve <id> (or Approve once in LinkBar) lets that exact call through once within ten minutes. lnk approve shows the call before granting it, with control characters written out and secret-looking values blanked. The approval is single-use and covers that call only, on the agent it was held on, including what it writes and how: approving one patch does not let a different patch to the same file through, and approving an append does not let an overwrite through. Approving stays with you: lnk approve is one of the governance commands the hook holds however it is spelt (through a variable, a substitution or a git alias too), and the approvals file lives in the workspace's .link-cache/, which the hook treats like the memory files. A command the hook cannot read, such as eval "$c", waits for your OK. On Copilot, an ask becomes a block in autopilot mode and in the cloud agent, and the cloud agent loads only the repository's own .github/hooks, so Link's rules do not reach it.
What the hook is, and is not: it runs as you, inside the agent's own permissions, and reads each command as the shell will. That stops a mistaken or talked-into call and the usual disguises of one. It is not a sandbox: an agent set on escaping it can write a program that does the forbidden thing, or edit its own hook settings, and no check running as the same user can prevent that. For an agent you do not trust, run it in a container or a separate account.
Team Review
For small teams, evaluate Link as a local-first tool first: each developer runs their own CLI/MCP server, then reviewed wiki/ pages can be shared through Git when the team explicitly wants shared memory. Teammates' memories arrive through your own review gate: lnk team-sync imports them as pending, and nothing a teammate wrote is recalled, briefed or compiled for you until you review it.
Open the team security checklist
Before Sharing A Repo Or Wiki
python3 link.py doctor
python3 link.py validate
python3 scripts/check_release_hygiene.py
git diff --check
Use git push, git archive, or clean build artifacts for public sharing. Do not zip a whole working directory; ignored local files, .git/, caches, raw sources, and build outputs can be included by accident.
Reporting Security Issues
Use a private maintainer contact channel first. Do not post secrets, private wiki content, raw source files, or exploitable details in public GitHub issues. If a public issue is the only available path, keep it high level and ask for a private follow-up channel.
See SECURITY.md for the current reporting policy.