Agent Development Guide

Build Your Own AI Passport App with an AI Agent

AI Passport is open source, which means you can build your own app for it — and an AI coding agent can do most of the heavy lifting. Start with one clear sentence about what you want, let an AI agent develop and build it, then flash it onto your real device. No deep embedded experience required.

What You Need

Step-by-Step

  1. Open the project. Open the AI Passport repository in your AI coding tool and have it read the AGENTS.md file first — it tells the agent the project rules and workflow.
  2. Let the agent install the required skills. The project needs five skills to be installed; grant the permissions the environment requires.
  3. Describe what you want to build. Write a clear requirement. The more specific, the better — pages, controls, data, and how you will verify it works.
  4. Start from a fresh branch. Create a new feature/* branch from main (for example, feature/my-passport-app) and develop there, keeping main clean.
  5. Let the agent develop and build. The agent writes the application code, builds the firmware, and reports the result, including any device checks that still need to be run on hardware.
  6. Flash it onto your device. Connect AI Passport over USB and flash the merged firmware (the full.bin image) to the device.
  7. Test on real hardware. A successful build is not hardware validation — run the app on your device, observe the controls and screen, and send the feedback back to the agent to refine.

Writing a Clear Requirement

The more specific your requirement, the more likely the agent gets it right in one pass. Include:

  • User flow: what each screen shows, and what short press, double press, and long press do for each button.
  • State and data: whether the app needs timing, persistence across power loss, networking, recording, or computer communication.
  • Experience goals: fonts, colors, animation, sound, response time, and error states.
  • Constraints: navigation, allowed dependencies, and Flash/data usage.
  • Acceptance criteria: which behaviors need automated tests, and which must be checked on the real device.

Hardware You Can Build With

CapabilityDetail
Processor & memoryESP32-C3 with 8 MB Flash (no PSRAM)
Display240 × 320 color screen
ButtonsThree physical buttons (UP, DOWN, OK)
AudioMicrophone and speaker for playback and recording
BatteryBuilt-in 500 mAh rechargeable battery with charge monitoring
Wireless2.4 GHz Wi-Fi and Bluetooth Low Energy (BLE)
ConnectivityNFC on the device

Good to Know

  • The main branch is a minimal, runnable hardware-test baseline — design your own app UI rather than reusing the demo test menu.
  • Reference demo branches (demo/stopwatch, demo/tetris-game, demo/claude-buddy-port, and more) show proven patterns you can reuse.
  • Flashing is your call — approve it, then test on the real device and iterate.