feat: local drafter (pi against a self-run model server)
drafter: local runs the pi coding agent against the model resident on an OpenAI-compatible server at the new local_url input, keyed by the LOCAL_MODEL_API_KEY secret. It asks the server which model is loaded and names exactly that one, so it never evicts the resident model. An unreachable server or no loaded model posts the stage 1 flags with a note and exits 0; a drafter that ran and failed still exits 1. pi runs in the existing sandbox with read, ls, edit and write, every project-local pi file and AGENTS.md ignored, stdin from /dev/null, the task passed as an @file, and an allowlisted environment. As root with DOCS_REVIEW_DRAFTER_USER set, it runs as that unprivileged user, which owns only the sandbox and pi's temporary home. Both drafters now hash the checkout's .git/config and .git/hooks before drafting and stop with no further git command if either changed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9dea56ce98
commit
28b993cb23
14 files changed
+1042
-30
No files matched your search
@@ -4,7 +4,7 @@ in these top-level documents against what is actually in the repository:
|
||||
{top_level}
|
||||
|
||||
An enumeration is any list of files, scripts, modules, filename prefixes, outputs or
|
||||
steps, and any stated count. Use Glob to list the files each one describes. Where a list
|
||||
steps, and any stated count. Use Glob or ls to list the files each one describes. Where a list
|
||||
or count no longer matches, correct it: add what is missing, remove what no longer
|
||||
exists, fix the number. A list presented as complete must be complete. If a list is
|
||||
deliberately partial, it should say so; when adding every missing item would make it
|
||||
|
||||
Reference in new issue
Block a user