You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/plans/pi-babysit-mode.plan.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,31 +4,31 @@ overview: Add a fourth Pi mode, Babysit, that drives an open PR's review threads
4
4
todos:
5
5
- id: shared-extraction
6
6
content: Move the reusable Create PR scripts/constants and Review Code's PR snapshot helpers into shared modules, harden the token-bearing push, and keep existing behavior unchanged
7
-
status: pending
7
+
status: completed
8
8
- id: github-tools
9
9
content: Add the four GraphQL tools (list/reply/resolve review threads plus the status-check rollup) and the REST job-log reader under apps/sim/tools/github/, extend the PR parser with the head repo, register them, and unit-test them
10
-
status: pending
10
+
status: completed
11
11
- id: sandbox-lifetime
12
-
content: Add a clamped sandbox lifetime option, map it to E2B timeoutMs and Daytona autoStopInterval, and verify a Pi run past five minutes survives
13
-
status: pending
12
+
content: Add a clamped sandbox lifetime option for E2B, keep Daytona's inactivity timeout unchanged, and verify a Pi run past five minutes survives
13
+
status: in_progress
14
14
- id: block-and-handler
15
15
content: Add the babysit mode, fields, conditions, and outputs to pi.ts, plus PiBabysitRunParams, handler dispatch, mode-before-task parsing, search routing, cancellation plumbing, and the BYOK key-mode entry
16
-
status: pending
16
+
status: completed
17
17
- id: babysit-github
18
18
content: "Implement babysit-github.ts: strict snapshot fetch and validation, paginated fully-trusted thread reads, fail-closed check state and diagnostics for the pinned SHA, two-phase replies and resolves, re-review issue comments, and the review-landed signal"
19
-
status: pending
19
+
status: completed
20
20
- id: round-contract
21
21
content: "Implement babysit-round.ts: the typebox round-file schema, parser, scrubbing, and host-side thread-id membership check"
22
-
status: pending
22
+
status: completed
23
23
- id: babysit-backend
24
24
content: "Implement babysit-backend.ts: the clone, the round loop with its advancing head pin, one-commit enforcement, exact-refspec push, replies, cancellation-aware waits, stop conditions, and the final report"
25
-
status: pending
25
+
status: completed
26
26
- id: tests
27
27
content: Write the babysit test suites and the pi.ts/pi-handler/keys additions, then run the full gate set
28
-
status: pending
28
+
status: in_progress
29
29
- id: docs-and-review
30
30
content: Document Babysit in pi.mdx and every place that enumerates the three modes
description: 'Run an autonomous coding agent on a repo',
86
101
authMode: AuthMode.ApiKey,
87
102
longDescription:
88
-
'The Pi Coding Agent runs the Pi harness against a real repository. Create PR spins up an isolated sandbox, clones a GitHub repo, edits with native shell + git, and opens a pull request. Review Code checks out a pinned PR snapshot with read-only tools and posts a structured review with optional inline comments. Local Dev edits files on your own machine over SSH. Create PRand Local Dev can reuse skills and multi-turn memory; Review Code runs without either because PR contents are untrusted. Any mode can optionally get one web_search tool backed by your own Exa, Serper, Parallel AI, or Firecrawl key; the agent writes its own queries, so repository content may reach the provider, and results are untrusted third-party data.',
103
+
'The Pi Coding Agent runs the Pi harness against a real repository. Create PR opens a new pull request, Review Code posts a structured review, Babysit drives an existing pull request through trusted review threads and required checks in bounded rounds, and Local Dev edits files over SSH. Create PR, Babysit, and Local Dev can reuse skills; only Create PR and Local Dev use conversation memory. Any mode can optionally get one web_search tool backed by your own key.',
89
104
bestPractices: `
90
105
- Use Create PR for hands-off changes against a GitHub repo where a reviewable PR is the deliverable.
91
106
- Use Review Code to analyze an existing PR and leave summary + inline review comments.
107
+
- Use Babysit to fix and answer trusted review threads and required checks on an existing same-repository PR.
92
108
- Use Local Dev to edit a repo on your own machine; expose the machine on a public hostname/tunnel so Sim can reach it over SSH.
93
-
- Create PR requires your own provider API key because the model runs in the sandbox. Review Code keeps the model key in Sim and can use either BYOK or a hosted key.
109
+
- Create PR and Babysit require your own provider API key because the model runs in the sandbox. Review Code keeps the model key in Sim and can use either BYOK or a hosted key.
94
110
- Internet Search is off by default and always needs your own key for the selected provider, from the block field or Settings > BYOK. Leave it on None unless the task genuinely needs external information.
0 commit comments