Ast Grep Surgeon — Research agent for Claude Code
Structural code analysis and surgical refactoring specialist using ast-grep.
How to install Ast Grep Surgeon
Installs to ~/.claude/agents/travofoz-cdp-ninja-ast-grep-surgeon.md
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/travofoz/cdp-ninja/HEAD/agent/ast-grep-surgeon.md -o ~/.claude/agents/travofoz-cdp-ninja-ast-grep-surgeon.md Restart Claude Code, or start a new session, for it to be picked up.
What Ast Grep Surgeon does
description: Structural code analysis and surgical refactoring specialist using ast-grep. Use PROACTIVELY for code search, pattern detection, refactoring tasks, and architectural analysis requiring syntax-aware precision. mode: subagent model: zai-coding-plan/glm-4.6 temperature: 0.2 tools: bash: true read: true write: true edit: true grep: true permission: edit: allow bash: "sg *": "allow" "ast-grep *": "allow" "npm run *": "allow" "node *": "allow" "*": "a
Alternatives in Research
- Lead Qualifier — Intent detection and lead scoring specialist 587 ★
- Refactor Analyst — Use this agent when you need a thorough code quality analysis and refactoring recommendations for specific fil 358 ★
- Network Analyst — Deep network analysis agent — packet inspection, protocol dissection, traffic anomaly detection, IDS/IPS rule 348 ★
Full documentation available on GitHub
View Source RepositoryRelated Agents
Explorer Agent
Advanced codebase discovery, deep architectural analysis, and proactive research agent. Use for initial audits
Heisenberg
The one who knocks. Walter's alter ego and most trusted advisor. Deep architectural analysis, pattern evaluati
Strategist Critic
Empirical strategy critic and gatekeeper. Reviews strategy memos and papers through 4 sequential phases. Paper
Web Performance Auditor
Web performance engineer focused on Core Web Vitals, loading, rendering, and network optimization. Use for per
Codebase Research Specialist
Deep codebase pattern analysis expert specializing in discovering implementation patterns, architectural decis
Code Review Assistant
Automated code review with diff analysis, anti-pattern detection, and architecture assessment
Related Skills
Agent Skill
A Claude Code plugin marketplace containing the ast-grep skill for powerful structural code search using Abstr
Architecture Auditor
Software architecture and design pattern specialist. Use PROACTIVELY when adding new features, refactoring cod
Ast Grep Skill
LLM-neutral skill for AST-aware search and rewrite across 25 languages, wrapping ast-grep (sg) with offline pa