Borrowing it
Nothing to install: this file belongs to PyDevices/pydevices-examples. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/PyDevices/pydevices-examples/main/AGENTS.mdgit clone --depth 1 https://github.com/PyDevices/pydevices-examplesWrote 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/instructions/pydevices/pydevices-examples/agents-md)<a href="https://agentmods.dev/instructions/pydevices/pydevices-examples/agents-md"><img src="https://agentmods.dev/badge/instructions/pydevices/pydevices-examples/agents-md/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.
<a href="https://agentmods.dev/instructions/pydevices/pydevices-examples/agents-md"><img src="https://agentmods.dev/badge/instructions/pydevices/pydevices-examples/agents-md.svg" alt="Reviewed on agentmods" width="80" 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.1 | $0.02784 | $0.02784 |
| Opus 5.5 | $0.01114 | $0.01114 |
| Sonnet 5.5 | $0.00557 | $0.00557 |
| Haiku 4.5 | $0.00278 | $0.00278 |
Grade A, and why
pydevices-examples 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 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.
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 — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
Cursor Cloud specific instructions
This repo is a showcase: examples and a PyScript gallery for the PyDevices
driver stack, not the product itself. The shareable product libraries and their
docs live in sibling pydevices. There is no build step for examples.
.site/pyscript/lib is a symlink to ../../lib, so editing lib/ updates the
PyScript gallery too.
Docs map (the site's source is docs/, built with Sphinx; see
docs/index.md): docs/guides/use-a-peter-hinch-gui.md
(Nano-GUI / Micro-GUI / MicroPython-Touch), docs/guides/run-the-tft-examples.md
(@russhughes TFT GUI stub), docs/reference/screenshots.md
(images are in docs/screenshots/).
Code-adjacent runbooks: tools/README.md (example test
matrix, PyScript/Playwright debugging, LVGL timer harnesses),
lib/utils/README.md, scripts/README.md,
tests/README.md.
Environment
displaydev, audiodev, optional appdev, multimer, events, keys,
and portable hardware utilities live in sibling
pydevices, which
also owns TestPyPI/MIP publishing. Non-LVGL examples instantiate
appdev.App(board_config); LVGL examples import it from display_driver.
Board configs never own an appdev.App. AutoDisplay is imported from
displaydev.auto only.
- Cursor Cloud (multi-repo workspace): do not use a local
.cursor/environment.jsonin this repo. The canonical cloud environment lives in PyDevices/.github — start Cloud Agents from that repo with the saved Pydevices Cloud Workspace environment. Its install command isbash scripts/cloud-workspace-install.sh(relative to the.githubcheckout), which symlinks/agent/repos/*into~/gh/pydevices/. See AGENTS.md there. - Use the repo-root virtualenv at
.venvfor all Python tooling (.venv/bin/python,.venv/bin/ruff,.venv/bin/pytest). The systempython3has no project dependencies installed. - Browser testing with Playwright: see the multi-repo workspace's
.agents/rules/playwright_environment_rule.md, one level above this checkout (not part of this repo). - Desktop matrices use repo
.venv(cpython-venv) plus interpreters onPATH(micropython,circuitpython, and when presentmicropython.exe/python.exe).jupyter.py(frompydevices/bin),./scripts/pyscript.sh, andandroid.py(frompydevices/bin, onPATH) aid Jupyter, PyScript, and Android (adb stage ontoorg.pydevices.runner; cwd paths like CLI Python — not PyScript gallery). Opt-in matrix:tools/example_test_kit.py --only-interpreter android …. - The desktop display backend on CPython on Windows is
PGDisplay(pygame-ce;import pygame). Preferpython.exefor PG work. Do not install pygame-ce into.venv/ systempython3on this laptop — those stay SDL-primary;board_configfalls back toSDLDisplaywhen pygame-ce's publicpygame.WindowAPI is missing.pygame-ceis intentionally not inrequirements-dev.txt.
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.
- 11d ago Changed · +1 lines · +29 tokens per session 284e4f13b510
- 19d ago Changed · +18 tokens per session 5a524518696b
- 27d ago Changed · +1 lines · +21 tokens per session 2ae70b314ce1
- 1mo ago Changed 26be78120d5c
- 1mo ago Changed · +1 lines · +2 tokens per session 492e5017e212
- 1mo ago Changed · -6 tokens per session 2c8571a3be64
- 2mo ago Changed · -4 tokens per session 0b1477dfce70
- 2mo ago First seen · 179 lines · 2,724 tokens per session scan A a0de6313da55
pydevices-examples AGENTS.md is an instructions file published in the GitHub repository PyDevices/pydevices-examples (53 stars, last pushed 11d ago), licensed MIT. It adds 2,784 tokens to every session, about $0.0111 per session on Opus 5.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.
pydevices-examples AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pydevices-examples AGENTS.mdPyDevices/pydevices-examples | Instructions file | 53 | 11d ago | MIT | A | 2,784 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 9,719 | GitHub Copilot |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 5,516 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | today | MIT | A | 4,680 | Codex, OpenCode |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 3,093 | GitHub Copilot |
| vscode model-prompts.instructions.mdmicrosoft/vscode | Instructions file | 195k | today | MIT | A | 2,022 | GitHub Copilot |