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§
- action_
planner - Deterministic action planner for task-oriented turns.
- agent_
loop - analyzer
- approvals
- capability
- Unified capability registry — a catalog of invocable tools with metadata and dispatch.
- compaction
- Context compaction — minimize the token footprint of all injected context.
- consolidation
- Memory consolidation pipeline — the “dreaming” cycle.
- 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
- normalization
- Normalization
- obsidian
- obsidian_
tools - orchestration
- policy
- prompt
- ranking
- Unified ranking types for memory retrieval and tool search convergence.
- recommendations
- retrieval
- retrieval_
strategy - Adaptive source discovery — policy-driven retrieval strategy selection.
- script_
runner - services
- skills
- speculative
- subagents
- task_
state - Task Operating State — introspection-driven state synthesis.
- tool_
output_ filter - Tool output noise filter — cleans tool output before it reaches the LLM.
- tool_
search - Semantic tool search — rank and prune tools before presenting to the LLM.
- tools
- topic
- Topic segmentation for session conversation threads.
- typestate
- wasm
- workspace