vscode-peacock: Instructions file for Codex

AGENTS.md

vscode-peacock AGENTS.md is an instructions file for Codex, OpenCode from johnpapa/vscode-peacock. It costs 5,427 tokens per session, scanned C, original, MIT.

A development guide for Peacock, a Visual Studio Code extension that changes workspace colours to help distinguish multiple editor windows, shared sessions, or remote workspaces.

In plain words
What is it for?
Use it when locating code, adding or changing Peacock commands and settings, working on colour application, or building and testing the extension.
Why use it?
It shows how the extension is organised and how its commands, settings, colour logic, and build process fit together.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

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

About the project

Peacock is a Visual Studio Code extension that changes a workspace’s color so users can distinguish between multiple editor windows or shared and remote sessions. It is for developers who need a quick visual way to identify their VS Code workspaces. Its catalogue entries provide instructions and an MCP integration related to the extension.

johnpapa/vscode-peacock · 1,192 stars · on GitHub

Reuse

Borrowing it

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

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 vscode-peacock AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/johnpapa/vscode-peacock/agents-md"><img src="https://agentmods.dev/badge/instructions/johnpapa/vscode-peacock/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,427 This file is loaded in full into every session.
When invoked 5,427 The same file — it is already loaded in full.
Security scan C 1 finding. 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.05427 $0.05427
Opus 5.5 $0.02171 $0.02171
Sonnet 5.5 $0.01085 $0.01085
Haiku 4.5 $0.00543 $0.00543

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

Security

Grade C, and why

vscode-peacock AGENTS.md scanned grade C with 1 finding 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

Check the latest **push-triggered** run of `ci.yml` on `main` — not just the last PR's run, since PR runs can be stale relative to what actually merged. If you want to double-check locally instead of trusting CI, `rm -rf
AGENTS.md · 217 lines

How it starts

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

Peacock — Agent Guide

Project Overview

Peacock is a Visual Studio Code extension that subtly changes the color of your workspace. It's ideal when you have multiple VS Code instances, use VS Live Share, or use VS Code's Remote features and want to quickly identify which editor is which.

  • Publisher: johnpapa
  • VS Code Marketplace: Peacock
  • Version: See package.json for the current version

Repository Structure

vscode-peacock/
├── src/                        — Extension source code (TypeScript)
│   ├── extension.ts            — Extension entry point (activation, command registration)
│   ├── commands.ts             — Command implementations (enter color, random, favorites, etc.)
│   ├── apply-color.ts          — Core color application logic
│   ├── color-library.ts        — Color manipulation utilities (uses tinycolor2)
│   ├── configuration/          — VS Code configuration read/write helpers
│   ├── models/                 — TypeScript interfaces, enums, constants, state
│   ├── inputs.ts               — User input prompts (color picker, quick pick)
│   ├── statusbar.ts            — Status bar color display
│   ├── live-share/             — VS Live Share integration
│   ├── remote/                 — Remote development integration
│   ├── test/                   — Mocha unit tests
│   ├── logging.ts              — Output channel logging
│   ├── mementos.ts             — Global state persistence
│   ├── notification.ts         — User notifications
│   └── object-library.ts       — Object/element management
├── e2e/                        — Playwright end-to-end tests (docs screenshots)
├── docs/                       — Docsify documentation site
│   ├── guide/                  — User guide pages
│   ├── about/                  — About pages
│   ├── changelog/              — Changelog page
│   ├── _sidebar.md             — Navigation sidebar
│   └── index.html              — Docsify entry point
├── resources/                  — Extension icons and assets
├── testworkspace/              — Test workspace used by Mocha tests
├── .github/
│   ├── workflows/docs.yml      — Docs deploy + Playwright e2e tests
│   ├── ISSUE_TEMPLATE/         — Bug report and feature request templates
│   └── PULL_REQUEST_TEMPLATE/  — PR template
├── webpack.config.js           — Webpack bundler config (Node + Web targets)
├── tsconfig.json               — TypeScript configuration
├── playwright.config.ts        — Playwright e2e test config
└── package.json                — Extension manifest, commands, settings, scripts

Read the full file on GitHub · 217 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 · +22 lines · +1,406 tokens per session 2bf3e010db0b
  2. 1mo ago Changed · +1 lines · +171 tokens per session d49fe194b033
  3. 1mo ago Changed · +7 lines · +661 tokens per session fa831e2f0dbe
  4. 2mo ago Changed · +40 lines · +1,251 tokens per session scan A → C 0d52fdf90c20
  5. 2mo ago First seen · 147 lines · 1,938 tokens per session scan A 64b709fdf27a

Subscribe to this mod's changes

vscode-peacock AGENTS.md is an instructions file published in the GitHub repository johnpapa/vscode-peacock (1,192 stars, last pushed 7d ago), licensed MIT. It adds 5,427 tokens to every session, about $0.0217 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

vscode-peacock AGENTS.md compared with instructions from other repositories

vscode-peacock AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
vscode-peacock AGENTS.mdjohnpapa/vscode-peacockInstructions file1.2k7d agoMITC5,427Codex, OpenCode
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