embedded-systems

embedded-systems is an agent for Claude Code from atretyak1985/swarmery. It costs 31 tokens per session (3,251 once invoked), scanned A, original, Apache-2.0.

An agent for writing Python code that connects a Raspberry Pi 5 to hardware such as serial devices, cameras, and GPIO pins. It also handles system services and test fallbacks when the hardware is unavailable.

In plain words
What is it for?
Use it to implement or review UART communication, camera capture, GPIO control, systemd services, resource monitoring, and mocked hardware tests.
Why use it?
It helps prevent hardware-specific code from failing during development or tests without a physical Raspberry Pi. It also addresses resource limits and recovery from hardware failures.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter.

Part of the uav-pack plugin — 3 skills, 4 agents shipped together

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 agents/atretyak1985/swarmery/embedded-systems
Clone the repo
git clone --depth 1 https://github.com/atretyak1985/swarmery

Made for: Claude Code.

Or install uav-pack, the plugin that ships this one along with the rest of its 3 skills, 4 agents.

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 embedded-systems

README.md
[![agentmods](https://agentmods.dev/badge/agents/atretyak1985/swarmery/embedded-systems.svg)](https://agentmods.dev/agents/atretyak1985/swarmery/embedded-systems)
Your own site
<a href="https://agentmods.dev/agents/atretyak1985/swarmery/embedded-systems"><img src="https://agentmods.dev/badge/agents/atretyak1985/swarmery/embedded-systems.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 3,251 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00031 $0.03251
Opus 5 $0.00015 $0.01625
Sonnet 5 $0.00006 $0.00650
Haiku 4.5 $0.00003 $0.00325

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

Security

Grade A, and why

embedded-systems 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 2d 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.

plugins/uav-pack/agents/embedded-systems.md · 267 lines

How it starts

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

Role

Embedded Systems Specialist for UAV edge devices -- Raspberry Pi 5 hardware running the edge service (project.json → device). Single responsibility: implement UART communication, camera capture, GPIO control, systemd services, and resource-constrained optimisation within the edge service's Python codebase. Upstream: @tech-lead (Phase 4 implementation), @mavlink-specialist (protocol layer). Downstream: @telemetry-processor (telemetry fan-out), @helm-deployment (container deploy). [PE/Foundational/1.4] [PE/Chaining/6.1]

Goal & success criteria [PE/Workflow/8.1]

  • Goal: Deliver working, tested hardware-interface code for the edge service on Raspberry Pi 5 that meets CPU, memory, and latency targets.
  • Success criteria (falsifiable):
    • MOCK_MODE=true make test passes
    • CPU usage during telemetry processing < 30% on RPi 5
    • Camera frame grab latency < 200ms at 720p
    • Hardware failure recovery within 500ms without manual restart
    • Type hints on all functions; docstrings on all public APIs
    • Unit tests with mocked hardware cover every public function
  • Stop conditions: All tests pass and code reviewed. Escalate to @tech-lead after 2 failed hardware-test iterations.
  • Out of scope: MAVLink protocol-layer concerns (delegate to @mavlink-specialist), telemetry fan-out beyond the edge service (delegate to @telemetry-processor), Helm/deployment changes (delegate to @helm-deployment).

Inputs and outputs

Inputs (from upstream) [PE/Chaining/6.1]

  • task: string -- hardware interface to implement (UART reader, camera pipeline, GPIO, systemd unit)
  • plan: reference -- Phase 3 plan with step files (optional, when invoked via @tech-lead)
  • context: reference -- Phase 2 context artifact (optional)

Outputs (to downstream) [PE/Output/2.1] [PE/Output/2.3]

  • Format: Modified/created Python source files in the edge service repo (project.json → device)
  • Length budget: Completion Report <= 30 lines [PE/Output/2.4]
  • Completion Report template:
    ## Completion Report
    Status: [x] Done
    Completed by: @embedded-systems
    Date: {today}
    Changes made:
    - {file path}: {what was done}
    MOCK_MODE tests: pass / fail
    Hardware tests: pass / fail / skipped (reason)
    CPU usage on Pi: {%}
    Issues / deviations: None / {description}
    Next step ready: Yes
    
  • Final chat message: diff summary (N files, N lines) + test results

Read the full file on GitHub · 267 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. 2d ago First seen · 267 lines · 31 tokens per session scan A 5d8924fe63ab

Subscribe to this mod's changes

embedded-systems is an agent published in the GitHub repository atretyak1985/swarmery (4 stars, last pushed yesterday), licensed Apache-2.0. It adds 31 tokens to every session and 3,251 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other agents, from other repositories

tester

Test writing (unit, integration, e2e). Creates comprehensive test suites with proper coverage and edge cases.

AgentWorkforce/relay · 24 tokens

test-generator

Generates comprehensive test suites using TDD patterns. Use when writing tests, improving coverage, or implementing test-first development.

travisjneuman/.claude · 27 tokens

p4s-unit-test-orchestrator

Tier 2 unit test orchestrator. Writes SV testbenches per module (parallel), selects reference comparison mode (DPI-C or file-based), runs simulations, and triages failures with waveform analysis.

babyworm/rtl-agent-team · 50 tokens

notebooklm-specialist

Use this agent when you need AI-powered deep research and analysis via Google NotebookLM. Context: Orchestrator has spawned this agent for NotebookLM analysis phase user: "You are the NotebookLM specialist. Research brief: [topic]. Notebook ID: abc123. Output: ./docs/research/..." assistant: "Reading my skills and…

jmagar/claude-homelab · 244 tokens

unit-test-master

Unit testing specialist that writes and reviews isolated, deterministic, behavior-focused unit tests. Detects the language and test framework from the project before writing. Use proactively when adding unit tests, reviewing test quality, fixing brittle or flaky tests, or practicing TDD. Stays in unit scope — not for…

ivklgn/ai-kit · 70 tokens

agent-critic

Use this agent when you need a plugin-aware review of one or more agent definitions — the .md files under a plugin's agents/ directory. Adapts the plugin-dev agent-development skill methodology and reports findings in the fakoli-plugin-critic severity rubric (MUST FIX / SHOULD FIX / CONSIDER / NIT). Agent-critics…

fakoli/fakoli-plugins · 529 tokens