Skip to content

Dual-Surface Model

The Dual-Surface Model

Most knowledge bases are designed solely for human reading, making them inefficient or error-prone for AI agents. AgentWiki introduces a Dual-Surface Model where humans and agents share the exact same underlying knowledge graph.

Comparison of Surfaces

FeatureHuman Surface (Webapp)AI Agent Surface (MCP / CLI / REST)
InterfaceReact 19 WYSIWYG Editor (BlockNote)JSON-RPC (MCP) & REST OpenAPI 3.1
SearchVisual search modal with instant highlightsHybrid search endpoint with scores & facets
GraphInteractive Cytoscape.js canvasBFS traversal & shortest-path tool calls
AuthenticationOAuth2 Session CookiesScoped API Keys (aw_...)
Content FormatRich HTML / BlockNote JSONClean Markdown & Structured JSON

Synchronization

When a human writes a document in the web editor:

  1. Markdown is automatically synchronized and indexed in D1 FTS5.
  2. Wikilinks are parsed to update explicit edges in document_links.
  3. Background queues generate text chunks and Vectorize embeddings for agent retrieval.