trope-cua AGENTS.md

trope-cua AGENTS.md is an instructions file for Codex, OpenCode from tropeai/trope-cua. It costs 1,285 tokens per session, scanned A, original, MIT.

Repository instructions for Trope CUA, a project that provides MCP drivers for automating desktop interfaces and capturing application windows. They cover collaboration, repository layout, commands, and engineering practices.

In plain words
What is it for?
Developing Trope CUA on Windows or macOS, including UI automation and MCP/server work. They guide safe Git usage, atomic commits, repository checks, and reporting completed subagent work.
Why use it?
They help agents make changes without overwriting other contributors’ work or mixing unrelated files into a commit. They also define how changes should be reviewed and validated.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions subagents.

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/tropeai/trope-cua/agents-md
Clone the repo
git clone --depth 1 https://github.com/tropeai/trope-cua

Made for: Codex, OpenCode.

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 trope-cua AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/tropeai/trope-cua/agents-md.svg)](https://agentmods.dev/instructions/tropeai/trope-cua/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/tropeai/trope-cua/agents-md"><img src="https://agentmods.dev/badge/instructions/tropeai/trope-cua/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,285 This file is loaded in full into every session.
When invoked 1,285 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.1 $0.01285 $0.01285
Opus 5 $0.00642 $0.00642
Sonnet 5 $0.00257 $0.00257
Haiku 4.5 $0.00128 $0.00128

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

Security

Grade A, and why

trope-cua 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 6d 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 · 80 lines

How it starts

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

Repository Guidelines

This repo is Trope CUA: native MCP/server drivers for background-safe UI automation, target-window capture, and the visual agent cursor overlay on Windows and macOS.

Collaboration & Git Safety

  • Other agents or humans may be working in this repo at the same time. Do not run destructive git operations that could discard or rewrite their work, including git reset --hard, git clean -fd, force checkouts/restores, or git push --force, unless explicitly requested and coordinated.
  • Keep commits atomic. One commit should represent one logical change that is independently reviewable.
  • Stage and commit only the files owned by the current task. Use explicit pathspecs for git add and git commit; do not sweep unrelated dirty files into a commit.
  • Before committing, inspect staged changes with git diff --cached --stat and unstage or avoid unrelated pre-staged files.
  • If subagents are used, give each one a narrow, explicit ownership set before it edits files, and keep concurrent ownership disjoint.
  • Completed subagent work should report the commit SHA, changed files, validation commands, and any follow-up risks before the subagent is closed.

Repository Layout

  • src/CuaDriver.Win/: .NET Windows driver, MCP tools, UIA tree, input lanes, capture, cursor overlay, config, and recording.
  • src/CuaDriver.Win/Cursor/: visual agent cursor overlay and motion/rendering logic.
  • src/CuaDriver.Win/Tools/: tool definitions and tool-level route orchestration.
  • src/CuaDriver.Win/Input/: targeted window-message and input route implementations.
  • src/CuaDriver.Win/Browser/: browser-specific safe routes and CDP helpers.
  • src/CuaDriver.Win/Capture/: target-window screenshot/capture code.
  • src/CuaDriver.Win/HardCases/: child-session/AppBroadcast scaffolding and probes.
  • tests/integration/: pytest integration checks against the built executable.
  • native/macos/trope-cua/: Swift macOS driver, app bundle, CLI, skills, and macOS integration tests.
  • docs/: design, safety, capture, and hard-case implementation notes.
  • scripts/: build, install, uninstall, and test scripts.

Read the full file on GitHub · 80 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. 6d ago First seen · 80 lines · 1,285 tokens per session scan A 4a0e1c9cb603

Subscribe to this mod's changes

trope-cua AGENTS.md is an instructions file published in the GitHub repository tropeai/trope-cua (29 stars, last pushed 1mo ago), licensed MIT. It adds 1,285 tokens to every session, about $0.0064 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.