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
6pub mod command;
7pub mod def;
8pub mod error;
9pub mod filter;
10pub mod grants;
11pub mod hooks;
12pub mod manager;
13pub mod memory;
14pub mod resolve;
15pub mod state;
16pub mod transcript;
17
18pub use command::{AgentCommand, AgentsCommand};
19pub use def::{
20    MemoryScope, PermissionMode, SkillFilter, SubAgentDef, SubAgentPermissions, ToolPolicy,
21    is_valid_agent_name,
22};
23pub use error::SubAgentError;
24pub use filter::{FilteredToolExecutor, PlanModeExecutor, filter_skills};
25pub use grants::{Grant, GrantKind, PermissionGrants, SecretRequest};
26pub use hooks::{
27    HookDef, HookError, HookMatcher, HookType, SubagentHooks, fire_hooks, matching_hooks,
28};
29pub use manager::{SubAgentHandle, SubAgentManager, SubAgentStatus};
30pub use memory::{ensure_memory_dir, load_memory_content};
31pub use resolve::resolve_agent_paths;
32pub use state::SubAgentState;
33pub use transcript::{TranscriptMeta, TranscriptReader, TranscriptWriter, sweep_old_transcripts};