codex-micro-waveshare AGENTS.md

Project instructions for a community port of the Codex Micro controller to the Waveshare ESP32-S3-Touch-AMOLED-1.75C board. They define the hardware boundaries, security rules, and checks required before claiming success.

In plain words
What is it for?
Use them when building, flashing, pairing, handling BLE data, reading quotas, or redistributing firmware for this specific Waveshare board.
Why use it?
They prevent confusing this board with the upstream device, exposing account tokens, using the wrong upload port, or reporting unverified hardware results.

Instructions file for CodexOpenCode

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 instructions/douiuiuiz/codex-micro-waveshare/agents-md
Clone the repo
git clone --depth 1 https://github.com/Douiuiuiz/codex-micro-waveshare

Made for: Codex, OpenCode.

Per session 688 This file is loaded in full into every session.
When invoked 688 The same file — it is already loaded in full.
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 $0.00688 $0.00688
Opus 5 $0.00344 $0.00344
Sonnet 5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

Measured 3d ago against content hash 0429bdcf6ebc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

codex-micro-waveshare 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 3d 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.

AGENTS.md · 47 lines

How it starts

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

Project boundaries

  • Target hardware is the Waveshare ESP32-S3-Touch-AMOLED-1.75C (466x466 AMOLED, CST9217 touch on GPIO14/15, AXP2101 PMIC, ES8311 codec, PWR/BOOT side buttons) running on Windows. This is a community port of the M5Stack StopWatch C152 Codex Micro controller; the upstream C152 hardware is NOT the target here.
  • This is a third-party, unofficial port. It is not affiliated with OpenAI, Work Louder, M5Stack, or Waveshare. Do not imply official support.
  • Do not claim a build, flash, pairing, button action, or quota update is validated until it is observed on physical Waveshare 1.75C hardware.
  • Never infer an upload port. Resolve and report the exact COM port immediately before any flash operation.
  • Keep ChatGPT authentication and rate-limit reads on the Windows companion (companion-win/). Never place account tokens in firmware or BLE payloads. The firmware and BLE channel carry only non-sensitive vendor JSON (keys, angles, quota percentage + reset countdown).
  • Keep the emulated vendor HID path and the private quota GATT path separate.
  • Preserve upstream MIT attribution and NOTICE.md when redistributing.
  • The Waveshare board has no vibration motor and no M5PM1/M5IOE1; haptics are silent no-ops and power telemetry comes from the AXP2101 via Axp2101Power.h.
  • The optional usb-mic/ and companion/ (macOS Swift) parts of the upstream project are kept out of this repository's published tree.

Installation workflow for coding agents

  • Read README.md and this file before changing the machine or the device.
  • Confirm the connected target is a Waveshare ESP32-S3-Touch-AMOLED-1.75C.
  • Build the m5stack-stopwatch environment with PlatformIO Core before flashing (pio run -e m5stack-stopwatch, or -c platformio.win.ini on Windows).
  • Resolve the exact newly connected COM port immediately before an upload. Report it to the user and obtain confirmation before flashing.
  • After flashing, verify the serial marker CODEX_MICRO_STOPWATCH_READY on the same exact port (python scripts/serial_probe_win.py <port> --seconds 30 --expect CODEX_MICRO_STOPWATCH_READY on Windows).
  • Windows Bluetooth: pair as "Codex Micro". If controls stop working after a reconnect, delete the pairing and pair again (the firmware forces the local input-report CCCD to notifications so Windows delivers HID input without a fresh subscribe).
  • Quota sync is optional and handled by companion-win/ (Python + bleak). It reads the local Codex auth.json access token and writes only the percentage + reset countdown to the watch. Never commit tokens, account identifiers, device MACs, or local paths.
  • Do not claim success from a build alone. Report build, flash, pairing, controls, Agent status, and quota sync as separate validation layers.

Read the full file on GitHub · 47 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. 3d ago First seen · 47 lines · 688 tokens per session scan A 0429bdcf6ebc

Subscribe to this mod's changes

codex-micro-waveshare AGENTS.md is an instructions file published in the GitHub repository Douiuiuiz/codex-micro-waveshare (11 stars, last pushed 17d ago), licensed MIT. It adds 688 tokens to every session, about $0.0034 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.

Related

Other instructions, from other repositories

clawdmeter-plus CLAUDE.md

Claude Code instructions for sorryhumans/clawdmeter-plus, covering project context, hardware (critical pins), amoled-2.16 (original), amoled-1.8 (newer port) and amoled-1.8 (c6) — waveshareamoled18c6.

sorryhumans/clawdmeter-plus · 4,837 tokens

xiaozhi-esp32 AGENTS.md

AGENTS.md instructions for 78/xiaozhi-esp32, covering agents.md, project, architecture, required rules and boards and configuration.

78/xiaozhi-esp32 · 1,079 tokens

FastLED CLAUDE.md

Claude Code instructions for FastLED/FastLED, covering fastled ai agent guidelines, read the right file for your task, key commands, core rules (all agents) and git and code publishing.

FastLED/FastLED · 2,927 tokens

FastLED GEMINI.md

Gemini CLI instructions for FastLED/FastLED, a project described as: The FastLED library for colored LED animation on Arduino. Please direct questions/requests for help to the FastLED Reddit community: http://fastled.io/r We'd like to use github "issues" just for tracking library bugs / enhancements.

FastLED/FastLED · 9 tokens

mdb-esp32-cashless AGENTS.md

Instructions for nodestark/mdb-esp32-cashless, covering vmflow — agent context, 1. mqtt rpc — real-time device control, 2. supabase rest — data & credits, 3. agent playbooks and notes.

nodestark/mdb-esp32-cashless · 1,570 tokens

ROS AGENTS.md

Instructions for lawliet206/ROS, covering agents.md, 项目是什么, 环境版本(不可随意升级/降级), 目录结构(catkin 工作空间根 = 仓库根) and 重要 launch 与脚本(命名与参数以代码为准,改文档必须同步).

lawliet206/ROS · 1,724 tokens