setup-repo

setup-repo is a command for Claude Code, OpenCode from ihorkatkov/pantheon. It costs 14 tokens per session (965 once invoked), scanned A, original, MIT.

A repository-inspection command that fills the Project Configuration section of AGENTS.md, a file containing instructions for coding agents. It reads the project files without installing, building, or testing anything.

In plain words
What is it for?
Use it when setting up an existing repository and documenting its language, framework, commands, and configuration in AGENTS.md.
Why use it?
It records the repository’s technology and working conventions so future agents have useful project context.

Command for Claude CodeOpenCode

Written for OpenCode and Claude Code: installed under .opencode/, but also a Claude Code command (commands/*.md). Also seen: mentions AGENTS.md.

Good fit Use it when setting up an existing repository and documenting its language, framework, commands, and configuration in AGENTS.md.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ihorkatkov/pantheon/setup-repo
Install

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.

Clone the repo
git clone --depth 1 https://github.com/ihorkatkov/pantheon

Made for: Claude Code, 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 setup-repo

README.md
[![agentmods](https://agentmods.dev/badge/commands/ihorkatkov/pantheon/setup-repo.svg)](https://agentmods.dev/commands/ihorkatkov/pantheon/setup-repo)
Your own site
<a href="https://agentmods.dev/commands/ihorkatkov/pantheon/setup-repo"><img src="https://agentmods.dev/badge/commands/ihorkatkov/pantheon/setup-repo.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 965 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.00014 $0.00965
Opus 5 $0.00007 $0.00483
Sonnet 5 $0.00003 $0.00193
Haiku 4.5 $0.00001 $0.00097

Measured 7d ago against content hash 434b6624f24f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

setup-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 7d 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/commands/setup-repo.md · 126 lines

How it starts

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

/setup-repo

Your job: inspect the product repository and fill the Project Configuration section of AGENTS.md.

The AGENTS.md file already exists at the workspace root ($PANTHEON_ROOT/AGENTS.md or ../../AGENTS.md). It has agent tables at the top (DO NOT TOUCH) and a Project Configuration section marked by HTML comments. You replace ONLY the content between <!-- PROJECT_CONFIG_START --> and <!-- PROJECT_CONFIG_END -->.

Hard Rules

  • Do NOT run any install, build, or test commands (npm install, mix deps.get, pip install, cargo build, etc.)
  • Do NOT modify any files in the product repository
  • Do NOT modify any content above <!-- PROJECT_CONFIG_START -->
  • Do NOT remove the <!-- PROJECT_CONFIG_START --> or <!-- PROJECT_CONFIG_END --> markers
  • You READ the repo, then UPDATE one section of one file. Nothing else.

Step 1: Inspect the Repo

Read configuration files to identify the stack (do NOT execute anything):

  • package.json, deno.json, tsconfig.json → Node.js / Deno / TypeScript
  • Cargo.toml → Rust
  • go.mod → Go
  • pyproject.toml, setup.py, requirements.txt → Python
  • mix.exs → Elixir
  • Gemfile → Ruby
  • pom.xml, build.gradle → Java
  • Makefile, Justfile → Build system
  • .github/workflows/, .gitlab-ci.yml, .circleci/ → CI/CD

Then read:

  • 3-5 source files for import/naming patterns
  • 3-5 test files for test framework and patterns
  • Formatter/linter configs
  • git log --oneline -20 for commit conventions

Step 2: Write the Project Configuration

Read the existing $PANTHEON_ROOT/AGENTS.md (or ../../AGENTS.md). Find the <!-- PROJECT_CONFIG_START --> marker. Replace everything from that marker through <!-- PROJECT_CONFIG_END --> with:

<!-- PROJECT_CONFIG_START -->
## Project Configuration

### Validation
\`\`\`bash
[THE primary command to run before committing — e.g., mix precommit, npm run lint && npm test, cargo clippy && cargo test]
\`\`\`

Agents MUST run this before committing any changes.

### Testing
\`\`\`bash
# Run all tests
[command]

# Run a single test file
[command path/to/test]

# Run a specific test
[command with filter/line number]
\`\`\`

- **Framework**: [name]
- **Test file naming**: [pattern]
- **Test helpers/setup**: [what's available]

### Linting & Formatting
\`\`\`bash
# Format code
[command]

# Check formatting
[command]

# Lint / compile check
[command]
\`\`\`

### Development
\`\`\`bash
# Start dev server
[command]

# Database setup/migration
[command]

# Install dependencies
[command]
\`\`\`

### Repository Structure
\`\`\`
[directory tree with one-line descriptions]
\`\`\`

### Code Style
- **Formatting**: [tabs/spaces, width, key rules]
- **Imports**: [patterns with examples from the repo]
- **Naming**: [files, modules, functions, variables]
- **Error handling**: [patterns observed]

### Git Conventions
- **Branches**: [pattern]
- **Commits**: [pattern from git log]

### Critical Rules
1. Ask for clarification rather than making assumptions
2. Make smallest reasonable changes — don't refactor unrelated code
3. All changes need tests
[ADD: 3-10 project-specific rules discovered from the codebase]
<!-- PROJECT_CONFIG_END -->

Read the full file on GitHub · 126 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. 7d ago First seen · 126 lines · 14 tokens per session scan A 434b6624f24f

Subscribe to this mod's changes

setup-repo is a command published in the GitHub repository ihorkatkov/pantheon (5 stars, last pushed 5mo ago), licensed MIT. It adds 14 tokens to every session and 965 once invoked, about $0.0001 per session on Opus 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.