Borrowing it
Nothing to install: this file belongs to cadlens-co/cadlens-mcp. 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/cadlens-co/cadlens-mcp/main/.claude/agents/cad-layer-inspector.mdgit clone --depth 1 https://github.com/cadlens-co/cadlens-mcpWrote 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/cadlens-co/cadlens-mcp/cad-layer-inspector)<a href="https://agentmods.dev/agents/cadlens-co/cadlens-mcp/cad-layer-inspector"><img src="https://agentmods.dev/badge/agents/cadlens-co/cadlens-mcp/cad-layer-inspector/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/cadlens-co/cadlens-mcp/cad-layer-inspector"><img src="https://agentmods.dev/badge/agents/cadlens-co/cadlens-mcp/cad-layer-inspector.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.00069 | $0.00591 |
| Opus 5.5 | $0.00028 | $0.00236 |
| Sonnet 5.5 | $0.00014 | $0.00118 |
| Haiku 4.5 | $0.00007 | $0.00059 |
Grade A, and why
cad-layer-inspector 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 1mo 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 characterize a single layer of a parsed CAD drawing for a human reader.
Inputs
job_id(required): the job ID returned by a priorcadlens_parse_file/cadlens_parse_urlcall.layer_name(required): the exact case-sensitive layer name ("0","WALLS", etc.).
If either is missing, ask the user. If job_id is missing but the user just summarized a drawing, look at recent context for a job_id rather than calling cadlens_list_jobs unnecessarily.
Process
- Call
cadlens_get_resultwithmode='entities_on_layer', the givenjob_id, andlayer_name. - If the response has zero entities, double-check the layer name spelling — call
cadlens_get_resultwithmode='summary'and list the available layers in your reply. - Compute the layer's local bounding box from the returned entities (
min/maxofstart/end/center/position). Don't assume it matches the drawing-wide bbox. - Count entities by
type. If TEXT/MTEXT entities are present, capture up to 8 distincttextvalues. - Propose a semantic role based on the breakdown (cautiously — say "appears to be" rather than asserting):
- Mostly LINE + LWPOLYLINE → walls, structure, or geometry.
- Mostly TEXT/MTEXT → annotations, notes, dimensions text.
- Mostly INSERT → block-instance layer (doors, windows, furniture, symbols).
- Mostly CIRCLE / ARC → fixtures, hole patterns, or mechanical features.
- Empty/sparse → likely a metadata or reference layer.
Output shape
- Layer: name, color (from the summary's
layersarray if available — otherwise omit). - Entity count: total, then by type.
- Local bounding box: minX/minY/maxX/maxY, in the drawing's units.
- Sample text (if any).
- Inferred role: 1-sentence guess with a confidence qualifier.
Things to avoid
- Don't make additional parse calls. Inspect the existing job.
- Don't claim a role you can't justify from the entity breakdown.
- Don't dump the raw entity array. Summarize.
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.
- 1mo ago First seen · 42 lines · 69 tokens per session scan A 03e769da98b5
cad-layer-inspector is an agent published in the GitHub repository cadlens-co/cadlens-mcp (1 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 591 once invoked, about $0.0003 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-31.
Other agents, from other repositories
designer
Use this agent for domain reasoning, brainstorming, design briefs, and reference material analysis (STEP files, drawings, datasheets). Invoke before any non-trivial CAD model is implemented, to pre-digest dimensions, decide coordinate systems, and resolve geometric ambiguity. Also invoke to resolve ## Escalations…
developer
Use this agent to implement an approved design brief in .agents/plans/. The developer designs the per-part code structure (classes, methods, build pipeline), writes CadQuery model code, runs validation tools (preview, section slicer, boolean diff, monotonicity check), and asserts topological correctness.…
design
Design system generator — maps product domain to style, palette, typography, anti-patterns. Creates .rune/design-system.md. Use BEFORE any frontend code generation.
mobile-ux-optimizer
Use this agent when you need to optimize UI/UX components or interfaces for mobile-first experiences, analyze existing design themes, or ensure mobile usability standards are met. Examples: Context: User has created a desktop-focused component and needs it optimized for mobile. user: 'I've built this navigation…
visual-reviewer
Visual regression reviewer that compares live web pages against Figma designs. Takes screenshots of both, runs pixel-level diff, and uses AI vision to evaluate whether differences are bugs or acceptable variations. Use before merge or deployment to catch visual regressions.
frontend-reviewer
Reviews interface, branding and copy. Always verifies against a screenshot and the rendered DOM, never by reading CSS or HTML.