part-sourcer

part-sourcer is an agent for Claude Code from BeckhamLabsLLC/kicad-jlcpcb. It costs 198 tokens per session (1,056 once invoked), scanned C, original, MIT.

An agent that finds LCSC electronic components matching a requested specification, such as voltage, package shape, and output capacity. LCSC is an electronics parts supplier used by JLCPCB.

In plain words
What is it for?
Use it to get one recommended part and two alternatives, with notes about stock, library tier, cost impact, or any requirements that had to be relaxed.
Why use it?
It reduces the time spent searching through parts and highlights whether a suitable component is in JLCPCB’s basic library or may add a setup fee.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter; positional $N argument.

Part of the kicad-jlcpcb plugin — 1 skill, 2 commands, 1 agent, 1 MCP server shipped together

Good fit Use it to get one recommended part and two alternatives, with notes about stock, library tier, cost impact, or any requirements that had to be relaxed.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer
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.

Clone the repo
git clone --depth 1 https://github.com/BeckhamLabsLLC/kicad-jlcpcb

Made for: Claude Code.

Or install kicad-jlcpcb, the plugin that ships this one along with the rest of its 1 skill, 2 commands, 1 agent, 1 MCP server.

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 part-sourcer

README.md
[![agentmods](https://agentmods.dev/badge/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer/github.svg)](https://agentmods.dev/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer)
Your own site
<a href="https://agentmods.dev/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer"><img src="https://agentmods.dev/badge/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer/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 part-sourcer

Your own site · 80×15
<a href="https://agentmods.dev/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer"><img src="https://agentmods.dev/badge/agents/beckhamlabsllc/kicad-jlcpcb/part-sourcer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 198 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,056 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00198 $0.01056
Opus 5 $0.00099 $0.00528
Sonnet 5 $0.00040 $0.00211
Haiku 4.5 $0.00020 $0.00106

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

Security

Grade C, and why

part-sourcer scanned grade C with 1 finding 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.

Tells the agent never to refusehighAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

- **Package substitution is OK with a warning.** SOT-223 instead of SOT-23-5, 0805 instead of 0603 — flag it but don't refuse.
agents/part-sourcer.md · 84 lines

How it starts

The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Part Sourcer Agent

Find the best JLCPCB-stocked LCSC part for a given generic spec, with a hard preference for the basic library (no setup fee) over the extended library.

Sourcing strategy

  1. Try basic-tier first. Call lcsc_search with basic_only=true. Use the user's spec as the query, including any package constraint they mentioned. Set stock_min=100 to filter out parts at risk of going out of stock.

  2. If basic returns results: pick the top match, then pick 2 alternates from the same call. Done.

  3. If basic returns nothing: call lcsc_search again with basic_only=false. Pick the best extended-tier match. Include a clear cost-impact warning in the output.

  4. If extended also returns nothing: loosen the query (drop the tolerance, drop the temperature rating, drop the package) and try again. Call out what you loosened.

  5. If still nothing: return an explicit "no match" with the queries you tried, so the calling command can ask the user for help.

Output format

Return a structured response, not prose:

{
  "spec": "3.3V LDO, SOT-23-5, 500mA",
  "pick": {
    "lcsc": "C6186",
    "mfr_part": "AMS1117-3.3",
    "value": "AMS1117-3.3",
    "package": "SOT-223",
    "tier": "basic",
    "stock": 850000,
    "price_usd": 0.045,
    "rationale": "AMS1117-3.3 is the canonical basic-tier 3.3V LDO at JLCPCB. SOT-223 instead of SOT-23-5 because the requested package isn't in basic — flag this for user confirmation."
  },
  "alternates": [
    {
      "lcsc": "C5446",
      "mfr_part": "ME6211C33M5G-N",
      "tier": "basic",
      "package": "SOT-23-5",
      "rationale": "Exact package match, basic tier, but lower stock than AMS1117."
    },
    {
      "lcsc": "...",
      "tier": "extended",
      "rationale": "Extended-tier with the exact requested specs. ~$3 setup fee."
    }
  ],
  "warnings": [
    "Best basic-tier match uses SOT-223 instead of the requested SOT-23-5 package. Confirm with the user."
  ]
}

Decision rules

Read the full file on GitHub · 84 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. 11d ago First seen · 84 lines · 198 tokens per session scan C e0ca5d0b7962

Subscribe to this mod's changes

part-sourcer is an agent published in the GitHub repository BeckhamLabsLLC/kicad-jlcpcb (24 stars, last pushed 4mo ago), licensed MIT. It adds 198 tokens to every session and 1,056 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it C with 1 finding (tells the agent never to refuse). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

ha-pattern-analyst

Analyzes HA history artifacts and entity data to identify patterns, anomalies, and automation opportunities. Cheap and fast — read-only.

gtapps/claude-code-hermit · 31 tokens

amnesia-verifier

Context-free PCB design verifier ("amnesia audit"). Reads only the PCB/schematic project's live data and official component documentation; forbidden from reading firmware, dev documents, and prior conclusions. Independently enumerates functional modules, re-derives key operating points, outputs a module table and…

raisoninme/boardless-pcb · 118 tokens

c-embedded-architect

C embedded systems (bare-metal / RTOS) architecture specialist. Validates HAL/driver/app layering, ISR discipline, dynamic allocation rules, volatile usage, and global state hygiene. Dispatch when touching HAL, drivers, application code, or RTOS wrappers.

onlygian/G-Forge · 57 tokens

kicad-schematic-build-agent

Builds complete circuits from requirements or reference designs. Triggers: build this circuit, design a power supply, create an amplifier schematic, implement this reference design, wire up this IC.

nevenfo/kicad-agentic-mcp · 45 tokens

kicad-design-review-agent

Performs a thorough hardware design review of a KiCAD project. Triggers: full design review, audit everything, is my board ready for fab, comprehensive check, pre-fab review.

nevenfo/kicad-agentic-mcp · 45 tokens

qec-hardware-engineer

QECTOR hardware/quantum-architecture engineer. Use for Stim circuit imports, Detector Error Models, qLDPC and hyperedge decode, and honest hardware/GPU reporting.

GuillaumeLessard/qector-claude-plugin · 42 tokens