Skip to main content
On main, not yet released — 0.32.1-SNAPSHOT, checked against agent-client main f89fc6b5. This tutorial uses the asynchronous lifecycle API built from main (at or after commit 4de205db). None of it is in 0.32.0. Snapshot content changes as main moves, so name the main commit you built against.
Resolve 0.32.1-SNAPSHOT from the Central snapshot repository, with snapshots enabled:
agent-client-claude supplies ClaudeClientProvider, the Claude Code lifecycle provider these examples run against. See Using development snapshots from main for pinning one build and reading its provenance.

Source on GitHub main

docs/examples/tutorials/SeparateConversations.java, compiled and run offline by the agent-client build
Alice and Nancy share one conversation, and Bob and Doug share another. The two conversations run at the same time, and cancelling a turn in one leaves the other running. Separate histories do not isolate files: two conversations in one directory can overwrite each other’s work. Give each conversation its own workspace:
Start a turn in each. Both run at once, each on its own virtual thread, against its own provider process:
Cancel Alice and Nancy’s turn. Only that turn stops:
Bob and Doug’s turn is not touched and its result arrives as usual. Alice and Nancy’s conversation is still usable; its next turn reconnects, as picking a conversation up later describes. The full class is SeparateConversations.java. The build compiles this tutorial from docs/examples/tutorials and runs it against OfflineProvider, an offline stand-in that makes no model call (agent-client-tutorials, SeparateConversationsTest). A live Claude Code run is not part of the build.