ultraworkers-claw-code/rust/crates/api/src
Yeachan-Heo 48fa1c3ae5 Enable real Agent tool delegation in the Rust CLI
The Rust Agent tool only persisted queued metadata, so delegated work never actually ran. This change wires Agent into a detached background conversation path with isolated runtime, API client, session state, restricted tool subsets, and file-backed lifecycle/result updates.

Constraint: Keep the tool entrypoint in the tools crate and avoid copying the upstream TypeScript implementation
Rejected: Spawn an external claw process | less aligned with the requested in-process runtime/client design
Rejected: Leave execution in the CLI crate only | would keep tools::Agent as a metadata-only stub
Confidence: medium
Scope-risk: moderate
Reversibility: clean
Directive: Tool subset mappings are curated guardrails; revisit them before enabling recursive Agent access or richer agent definitions
Tested: cargo build --release --manifest-path rust/Cargo.toml
Tested: cargo test --manifest-path rust/Cargo.toml
Not-tested: Live end-to-end background sub-agent run against Anthropic API credentials
2026-04-01 03:10:20 +00:00
..
client.rs fix: remove debug logs, set model-specific max_tokens (opus=32k, sonnet/haiku=64k) 2026-04-01 02:14:20 +00:00
error.rs Enable OAuth login without requiring API keys 2026-03-31 23:38:05 +00:00
lib.rs Enable real Agent tool delegation in the Rust CLI 2026-04-01 03:10:20 +00:00
sse.rs feat: make claw-cli usable end-to-end 2026-03-31 18:40:09 +00:00
types.rs feat: git integration, sandbox isolation, init command (merged from rcc branches) 2026-04-01 01:23:47 +00:00