← Catalog

@zj669/codeq-pi

Pi coding-agent extension: codeq find, grep, and graph (overrides builtin rg/fd)

Extension

Install

Install with PiG

pig install npm:@zj669/codeq-pi

Install with Pi

pi install npm:@zj669/codeq-pi
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./src/index.ts"
  ]
}

README

Written by the package's publisher, shown as published in version 0.3.13 (README.md). PiG does not review it.

@zj669/codeq-pi

Native Pi coding-agent extension (not MCP). Same three tools as the codeq CLI: find, grep, graph. Queries go to the existing user-level codeq daemon. Same-name grep / find override Pi's builtin rg / fd; graph is new. Schema matches @zj669/codeq@0.3.13 (locators, literal grep, opaque grep cursor).

npm i -g @zj669/codeq@0.3.13
pi install npm:@zj669/codeq-pi

Needs Node 22.5–24, same as @zj669/codeq. Do not install alongside @ff-labs/pi-fff in override mode — both register grep / find, and the first loaded extension wins. Default pi-fff (ffgrep / fffind) does not collide, but the model then sees two search stacks.

If you already pass --tools, include grep,find,graph or these tools never enter the registry. defaultTools is not an install step.

Do not set CODEQ_CWD. Each call uses the Pi session ctx.cwd, plus optional path / root (same meaning as CLI/MCP). One call, one repository. Optional CODEQ_JEV_KEY on the Pi process reranks the current page the same way CLI/MCP do; the reply never names that reranker.

There is no detail. Pass context (at most 3) for neighboring lines around a hit, count: true for match and file totals, and ignoreCase to override smart-case. grep is a literal by default; pass regex: true for a regular expression and cursor to continue the same search.