circuitron AGENTS.md

circuitron AGENTS.md is an instructions file for Codex, OpenCode from Shaurya-Sethi/circuitron. It costs 2,588 tokens per session, scanned A, a copy of circuitron copilot-instructions.md, MIT.

Project instructions for Circuitron, an AI system that turns natural-language PCB requirements into KiCad designs and SKiDL scripts.

In plain words
What is it for?
They are for understanding Circuitron’s architecture, including planning, part selection, documentation, code generation, runtime checks, and electrical rule checks.
Why use it?
They explain the project’s multi-stage agent pipeline and its validation and correction loops, making the codebase easier to work on safely.

Instructions file for CodexOpenCode

Install

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.

agentmods
npx agentmods add instructions/shaurya-sethi/circuitron/agents-md
Clone the repo
git clone --depth 1 https://github.com/Shaurya-Sethi/circuitron

Made for: Codex, OpenCode.

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 circuitron AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/shaurya-sethi/circuitron/agents-md.svg)](https://agentmods.dev/instructions/shaurya-sethi/circuitron/agents-md)
Your own site
<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>
Per session 2,588 This file is loaded in full into every session.
When invoked 2,588 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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 $0.02588 $0.02588
Opus 5 $0.01294 $0.01294
Sonnet 5 $0.00518 $0.00518
Haiku 4.5 $0.00259 $0.00259

Measured 5d ago against content hash 8aaa1eafee15, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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.

Origin

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.

AGENTS.md · 217 lines

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.

  1. PlannerPlan Editor (optional user feedback loop)
  2. Part FinderPart Selector
  3. Documentation Agent (gathers context via RAG)
  4. Code Generator
  5. 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.
  6. 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.
  7. 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.
  8. 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.

Read the full file on GitHub · 217 lines

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. 5d ago First seen · 217 lines · 2,588 tokens per session scan A 8aaa1eafee15

Subscribe to this mod's changes

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.

Related

Other instructions, from other repositories