Skip to content

You only prompt once!#12

Merged
nikomatsakis merged 2 commits intoagentclientprotocol:mainfrom
nikomatsakis:main
Nov 5, 2025
Merged

You only prompt once!#12
nikomatsakis merged 2 commits intoagentclientprotocol:mainfrom
nikomatsakis:main

Conversation

@nikomatsakis
Copy link
Contributor

No description provided.

nikomatsakis and others added 2 commits November 4, 2025 19:45
Inline the AcpAgent and JrConnectionExt functionality directly into the
yolo_one_shot_client example to break the circular dependency between
sacp and sacp-tokio. The example now uses shell-words directly for
command parsing and spawns the agent process manually.

The example includes a comment pointing users to sacp_tokio for a
simpler API when building their own clients.

Co-authored-by: Claude <claude@anthropic.com>
Create a new 'yopo' (You Only Prompt Once) binary crate that provides
a full-featured ACP client supporting both command strings and JSON
configurations. This crate can use sacp-tokio without circular dependency
issues.

Simplify the yolo_one_shot_client example to:
- Use clap for argument parsing
- Only support simple command strings (not JSON configs)
- Point users to the yopo crate for full features

This gives us both a useful utility (yopo) and a cleaner educational
example (yolo_one_shot_client).

Co-authored-by: Claude <claude@anthropic.com>
@nikomatsakis nikomatsakis merged commit 68e1c87 into agentclientprotocol:main Nov 5, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant