Repository navigation
feat(agents): give an agent its own computer - #422
Conversation
|
@infer can you resolve the merge conflict? |
|
Model: Todos
Pull Request✅ Infer Result: SuccessThe merge conflict is resolved and PR #422 is now mergeable. Root causeThe branch carried its own copies of commits that had landed in main while this PR was open: Resolution
Working tree is clean and in sync with origin. One caveat: the force-push rewrote the branch - the branch is now a single commit on top of main, so review comments pinned to the old three commit SHAs ( Model: Tokens: 1,538,780 in · 28,565 out · 1,567,345 total (32 requests) Tool calls: 48 total · 100% success rate TracesStatsTriggered by edenreich · Infer Action · OSS |
An agent can name a workspace of the infer daemon. A new chat with it is teleported there before its first run, so its computer use drives that machine. The Computers view shows the latest screen of each such chat. Refs #417
ae1c851 to
3a68c87
Compare
|
🎉 This PR is included in version 0.53.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Summary
An agent can name a workspace of the
inferdaemon as its computer. A new chat with it is teleported there before its first run, so its computer use drives that machine and not the user's. A new Computers view shows the latest screen of each such chat side by side. With a Kubernetes workspace every chat gets a pod of its own.Refs #417 - this places a new chat through CLI workspaces, the hand-off of a running chat stays open there.
Changes
workspacefrontmatter key on Markdown agents, with a native<select id="agent-workspace">in the agent editor listing the daemon's workspaces.backend/src/workspaces.rs:list_workspaces,screen_frameand the teleport step, each on a short-lived daemon connection (thread::exchange).send_messageteleports a brand-new chat and returns the error when that fails, it never falls back to this machine.Computersin the top bar,Open computer <name>tiles) polling the screen every 2 s while a chat runs.e2e/tests/agent-computers.yamlwith a seededworkspace_agent, unit tests for the frames, the frontmatter and the tiles.Not covered: whether an agent's instructions and model carry over to the workspace after a teleport is untested.