LazyCodex is an agent harness for working on complex codebases, combining project memory, planning, execution, and completion checks inside Codex. It is for developers who want structured, repeatable assistance when handling substantial software projects. The catalogue contains the skills, hook, and MCP integration that provide its workflow inside Codex.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add code-yeongyu/lazycodex --skill ast-grepgit clone --depth 1 https://github.com/code-yeongyu/lazycodexWrote 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/skills/code-yeongyu/lazycodex/ast-grep)<a href="https://agentmods.dev/skills/code-yeongyu/lazycodex/ast-grep"><img src="https://agentmods.dev/badge/skills/code-yeongyu/lazycodex/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/skills/code-yeongyu/lazycodex/ast-grep"><img src="https://agentmods.dev/badge/skills/code-yeongyu/lazycodex/ast-grep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00061 | $0.03698 |
| Opus 5.5 | $0.00024 | $0.01479 |
| Sonnet 5.5 | $0.00012 | $0.00740 |
| Haiku 4.5 | $0.00006 | $0.00370 |
Grade A, and why
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 20d 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.
Copies of this mod
1 near-identical copy found in the catalogue:
- ast-grep — 89% identical
How it starts
The opening of the file, as written. The whole thing — 287 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ast-grep
sg (also installed as ast-grep) is an AST-aware search and rewrite tool across 25 languages. It treats your pattern as code, parses it the same way it parses your project, and matches structurally. It is the right tool whenever your question depends on code shape rather than text bytes.
This skill ships a Python wrapper at scripts/ast_grep_helper.py and platform install scripts at install.sh (POSIX) and install.ps1 (Windows). The helper adds offline pattern validation, the two-pass write trick, and binary auto-resolution. Use it as your default entry point.
OmO native: the ast-grep MCP tools (fastest path, no CLI needed)
OmO native also registers a bundled ast-grep MCP server. Its three tools are deferred: they are absent from the resident tool list and activate automatically the first time you call them by name — no tool_search round trip needed.
mcp__ast_grep_search({ pattern, language, paths })— AST-shape search, the MCP equivalent ofsg run -p. Prefer this over shelling out tosgfor one-off lookups: no install, no PATH issues.mcp__ast_grep_rewrite({ pattern, rewrite, language, paths, apply })— preview matches (apply: false, the default) or apply the rewrite (apply: true). Same two-pass discipline assg run -r: preview first, then apply.mcp__ast_grep_scan({ ruleFile | inlineRules, paths, apply })— run exactly one explicit YAML rule source (a rule file or inline rules), the MCP equivalent ofsg scan --rule/--inline-rules. It never discoverssgconfig.yml; to run a project's whole rule set, usesg scan(or the helper'sscan) from the shell.
Same pattern language as the CLI: $VAR matches one AST node, $$$VAR matches zero or more, and the pattern is code, not regex. paths accepts a file or directory list; language is always required by mcp__ast_grep_search and mcp__ast_grep_rewrite.
When to use this skill
Use it whenever the user's question is about code structure, not bytes:
What ships with it
17 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- AGENTS.md 3.1 KB
- agents/openai.yaml 43 B
- install.ps1 7.2 KB runs code
- install.sh 7.5 KB runs code
- LICENSE 1.0 KB
- README.md 7.7 KB
- references/cli.md 7.2 KB
- references/install.md 5.7 KB
- references/patterns.md 5.8 KB
- references/pitfalls.md 9.0 KB
- references/recipes.md 8.2 KB
- references/sgconfig.md 6.3 KB
- references/yaml-rules.md 11 KB
- scripts/ast_grep_helper.py 27 KB runs code
- SOURCE 125 B
- tests/smoke.ps1 5.6 KB runs code
- tests/smoke.sh 7.6 KB runs code
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.
- 20d ago Changed · +2 lines f9525b1d9a02
- 2mo ago Changed · +12 lines 2be8973cc11d
- 2mo ago Changed · -49 tokens per session 3ed9e11e7979
- 3mo ago First seen · 273 lines · 110 tokens per session scan A c5512fb49494
ast-grep is a skill published in the GitHub repository code-yeongyu/lazycodex (3,960 stars, last pushed yesterday), licensed MIT. It adds 61 tokens to every session and 3,698 once invoked, about $0.0002 per session on Opus 5.5. 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.
ast-grep compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ast-grepcode-yeongyu/lazycodex | Skill | 4.0k | yesterday | MIT | A | 61 | Codex |
| feishuHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 33 | Claude Code, Codex |
| interviewHmbown/CodeWhale | Skill | 41k | yesterday | MIT | A | 40 | Claude Code, Codex |
| refocusingmvschwarz/openrig | Skill | 9.0k | today | Apache-2.0 | A | 59 | Claude Code |
| recipe-create-meet-spacegoogleworkspace/cli | Skill | 33k | 5d ago | Apache-2.0 | A | 18 | Claude Code, Codex |
| printing-press-importmvanhorn/cli-printing-press | Skill | 5.1k | today | MIT | A | 104 | Claude Code |
| atmos-validationcloudposse/atmos | Skill | 1.4k | today | Apache-2.0 | A | 31 | Claude Code |