Borrowing it
Nothing to install: this file belongs to LeXwDeX/OpenCode-GraphAgent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/LeXwDeX/OpenCode-GraphAgent/main/.opencode/command/watch-ci.mdgit clone --depth 1 https://github.com/LeXwDeX/OpenCode-GraphAgentWrote 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/commands/lexwdex/opencode-graphagent/watch-ci)<a href="https://agentmods.dev/commands/lexwdex/opencode-graphagent/watch-ci"><img src="https://agentmods.dev/badge/commands/lexwdex/opencode-graphagent/watch-ci/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/commands/lexwdex/opencode-graphagent/watch-ci"><img src="https://agentmods.dev/badge/commands/lexwdex/opencode-graphagent/watch-ci.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.00014 | $0.00313 |
| Opus 5.5 | $0.00006 | $0.00125 |
| Sonnet 5.5 | $0.00003 | $0.00063 |
| Haiku 4.5 | $0.00001 | $0.00031 |
Grade A, and why
watch-ci scanned grade A with 0 findings 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 3d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Watch CI for $ARGUMENTS (omit the argument to use the current branch's PR).
- Ensure the repository watcher is installed with
bun .opencode/hooks/install-ci-watcher.ts. This merges its two owned handlers into ignored.opencode/hooks.json, preserving user hooks. Do not replace that file with the template. - Run
bun .opencode/hooks/watch-ci.ts request <PR>through the Bash tool; omit<PR>when no argument was supplied. Accept only a PR number or an HTTPS PR URL on the configured GitHub host. Pass it as a literal argument, never interpolate arbitrary user text into shell syntax. - The successful helper prints a validated
OPENCODE_CI_WATCHURL. The PostToolUse hook starts a background watcher and returns immediately. Tell the user it is running, then continue useful work without starting another foreground watch. - On its result, inspect the exact reported head. Repair failing checks within the task scope and use this command again after pushing a new head. A timeout or unavailable result permits another attempt. Required-check acceptance and merge remain the main agent's responsibility; this helper never merges.
A successful direct gh pr create ... invocation already starts this watcher when installed. Use this command for existing PRs, changed heads, or creation through compound commands/wrappers. Repeated requests for an active or successfully reported PR/head in the same session are deduplicated.
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.
- 3d ago First seen · 13 lines · 14 tokens per session scan A bd68f9ddec90
watch-ci is a command published in the GitHub repository LeXwDeX/OpenCode-GraphAgent (114 stars, last pushed yesterday), licensed MIT. It adds 14 tokens to every session and 313 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-20.
Other commands, from other repositories
publish
Publish oh-my-opencode to npm via GitHub Actions workflow.
remove-deadcode
Remove unused code from this project with ultrawork mode, LSP-verified safety, atomic commits.
merge-conflict-analysis
You are analyzing merge conflicts for PR #${{ pr-number }}.
issue-to-mr-setup
Create an automation that implements GitLab issues when a configurable trigger label is applied. Polls one or more projects deterministically, clones the default branch, starts one OpenHands conversation per label event, then commits, pushes, and opens the merge request itself.
validate-pr-description
Use when validating a PR title and description for conventional commit format, issue linking keywords, and template compliance before submission.
deploy
Run the complete ClawBridge release process. This is the ONLY way to deploy — follow every step.