hop AGENTS.md

hop AGENTS.md is an instructions file for Codex, OpenCode from amittamari/hop. It costs 689 tokens per session, scanned A, original, MIT.

Repository instructions for hop, a Rust command-line and terminal interface that indexes, searches, previews, and resumes Claude Code and Codex session files.

In plain words
What is it for?
Use them when changing hop, especially to find the right documentation, follow Rust project boundaries, parse data safely, and run the expected commands.
Why use it?
They give coding agents a short map of the project and point them to the documents that contain its rules, design, and usage details.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/amittamari/hop/agents-md
Clone the repo
git clone --depth 1 https://github.com/amittamari/hop

Made for: Codex, 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 hop AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/amittamari/hop/agents-md.svg)](https://agentmods.dev/instructions/amittamari/hop/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/amittamari/hop/agents-md"><img src="https://agentmods.dev/badge/instructions/amittamari/hop/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 689 This file is loaded in full into every session.
When invoked 689 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00689 $0.00689
Opus 5 $0.00345 $0.00345
Sonnet 5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

Measured 5d ago against content hash 13f44de242a7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

hop AGENTS.md 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 5d 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.

AGENTS.md · 66 lines

How it starts

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

Agent Map

This file is the short entry point for coding agents. Keep it small. Durable project knowledge belongs in docs/.

Start Here

  • Project contract: docs/PROJECT.md
  • Architecture map: docs/ARCHITECTURE.md
  • User-facing usage: README.md

What This Repo Builds

hop is a Rust CLI/TUI that indexes Claude Code and Codex session JSONL files, searches them with Tantivy, previews a cleaned transcript, and exec-resumes the selected session in the original working directory.

Working Rules

  • Read docs/RUST_GUIDELINES.md before starting any implementation work.
  • Prefer the existing module boundaries over introducing new framework shape.
  • Prefer files under ~500 lines. Crossing it on a file you're editing is a signal to split by responsibility — not a hard limit. If a file is legitimately over (e.g. dominated by colocated #[cfg(test)] tests), add a one-line note near the top explaining why, and move on. Don't split modules purely to satisfy the count.
  • Keep main.rs as orchestration only when possible; reusable behavior belongs in library modules.
  • Parse external data at adapter boundaries into core types before indexing or rendering.
  • Keep agent-specific knowledge inside its adapter (B-011): format quirks, magic field values, and per-agent judgments belong in adapters/<agent>.rs. Generic layers (engine, core, index, tui) must not name an agent-specific literal or adapters::<agent>::… symbol — reach adapters only through the Adapter trait. When a generic layer needs a per-agent decision, add an agent-agnostic trait method with a safe default and override it in the adapter.
  • Keep the TUI responsive: no network calls, large scans, or broad filesystem work in the render path.
  • Preserve resume behavior: restore the terminal before exec, then chdir and replace the process with the agent CLI.
  • Update documentation when changing architecture, user-visible behavior, or agent-facing workflows.
  • Never write absolute local working-directory paths (e.g. /Users/<name>/... or a personal ~/workspaces/... layout) into committed files. Reference repos and files by their repo-relative path, well-known data dirs (~/.codex, ~/.claude), or a neutral description like "a local checkout".

Read the full file on GitHub · 66 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. 5d ago First seen · 66 lines · 689 tokens per session scan A 13f44de242a7

Subscribe to this mod's changes

hop AGENTS.md is an instructions file published in the GitHub repository amittamari/hop (5 stars, last pushed 7d ago), licensed MIT. It adds 689 tokens to every session, about $0.0034 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.

Related

Other instructions, from other repositories

coding-agent-fabric CLAUDE.md

Claude Code instructions for yu-iskw/coding-agent-fabric, covering typescript monorepo - claude code memory, project overview, quick commands, code style and testing.

yu-iskw/coding-agent-fabric · 1,353 tokens

skills AGENTS.md

AGENTS.md instructions for michaelshimeles/skills, covering agent workflow, workflow, writing for humans, multi-agent rules and completing a task.

michaelshimeles/skills · 1,285 tokens

pixeltamer-gpt-image-skill CLAUDE.md

Instructions for gabelul/pixeltamer-gpt-image-skill, covering claude.md — pixeltamer, what this is, architecture, how the skill works and the two backends.

gabelul/pixeltamer-gpt-image-skill · 1,899 tokens

codmate AGENTS.md

Instructions for loocor/codmate, a project described as: CodMate is a macOS SwiftUI app for managing CLI AI sessions: browse, search, organize, resume, and review work produced by Codex, Claude Code, and Gemini CLI. It focuses on speed, a compact three-column UI, and “ship it” workflows like Project Review (Git…

loocor/codmate · 5,081 tokens

gh-stars-classifier-skill AGENTS.md

Instructions for catuscio/gh-stars-classifier-skill, covering github stars classifier — agent workflow, when to invoke, prerequisites (check first, fail fast), root resolver (run once, before any phase) and workflow.

catuscio/gh-stars-classifier-skill · 2,514 tokens

coding-agent-safety-gate AGENTS.md

Instructions for ASER-ho/coding-agent-safety-gate, covering agents / 代理规则, 仓库类型 / repository type and ai 代理规则 / rules for ai coding agents.

ASER-ho/coding-agent-safety-gate · 589 tokens