feat: local drafter (pi against an OpenAI-compatible server on your own hardware)
tests / unittest (push) Failing after 28s
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:
1 parent
9dea56ce98
commit
1ef68f12fb
14 files changed
+1303
-42
No files matched your search
@@ -219,7 +219,7 @@ def run_pr(inputs: Inputs, forge, env: Mapping[str, str], cwd: Path, args: PrArg
|
||||
drafted = draft_in_sandbox(inputs, prompt, cwd, env)
|
||||
if drafted.note is not None:
|
||||
post_stage1(forge, args.number, flags, args.head_sha, drafted.note, docs_pr=pr_no)
|
||||
return 1
|
||||
return 0 if drafted.soft else 1
|
||||
result, changed = drafted.result, list(drafted.changed)
|
||||
if not changed:
|
||||
if flags:
|
||||
|
||||
Reference in new issue
Block a user