interactive-chat

command
v0.1.0 Latest Latest
Warning

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

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

README

Interactive Chat

This example is an interactive ACP client that launches acp-go-opencode as a subprocess, initializes the connection, and creates a session, then runs a read-eval-print loop that sends each line you type as a prompt and streams the assistant messages, thoughts, tool calls, and usage back to the terminal.

go run ./examples/interactive-chat

At the opencode> prompt, Enter submits the current line, Esc interrupts the running turn, and Ctrl-C exits. Type /exit or /quit to leave. An optional trailing argument is sent as the first prompt before the loop begins. 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