Add Away mode and an agent fork tool

This commit is contained in:
Ian Gulliver
2026-10-19 21:40:24 -07:00
parent bb60b685ba
commit f6f2440635
22 changed files with 617 additions and 317 deletions
+28 -4
View File
@@ -61,6 +61,23 @@ paths:
schema: { $ref: "#/components/schemas/User" }
"400": { $ref: "#/components/responses/Error" }
/api/me/away:
put:
operationId: updateAway
description: Sets whether the calling user is away. While away, byre answers every question an agent asks in the user's tasks at once, telling it to pick the most likely answer, and turning it on answers the questions already open.
requestBody:
required: true
content:
application/json:
schema: { $ref: "#/components/schemas/Away" }
responses:
"200":
description: The updated user.
content:
application/json:
schema: { $ref: "#/components/schemas/User" }
"400": { $ref: "#/components/responses/Error" }
/api/me/review-models:
put:
operationId: updateReviewModels
@@ -1189,7 +1206,7 @@ components:
User:
type: object
required: [login, display_name, git_name, git_email, notification_prefs, default_model, review_model, second_review_model]
required: [login, display_name, git_name, git_email, notification_prefs, default_model, review_model, second_review_model, away]
properties:
login: { type: string }
display_name: { type: string }
@@ -1199,6 +1216,13 @@ components:
default_model: { type: string, description: The model the app starts new tasks on. }
review_model: { type: string, description: The model that reviews this user's tasks, unless it wrote the work under review. }
second_review_model: { type: string, description: The model that reviews this user's tasks when review_model wrote the work under review. }
away: { type: boolean, description: "While true, byre answers the questions agents ask in this user's tasks at once." }
Away:
type: object
required: [away]
properties:
away: { type: boolean }
DefaultModel:
type: object
@@ -1568,9 +1592,9 @@ components:
event_seq: { type: integer, format: int64, description: "The task's latest event when the snapshot was started: the tree holds at least the work up to it." }
trigger:
type: string
enum: [message, turn_end, tool_call, ask_human, timer, requested, answer]
x-enum-varnames: [SnapshotTriggerMessage, SnapshotTriggerTurnEnd, SnapshotTriggerToolCall, SnapshotTriggerAskHuman, SnapshotTriggerTimer, SnapshotTriggerRequested, SnapshotTriggerAnswer]
description: "turn_end: after byre's end-of-turn commit. requested: a task's agent or the lead asked for it with take_snapshot. answer: just before answers from the human were handed to the agent. message (the agent wrote text after one or more tool calls), tool_call, ask_human and timer appear only on snapshots taken by earlier builds."
enum: [message, turn_end, tool_call, ask_human, timer, requested, answer, fork]
x-enum-varnames: [SnapshotTriggerMessage, SnapshotTriggerTurnEnd, SnapshotTriggerToolCall, SnapshotTriggerAskHuman, SnapshotTriggerTimer, SnapshotTriggerRequested, SnapshotTriggerAnswer, SnapshotTriggerFork]
description: "turn_end: after byre's end-of-turn commit. requested: a task's agent or the lead asked for it with take_snapshot. answer: just before answers from the human were handed to the agent. fork: when the task's agent forked the task with its fork tool. answer and fork snapshots are never reviewed. message (the agent wrote text after one or more tool calls), tool_call, ask_human and timer appear only on snapshots taken by earlier builds."
created_at: { type: string, format: date-time }
Preview: