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.
git clone --depth 1 https://github.com/HigorAlves/orcWrote 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/higoralves/orc/debug)<a href="https://agentmods.dev/commands/higoralves/orc/debug"><img src="https://agentmods.dev/badge/commands/higoralves/orc/debug/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/higoralves/orc/debug"><img src="https://agentmods.dev/badge/commands/higoralves/orc/debug.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.00053 | $0.02360 |
| Opus 5.5 | $0.00021 | $0.00944 |
| Sonnet 5.5 | $0.00011 | $0.00472 |
| Haiku 4.5 | $0.00005 | $0.00236 |
Grade A, and why
debug 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 25d 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.
How it starts
The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.
$orc-debug
Hard bugs and unexpected failures get the systematic-debugging discipline. NO FIXES WITHOUT A ROOT CAUSE.
Arguments
--jira <KEY>— link a Jira ticket key (e.g.BUG-42) to this session silently. Suppresses the Phase 1 link prompt.- The bug description / failing test name is the rest of the argument string.
Workflow
Phase 0 — Detect context
Run orc-workspace-detect --banner in the working repository and read its output before continuing.
Run context detection explicitly; shell environments do not persist between calls.
In workspace mode, resolve targetRepos from flags or via the available user-question tool (or ask in chat). The default is the symptom-repo (the repo where the bug surfaces) plus any sibling repos the user suspects as the actual cause — the investigator reads across all of them. Iron rule: no silent broadcast — confirm.
Phase 1 — Initialize workspace + link
- Determine the current branch:
git branch --show-current(in workspace mode, prompt the user since cwd has no branch). Sanitize (/→-). - Create
${ORC_STATE_DIR}/<sanitized-branch>/files/if it doesn't exist. In workspace mode, also create per-repo<workspaceRoot>/<repo>/.orc/<sanitized-branch>/withworkspace-link.jsonback-pointers for each target repo (the diagnosis is workspace-level; remediation slices land per repo). - Resolve the Jira link.
- If
--jira <KEY>was passed: validate against^[A-Z][A-Z0-9_]*-\d+$. Reject and stop on mismatch. - Otherwise: ask via
the available user-question tool (or ask in chat)— "Link a Jira ticket to this session?" with options:Paste a key/Skip — I'll bind later via $orc-jira bind/No ticket — this work has no tracker entry.
- If
- Register state:
orc-state init --command debug --total-phases 7 [--jira <KEY>]. Defer toorc-state-protocolfor schema and rules; per phase,orc-state phase set <n>+orc-state digest write -.
Phase 2 — Investigate (no fixes)
Prime code discovery first (optional, non-blocking). Follow orc-code-discovery: if graphify is installed, verify the graph on the buggy branch is fresh before dispatching — build if missing (graphify extract . --code-only) or refresh if stale (graphify update .), so the investigator queries the graph from turn one instead of discovering staleness mid-investigation. Skip silently if graphify is absent or the build fails.
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.
- 25d ago Changed 894b9c123fc2
- 1mo ago Changed · +2 lines c9560f0999f4
- 1mo ago Changed · +1 lines c61bc47ea0b2
- 3mo ago First seen · 139 lines · 53 tokens per session scan A dfef57d8dfee
debug is a command published in the GitHub repository HigorAlves/orc (7 stars, last pushed 3d ago), licensed MIT. It adds 53 tokens to every session and 2,360 once invoked, about $0.0002 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-08-31.
debug compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debugHigorAlves/orc | Command | 7 | 3d ago | MIT | A | 53 | Claude Code |
| parallax-statusMaster0fFate/parallax-claudecode | Command | 0 | 1mo ago | MIT | A | 13 | Claude Code |
| ccc-feature-startKevinZai/commander | Command | 6 | today | MIT | A | 44 | Claude Code |
| fix-bugvalsecchi75/project-scaffolder | Command | 9 | 6d ago | MIT | A | 31 | Claude Code |
| executeskullninja/coco-workflow | Command | 7 | 1mo ago | MIT | A | 28 | Claude Code |
| troubleshootLeanAndMean/scramjet | Command | 1 | today | Apache-2.0 | A | 9 | Claude Code |
| fix-issuexiaobei930/cc-best | Command | 50 | 5mo ago | MIT | A | 23 | Claude Code |