trope-cua: Instructions file for Codex

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.

This is tropeai/trope-cua's own configuration. It tells Codex and OpenCode how to work on trope-cua itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything trope-cua configures →

Reuse

Borrowing it

Nothing to install: this file belongs to tropeai/trope-cua. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/tropeai/trope-cua/main/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/github.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/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.

agentmods 80×15 button for trope-cua AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.5 $0.00514 $0.00514
Sonnet 5.5 $0.00257 $0.00257
Haiku 4.5 $0.00128 $0.00128

Measured 1mo ago against content hash 4a0e1c9cb603, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 3mo ago), licensed MIT. It adds 1,285 tokens to every session, about $0.0051 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.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,649 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,549 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,731 tokens

deno copilot-instructions.md

Copilot instructions for denoland/deno, covering deno development guide for github copilot, network access, high level overview, key directories and key files to understand first.

denoland/deno · 3,077 tokens