smithery/gplv2

ogrep

Semantic code search - finds code by meaning, not just keywords. Use when: - User asks WHERE or HOW something is implemented ("where is X handled", "how does Y work") - You need to understand code behavior without knowing exact function names - Exploring unfamiliar codebases where you don't know the terminology yet - User asks a conceptual question about the codebase NOT for: exact string matching, known file paths, import lookups, or simple identifier searches — use grep/Glob for those.

Installation

$ npx skills add smithery/gplv2 --skill ogrep
More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash, Read, mcp__plugin_ogrep_ogrep__ogrep_query, mcp__plugin_ogrep_ogrep__ogrep_chunk, mcp__plugin_ogrep_ogrep__ogrep_status

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,636 B
  • docs SUMMARY.md 696 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Mandatory: Use the Search Agent

YOU MUST dispatch the ogrep-search agent for any semantic code search.

Announce: "Dispatching ogrep search agent to find [topic]."

Then use the Agent tool with subagent_type: "ogrep-search":

Agent tool:
  description: "Search codebase for [topic]"
  prompt: "Search for [specific query]. Focus on [what you're looking for - e.g., implementation details, architecture, data flow, error handling]."
  subagent_type: "ogrep-search"

The agent will:

  1. Call ogrep_query(summarize=true) for a cheap file-level overview
  2. Narrow to the most relevant files
  3. Expand specific chunks for evidence
  4. Return synthesized findings with file:line references

Saves context vs. running ogrep commands directly in your conversation.

When to Use

Use ogrep when:

  • "Where is error handling done?"
  • "How does caching work here?"
  • "What validates user input?"
  • Exploring unfamiliar code
  • User asks a conceptual question about the codebase
  • You'd need to guess multiple terms for grep

Use grep/Glob instead when:

  • You know the exact class/function name (class ErrorHandler)
  • Looking for specific imports or string literals
  • Simple identifier searches

Rule of thumb: If you'd need to guess multiple terms for grep, dispatch the ogrep agent.

Direct MCP Access (Simple Queries)

For simple, quick lookups you CAN call MCP tools directly without dispatching the agent:

ogrep_query(query="where is auth?")
ogrep_status()

This is appropriate for quick checks. For deeper exploration, always dispatch the agent.

Direct CLI Access (Discouraged)

You CAN run ogrep commands directly via Bash, but DON'T — MCP tools are faster (persistent process, warm models) and return structured data. Always prefer MCP tools or the agent.

Exception: ogrep index . for first-time indexing can be run directly if the agent reports no index exists, or use ogrep_index() via MCP.