Expand description
§roboticus-agent
Agent core for the Roboticus runtime. The central module is agent_loop
(mapped from loop.rs), which implements a ReAct reasoning loop as a typed
state machine: Think → Act → Observe → Persist, with idle/loop detection
and financial guards.
§Key Types
agent_loop– ReAct state machine with typed transitions viatypestatetools::ToolRegistry– Trait-based tool system (10 categories)policy::PolicyEngine– Rule-based policy evaluationretrieval::MemoryRetriever– Hybrid RAG pipeline (FTS5 + vector cosine)analyzer::ContextAnalyzer– Topic extraction, sentiment, complexityrecommendations::RecommendationEngine– Proactive suggestionsobsidian::ObsidianVault– Obsidian vault integrationskills::SkillLoader/skills::SkillRegistry– Dual-format skill system
§Modules
context– Progressive context loading (4 levels) and compressioninjection– 4-layer prompt injection defenseprompt– System prompt builder with HMAC trust boundariesmemory– Memory budget manager and turn ingestionretrieval– Hybrid search RAG pipeline with content chunkingknowledge– KnowledgeSource trait and aggregationdiscovery– Capability discovery across tools, skills, pluginsdigest– Turn digest and history summarizationdevice– Device context and hardware infoworkspace– Workspace state (file tree, git status, project metadata)orchestration– Multi-agent task decompositiongovernor– Rate governor and concurrency limitstypestate– Compile-time valid state transitionsspeculative– Parallel branch evaluation with best-result selectionmanifest– Agent capability declarationsservices– Service locator and dependency wiringmcp– Model Context Protocol client integrationwasm– WASM plugin runtimeobsidian/obsidian_tools– Vault integration and read/write/search toolsskills/script_runner– Skill loading, execution, sandboxed scriptsanalyzer/recommendations– Conversation analysis and proactive suggestions
Modules§
- agent_
loop - analyzer
- approvals
- context
- device
- digest
- discovery
- governor
- ingest
- Document ingestion pipeline: file → parse → chunk → embed → store.
- injection
- interview
- knowledge
- learning
- Learning loop — detect successful multi-step tool sequences from completed sessions and synthesize reusable skill documents.
- manifest
- mcp
- mcp_
handler - MCP Server Handler — bridges rmcp’s
ServerHandlerto Roboticus’sToolRegistry. - memory
- obsidian
- obsidian_
tools - orchestration
- policy
- prompt
- recommendations
- retrieval
- script_
runner - services
- skills
- speculative
- subagents
- tools
- typestate
- wasm
- workspace