circuitron: Instructions file for Codex

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

Written for Codex and OpenCode: the file is AGENTS.md.

This is Shaurya-Sethi/circuitron's own configuration. It tells Codex and OpenCode how to work on circuitron 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 circuitron configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Shaurya-Sethi/circuitron. 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/Shaurya-Sethi/circuitron/main/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/github.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/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 circuitron AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.02588 $0.02588
Opus 5.5 $0.01035 $0.01035
Sonnet 5.5 $0.00518 $0.00518
Haiku 4.5 $0.00259 $0.00259

Measured 2mo ago against content hash 8aaa1eafee15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 2mo 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. Planner → Plan Editor (optional user feedback loop)
  2. Part Finder → Part 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. 2mo 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 (129 stars, last pushed 5mo ago), licensed MIT. It adds 2,588 tokens to every session, about $0.0104 per session on Opus 5.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

circuitron AGENTS.md compared with instructions from other repositories

circuitron AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
circuitron AGENTS.mdShaurya-Sethi/circuitronInstructions file1295mo agoMITA2,588Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode