🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentskit/doc-bridge

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentskit/doc-bridge

Human↔agent documentation bridge — deterministic handoffs, doc-site links, memory→docs, optional AgentsKit RAG/chat.

Source
npmnpm
Version
0.1.0-alpha.3
Version published
Weekly downloads
287
120.77%
Maintainers
1
Weekly downloads
 
Created
Source

doc-bridge

npm: @agentskit/doc-bridge · CLI: ak-docs

Human↔agent documentation bridge for any project — not a wiki, not a hosted RAG chat.

doc-bridge helps coding agents find the right file, edit the right roots, run the right checks, keeps agent docs linked to human docs, and turns agent memory into project documentation (with human approval). The core is deterministic and works without any LLM or API key.

Optional intelligence (RAG + terminal chat) uses public AgentsKit packages — install only when you want them.

Why this exists

PatternGap
Wiki + RAGExplains; weak on where to act and proof docs match code
AGENTS.md aloneGreat static rules; no ownership index, gates, or human bridge
Context7-class toolsLibrary docs for the model; not your monorepo routing

doc-bridge ships AgentHandoff JSON:

{
  "type": "agent-handoff",
  "startHere": "docs/for-agents/packages/example.md",
  "editRoots": ["src"],
  "checks": ["npm test"],
  "humanDoc": "/docs/guides/example"
}

Four loops

LoopWhat you get
ActCLI + MCP handoffs (query, handoff.resolve)
BridgeFumadocs / Docusaurus / plain-markdown ↔ agent corpus + gates
Learnmemory ingest → classify → promote drafts (HITL)
ExplainOptional @agentskit/rag + @agentskit/ink chat (handoffFirst)

Quick start (< 2 minutes, no key)

npm i -D @agentskit/doc-bridge
npx ak-docs init
npx ak-docs index
npx ak-docs query package example --agent

init scaffolds config, a demo ownership target, and an AGENTS.md snippet.

npx ak-docs list packages --text
npx ak-docs ask "where do I change example?"
npx ak-docs gate run
npx ak-docs mcp

Full guide: docs/getting-started.md.

Surfaces

Layer 0 — always (no LLM)

SurfacePurpose
IndexDocBridgeIndex + contentHash + llms.txt + capabilities
CLIquery / search / list / ask / gate / memory / bootstrap
MCPhandoff.resolve, doc.search, doc.get, …
GatesFreshness, human-link validation, optional OKF style
Pluginspnpm-monorepo, fumadocs, docusaurus, plain-markdown

Ownership can come from config, frontmatter (package + editRoot), or workspace discovery.

Layer 1 — optional AgentsKit peers

npm i -D @agentskit/rag @agentskit/ink @agentskit/adapters @agentskit/memory react
ak-docs rag ingest
ak-docs chat
ak-docs ask "how does auth work?" --chat

See docs/chat-and-rag.md.

Architecture

Your repo
├── docs/for-agents/     agent corpus
├── docs/ or content/    human site (plugin)
├── AGENTS.md
└── doc-bridge.config.*

Layer 0 — Index · CLI · MCP · Gates · Memory pipeline
Layer 1 — @agentskit/rag · adapters · ink chat   (opt-in)

Trust model: Layer 0 is merge-blocking truth. Layer 1 explains and drafts; humans and gates decide.

Who uses it (public)

Designed for and dogfooded on open AgentsKit surfaces:

Configuration examples

ProfileExample
Solo markdownexamples/minimal-plain-markdown.config.ts
pnpm monorepoexamples/pnpm-monorepo.config.ts
Fumadocs + chatexamples/fumadocs-with-chat.config.ts
Docusaurus + memoryexamples/docusaurus-with-memory.config.ts

Contract: docs/spec/config-v1.md · CLI: docs/spec/cli.md · MCP: docs/mcp.md

Status

v0.1.0-alpha.3 — Dogfood polish (pnpm-aware checks, corpus ownership inference, playbook gate preset, git prepare build). Layer 1 RAG/chat via optional peers.

pnpm install && pnpm build && pnpm test

Contributing

License

MIT

Keywords

agentskit

FAQs

Package last updated on 09 Jul 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts