AI Agent knowledge pipeline — MCP integration + Hero OS context #75
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
AI Agent Knowledge Pipeline — Complete Ecosystem Migration Spec
Context
hero_agent replaced hero_shrimp (#72) but the ecosystem wiring is incomplete. hero_agent works as a standalone AI agent (57 tools, SSE, voice) but doesn't integrate with the Hero OS service ecosystem the way Shrimp did.
This issue completes the migration to 100%.
Current State
Level 1: MCP Wiring (Quick — config only)
Goal: hero_agent discovers and uses all Hero service tools via mcp_hero.
mcp.jsonin hero_agent data dir to connect to mcp_herolist_services→ returns all Hero servicesregister_service→ discovers a service's OpenRPC specgenerate_code+execute_code→ generates and runs Python to interact with a servicemcp.json format:
Level 2: System Prompt Enrichment (Quick — code change)
Goal: The LLM knows what Hero OS is and how to help users.
hero_agent/crates/hero_agent/src/prompt.rsto include:Level 3: LLM Routing Consistency (Medium)
Goal: All hero_agent LLM traffic goes through hero_aibroker.
claude-sonnetnotanthropic/claude-sonnet-4gpt-4o-mininotopenai/gpt-4o-minillama-70bnotmeta-llama/llama-3.3-70b-instructHERO_AGENT_OPENROUTER_MODELSso aibroker models are used by defaultLevel 4: Documentation Search Tool (Medium)
Goal: hero_agent can search and retrieve Hero OS documentation.
search_hero_docsbuilt-in tool tohero_agent_tools/search.queryfor semantic search (uses hero_embedder)collections.getPagefor direct page lookupcollections.listto show available documentationTool schema:
Level 5: hero_proc SDK Lifecycle (Medium)
Goal: hero_agent properly integrates with hero_proc for managed lifecycle.
hero_proc_sdkdependency to hero_agent--start/--stopCLI flagsLevel 6: OpenRPC Spec (Medium)
Goal: hero_agent is discoverable by hero_inspector and other services.
agent.chat— send message, get responseagent.conversations.list— list conversationsagent.conversations.get— get conversation historyagent.voice.transcribe— STTagent.voice.tts— TTSagent.config— get agent configurationagent.stats— get statistics/openrpc.jsonor viarpc.discoverLevel 7: Smoke Tests (Quick)
Architecture: Complete Ecosystem Flow
References
Signed-off-by: mik-tf
Completed — v0.6.0-dev
All 7 levels implemented and verified:
Level 1: MCP Wiring
Level 2: System Prompt Enrichment
Level 3: LLM Routing
Level 4: search_hero_docs Tool
Level 5: hero_proc_sdk Lifecycle
Level 6: OpenRPC Spec
Level 7: Smoke Tests
Repos touched
Release