minimal-client

command
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

README

Minimal Client

This example is a small ACP client that launches acp-go-opencode as a subprocess, initializes the connection, creates a session, and sends one prompt. It embeds a real acp.Client so the agent can read and write files and request permissions, and it streams the message, thought, and tool-call updates back to stdout.

go run ./examples/minimal-client "Reply with a short hello from ACP"

The prompt is taken from the trailing arguments; when none are given it uses a default hello prompt. As the turn runs, assistant text, thoughts, and tool calls print as they stream, followed by the final stop reason. The program exits when the turn completes. A local opencode CLI must be installed and authenticated.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL