feat: local drafter (pi against an OpenAI-compatible server on your own hardware)
tests / unittest (push) Failing after 28s

drafter: local runs the pi agent against the model already loaded on a self-hosted server,
as an unprivileged user, in the same sandbox as the Claude drafter. It fails soft when the
server is unreachable or has no model loaded. Both drafters now refuse to continue if
git metadata changed during drafting, and strip project pi configuration from the sandbox.
Tested live against a self-hosted server: one run, 12 turns, docs PR opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-12 17:12:42 -05:00
1 parent 9dea56ce98
commit 1ef68f12fb
14 files changed
+1303 -42

No files matched your search

+1 -1
View File
@@ -133,7 +133,7 @@ def run_monthly(inputs: Inputs, forge, env: Mapping[str, str], cwd: Path,
drafted = draft_in_sandbox(inputs, prompt, cwd, env)
if drafted.note is not None:
post_issue(forge, flags, month, drafted.note)
return 1
return 0 if drafted.soft else 1
result, changed = drafted.result, list(drafted.changed)
if not changed:
post_issue(forge, flags, month)