Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/swarm-review-classifier/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 6d42abb285 review classifier: under ACP the prompt is a real system message
The ACP runtime handed the classifier's system prompt to hive-runtime's
system_prompt_file, which prepends it to the first user message, so the
instructions and the PR text sat in the same user turn.

The rendered opencode.json now defines a review-classifier agent whose
prompt is {file:./system.md} and selects it with default_agent. opencode
1.15.10 sends an agent's prompt as the system-role message (in place of
its per-model default prompt), followed only by its environment block;
the first user message is the PR material alone. The API key runtime
keeps --system-prompt.

The agent carries no permission or tools key, and a test pins its exact
shape: opencode merges an agent's own permission after
OPENCODE_PERMISSION, so a permission there would offer tools again
(checked on real opencode: {"*":"allow"} on the agent offered all ten
tools despite OPENCODE_PERMISSION={"*":"deny"}).

Follow-up to #5214.
2026-10-14 12:49:33 +02:00
..
acp.rs review classifier: under ACP the prompt is a real system message 2026-10-14 12:49:33 +02:00
aggregate.rs swarm-review-classifier: answer a try-out with one claude run per classification 2026-10-12 13:11:21 +02:00
answer.rs review classifier: truncate an over-long reason instead of dropping the verdict 2026-10-13 21:23:03 +02:00
child_env.rs review classifier: run on ACP when the swarm settings choose it 2026-10-14 10:14:36 +02:00
cost.rs swarm-review-classifier: test that Otel::record exports the run's cost 2026-10-14 10:14:36 +02:00
main.rs review classifier: run on ACP when the swarm settings choose it 2026-10-14 10:14:36 +02:00
prompt.rs review classifier: run on ACP when the swarm settings choose it 2026-10-14 10:14:36 +02:00
run.rs review classifier: run on ACP when the swarm settings choose it 2026-10-14 10:14:36 +02:00