Re-exports§
pub use agent_task::spawn_agent_loop;pub use agent_task::AgentEventHandler;pub use agent_task::AgentTaskEvent;pub use agent_task::ChannelHandler;pub use agent_task::TuiAgent;pub use chat::ChatState;pub use context_bar::ProjectContext;pub use event::AppEvent;pub use headless::run_headless;pub use help::HelpOverlay;pub use picker::FuzzyPicker;pub use picker::PickerAction;pub use picker::PickerItem;pub use picker::PickerPreview;pub use terminal::init_terminal;pub use terminal::restore_terminal;pub use terminal::setup_panic_hook;pub use terminal::Tui;
Modules§
- agent_
task - chat
- context_
bar - Compact project context bar widget.
- event
- headless
- help
- Help overlay widget — shows keybindings and shortcuts.
- picker
- Generic fuzzy picker widget — reusable overlay for searching and selecting items.
- terminal
Structs§
- Action
Result - Result of executing a single action.
- Agent
Config - Agent
Engine - Generic engine that builds a
BamlRegistryfromAgentConfig. - Loop
Config - Configuration for the agent loop.
- Session
- Session manager: JSONL persistence, history access, context trimming.
- Step
Decision - Result of one LLM decision step (STAR: Situation → Task → Action).
Enums§
- Loop
Event - Events emitted by the agent loop (print, TUI, log).
Traits§
- Agent
Message - A message in the agent conversation.
- Baml
Registry - Trait abstracting BAML’s generated
ClientRegistry. - Message
Role - Role of a message in the agent conversation.
- SgrAgent
- Base SGR Agent trait — implement per project.
- SgrAgent
Stream - Streaming extension for SGR agents.
Functions§
- run_
loop - Run the SGR agent loop (non-streaming).
- run_
loop_ stream - Run the SGR agent loop with streaming tokens.