pc-screen-control: Instructions file for GitHub Copilot

.github/copilot-instructions.md

pc-screen-control copilot-instructions.md is an instructions file for GitHub Copilot from desteny-dev/pc-screen-control. It costs 4,904 tokens per session, scanned A, original, MIT.

Project instructions for PC Screen Control, a tool that lets an AI assistant interact with a computer screen while checking that actions go to the intended window. They describe its releases, packages, safety checks, and tests.

In plain words
What is it for?
Use them when developing or reviewing PC Screen Control, its installation packages, window checks, screen actions, or automated tests.
Why use it?
They help prevent commands or typed text from being sent to the wrong application, especially when a screen changes during a task.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file. Also seen: mentions Claude Code; mentions Codex.

This is desteny-dev/pc-screen-control's own configuration. It tells GitHub Copilot how to work on pc-screen-control 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 pc-screen-control configures →

Reuse

Borrowing it

Nothing to install: this file belongs to desteny-dev/pc-screen-control. 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/desteny-dev/pc-screen-control/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/desteny-dev/pc-screen-control

Made for: GitHub Copilot.

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 pc-screen-control copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/desteny-dev/pc-screen-control/copilot-instructions/github.svg)](https://agentmods.dev/instructions/desteny-dev/pc-screen-control/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/desteny-dev/pc-screen-control/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/desteny-dev/pc-screen-control/copilot-instructions/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 pc-screen-control copilot-instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/desteny-dev/pc-screen-control/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/desteny-dev/pc-screen-control/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,904 This file is loaded in full into every session.
When invoked 4,904 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.04904 $0.04904
Opus 5.5 $0.01962 $0.01962
Sonnet 5.5 $0.00981 $0.00981
Haiku 4.5 $0.00490 $0.00490

Measured 2mo ago against content hash d37bae26af0c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pc-screen-control copilot-instructions.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 2mo 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.

.github/copilot-instructions.md · 385 lines

How it starts

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

PC Screen Control — where this is going

Written by the maintainer. Read this before proposing changes.


Start here

Current state: v1.7.0 is released. 34 tools, 19 test files in CI on Python 3.9 / 3.11 / 3.13, all green. Two packages ship: pc-screen-control.mcpb, a one-click first install for Claude Desktop, and pc-screen-control-setup.zip with INSTALL.bat, which registers every MCP client it finds — Claude Desktop, the Store build, Claude Code and Codex — and is the only route that still works once Claude has blocked extension installs. Same server inside both.

Three releases in a row came from the same place: what the guard protects and what a person actually loses were not the same list.

1.3.0 — the guard knew whether the screen had moved, but not whether the foreground was still the window the assistant had declared. After a block ended mid-task those were the same answer, and a command meant for a terminal was typed into somebody's chat. The declared window is tracked separately now, taken from the call itself so no tool can forget it (tests/test_wrong_window.py).

1.3.1 — the check and the send cannot be one instruction. Seen once live: the check passed honestly and the keys landed elsewhere a fraction of a second later. Cannot be prevented; the silence after it can. send_keys reports off_target naming both windows.

1.3.2 — the person's own window could be closed, parked out of reach or minimised, because no tool knew which window they were sitting in; a window_title matching theirs instead of ours was the whole distance. It is now refused, an ambiguous title is refused rather than guessed for anything destructive, Alt+F4/Ctrl+W without a ref is refused, and a foreground that did not come back is reported on the next call whatever tool that is (tests/test_user_window.py).

1.3.3 — and then a live test of 1.3.2 showed the sharpest version of the same mistake: the release measured whether it had given the screen back, wrote the result into _RUECKGABE, and nothing ever read it. A comment said tools copy it into their reply; none did. set_guard block:'end' now returns handed_back, including in_front_now — what is actually in front, measured after the restore, as opposed to whether the call returned true.

Read the full file on GitHub · 385 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. 2mo ago First seen · 385 lines · 4,904 tokens per session scan A d37bae26af0c

Subscribe to this mod's changes

pc-screen-control copilot-instructions.md is an instructions file published in the GitHub repository desteny-dev/pc-screen-control (2 stars, last pushed 3mo ago), licensed MIT. It adds 4,904 tokens to every session, about $0.0196 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-31.

Related

pc-screen-control copilot-instructions.md compared with instructions from other repositories

pc-screen-control copilot-instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pc-screen-control copilot-instructions.mddesteny-dev/pc-screen-controlInstructions file23mo agoMITA4,904GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode