frigg-first-code-search

frigg-first-code-search is a skill for Claude Code, Codex from bnomei/frigg. It costs 80 tokens per session (12,100 once invoked), scanned A, original, MIT.

A code-search helper that prefers Frigg, a system for searching indexed source code, and uses result handles and match reading for evidence.

In plain words
What is it for?
Searching indexed code and inspecting matching source as proof.
Why use it?
It helps locate source code and check the exact matches found. The limited description does not say how it handles other search methods.

Skill for Claude CodeCodex

Written for Claude Code and Codex: PreToolUse hook event, but also agents/openai.yaml present. Also seen: mentions subagents; mentions AGENTS.md.

Part of the frigg-first-code-search plugin — 1 skill, 1 hook, 1 MCP server shipped together

Good fit Searching indexed code and inspecting matching source as proof.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bnomei/frigg/frigg-first-code-search
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.

Any agent
npx skills add bnomei/frigg --skill frigg-first-code-search
Clone the repo
git clone --depth 1 https://github.com/bnomei/frigg

Made for: Claude Code, Codex.

Or install frigg-first-code-search, the plugin that ships this one along with the rest of its 1 skill, 1 hook, 1 MCP server.

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 frigg-first-code-search

README.md
[![agentmods](https://agentmods.dev/badge/skills/bnomei/frigg/frigg-first-code-search/github.svg)](https://agentmods.dev/skills/bnomei/frigg/frigg-first-code-search)
Your own site
<a href="https://agentmods.dev/skills/bnomei/frigg/frigg-first-code-search"><img src="https://agentmods.dev/badge/skills/bnomei/frigg/frigg-first-code-search/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 frigg-first-code-search

Your own site · 80×15
<a href="https://agentmods.dev/skills/bnomei/frigg/frigg-first-code-search"><img src="https://agentmods.dev/badge/skills/bnomei/frigg/frigg-first-code-search.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 80 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 12,100 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.00080 $0.12100
Opus 5.5 $0.00032 $0.04840
Sonnet 5.5 $0.00016 $0.02420
Haiku 4.5 $0.00008 $0.01210

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

Security

Grade A, and why

frigg-first-code-search 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.

skills/frigg-first-code-search/SKILL.md · 860 lines

How it starts

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

Frigg is the default for code discovery, file listing, navigation, exact code search, and bounded source reads.

Before using shell rg, grep, find, fd, cat, or sed for code exploration, use the matching Frigg MCP tool in attached or attachable code repositories.

Shell tools are fallback only for git state and diffs, non-code files, build/test output, generated or unindexed files, explicit live-disk verification, or when Frigg is unavailable.

Do not run parallel shell grep in the same turn as Frigg search on indexed source.

Follow the evidence, not just the shell replacement: use search_symbol for a known identifier and search_batch for independent hypotheses when callable. After selecting a hit, copy its target_ref into navigation when relationships matter, then use read_match for source proof. A known path still warrants direct read_file; do not add navigation merely to use more tools.

Harness boundary (Frigg is an evidence layer, not an agent OS):

  • Host tool order, Grep-first defaults, and intermittent MCP registration/inheritance flukes are outside Frigg product code (FUT-003 harness boundary — not a Frigg CI gate or ranking bug).
  • When the bridge is down or tools are unregistered, that is harness reliability, not ranking quality.
  • Soft PreToolUse / adopt hooks are opt-in (not guaranteed Frigg-first). Soft only: Claude hook injects next-step context (search_text / search_batch / …) and never hard-denies Grep/shell (permissionDecision is not product).
  • Hard block of Grep/rg on indexed roots is a host experiment, not Frigg core — do not invent FRIGG_HOOK_STRICT or product tool-order hacks.
  • Do not invent product hacks (fake Grep, hide host tools, force MCP tool order, or a “subagent bridge health” Frigg tool — Frigg cannot see the host registry when it is not registered).
  • Route indexed source through Frigg when the live tool list exposes Frigg tools; progressive disclosure on this top screen is intentional (30-second rule).

Probe-on-spawn (Task / subagent / new session):

1. Before claiming Frigg-first, verify Frigg is on the *live* host tool surface for THIS spawn:
   live tools/list (or a successful Frigg CallMcpTool). Do NOT trust on-disk mcps/…/tools
   descriptors or a parent session's tool list as proof this spawn has Frigg.
2. If Frigg is absent from live tools/list for this spawn (empty Frigg server, or
   Tool not found when calling a known Frigg tool like search_text while the parent still has Frigg):
   - Shell/Grep/Read fallback is correct for this spawn
   - Note the gap once (harness MCP inheritance / registration) — do NOT file as Frigg search/ranking failure
   - Do NOT invent workspace_reindex / bridge_health / fake tools to "fix" registration
   - (Invented names / extended-only tools missing while other Frigg tools work → surface honesty,
     not inheritance — see tool-surface rules)
3. If the initial Frigg workspace is the wrong repository, attach the task repository with
   workspace(path=...) before falling back to local tools.
4. Parent session success does NOT imply child Task success — re-probe every delegation.
5. Prefer loopback HTTP + frigg serve when multiple clients/subagents should share one Frigg
   *after* each spawn actually has Frigg registered; HTTP shares state when registration works —
   it does not create child registration by itself.

Partial surface (some Frigg tools work, recommended ones are missing):

  • Compare the host-callable tools, the installed skill's mcp.json includeTools (or inline mcpServers), and workspace.runtime.tools_exposed / live tools/list when available. A stale skill filter can hide symbol, batch, and navigation tools even when the server supports them.
  • Report the reduced surface once. Do not call host-unavailable tools just because the skill or server lists them. Use parallel scoped searches when batch is unavailable; use bounded exact identifier/import/call-site searches when navigation is unavailable, then read the witnesses.
  • See runtime recovery before refreshing an install. Preserve its endpoint/credentials; an expired HTTP session is not evidence of a smaller server tool surface.

Read the full file on GitHub · 860 lines

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 Changed · +28 lines d9917573e2d7
  2. 1mo ago Changed · +829 lines · +80 tokens per session 39d720b45709
  3. 1mo ago First seen · 3 lines · 0 tokens per session scan A a95e8f3dda7c

Subscribe to this mod's changes

frigg-first-code-search is a skill published in the GitHub repository bnomei/frigg (5 stars, last pushed 17d ago), licensed MIT. It adds 80 tokens to every session and 12,100 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

mcpls

Install, configure, and run the mcpls CLI — a Rust binary bridging MCP to LSP that gives an agent compiler-grade code intelligence (hover, definitions, references, diagnostics, rename). Use when setting up or registering mcpls as an MCP server, writing or debugging an mcpls.toml, choosing CLI flags or MCPLS…

bug-ops/mcpls · 89 tokens

windows-compat

Audit and harden this Rust repo (code-graph-mcp) for Windows correctness: path-spelling drift between producers, the 32,767-char command-line cap, index-key mismatches, and path predicates that assume one ecosystem's layout. Use whenever touching code that builds, compares, prints, or stores a filesystem path; that…

sdsrss/code-graph-mcp · 165 tokens

index

Diagnose and fix code-graph index issues. Use when: search returns unexpected/empty results, or after major codebase restructuring. Covers the health check and both rebuild paths from the CLI.

sdsrss/code-graph-mcp · 44 tokens

explore

Understand code structure with the AST index before reading files one by one — when starting work in unfamiliar code, exploring a module before a change, or finding which file to edit. An overview lists a directory's symbols and their callers in one call.

sdsrss/code-graph-mcp · 55 tokens

scip-integrity-audit

Investigate whether a feature fulfills its promised behavior through live consumers. Find partial implementations, decorative checks, ineffective parser migrations, competing implementations, misleading results, and tests validating their own assumptions.

PlunderStruck/scip-query · 44 tokens

scip-query

Use code relationships, module structure, quality findings and change impact to plan and review changes alongside ordinary source-reading tools.

PlunderStruck/scip-query · 27 tokens