zeph-config
Pure-data configuration types for Zeph — all TOML config structs with serde derive, validation, and migration support.
Overview
Central repository for every typed configuration struct used across the Zeph workspace. Loading, parsing, and TOML migration live here; downstream crates pull the types they need without taking a dependency on the full agent stack. Configuration is sourced from a TOML file and can be overridden by ZEPH_* environment variables.
Key types
| Type | TOML section | Description |
|---|---|---|
Config |
root | Top-level aggregate; resolved by Config::load() |
AgentConfig |
[agent] |
Agent loop settings, instruction files, self-learning |
LlmConfig |
[llm] |
Provider selection, router, orchestrator, summary provider |
MemoryConfig |
[memory] |
SQLite pool, vector backend, compaction, graph memory |
SkillsConfig |
[skills] |
Prompt mode, trust thresholds, hybrid search weights |
ToolsConfig |
[tools] |
Shell executor, web scrape, audit logging, anomaly detection |
McpConfig |
[mcp] |
MCP server list and transport settings |
OrchestrationConfig |
[orchestration] |
DAG planner, aggregator, confirmation flow |
SecurityConfig |
[security] |
Content isolation, exfiltration guard, quarantine |
DebugConfig |
[debug] |
Debug dump path and format |
LoggingConfig |
[logging] |
Log file path, level, rotation, retention |
VaultConfig |
[vault] |
Vault backend (env, age) and key path |
Usage
use Config;
// Load config from the default path (~/.config/zeph/config.toml)
let config = load?;
println!;
println!;
Custom path and environment overrides:
use Path;
use Config;
let config = load?;
// ZEPH_LLM_PROVIDER, ZEPH_LOG_LEVEL, etc. are applied automatically
Config migration (add missing sections from the canonical default):
Features
| Feature | Description |
|---|---|
guardrail |
Enables GuardrailConfig under [security.guardrail] |
lsp-context |
Enables LspConfig under [agent.lsp] for LSP context injection hooks |
compression-guidelines |
Enables CompressionGuidelinesConfig under [memory.compression] |
experiments |
Enables ExperimentConfig and ExperimentSchedule under [experiments] |
policy-enforcer |
Enables PolicyEnforcerConfig under [tools.policy] |
Environment variable overrides
All configuration fields can be overridden with ZEPH_-prefixed environment variables. Key examples:
| Variable | Config field |
|---|---|
ZEPH_LLM_PROVIDER |
llm.provider |
ZEPH_LOG_LEVEL |
logging.level |
ZEPH_LOG_FILE |
logging.file |
ZEPH_AUTO_UPDATE_CHECK |
agent.auto_update_check |
ZEPH_ACP_MAX_SESSIONS |
acp.max_sessions |
Installation
Documentation
Full documentation: https://bug-ops.github.io/zeph/
License
MIT