Add interactive mode support for agents with --chat flag

- Remove chat from conflicts_with_all for --agent flag
- Add chat parameter to run_agent_mode()
- Run interactive loop instead of single task when --chat is passed

Usage: g3 --agent <name> --chat
This commit is contained in:
Dhanji R. Prasanna
2026-01-16 12:01:56 +05:30
parent 6bd9c51e8e
commit 94544c8f6a
3 changed files with 20 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ pub struct Cli {
pub codebase_fast_start: Option<PathBuf>,
/// Run as a specialized agent (loads prompt from agents/<name>.md)
#[arg(long, value_name = "NAME", conflicts_with_all = ["autonomous", "auto", "chat", "planning"])]
#[arg(long, value_name = "NAME", conflicts_with_all = ["autonomous", "auto", "planning"])]
pub agent: Option<String>,
/// List all available agents (embedded and workspace)