AI SummaryCircuitron 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. The system follows a sophisticated, multi-stage agent workflow defined in . It is not a simple linear seque
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "circuitron — Copilot Instructions" prompt rules to my project. Repository: https://github.com/Shaurya-Sethi/circuitron Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Circuitron: Agentic PCB Design Accelerator — Generate, plan, and layout circuits from natural language prompts.
From circuitron/tools.py
@function_tool async def search_kicad_libraries(query: str, max_results: int = 50) -> str: """Search KiCad libraries using `skidl.search`.""" # ... implementation using DockerSession ... ` `python
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.
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.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts