Skip to main content

Crate microclaw_engine

Crate microclaw_engine 

Source
Expand description

Concrete, channel-independent MicroClaw Agent Engine services.

This crate is the physical extraction boundary for the provider-neutral loop and its default services. Product crates translate input/output at their edge and consume this library.

Modules§

a2a
acp_subagent
agent_engine
alerts
Opt-in operational webhook alerts.
builtin_skills
channel
channel_adapter
channels
chat_commands
chat_turn_queue
Per-chat turn serialization and message coalescing.
checkpoint
Filesystem checkpoints via shadow git repos.
clawhub
codex_auth
completion_contract
Completion contracts: evidence-based verification that a sub-agent’s task is actually done, instead of trusting its self-report.
config
config_persistence
context_references
@-prefix context references in user messages.
embedding
error
headless
Headless one-shot mode: microclaw run -p "<prompt>".
hooks
http_client
learning_foundry
User-directed, evidence-first background learning.
llm
llm_types
logging
mcp
memory
memory_backend
memory_service
messages
Bilingual (en/zh) catalog for user-facing runtime messages.
mood
Lightweight, zero-cost conversational mood detection.
observability
plugins
prompt_cache
Anthropic prompt-cache breakpoints (system_and_3 strategy).
relationship
Relationship familiarity: a light, prompt-level sense of how well the bot “knows” the person it’s talking to, derived from how much history they share (the stored message count). People treat a stranger and an old friend differently; this nudges tone the same way.
run_control
runtime
schedule_lifecycle
Scheduled-task lifecycle: run caps, deadlines, and random (“spontaneous”) cadences.
setup
setup_def
skill_audit
Deterministic skill curation audit.
skill_management
Shared Skill package lifecycle used by SDK and product UIs.
skill_review
Helpers for the autonomous skill-review pipeline.
skills
storage
subdirectory_hints
Lazily inject subdirectory AGENTS.md / CLAUDE.md / .cursorrules context when the agent starts working in a new area of the codebase.
supervision
Supervised background loops.
title_generator
Auto-generate session titles once a chat has enough context.
tool_executor
Parallel tool execution within a single agent turn.
tool_guardrails
Per-turn tool-call guardrails.
tool_runtime
tools
transcribe
trust_report
Opt-in periodic trust report.
turn_recovery
Startup recovery for work that was in flight when the previous process died.
voice
Shared voice/audio inbound transcription used by channel adapters.
worker

Structs§

AgentHandle
ControlRequest
A control message received by an executor that can be explicitly accepted or rejected.
ExecutionContext
Runtime-owned context passed to an execution engine for one run.
ExecutionResult
LocalWorker
RemoteWorker
A Worker backed by a versioned remote transport.
RemoteWorkerOptions
Reconnection policy for remote Worker runs.
RunController
Cloneable control plane for a running task.
RunHandle
Runtime
RuntimeBuilder
RuntimeStats
WebSocketWorkerTransport
Creates authenticated WebSocket connections to a MicroClaw Worker host.
WorkerHost
Authenticated WebSocket host for a Local or custom Worker implementation.

Enums§

RuntimeBuildError

Traits§

RunExecutor
Product-independent execution port used by the Runtime.
Worker
WorkerConnection
One ordered, bidirectional connection to a remote Worker endpoint.
WorkerTransport
Creates independent remote Worker connections for discovery, health, and runs.