pine-of-glass: Instructions file for Codex

AGENTS.md

pine-of-glass AGENTS.md is an instructions file for Codex, OpenCode from tmustier/pine-of-glass. It costs 1,128 tokens per session, scanned A, original, MIT.

Repository instructions for working on pine-of-glass, a set of three TypeScript extensions for the pi coding-agent runtime.

In plain words
What is it for?
Use them when modifying, testing, documenting, or releasing the pine-of-glass extensions.
Why use it?
They give coding agents the project’s commands, layout, style rules, and release process so changes follow the repository’s conventions.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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 pine-of-glass AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/tmustier/pine-of-glass/agents-md"><img src="https://agentmods.dev/badge/instructions/tmustier/pine-of-glass/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,128 This file is loaded in full into every session.
When invoked 1,128 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.01128 $0.01128
Opus 5.5 $0.00451 $0.00451
Sonnet 5.5 $0.00226 $0.00226
Haiku 4.5 $0.00113 $0.00113

Measured 3d ago against content hash 0a6e74b4d6e6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pine-of-glass 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 3d 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 · 76 lines

How it starts

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

pine-of-glass: agent notes

Three pi extensions (contextimate, traceline, cachemire) sharing one design language. TypeScript, zero runtime dependencies, tests on node:test.

Commands

npm install             # locked Pi runtime (types, contract tests, smoke) and lint tooling; npm update adopts a new Pi
npm run link-pi         # optional: check against your installed pi instead; npm install undoes it
npm run docs:cache      # regenerate Cachemire retention docs
npm run lint            # POG rules + oxlint/anti-slop (baselined) + generated-doc drift checks
npm run lint:slop       # oxlint alone, full diagnostics
npm run typecheck       # tsc against the locked (or linked) pi
npm test                # unit + golden + pi contract tests (node:test)
npm run check           # lint + typecheck + tests
npm run test:smoke      # launches real pi in tmux with an isolated HOME (local-only)

Layout & rules

  • One extension per extensions/pi-<name>/; shared code lives in extensions/_lib: number grammar, family style (glyphs, theme-derived ink, panel headers), ANSI helpers, chat-container detection, config convention. _lib has no index.ts, so pi's extension discovery skips it.
  • Install for daily use with pi install git:github.com/tmustier/pine-of-glass. To try a branch, check it out in the installed clone (~/.pi/agent/git/github.com/tmustier/pine-of-glass) and /reload; pi update --extensions returns it to main. Do not also load a checkout with pi -e or symlinks: Pi treats it as a second package and registers every extension twice. Without the git install, pi install <checkout path> runs from a checkout.
  • docs/design-language.md specifies the visual grammar all three extensions speak. Record design changes there first, then implement; when a renderer and that document disagree, one of them is wrong.
  • The contract suite pins every structural assumption about pi internals, so after pi update, npm run link-pi && npm test says exactly which seam (if any) drifted. Test design notes: docs/testing.md.
  • Before changing Cachemire retention, read the dated audit. retention.ts drives runtime resolution and generated policy docs; cacheClock() owns clock wording. Match the exact route, model and outgoing policy. Keep minimum and maximum semantics distinct, and leave unmatched routes unknown. Run npm run docs:cache after policy changes.
  • Goldens regenerate with UPDATE_GOLDENS=1 npm test. Review the diff like code. Regenerate whenever rendering changes.
  • README screenshots regenerate with the rig in scripts/dev/screenshots/: real pi TUI in an isolated tmux/HOME; see its README for the recipe. The cachemire scenario makes live model calls (costs cents).
  • Agent coding standards live in docs/agent-coding-standard.md and are enforced by scripts/dev/agent-lint.mjs and .oxlintrc.json. Parse external data at its boundary, pass typed values inward, and document real escape hatches with SAFETY: comments. The baseline and legacy internals exports only shrink.
  • Tests specify capabilities through Pi's SDK or stable domain-module APIs; do not expose private helpers for tests. See docs/testing.md.

Read the full file on GitHub · 76 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. 3d ago Changed · +4 lines · +55 tokens per session 0a6e74b4d6e6
  2. 1mo ago Changed · +1 lines · +69 tokens per session 1cf62c23a324
  3. 1mo ago Changed · +3 lines · +61 tokens per session fda69757f576
  4. 2mo ago First seen · 68 lines · 943 tokens per session scan A 88cffec4e919

Subscribe to this mod's changes

pine-of-glass AGENTS.md is an instructions file published in the GitHub repository tmustier/pine-of-glass (66 stars, last pushed 3d ago), licensed MIT. It adds 1,128 tokens to every session, about $0.0045 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

pine-of-glass AGENTS.md compared with instructions from other repositories

pine-of-glass AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pine-of-glass AGENTS.mdtmustier/pine-of-glassInstructions file663d agoMITA1,128Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,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