holyagent 0.0.0-stage → 0.3.3-bootstrap.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/explorer-lookup-headless-screen.md +126 -0
- package/agents/explorer-lookup-screen.md +122 -0
- package/agents/explorer-lookup.md +122 -0
- package/agents/explorer-map-headless-screen.md +125 -0
- package/agents/explorer-map-screen.md +121 -0
- package/agents/explorer-map.md +121 -0
- package/agents/explorer-trace-headless-screen.md +129 -0
- package/agents/explorer-trace-screen.md +125 -0
- package/agents/explorer-trace.md +125 -0
- package/agents/librarian-lookup-headless-screen.md +132 -0
- package/agents/librarian-lookup-screen.md +128 -0
- package/agents/librarian-lookup.md +128 -0
- package/agents/librarian-research-headless-screen.md +132 -0
- package/agents/librarian-research-screen.md +128 -0
- package/agents/librarian-research.md +128 -0
- package/agents/reviewer-artifact-headless-screen.md +158 -0
- package/agents/reviewer-artifact-screen.md +154 -0
- package/agents/reviewer-artifact.md +154 -0
- package/agents/reviewer-audit-headless-screen.md +124 -0
- package/agents/reviewer-audit-screen.md +120 -0
- package/agents/reviewer-audit.md +120 -0
- package/agents/reviewer-code-headless-screen.md +180 -0
- package/agents/reviewer-code-screen.md +176 -0
- package/agents/reviewer-code.md +176 -0
- package/agents/reviewer-security-headless-screen.md +138 -0
- package/agents/reviewer-security-screen.md +134 -0
- package/agents/reviewer-security.md +134 -0
- package/agents/reviewer-testing-headless-screen.md +173 -0
- package/agents/reviewer-testing-screen.md +169 -0
- package/agents/reviewer-testing.md +169 -0
- package/agents/reviewer-visual-headless-screen.md +161 -0
- package/agents/reviewer-visual-screen.md +157 -0
- package/agents/reviewer-visual.md +157 -0
- package/agents/worker-debugging-headless-screen.md +175 -0
- package/agents/worker-debugging-screen.md +171 -0
- package/agents/worker-debugging.md +171 -0
- package/agents/worker-implementation-headless-screen.md +191 -0
- package/agents/worker-implementation-screen.md +187 -0
- package/agents/worker-implementation.md +187 -0
- package/agents/worker-integration-headless-screen.md +172 -0
- package/agents/worker-integration-screen.md +168 -0
- package/agents/worker-integration.md +168 -0
- package/agents/worker-mechanical-headless-screen.md +176 -0
- package/agents/worker-mechanical-screen.md +172 -0
- package/agents/worker-mechanical.md +172 -0
- package/agents/worker-operations-headless-screen.md +130 -0
- package/agents/worker-operations-screen.md +126 -0
- package/agents/worker-operations.md +126 -0
- package/agents/worker-validation-headless-screen.md +128 -0
- package/agents/worker-validation-screen.md +124 -0
- package/agents/worker-validation.md +124 -0
- package/agents/worker-visual-headless-screen.md +211 -0
- package/agents/worker-visual-screen.md +207 -0
- package/agents/worker-visual.md +207 -0
- package/extensions/holyagent.js +20006 -0
- package/families/gpt-6/agents/explorer-lookup-headless-screen.md +113 -0
- package/families/gpt-6/agents/explorer-lookup-screen.md +109 -0
- package/families/gpt-6/agents/explorer-lookup.md +109 -0
- package/families/gpt-6/agents/explorer-map-headless-screen.md +113 -0
- package/families/gpt-6/agents/explorer-map-screen.md +109 -0
- package/families/gpt-6/agents/explorer-map.md +109 -0
- package/families/gpt-6/agents/explorer-trace-headless-screen.md +113 -0
- package/families/gpt-6/agents/explorer-trace-screen.md +109 -0
- package/families/gpt-6/agents/explorer-trace.md +109 -0
- package/families/gpt-6/agents/librarian-lookup-headless-screen.md +115 -0
- package/families/gpt-6/agents/librarian-lookup-screen.md +111 -0
- package/families/gpt-6/agents/librarian-lookup.md +111 -0
- package/families/gpt-6/agents/librarian-research-headless-screen.md +115 -0
- package/families/gpt-6/agents/librarian-research-screen.md +111 -0
- package/families/gpt-6/agents/librarian-research.md +111 -0
- package/families/gpt-6/agents/reviewer-artifact-headless-screen.md +148 -0
- package/families/gpt-6/agents/reviewer-artifact-screen.md +144 -0
- package/families/gpt-6/agents/reviewer-artifact.md +144 -0
- package/families/gpt-6/agents/reviewer-audit-headless-screen.md +111 -0
- package/families/gpt-6/agents/reviewer-audit-screen.md +107 -0
- package/families/gpt-6/agents/reviewer-audit.md +107 -0
- package/families/gpt-6/agents/reviewer-code-headless-screen.md +173 -0
- package/families/gpt-6/agents/reviewer-code-screen.md +169 -0
- package/families/gpt-6/agents/reviewer-code.md +169 -0
- package/families/gpt-6/agents/reviewer-security-headless-screen.md +122 -0
- package/families/gpt-6/agents/reviewer-security-screen.md +118 -0
- package/families/gpt-6/agents/reviewer-security.md +118 -0
- package/families/gpt-6/agents/reviewer-testing-headless-screen.md +163 -0
- package/families/gpt-6/agents/reviewer-testing-screen.md +159 -0
- package/families/gpt-6/agents/reviewer-testing.md +159 -0
- package/families/gpt-6/agents/reviewer-visual-headless-screen.md +153 -0
- package/families/gpt-6/agents/reviewer-visual-screen.md +149 -0
- package/families/gpt-6/agents/reviewer-visual.md +149 -0
- package/families/gpt-6/agents/worker-debugging-headless-screen.md +168 -0
- package/families/gpt-6/agents/worker-debugging-screen.md +164 -0
- package/families/gpt-6/agents/worker-debugging.md +164 -0
- package/families/gpt-6/agents/worker-implementation-headless-screen.md +180 -0
- package/families/gpt-6/agents/worker-implementation-screen.md +176 -0
- package/families/gpt-6/agents/worker-implementation.md +176 -0
- package/families/gpt-6/agents/worker-integration-headless-screen.md +161 -0
- package/families/gpt-6/agents/worker-integration-screen.md +157 -0
- package/families/gpt-6/agents/worker-integration.md +157 -0
- package/families/gpt-6/agents/worker-mechanical-headless-screen.md +165 -0
- package/families/gpt-6/agents/worker-mechanical-screen.md +161 -0
- package/families/gpt-6/agents/worker-mechanical.md +161 -0
- package/families/gpt-6/agents/worker-operations-headless-screen.md +122 -0
- package/families/gpt-6/agents/worker-operations-screen.md +118 -0
- package/families/gpt-6/agents/worker-operations.md +118 -0
- package/families/gpt-6/agents/worker-validation-headless-screen.md +115 -0
- package/families/gpt-6/agents/worker-validation-screen.md +111 -0
- package/families/gpt-6/agents/worker-validation.md +111 -0
- package/families/gpt-6/agents/worker-visual-headless-screen.md +201 -0
- package/families/gpt-6/agents/worker-visual-screen.md +197 -0
- package/families/gpt-6/agents/worker-visual.md +197 -0
- package/families/gpt-6/skills/ci-watch/SKILL.md +34 -0
- package/families/gpt-6/skills/desktop-design/SKILL.md +144 -0
- package/families/gpt-6/skills/dev-server/SKILL.md +51 -0
- package/families/gpt-6/skills/evidence-judging/SKILL.md +37 -0
- package/families/gpt-6/skills/instruction-writing/SKILL.md +49 -0
- package/families/gpt-6/skills/mobile-design/SKILL.md +144 -0
- package/families/gpt-6/skills/state-mode/SKILL.md +17 -0
- package/families/gpt-6/skills/tui-design/SKILL.md +162 -0
- package/families/gpt-6/skills/user-busy/SKILL.md +16 -0
- package/families/gpt-6/skills/visual-judging/SKILL.md +47 -0
- package/families/gpt-6/skills/web-design/SKILL.md +161 -0
- package/package.json +40 -4
- package/prompts/code-review.md +35 -0
- package/prompts/security-review.md +35 -0
- package/scripts/empty-bunfig.toml +4 -0
- package/scripts/holyagent +45 -0
- package/scripts/holyagent.js +29047 -0
- package/scripts/just-bash.js +90614 -0
- package/scripts/setup-tui.js +4334 -0
- package/skills/ci-watch/SKILL.md +34 -0
- package/skills/desktop-design/SKILL.md +132 -0
- package/skills/dev-server/SKILL.md +51 -0
- package/skills/evidence-judging/SKILL.md +37 -0
- package/skills/instruction-writing/SKILL.md +44 -0
- package/skills/mobile-design/SKILL.md +132 -0
- package/skills/state-mode/SKILL.md +17 -0
- package/skills/tui-design/SKILL.md +150 -0
- package/skills/user-busy/SKILL.md +16 -0
- package/skills/visual-judging/SKILL.md +45 -0
- package/skills/web-design/SKILL.md +149 -0
- package/README.md +0 -3
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Generated by packages/integrations/pi/build.ts from packages/runtime/src/prompts/code-review.md; edit the source and rebuild.
|
|
3
|
+
description: First-pass code review of a committed range, each finding traced to a realistic failure and labeled
|
|
4
|
+
argument-hint: "[<start>...<head>]"
|
|
5
|
+
---
|
|
6
|
+
First pass: code-review.
|
|
7
|
+
|
|
8
|
+
You are the first pass of a code review. Find defects in the committed range and prove each one. The review is read-only: write no comments and no fixes, and change no file, branch or index.
|
|
9
|
+
|
|
10
|
+
Range: ${@:-the refs the Assignment below names}. A range is two refs joined by `...`, such as `main...my-branch`: the target of the pull request and the head, or for a re-review the reviewed commit and the repaired one. Review that range and no other, and leave the uncommitted changes of the shared tree out. If no Assignment follows and the range names no refs, ask which range to review and stop. If a ref does not resolve, say which one and stop. A guessed range reviews the wrong code.
|
|
11
|
+
|
|
12
|
+
Steps:
|
|
13
|
+
|
|
14
|
+
1. Read the whole diff of the range with `git diff`, quoting the ref names for the shell.
|
|
15
|
+
2. Read the code around each change: the callers, the callees and the tests that cover it. A change is judged in its context, not alone.
|
|
16
|
+
3. List candidate defects the change introduces or exposes. Look at wrong results, regressions of existing behavior, unhandled error and failure paths, empty, null and boundary input, ordering and concurrency, leaked resources, broken compatibility of an interface or stored data, and tests that cannot fail.
|
|
17
|
+
4. Trace each candidate to a realistic failure: the input or state, the path through the code, and the wrong result a user or caller sees. Drop a candidate you cannot trace to one.
|
|
18
|
+
5. Label each remaining finding.
|
|
19
|
+
- blocker: a realistic failure in normal use, data loss, or a break of existing behavior.
|
|
20
|
+
- optional: a real but unlikely or minor failure.
|
|
21
|
+
|
|
22
|
+
Your findings are working input to the next step, not a final report: a reviewer role that runs this prompt verifies each one, then reviews on its own and reports. When you run it alone, the list is the result.
|
|
23
|
+
|
|
24
|
+
List one entry per finding:
|
|
25
|
+
|
|
26
|
+
- the file, the line and the symbol;
|
|
27
|
+
- the failure, in one or two sentences, as input, path and result;
|
|
28
|
+
- the label;
|
|
29
|
+
- how you know: what you read, or the command you ran and its result.
|
|
30
|
+
|
|
31
|
+
Example entry:
|
|
32
|
+
|
|
33
|
+
- `src/cart.ts:42`, `total`: an empty cart divides by `items.length`, so `checkout` shows "NaN" as the price. blocker. Read `total` and its caller `checkout`; `bun test cart` with an empty cart fails.
|
|
34
|
+
|
|
35
|
+
Then list what you checked and found sound, in one line. With no finding, say "No findings" and what the review covered. Leave style, naming and taste out.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Generated by packages/integrations/pi/build.ts from packages/runtime/src/prompts/security-review.md; edit the source and rebuild.
|
|
3
|
+
description: First-pass security review of a committed range, tracing sources to sinks and labeling validated findings
|
|
4
|
+
argument-hint: "[<start>...<head>]"
|
|
5
|
+
---
|
|
6
|
+
First pass: security-review.
|
|
7
|
+
|
|
8
|
+
You are the first pass of a security review. Find vulnerabilities the committed range introduces or worsens, and separate the ones you validated from the ones you only suspect. The review is read-only: change no file, branch or index, write no comments and no fixes, run no exploit against a live system, and keep every secret you meet out of the report.
|
|
9
|
+
|
|
10
|
+
Range: ${@:-the refs the Assignment below names}. A range is two refs joined by `...`, such as `main...my-branch`: the target of the pull request and the head, or for a re-review the reviewed commit and the repaired one. Review that range and no other. Take its diff from `git diff` when you have a shell, otherwise from the diff file the Assignment names. If no Assignment follows and the range names no refs, ask which range to review and stop. If a ref does not resolve or neither source gives you the diff, say so and stop. A guessed range reviews the wrong code.
|
|
11
|
+
|
|
12
|
+
Steps:
|
|
13
|
+
|
|
14
|
+
1. Read the whole diff, then list the trust boundaries it touches: where data enters (requests, files, environment, arguments, stored data, output of tools and models) and what privilege the code runs with.
|
|
15
|
+
2. For each source, follow the data to every sink it reaches: a shell or process call, a query, a file path, a deserializer, rendered output, an outgoing request, an authentication or authorization decision, a secret store or log, a cryptographic call.
|
|
16
|
+
3. Read each check on the path. A check counts only if it covers this source and this sink.
|
|
17
|
+
4. Validate. A finding is validated when you read the whole path, the attacker controls the source, and their precondition can hold. It is suspected when one link of the path is unread or depends on something you could not see.
|
|
18
|
+
5. Rate each finding by impact, given the precondition: critical, high, medium or low. Name the precondition the attacker needs.
|
|
19
|
+
6. Label each finding. A validated finding the range introduced or worsened is a blocker; a suspected one is optional.
|
|
20
|
+
|
|
21
|
+
Your findings are working input to the next step, not a final report: a reviewer role that runs this prompt verifies each one and reports. When you run it alone, the list is the result.
|
|
22
|
+
|
|
23
|
+
List one entry per finding:
|
|
24
|
+
|
|
25
|
+
- the source, the sink and the path between them, with files and lines;
|
|
26
|
+
- the precondition;
|
|
27
|
+
- the impact rating;
|
|
28
|
+
- validated or suspected, with what is missing for a suspicion;
|
|
29
|
+
- the label.
|
|
30
|
+
|
|
31
|
+
Example entry:
|
|
32
|
+
|
|
33
|
+
- Source `GET /files?name=` in `src/routes/files.ts:18`; sink `readFile` in `src/files.ts:31`; `name` is joined to the upload root with no check for `..`. Precondition: any signed-in user. Impact: high, reads any file the service can read. Validated: read the whole path, and no check covers `name`. blocker.
|
|
34
|
+
|
|
35
|
+
Then list what you checked and found sound, in one line. With no finding, say "No findings" and what the review covered.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# Generated by packages/integrations/pi/build.ts from packages/integrations/claude/src/empty-bunfig.toml; edit the source and rebuild.
|
|
2
|
+
# Intentionally empty. The wrapper passes this file as Bun's --config so the project's own
|
|
3
|
+
# bunfig.toml (preload scripts, for one) cannot run code in the CLI. A file works on every
|
|
4
|
+
# platform, where /dev/null exists only under MSYS or Unix.
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
# Generated by packages/integrations/pi/build.ts from packages/integrations/claude/src/wrapper.sh; edit the source and rebuild.
|
|
3
|
+
# Runs the bundled holyagent CLI with Bun. Without Bun it prints an error and exits 127 for every
|
|
4
|
+
# caller, hooks included, so a missing runtime is never mistaken for a quiet success.
|
|
5
|
+
# Every Git Bash fork costs a process on Windows, so the common path forks nothing: no command
|
|
6
|
+
# substitution, only parameter expansion and builtins. Only a symlinked wrapper forks, for readlink.
|
|
7
|
+
self=$0
|
|
8
|
+
while [ -L "$self" ]; do
|
|
9
|
+
link=$(readlink "$self")
|
|
10
|
+
case $link in
|
|
11
|
+
/*) self=$link ;;
|
|
12
|
+
*)
|
|
13
|
+
case $self in
|
|
14
|
+
*/*) self=${self%/*}/$link ;;
|
|
15
|
+
*) self=$link ;;
|
|
16
|
+
esac
|
|
17
|
+
;;
|
|
18
|
+
esac
|
|
19
|
+
done
|
|
20
|
+
# The directory stays relative to the working directory, which this script never changes. A name
|
|
21
|
+
# without a slash (found on PATH) would put the directory at the project's, whose files are not ours.
|
|
22
|
+
case $self in
|
|
23
|
+
*/*) here=${self%/*} ;;
|
|
24
|
+
*)
|
|
25
|
+
printf 'error: WrapperPath: the wrapper was started by a bare name.\nhint: Run it by its path, such as "${HOLYAGENT_PI_ROOT}/scripts/holyagent".\n' >&2
|
|
26
|
+
exit 127
|
|
27
|
+
;;
|
|
28
|
+
esac
|
|
29
|
+
# `exec` looks `bun` up on PATH itself, so the test below only checks that it is there.
|
|
30
|
+
bun=
|
|
31
|
+
if command -v bun >/dev/null 2>&1; then
|
|
32
|
+
bun=bun
|
|
33
|
+
elif [ -x "${BUN_INSTALL:-$HOME/.bun}/bin/bun" ]; then
|
|
34
|
+
bun=${BUN_INSTALL:-$HOME/.bun}/bin/bun
|
|
35
|
+
fi
|
|
36
|
+
if [ -z "$bun" ] || [ ! -f "$here/holyagent.js" ]; then
|
|
37
|
+
printf 'error: BunMissing: Bun or holyagent.js was not found.\nhint: Install Bun from https://bun.sh, then run the command again.\n' >&2
|
|
38
|
+
exit 127
|
|
39
|
+
fi
|
|
40
|
+
# Under the Claude hook the working directory is the project, and Bun would load its .env and
|
|
41
|
+
# bunfig.toml there: an .env could redirect the state folder and a bunfig preload would run code on
|
|
42
|
+
# every call. Under Pi, Bun starts in the package's folder and enters the project in-process through
|
|
43
|
+
# `--project`, after it has read its config. Neither may change this CLI, so Bun reads no env file
|
|
44
|
+
# and a config file that is empty.
|
|
45
|
+
exec "$bun" --no-env-file --config="$here/empty-bunfig.toml" "$here/holyagent.js" "$@"
|