cadlens-mcp: Agent for Claude Code

.claude/agents/cad-layer-inspector.md

cad-layer-inspector is an agent for Claude Code from cadlens-co/cadlens-mcp. It costs 69 tokens per session (591 once invoked), scanned A, original, MIT.

An assistant for examining one named layer in a parsed CAD drawing, a computer-aided design file. It summarizes the entities on that layer, its bounds, sample text, and its likely role.

In plain words
What is it for?
Use it after parsing a drawing when you need to inspect layers such as walls, dimensions, text, or title blocks. It requires a job ID and exact layer name.
Why use it?
It helps turn raw drawing data into an understandable description without assuming that a layer’s name explains its contents.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is cadlens-co/cadlens-mcp's own configuration. It tells Claude Code how to work on cadlens-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cadlens-mcp configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/cadlens-co/cadlens-mcp/main/.claude/agents/cad-layer-inspector.md
Clone the repo
git clone --depth 1 https://github.com/cadlens-co/cadlens-mcp

Made for: Claude Code.

Wrote 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.

agentmods badge for cad-layer-inspector

README.md
[![agentmods](https://agentmods.dev/badge/agents/cadlens-co/cadlens-mcp/cad-layer-inspector/github.svg)](https://agentmods.dev/agents/cadlens-co/cadlens-mcp/cad-layer-inspector)
Your own site
<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.

agentmods 80×15 button for cad-layer-inspector

Your own site · 80×15
<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>
Per session 69 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 591 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00069 $0.00591
Opus 5 $0.00034 $0.00296
Sonnet 5 $0.00014 $0.00118
Haiku 4.5 $0.00007 $0.00059

Measured 11d ago against content hash 03e769da98b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

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 11d 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.

.claude/agents/cad-layer-inspector.md · 42 lines

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 prior cadlens_parse_file / cadlens_parse_url call.
  • 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

  1. Call cadlens_get_result with mode='entities_on_layer', the given job_id, and layer_name.
  2. If the response has zero entities, double-check the layer name spelling — call cadlens_get_result with mode='summary' and list the available layers in your reply.
  3. Compute the layer's local bounding box from the returned entities (min/max of start/end/center/position). Don't assume it matches the drawing-wide bbox.
  4. Count entities by type. If TEXT/MTEXT entities are present, capture up to 8 distinct text values.
  5. 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 layers array 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.
Changes

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.

  1. 11d ago First seen · 42 lines · 69 tokens per session scan A 03e769da98b5

Subscribe to this mod's changes

cad-layer-inspector is an agent published in the GitHub repository cadlens-co/cadlens-mcp (1 stars, last pushed 1mo ago), licensed MIT. It adds 69 tokens to every session and 591 once invoked, about $0.0003 per session on Opus 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.

Related

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…

fa-mc/vibe-cading · 79 tokens

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.…

fa-mc/vibe-cading · 106 tokens

ux-flow-auditor

Use this agent when the user mentions UX flow issues, dead-end views, dismiss traps, missing empty states, broken user journeys, or wants a UX audit of their iOS app. Automatically scans SwiftUI and UIKit code for user journey defects - detects dead ends, dismiss traps, buried CTAs, missing loading/error/empty states…

CharlesWiltgen/Axiom · 190 tokens

design

Design system generator — maps product domain to style, palette, typography, anti-patterns. Creates .rune/design-system.md. Use BEFORE any frontend code generation.

Rune-kit/rune · 35 tokens

frontend-reviewer

Reviews interface, branding and copy. Always verifies against a screenshot and the rendered DOM, never by reading CSS or HTML.

everywan-dev/claude-code-engineering · 28 tokens

unity-ui-pro

Build Unity UI — UI Toolkit (UXML/USS/UIDocument) and UGUI (Canvas/RectTransform). Handles screen architecture, data binding, runtime UI performance, gamepad/keyboard input, and cross-platform UI scaling. Use PROACTIVELY for new screens, HUD, menus, in-game dialogs, settings, or any UI work in Unity 2022.3+. Not for…

AcKeskin/contexture · 102 tokens