Expand description
Agent loop, configuration loading, and context builder.
Re-exports§
pub use agent::Agent;pub use agent::error::AgentError;pub use agent::session_config::AgentSessionConfig;pub use agent::session_config::CONTEXT_BUDGET_RESERVE_RATIO;pub use channel::Attachment;pub use channel::AttachmentKind;pub use channel::Channel;pub use channel::ChannelError;pub use channel::ChannelMessage;pub use channel::LoopbackChannel;pub use channel::LoopbackEvent;pub use channel::LoopbackHandle;pub use channel::StopHint;pub use channel::ToolOutputData;pub use channel::ToolOutputEvent;pub use channel::ToolStartData;pub use channel::ToolStartEvent;pub use skill_loader::SkillLoaderExecutor;
Modules§
- agent
- bootstrap
- Application bootstrap: config resolution, provider/memory/tool construction.
- channel
- config
- Extension trait for resolving vault secrets into a Config.
- config_
watcher - context
- cost
- daemon
- Daemon supervisor for component lifecycle management.
- debug_
dump - Debug dump writer for a single agent session.
- file_
watcher - http
- Shared HTTP client construction for consistent timeout and TLS configuration.
- instructions
- lsp_
hooks - LSP context injection hooks.
- memory_
tools - metrics
- overflow_
tools - pipeline
- project
- redact
- runtime_
layer RuntimeLayertrait: middleware hooks for LLM calls and tool dispatch (#2286).- skill_
loader - text
- String utility functions for Unicode-safe text manipulation.
- vault
Structs§
- Adversarial
Policy Info - Snapshot of adversarial policy gate configuration for status display.
- Config
- Top-level agent configuration.
- Content
Isolation Config - Configuration for the content isolation pipeline, nested under
[security.content_isolation]in the agent config file. - Content
Sanitizer - Stateless pipeline that sanitizes untrusted content before it enters the LLM context.
- Content
Source - Provenance metadata attached to a piece of untrusted content.
- Diff
Data - Data for rendering file diffs in the TUI.
- Exfiltration
Guard - Stateless exfiltration guard. All three scanners are independently toggled via config.
- Exfiltration
Guard Config - Configuration for exfiltration guards, nested under
[security.exfiltration_guard]in the agent config file. - Injection
Flag - A single detected injection pattern match.
- Provider
Config Snapshot - Minimal config snapshot needed to reconstruct a provider at runtime via
/provider <name>. - Quarantine
Config - Configuration for the quarantine summarizer, nested under
[security.content_isolation.quarantine]in the agent config file. - Sanitized
Content - Result of the sanitization pipeline for a single piece of content.
Enums§
- Config
Error - Error type for configuration operations.
- Content
Source Kind - All known content source categories.
- Content
Trust Level - Trust tier assigned to content entering the agent context.
- Exfiltration
Event - Describes an exfiltration event detected by the guard.
Functions§
- content_
hash - Returns the BLAKE3 hex digest of arbitrary bytes.
- extract_
flagged_ urls - Extract http/https URLs from content for use in subsequent
validate_tool_callchecks.