Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,051 changes: 1,051 additions & 0 deletions agentcore/src/cli.rs

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions agentcore/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
//! stdin/stdout in the bot's folder; one turn at a time runs on its own thread.

mod acp;
mod cli;
mod mcp;
mod memory;
mod model;
Expand Down Expand Up @@ -134,6 +135,11 @@ fn main() {
#[allow(clippy::disallowed_methods)]
std::process::exit(acp::run(&args[1..]));
}
if args.first().is_some_and(|arg| arg == "cli") {
// Top-level dispatch to the direct headless CLI engine mode.
#[allow(clippy::disallowed_methods)]
std::process::exit(cli::run(&args[1..]));
}
let out = Out(Arc::new(Mutex::new(io::stdout())));
out.send(&Event::Ready {
protocol: proto::PROTOCOL,
Expand Down
Loading
Loading