Who it is forAn engineer in Aside checking how often a symbol or pattern appears across a repository with a very large file count.
The problemA plain recursive grep can emit millions of lines, which buries the answer before it arrives.
The outcomeThe agent returns a compact count, such as total matching lines and matching files, in a few hundred bytes.
What you need first
- Node.js 18 or newer
- Aside installed with its daemon running on macOS or Windows
- ripgrep on the PATH for the CLI route (the MCP route uses Aside's bundled ripgrep automatically)
- Browsing turned on in Aside for the browser batch use case
Steps
- Run
npm install -g aside-codemode - Run
codemode --install-mcp - Run
codemode --doctorand confirm the state reads activated - Ask the agent to run search.count over the tree with the pattern you want
Prompt for your agent
Use the aside-codemode execute_code tool to run search.count for <pattern> under <root folder> and return the matching line count and file count. Verify the totals against a small known subfolder before trusting the full-tree figure.
Caveat. The 2,966 ms count and 127,000-file figure come from one controlled measurement against codemode 0.8.1, so timings on your tree will differ.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for lidge-jun/aside-codemode and "Count matches in a huge tree without flooding output"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer