Repository navigation
41 InkCop Local Collab
KepCup 开发助理 edited this page Oct 24, 2026
·
1 revision
Source: docs/design/41-inkcop-local-collab.md
Same number prefix as 41-Project-Team; different topic. Contract aligned with InkCop’s same-machine Connection bridge doc (v0.4).
endpoint.version |
Capabilities |
|---|---|
| 1 | health / connections / messages SSE |
| ≥ 2 | + GET /v1/agents
|
| ≥ 3 | User API key + optional LAN; token = settings key |
| ≥ 4 | Agent items include description (main agent = main chat role definition) |
- Extension Center → Local app collaboration — InkCop card: enable toggle (bridge status chip), API key, optional service URL. Does not create a system Bot.
-
When enabled — any Bot detail can multi-select linked InkCop agents from
GET /v1/agents(name / kind / description). Selection writesruntime.inkcop_agent_keysonly — does not switchmessage_transport, does not divert whole turns. -
Runtime — Bot still uses its normal LLM. Linked agents register tool
call_inkcop_agent(agent_keyenum = checked keys; description injected). Call only when the user names it or the Bot judges a handoff is needed →connections+messagesSSE → tool result → Bot replies. - When disabled — hide link UI; no discovery, no tool, no bridge calls.
- ACP
agent:inkcopremains a debug bypass. Knowledge base still talks to LoomVec directly.
settings.inkcopLocalCollab = { enabled, apiKey, baseUrl }.
-
apiKeyrequired for stable calls; empty may prefill fromendpoint.jsontoken during same-machine discovery -
baseUrloptional override (LAN / remote machine); empty → endpoint /http://127.0.0.1:<port> - Legacy
systemBotIdremoved from settings type (ignored if patched) - Catalog jump cards:
agents.inkcop-local-collab,bot.inkcop-agents
- Resolve
baseUrl/apiKeyfrom settings with endpoint fallback; no key → no requests - All
/v1/*useAuthorization: Bearer <apiKey>; 401 → “invalid or missing key” - Whole-turn divert removed (
shouldUseInkcopBridgealways false) - Tool gate: collab enabled and
inkcop_agent_keysnon-empty - Legacy
runtime.message_transport === 'inkcop-local'no longer changes send path (cleared on read/write) -
call_inkcop_agentis default-forbidden in tool description + system rules; only on explicit user handoff. Progress “Calling InkCop agent…” only during toolexecute, never at turn start
GET /v1/health, GET /v1/agents, POST /v1/connections, messages SSE; internal handoffToInkcopAgent; RPC inkcop.health (see source for full list).
KepCup
Core
- 01-Conversation
- 02-Execution
- 03-Bot
- 04-Memory
- 05-Wiki-and-Skills
- 30-Supervisor-and-Tasks
- 40-Capability-Mounting
- 43-Task-Loop-Harness
Runtime
- 06-Isolation-and-Storage
- 07-Local-Runtime
- 08-Workdir
- 09-Tech-Stack
- 10-Sandbox
- 11-Storage
- 13-Permissions
- 24-Durable-Execution
Product
- 12-UI-Layout
- 33-Narrow-Layout
- 39-Workbench
- 41-Project-Team
- 42-Task-Run-View
- 45-Bot-File-Cards
- 47-File-WebApp-Viewer
Capabilities
- 14-Models-and-Browser
- 15-Interactive-Execution
- 16-Capability-Models
- 17-MinerU-Document-Parsing
- 18-Inline-Setup
- 19-Work-Path-and-Group-Setup
- 20-Conversation-Media
- 21-Web-Search
- 22-File-Skill-Routing
- 23-MCP-and-SubAgent
- 25-Capability-Tools
- 26-Voice-Input
- 31-Sensors
- 32-Bot-Widgets
- 35-Mail-Channel
- 36-Wiki-Multimodal-Ingest
- 38-Conversational-Settings
Team & agents
- 27-Butler-and-Delegation
- 28-External-Agents-ACP
- 37-Bot-Asset-Handover
- 41-InkCop-Local-Collab
- 48-Bot-Template-Export
Cloud & remote