OpenAgentsControl: Command for OpenCode

.opencode/command/validate-repo.md

validate-repo is a command for OpenCode from darrenhinde/OpenAgentsControl. It costs 0 tokens per session (2,029 once invoked), scanned A, original, MIT.

A repository validation command that checks the registry, referenced files, components, dependencies, profiles, documentation, and context files for consistency.

In plain words
What is it for?
Use it to verify that the OpenAgents Control repository's configuration, documentation, and component structure agree.
Why use it?
It finds broken references, missing components, duplicate entries, and documentation or registry mismatches before they cause problems.

Command for OpenCode

Written for OpenCode: installed under .opencode/. Also seen: mentions subagents; mentions OpenCode.

This is darrenhinde/OpenAgentsControl's own configuration. It tells OpenCode how to work on OpenAgentsControl itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything OpenAgentsControl configures →

About the project

OpenAgents Control is a framework that adds plan-first, approval-based coding workflows to OpenCode, an AI coding framework. Developers and teams use it to make agents follow shared coding patterns, work across several programming languages, and validate changes through testing and review. The catalogue includes its agents, skills, commands, plugin, and hook.

darrenhinde/OpenAgentsControl · 4,910 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to darrenhinde/OpenAgentsControl. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/darrenhinde/OpenAgentsControl/main/.opencode/command/validate-repo.md
Clone the repo
git clone --depth 1 https://github.com/darrenhinde/OpenAgentsControl

Made for: OpenCode.

Wrote 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.

agentmods badge for validate-repo

README.md
[![agentmods](https://agentmods.dev/badge/commands/darrenhinde/openagentscontrol/validate-repo/github.svg)](https://agentmods.dev/commands/darrenhinde/openagentscontrol/validate-repo)
Your own site
<a href="https://agentmods.dev/commands/darrenhinde/openagentscontrol/validate-repo"><img src="https://agentmods.dev/badge/commands/darrenhinde/openagentscontrol/validate-repo/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.

agentmods 80×15 button for validate-repo

Your own site · 80×15
<a href="https://agentmods.dev/commands/darrenhinde/openagentscontrol/validate-repo"><img src="https://agentmods.dev/badge/commands/darrenhinde/openagentscontrol/validate-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,029 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.02029
Opus 5.5 $0.00000 $0.00812
Sonnet 5.5 $0.00000 $0.00406
Haiku 4.5 $0.00000 $0.00203

Measured 1mo ago against content hash 25bfd5983ba9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

validate-repo 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 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.

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.

.opencode/command/validate-repo.md · 348 lines

How it starts

The opening of the file, as written. The whole thing — 348 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Validate Repository

Comprehensive validation command that checks the entire OpenAgents Control repository for consistency between CLI, documentation, registry, and components.

Usage

/validate-repo

What It Checks

This command performs a comprehensive validation of:

  1. Registry Integrity

    • JSON syntax validation
    • Component definitions completeness
    • File path references
    • Dependency declarations
  2. Component Existence

    • All agents exist at specified paths
    • All subagents exist at specified paths
    • All commands exist at specified paths
    • All tools exist at specified paths
    • All plugins exist at specified paths
    • All context files exist at specified paths
    • All config files exist at specified paths
  3. Profile Consistency

    • Component counts match documentation
    • Profile descriptions are accurate
    • Dependencies are satisfied
    • No duplicate components
  4. Documentation Accuracy

    • README component counts match registry
    • OpenAgent documentation references are valid
    • Context file references are correct
    • Installation guide is up to date
  5. Context File Structure

    • All referenced context files exist
    • Context file organization is correct
    • No orphaned context files
  6. Cross-References

    • Agent dependencies exist
    • Subagent references are valid
    • Command references are valid
    • Tool dependencies are satisfied

Output

The command generates a detailed report showing:

  • ✅ What's correct and validated
  • ⚠️ Warnings for potential issues
  • ❌ Errors that need fixing
  • 📊 Summary statistics

Instructions

You are a validation specialist. Your task is to comprehensively validate the OpenAgents Control repository for consistency and correctness.

Step 1: Validate Registry JSON

  1. Read and parse registry.json
  2. Validate JSON syntax
  3. Check schema structure:
    • version field exists
    • repository field exists
    • categories object exists
    • components object exists with all types
    • profiles object exists
    • metadata object exists

Read the full file on GitHub · 348 lines

Changes

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.

  1. 1mo ago First seen · 348 lines · 0 tokens per session scan A 25bfd5983ba9

Subscribe to this mod's changes

validate-repo is a command published in the GitHub repository darrenhinde/OpenAgentsControl (4,910 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,029 tokens. 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-09-14.