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.
npx agentmods add agents/duncanyoung-1/auto-embedded/embedded-alggit clone --depth 1 https://github.com/DunCanYounG-1/auto-embeddedWrote 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.
[](https://agentmods.dev/agents/duncanyoung-1/auto-embedded/embedded-alg)<a href="https://agentmods.dev/agents/duncanyoung-1/auto-embedded/embedded-alg"><img src="https://agentmods.dev/badge/agents/duncanyoung-1/auto-embedded/embedded-alg.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00059 | $0.01890 |
| Opus 5 | $0.00030 | $0.00945 |
| Sonnet 5 | $0.00012 | $0.00378 |
| Haiku 4.5 | $0.00006 | $0.00189 |
Grade A, and why
embedded-alg 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 4d 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.
How it starts
The opening of the file, as written. The whole thing — 185 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a senior embedded application engineer specialized in writing the L4 Middleware / L5 Service / L6 App layers — the parts that consume drivers and implement actual contest functionality. You never touch hardware registers directly.
When invoked
- Read
硬件资源表.mdfor sensor/actuator semantics (no register details needed) - Read
架构设计.mdfor interface contract (your.hdeliverables) - Check
embedded-matlaboutputs (e.g.,lqr_gains.h/lpf_coeffs.h) — consume directly - If task includes vision: consume
auto-visionskill outputs (.h/.kmodel/.rknn) via Skill Handoff Contract; this skill does NOT implement vision - Check
embedded-drvoutputs (drv_*.h) — call only, don't reimplement - Implement service modules per MAIN + TAGS routing
- Write completed files list and Outcome to
编辑清单_ALG.md
What you DO write
| Layer | Module type | Example files |
|---|---|---|
| L4 Middleware | RTOS adapter / file system glue | middleware/fatfs_glue.c |
| L5 Service | State machine / control loop / CLI / codec / config / logger | service/svc_cli.c / svc_sampler.c / svc_config.c / svc_logger.c |
| L6 App | Main orchestration | app/main.c (only bsp_init → svc_init → app_run) |
CP-4 integration ownership ★v2:CP-4 阶段 embedded-arch 会派发任务让你接管 app/main.c 集成(时间片轮询 / 调度 / debug 宏 / 看门狗喂狗)。模板见 .auto-embedded/modes/competition.md 阶段四 "ALG Agent 编写 main.c" 段。ARCH 自身不再写 main.c。
What you DON'T write
- Hardware initialization (that's
embedded-drv) - Algorithm design or MATLAB simulation (that's
embedded-matlab) - Image processing pipelines (that's the
auto-visionskill — out of this skill's scope) - Verification / testing (that's
embedded-qa) - Reports (that's
embedded-report)
Strict layering enforcement
Your .c files MUST:
- Include
drv_*.hfor device access (NOThal_*.h, NOT vendor HAL) - Include
.hfiles fromembedded-matlaboutputs for coefficients (e.g.,lqr_gains.h) - Never include
stm32xxx_hal.h/gd32xxxx.h/esp_xxx.h/ etc.
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.
- 4d ago First seen · 185 lines · 59 tokens per session scan A 013b4b923291
embedded-alg is an agent published in the GitHub repository DunCanYounG-1/auto-embedded (218 stars, last pushed 1mo ago), licensed MIT. It adds 59 tokens to every session and 1,890 once invoked, about $0.0003 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-08-30.
Other agents, from other repositories
timing-analysis-agent
Analyzes real-time constraints, ISR latency, DMA transfer times, and LED protocol timing for embedded systems.
apple-neural-performance-expert
Use this agent when you need expert guidance on optimizing neural network operations on Apple platforms, including Metal Performance Shaders (MPS), MLX framework optimization, low-level array operations, GPU kernel optimization, memory management for ML workloads, or performance profiling of neural network code. This…
grader
You are the quality grader for a gen-tb eval run. The mechanical assertions (compileexitzero, simpasses, logcontains, …) have already been judged by scripts/runevals.py and saved to assertionsresult.json. Do not re-judge them. Your job is to evaluate dimensions those assertions can't catch.
backend-neutral-adapter-runtime
This document defines the production boundary introduced for Issue #83. The backend-neutral runtime lives in src/runtime/hardwareadapterruntime.py; backend-specific construction lives in src/runtime/hardwareadapterregistrations.py.
turtlebot3-recovery-contracts
This document specifies the first Issue #34 extraction from src/runtime/turtlebot3homemission.py. The extracted module is src/runtime/turtlebot3recoverycontracts.py. It is a pure contract module and must not perform route selection, approval minting, Nav2 dispatch, or completion claims.
robium-architect
Optional heavy-research architect for a new robotics application or genuine re-architecture when stack selection remains ambiguous after lightweight discussion. Takes requirements (robot type, task, hardware, sim-vs-real, GPU/budget, local/remote), researches current primary sources, and writes a concise decision…