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 agentmods add instructions/shaurya-sethi/circuitron/agents-mdgit clone --depth 1 https://github.com/Shaurya-Sethi/circuitronWrote 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/instructions/shaurya-sethi/circuitron/agents-md)<a href="https://agentmods.dev/instructions/shaurya-sethi/circuitron/agents-md"><img src="https://agentmods.dev/badge/instructions/shaurya-sethi/circuitron/agents-md.svg" alt="Measured on agentmods" 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 | $0.02588 | $0.02588 |
| Opus 5 | $0.01294 | $0.01294 |
| Sonnet 5 | $0.00518 | $0.00518 |
| Haiku 4.5 | $0.00259 | $0.00259 |
Grade A, and why
circuitron AGENTS.md 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 5d 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.
This is a copy
100% identical to circuitron copilot-instructions.md — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 217 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Instructions for working on Circuitron
Circuitron is an AI-powered PCB design accelerator that converts natural language requirements into SKiDL scripts, KiCad schematics, and PCB layouts using a multi-agent orchestration pipeline.
Architecture Overview
Core Pipeline Flow
The system follows a sophisticated, multi-stage agent workflow defined in circuitron/pipeline.py. It is not a simple linear sequence but includes robust, nested correction loops.
- Planner → Plan Editor (optional user feedback loop)
- Part Finder → Part Selector
- Documentation Agent (gathers context via RAG)
- Code Generator
- Validation & Correction Loop:
- The Validator agent checks the generated code.
- If validation fails, the Corrector agent attempts to fix it. This loop continues until the code is valid or a retry limit is reached.
- Runtime Check & Correction Loop:
- A runtime check is performed in a Docker container.
- If it fails, the Runtime Corrector agent attempts a fix. This loop continues until the script runs successfully.
- ERC (Electrical Rule Check) & Handling Loop:
- The ERC Handler agent runs ERC checks.
- If errors or unapproved warnings are found, it attempts to fix them. This loop continues until ERC passes or warnings are explicitly accepted by the agent.
- Final Execution: The final, validated script is executed to produce KiCad files.
Each agent has specific responsibilities and uses the OpenAI Agents SDK with structured Pydantic models defined in circuitron/models.py.
Key Components
- Agents (
circuitron/agents.py): Specialized OpenAI agents for each pipeline stage. - MCP Server (
circuitron/mcp_manager.py): A single, shared connection for RAG documentation, code validation, and hallucination detection. - Tools (
circuitron/tools.py): Docker-isolated functions for calculations, KiCad library searches, and ERC checks. - UI (
circuitron/ui/app.py): A Rich-based terminal interface for progress tracking and interactive plan editing.
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.
- 5d ago First seen · 217 lines · 2,588 tokens per session scan A 8aaa1eafee15
circuitron AGENTS.md is an instructions file published in the GitHub repository Shaurya-Sethi/circuitron (122 stars, last pushed 3mo ago), licensed MIT. It adds 2,588 tokens to every session, about $0.0129 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to circuitron copilot-instructions.md, differing in 0 lines, and is treated as a copy.
Other instructions, from other repositories
KiCAD-Schematic-Manipulation CLAUDE.md
Claude Code instructions for richard-luc/KiCAD-Schematic-Manipulation, covering claude.md, ⚠️ critical development rules, 🚫 git commit policy, 📦 version management policy and 📋 feature development policy.
stack-chan AGENTS.md
AGENTS.md instructions for stack-chan/stack-chan, covering agents.md, project overview, core architecture, modular component system and key directories.
KiCadRoutingTools CLAUDE.md
Claude Code instructions for drandyhaas/KiCadRoutingTools, covering project notes for claude, running python, building the rust router, testing & verification and what a placement run is for (read before grading one).
rosclaw AGENTS.md
AGENTS.md instructions for ros-claw/rosclaw, covering rosclaw agent instructions, runtime boundary, tool policy, robot integration setup and capability apps.
rosclaw CLAUDE.md
Claude Code instructions for ros-claw/rosclaw, covering claude.md — rosclaw project onboarding, rosclaw runtime boundary (managed), safety contract (p0), robot integration setup and capability apps.
MCP-Packet-Tracer AGENTS.md
AGENTS.md instructions for Mats2208/MCP-Packet-Tracer, covering agents.md, what this is, build and test, layout and rules that are not negotiable.