Skip to main content

zeph_subagent/
lib.rs

1// SPDX-FileCopyrightText: 2026 Andrei G <bug-ops>
2// SPDX-License-Identifier: MIT OR Apache-2.0
3
4//! Subagent management: spawning, grants, transcripts, and lifecycle hooks.
5
6mod agent_loop;
7pub mod command;
8pub mod def;
9pub mod error;
10pub mod filter;
11pub mod grants;
12pub mod hooks;
13pub mod manager;
14pub mod memory;
15pub mod resolve;
16pub mod state;
17pub mod transcript;
18
19pub use command::{AgentCommand, AgentsCommand};
20pub use def::{
21    MemoryScope, ModelSpec, PermissionMode, SkillFilter, SubAgentDef, SubAgentPermissions,
22    ToolPolicy, is_valid_agent_name,
23};
24pub use error::SubAgentError;
25pub use filter::{FilteredToolExecutor, PlanModeExecutor, filter_skills};
26pub use grants::{Grant, GrantKind, PermissionGrants, SecretRequest};
27pub use hooks::{
28    HookDef, HookError, HookMatcher, HookType, SubagentHooks, fire_hooks, matching_hooks,
29};
30pub use manager::{SpawnContext, SubAgentHandle, SubAgentManager, SubAgentStatus};
31pub use memory::{ensure_memory_dir, load_memory_content};
32pub use resolve::resolve_agent_paths;
33pub use state::SubAgentState;
34pub use transcript::{TranscriptMeta, TranscriptReader, TranscriptWriter, sweep_old_transcripts};