Knowledge Management¶
A privacy-first personal knowledge system. AnyType is the system of record (encrypted, open source, local-first). A markdown agent-wiki sits alongside as a structured knowledge artifact that LLMs can read, write, and lint.
Architecture¶
One Vault; four Spaces (Channels). Names and write policy: anytype-integration/schemas/spaces.json. Topical tags: anytype-integration/schemas/topic-tags.json.
flowchart TB
subgraph vault [One Anytype Vault]
AgentS[Space · Agent]
WorkS[Space · Work thinking]
JobS[Space · Job Hunt]
SensS[Space · Private — human only no MCP]
end
Inbox[Inbox / capture] --> Classify[Classifier]
Classify --> AgentS
Classify --> WorkS
Classify --> JobS
AgentS <-- LocalAPI --> MCP[Anytype MCP]
WorkS <-- read / approved write --> MCP
JobS <-- read / approved write --> MCP
MCP --> CursorAgent[Cursor Agent]
AgentS --> MarkdownWiki[agent-wiki markdown]
WorkS --> DiskWork["data_root/projects/work"]
MarkdownWiki --> CursorAgent
Hybrid workspaces (new-workspace): AnyType Project + Collection, a folder under workspace.data_root, and a pointer-only wiki stub. Employer source of truth is never a RAG corpus.
Hybrid inference boundary¶
| Data class | Allowed model surfaces |
|---|---|
private_sensitive |
local model only (no cloud egress) |
internal |
local preferred; cloud allowed for non-sensitive transforms with redaction |
low_sensitive |
cloud allowed; logs of cloud usage retained |
This is enforced by governance/runtime-policy.yaml and surfaced via SPB-10.
Components¶
anytype-integration/— schemas, integration patterns, runbooks, security controls.agent-wiki/— the Personal Agent Wiki (markdown-based, LLM-maintained).patterns/— approved architecture patterns (markdown corpus; MCP inpatterns/).
Companion skills¶
pkm-capture— single-step inbox entry with auto-classification.new-workspace— hybrid project workspace (AnyType + data_root folder + wiki stub).open-lab/close-lab— ephemeral host-worktree analysis dirs.pkm-link— link entities and concepts across notes.pkm-summarize— summarize a topic from multiple sources.agent-wiki-ingest— process a new source into the wiki, updatingindex.mdandlog.md.agent-wiki-lint— wiki health check (orphans, contradictions, stale claims).
Success gate¶
- 5 real ingests via the Personal Agent Wiki workflow.
- 3 cross-document queries answered, with reusable filed outputs.
- AnyType integration validated under SPB-09 (no plaintext secret leakage), SPB-10 (runtime boundary), and SPB-11 (egress).