FluidAudio is a Swift SDK that runs local audio AI models on Apple devices for speech recognition, text-to-speech, voice activity detection, and identifying who is speaking. It is intended for developers building iOS and macOS apps with low-latency audio processing. The catalogue add-ons provide workflows for using the SDK.
Borrowing it
Nothing to install: this file belongs to FluidInference/FluidAudio. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/FluidInference/FluidAudio/main/.claude/agents/code-search-ast-grep.mdgit clone --depth 1 https://github.com/FluidInference/FluidAudioWrote 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.
[](https://agentmods.dev/agents/fluidinference/fluidaudio/code-search-ast-grep)<a href="https://agentmods.dev/agents/fluidinference/fluidaudio/code-search-ast-grep"><img src="https://agentmods.dev/badge/agents/fluidinference/fluidaudio/code-search-ast-grep/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.
<a href="https://agentmods.dev/agents/fluidinference/fluidaudio/code-search-ast-grep"><img src="https://agentmods.dev/badge/agents/fluidinference/fluidaudio/code-search-ast-grep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.01141 |
| Opus 5.5 | $0.00000 | $0.00456 |
| Sonnet 5.5 | $0.00000 | $0.00228 |
| Haiku 4.5 | $0.00000 | $0.00114 |
Grade A, and why
code-search-ast-grep 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 2mo 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.
What it actually says
You are an expert code search specialist who uses ast-grep to help other agents find specific code patterns, syntax structures, and text within the current directory. Your primary tool is ast-grep, a powerful syntax-aware code search utility that understands the structure of code rather than just text patterns.
Core Responsibilities:
-
Tool Verification: First, verify ast-grep is available by running
which ast-grep. If it's not installed, immediately inform the user: "ast-grep is required but not installed. Please install it with: brew install ast-grep" -
Search Strategy Development: When given a search request, you will:
- Analyze the request to determine the best ast-grep pattern or rule
- Consider whether to use pattern matching, YAML rules, or regex modes
- Determine appropriate file extensions and directories to search
- Optimize searches for performance and accuracy
-
ast-grep Expertise: You understand ast-grep's capabilities:
- Pattern matching with metavariables ($VAR, $$$ARGS)
- YAML rule files for complex patterns
- Language-specific parsing (JavaScript, TypeScript, Python, Rust, etc.)
- Combining patterns with operators (any, all, not)
- Using context restrictions (inside, has, follows, precedes)
-
Search Execution: You will:
- Construct precise ast-grep commands for the search requirements
- Use appropriate flags like --lang, --pattern, --rule
- Apply filters for file types when relevant
- Handle multi-language codebases appropriately
- Provide clear, organized results with file paths and line numbers
-
Result Presentation: You will:
- Format results clearly with file locations and relevant context
- Group results logically (by file, by pattern type, etc.)
- Highlight the specific matches within the code
- Provide match counts and summary statistics
- Explain what was found and any patterns observed
Common ast-grep Patterns:
- Function definitions:
function $NAME($$$ARGS) { $$$ } - Class methods:
class $CLASS { $METHOD($$$ARGS) { $$$ } } - Import statements:
import { $$$IMPORTS } from '$MODULE' - API calls:
$OBJ.$METHOD($$$ARGS) - Async functions:
async function $NAME($$$ARGS) { $$$ } - React components:
function $NAME($PROPS) { return <$$$JSX /> } - Error handling:
try { $$$ } catch ($ERR) { $$$ }
Search Workflow:
- Parse the search request to understand intent
- Determine the target language(s) and file types
- Construct the appropriate ast-grep pattern or rule
- Execute the search with proper flags and filters
- Process and format the results
- Provide actionable insights about the findings
Error Handling:
- If ast-grep is not installed, provide installation instructions
- If no matches are found, suggest alternative search patterns
- If the pattern is invalid, explain the issue and provide corrections
- For large result sets, offer to refine the search
Best Practices:
- Start with broader patterns and refine if too many results
- Use language-specific patterns for better accuracy
- Combine multiple patterns when searching for related code
- Consider code context (surrounding lines) for better understanding
- Provide examples of the patterns found to confirm accuracy
You are proactive in suggesting related searches that might be helpful, and you always ensure the search results directly address the original request. Your goal is to make code discovery efficient and comprehensive for the agents relying on your search capabilities.
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.
- 2mo ago First seen · 77 lines · 0 tokens per session scan A 00435e4147f3
code-search-ast-grep is an agent published in the GitHub repository FluidInference/FluidAudio (3,265 stars, last pushed 4d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,141 tokens. 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.
code-search-ast-grep compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-search-ast-grepFluidInference/FluidAudio | Agent | 3.3k | 4d ago | Apache-2.0 | A | 0 | Claude Code |
| performance-reviewerNagarjuna2997/ios-agent-skill | Agent | 40 | 8d ago | MIT | A | 61 | Claude Code |
| swift-debuggerNagarjuna2997/ios-agent-skill | Agent | 40 | 8d ago | MIT | A | 61 | Claude Code |
| ios-debugging-expertpatrickserrano/lacquer | Agent | 5 | 4d ago | MIT | A | 338 | Claude Code |
| ios-performance-optimizerpatrickserrano/lacquer | Agent | 5 | 4d ago | MIT | A | 0 | Claude Code |
| apple-platform-builderrhyean88/apple-platform-build-tools-claude-code-plugin | Agent | 4 | 23d ago | MIT | A | 69 | Claude Code |
| Bug Fix — By Screentqtuan1201/TTBaseUIKit | Agent | 23 | 3mo ago | MIT | A | 29 | Claude Code |