code-search

code-search is a skill for Claude Code, Codex from feniix/pi-extensions. It costs 23 tokens per session (604 once invoked), scanned A, original, MIT.

A code-research skill that uses Exa to find external programming documentation, examples, API references, and debugging information. Exa is a search service for finding relevant web pages and code context.

In plain words
What is it for?
It is for looking up official documentation, API syntax, code examples, error explanations, library comparisons, and similar technical references.
Why use it?
It helps when the needed coding information is outside the current project and reduces the need to search manually or rely on memory.

Skill for Claude CodeCodex

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 skills/feniix/pi-extensions/code-search
Any agent
npx skills add feniix/pi-extensions --skill code-search
Clone the repo
git clone --depth 1 https://github.com/feniix/pi-extensions

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/feniix/pi-extensions/code-search.svg)](https://agentmods.dev/skills/feniix/pi-extensions/code-search)
Your own site
<a href="https://agentmods.dev/skills/feniix/pi-extensions/code-search"><img src="https://agentmods.dev/badge/skills/feniix/pi-extensions/code-search.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 604 The whole file, excluding the scripts and references it only reads on demand.
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.00023 $0.00604
Opus 5 $0.00012 $0.00302
Sonnet 5 $0.00005 $0.00121
Haiku 4.5 $0.00002 $0.00060

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

Security

Grade A, and why

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 3d 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.

packages/pi-exa/skills/code-search/SKILL.md · 47 lines

How it starts

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

Code Search (Exa)

Use this skill when the user needs external coding context: official docs, API examples, error explanations, library comparisons, or implementation references that are not already in the repo.

Tool Selection

Intent Primary Tool Notes
Find docs, examples, API syntax, or error reports web_search_exa Start here for most lookups; include language/library/version in the query.
Read official docs or a promising result web_fetch_exa Fetch 1-3 high-signal URLs after discovery.
Need a concise grounded explanation web_answer_exa Best for direct questions; ask for citations and short code snippets.
Compare libraries or approaches across sources web_research_exa Use only when enabled and the answer needs synthesis, not a quick lookup.
Find similar docs or examples from one strong page web_find_similar_exa Use when a seed URL is clearly relevant.

If web_research_exa or web_search_advanced_exa is unavailable, do not pretend it can be used. Fall back to web_search_exa plus selective web_fetch_exa.

Query Writing

  • Include the language, framework/library, and version when known: TypeScript 5.7 TypeBox Object additionalProperties.
  • Include exact identifiers, error strings, function names, or package names when available.
  • Prefer official docs, release notes, issue trackers, and maintainer-authored examples before blogs.
  • For debugging, include the error class/message and runtime context.
  • web_search_exa
    • { "query": "TypeScript 5.7 TypeBox additionalProperties examples", "numResults": 5 }
  • web_fetch_exa
    • { "urls": ["https://example.com/docs/page"], "maxCharacters": 5000 }
  • web_answer_exa
    • { "query": "How does TypeBox validate additionalProperties in TypeScript?", "systemPrompt": "Prefer official docs and concise code snippets." }
  • web_research_exa
    • { "query": "Compare TypeScript runtime validation libraries for backend APIs, focusing on schema reuse, performance, and ergonomics.", "systemPrompt": "Prefer official docs, maintainer posts, and recent benchmarks. Call out uncertainty.", "outputSchema": { "type": "text" } }

Read the full file on GitHub · 47 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. 3d ago First seen · 47 lines · 23 tokens per session scan A f9873371503e

Subscribe to this mod's changes

code-search is a skill published in the GitHub repository feniix/pi-extensions (23 stars, last pushed 10d ago), licensed MIT. It adds 23 tokens to every session and 604 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-30.

Related

Other skills, from other repositories

cmux

Manage terminal sessions and browser surfaces via cmux — spawn workspaces for dev servers, test runners, background tasks, and embedded browsers. Read output, send commands, interact with web pages, and orchestrate multi-terminal workflows.

niclejeune/pi-agents-config · 50 tokens

learn-codebase

Discover project conventions and surface security concerns. Use when starting work in a new or unfamiliar project, when asked to "learn the codebase", "check project rules", "what are the conventions", "onboard to this project", or "anything shady in this codebase". Scans agent config files (.claude/, .cursor/…

niclejeune/pi-agents-config · 101 tokens

write-todos

Write clear, actionable todos that workers can execute without losing architectural intent. Use when "create todos", "write todos", "break into tasks", "plan todos", "make todos", or creating work items from a plan. Ensures each todo has unambiguous expected outcomes, concrete examples, and explicit constraints so…

niclejeune/pi-agents-config · 74 tokens

self-improve

End-of-session retrospective that identifies improvements to agent config, tests, docs, and code. Use when asked to "self-improve", "reflect on session", "what can we improve", "session retrospective", "end of session review". Creates actionable todos from findings.

niclejeune/pi-agents-config · 58 tokens

repotrace

Use repotrace as the local code intelligence layer before broad code exploration, nontrivial edits, impact analysis, route/call graph work, or architecture checks. Generates compact context bundles so coding agents do not get lost.

niclejeune/pi-agents-config · 49 tokens

context-vault

Use a Markdown/Obsidian context vault for durable memory, workflow decisions, project lessons, context packs, SOPs, and cross-session handoffs.

niclejeune/pi-agents-config · 35 tokens