Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add harness/harness-skills --skill configure-agent-pr-attestationgit clone --depth 1 https://github.com/harness/harness-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/harness/harness-skills/configure-agent-pr-attestation)<a href="https://agentmods.dev/skills/harness/harness-skills/configure-agent-pr-attestation"><img src="https://agentmods.dev/badge/skills/harness/harness-skills/configure-agent-pr-attestation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/harness/harness-skills/configure-agent-pr-attestation"><img src="https://agentmods.dev/badge/skills/harness/harness-skills/configure-agent-pr-attestation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00109 | $0.02327 |
| Opus 5.5 | $0.00044 | $0.00931 |
| Sonnet 5.5 | $0.00022 | $0.00465 |
| Haiku 4.5 | $0.00011 | $0.00233 |
Grade B, and why
configure-agent-pr-attestation scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
task compile-harness-scs && sudo mv harness-scs /usr/local/bin/ Copies of this mod
1 near-identical copy found in the catalogue:
- configure-agent-pr-attestation — 100% identical, 0 lines differ
How it starts
The opening of the file, as written. The whole thing — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Configure Agent PR Attestation
Sets up a PostToolUse hook that signs and uploads an in-toto attestation
to the Harness Evidence Vault every time an AI coding agent creates a PR/MR.
Instructions
Follow these steps in exact order. Do NOT skip steps or reorder them.
Step 1: Check Prerequisites
Run these checks and report what's missing. Do not proceed until all are installed.
command -v harness-scs
command -v jq
command -v git
command -v cosign
If harness-scs is missing, tell the user:
task compile-harness-scs && sudo mv harness-scs /usr/local/bin/
Step 2: Ask for SCM
Ask the user which tool they use to create PRs/MRs. Use AskUserQuestion.
Options:
| Choice | command_filter | url_pattern |
|---|---|---|
| Harness CLI (codepulse pr create) | codepulse pr create |
https://[^/]*\.harness\.io/.*/pulls/[0-9]+(/.*)? |
| GitHub CLI (gh pr create) | gh pr create |
https://github\.com/[^ ]+/pull/[0-9]+ |
| GitLab CLI (glab mr create) | glab mr create |
https://[^ ]+/-/merge_requests/[0-9]+ |
| Bitbucket CLI (bb pr create) | bb pr create |
https://[^ ]+/pull-requests/[0-9]+ |
| Azure DevOps CLI (az repos pr create) | az repos pr create |
https://[^ ]+/_git/[^ ]+/pullrequest/[0-9]+ |
| Gitea / Forgejo (tea pr create) | tea pr create |
https://[^ ]+/pulls/[0-9]+ |
If user picks GitLab, Bitbucket, Gitea, or Custom — also ask if self-hosted.
If self-hosted, ask for hostname and replace the generic [^ ]+ host in the
url_pattern with their specific escaped hostname.
If user picks "Other / custom":
- Ask for the exact command they run.
- Ask for an example PR URL their tool prints.
- Derive
command_filterandurl_pattern, show to user, confirm.
Step 3: Set up Harness Identity (auth.json)
Check if ~/.harness/auth.json already exists:
test -r ~/.harness/auth.json && jq -e '.token and .account_id' ~/.harness/auth.json >/dev/null 2>&1
If auth.json exists and is valid: Tell the user "Found existing ~/.harness/auth.json" and move to Step 4.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed · +1 lines 7a60afdd52cd
- 3mo ago First seen · 254 lines · 109 tokens per session scan B c13c77462a81
configure-agent-pr-attestation is a skill published in the GitHub repository harness/harness-skills (138 stars, last pushed today), licensed Apache-2.0. It adds 109 tokens to every session and 2,327 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
configure-agent-pr-attestation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| configure-agent-pr-attestationharness/harness-skills | Skill | 138 | today | Apache-2.0 | B | 109 | Claude Code |
| agent-framework-py-releasemicrosoft/agent-framework | Skill | 15k | 13d ago | MIT | A | 102 | Claude Code, Codex |
| orchard-releaserohitg00/ai-engineering-from-scratch | Skill | 81k | today | MIT | A | 11 | Claude Code, Codex |
| resolve-handoffomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 23 | Claude Code, Codex |
| otto-pr-review-loopomnigent-ai/omnigent | Skill | 12k | today | Apache-2.0 | A | 17 | Claude Code, Codex |
| orchard-reviewrohitg00/ai-engineering-from-scratch | Skill | 81k | today | MIT | A | 8 | Claude Code, Codex |
| pr-autofixAtomicBot-ai/atomic-agent | Skill | 3.6k | today | MIT | A | 45 | Claude Code, Codex |