Nucel Agent SDK — Unified
One import for all providers. Swap coding agents via configuration.
Quick Start
use ;
use Path;
# async
Provider Selection
use *;
#
Nucel Agent SDK — Unified
One import for all providers. Swap coding agents via configuration.
use nucel_agent_sdk::{AgentExecutor, ClaudeCodeExecutor, SpawnConfig};
use std::path::Path;
# async fn example() -> nucel_agent_sdk::Result<()> {
let executor = ClaudeCodeExecutor::new();
let session = executor.spawn(
Path::new("/my/repo"),
"Fix the failing tests",
&SpawnConfig {
model: Some("claude-opus-4-6".into()),
budget_usd: Some(5.0),
..Default::default()
},
).await?;
println!("Response: {}", session.query("Check if CI passes now").await?.content);
session.close().await?;
# Ok(())
# }
use nucel_agent_sdk::*;
# fn example() {
// Via config string (like agent-operator does)
let executor = build_executor("claude-code", None);
let executor = build_executor("codex", Some("sk-...".into()));
let executor = build_executor("opencode", Some("http://localhost:4096".into()));
# }