clipaste: Instructions file for Codex

AGENTS.md

clipaste AGENTS.md is an instructions file for Codex, OpenCode from hqhq1025/clipaste. It costs 4,298 tokens per session, scanned B, original, MIT.

Instructions for installing and contributing to clipaste, a clipboard service that lets terminal coding tools use screenshots locally or across SSH and WSL2. SSH connects to another computer, while WSL2 runs Linux inside Windows.

In plain words
What is it for?
Use it when setting up clipaste, checking its daemon and clipboard, or working on the clipaste codebase.
Why use it?
It replaces guesswork about the machine and installation state with a diagnostic command that reports problems and suggested fixes. It also explains which checks apply to each machine type.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Claude Code; mentions AGENTS.md; mentions Codex.

This is hqhq1025/clipaste's own configuration. It tells Codex and OpenCode how to work on clipaste 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 clipaste configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hqhq1025/clipaste. 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/hqhq1025/clipaste/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/hqhq1025/clipaste

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 clipaste AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/hqhq1025/clipaste/agents-md/github.svg)](https://agentmods.dev/instructions/hqhq1025/clipaste/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/hqhq1025/clipaste/agents-md"><img src="https://agentmods.dev/badge/instructions/hqhq1025/clipaste/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 clipaste AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/hqhq1025/clipaste/agents-md"><img src="https://agentmods.dev/badge/instructions/hqhq1025/clipaste/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,298 This file is loaded in full into every session.
When invoked 4,298 The same file — it is already loaded in full.
Security scan B 2 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.04298 $0.04298
Opus 5.5 $0.01719 $0.01719
Sonnet 5.5 $0.00860 $0.00860
Haiku 4.5 $0.00430 $0.00430

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

Security

Grade B, and why

clipaste AGENTS.md scanned grade B with 2 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt install wl-clipboard xclip curl

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

sudo apt install wl-clipboard xclip curl
AGENTS.md · 392 lines

How it starts

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

AGENTS.md

Instructions for coding agents working with clipaste — both installing it for a user and contributing to this repository.

clipaste is a clipboard daemon that makes screenshot paste work in terminal AI tools (Claude Code, Codex CLI, Cursor CLI), locally on macOS/Windows and across SSH/WSL2 boundaries. Graphical Linux hosts provide read-only PNG clipboard capture for the SSH bridge.


Part 1 — Installing clipaste for a user

The one command that tells you what to do

clipaste doctor --json

This is the entry point. It classifies the machine, runs the checks that are meaningful for that machine, and returns fix commands or guidance where available. Do not guess at the state of a clipaste install — ask doctor.

{
  "version": "2.4.1",
  "os": "macos",
  "role": "clipboard-host",
  "status": "warn",
  "checks": [
    {
      "name": "daemon",
      "status": "ok",
      "detail": "daemon responding on 127.0.0.1:18340",
      "fix": null
    },
    {
      "name": "clipboard",
      "status": "warn",
      "detail": "no image staged yet — take a screenshot, then re-run doctor",
      "fix": null
    }
  ]
}
Field Contract
role clipboard-host / ssh-remote / wsl2 / unsupported-host decides which checks apply
status worst of all checks: ok, warn, fail
checks[].status ok / warn / fail
checks[].fix a remediation command or guidance, or null when no single command applies
exit code 0 usable (ok or warn), 1 broken, 2 bad arguments

A warn is not a failure. "No screenshot on the clipboard yet" is the normal state of a freshly installed machine — do not report it to the user as a problem, and do not try to fix it.

Consumers of the JSON output must accept unsupported-host for platforms without a backend. Do not apply it to Linux as a whole: Linux host diagnostics must distinguish missing tools, missing session access, and missing compositor data-control from consumer helper or bridge failures.

Read the full file on GitHub · 392 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 Changed · +25 lines · +366 tokens per session 354ea5c35572
  2. 1mo ago Changed · +141 lines · +1,822 tokens per session scan A → B 9a57e7573399
  3. 1mo ago First seen · 226 lines · 2,110 tokens per session scan A 5885ea19e957

Subscribe to this mod's changes

clipaste AGENTS.md is an instructions file published in the GitHub repository hqhq1025/clipaste (63 stars, last pushed 1mo ago), licensed MIT. It adds 4,298 tokens to every session, about $0.0172 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, makes network calls). 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