Repository navigation
The durable SDK: a phone for agents that have no terminal (experimental) #575
AltanS
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Collie started as the phone for the agents you run in a terminal. Some agents have no terminal: they run as a durable program on a log, in a long-lived process or in a function that comes and goes.
@colliepwa/durable-sdkis a small TypeScript package that gives such a program the wire Collie already speaks. The app then shows its conversations, its tool questions as cards you tap, send while the session is idle, stop, and history. Nothing changes on the Collie side,collie durable attachexists since 1.22.0.The package has two entries.
./piwraps a Pi Durable program and shipped in 0.1.0../durable-harnesscomes with 0.2.0: it wraps a Pi agent on Vercel's durable-harness, with a route that rebuilds the wire from the durable log on every request and a wrapper that makes a risky tool call wait for the phone. It is tested self-hosted, on a local World, against durable-harness 0.0.1-beta.6. Vercel itself is untested until I run one preview deployment, and the result goes in this thread.This is experimental and installs from the
experimentaldist-tag. The API can change between 0.x versions, the new entry follows a beta and can break when the beta moves, and the feature may be removed in a later minor release of Collie. I will post updates here as the work moves: each publish of the package, the Vercel result, API changes. If you build on it, or want to, tell me here. That is what decides whether it stays.The package: https://github.com/AltanS/collie/tree/main/packages/durable-sdk. The guide: https://colliepwa.dev/docs/durable-agents. The durable-harness example: https://github.com/AltanS/collie/tree/main/examples/durable-harness.
All reactions