wispterm: Instructions file for Codex

AGENTS.md

wispterm AGENTS.md is an instructions file for Codex, OpenCode from xuzhougeng/wispterm. It costs 6,067 tokens per session, scanned A, original, MIT.

A set of development instructions for WispTerm, a Zig terminal emulator for Windows and macOS, with experimental Linux support. It explains the shared terminal core and the platform-specific code around it.

In plain words
What is it for?
Use it when changing terminal rendering, input, window handling, platform backends, fonts, or shared terminal state.
Why use it?
It helps an AI assistant preserve the separation between terminal behavior and operating-system code, while respecting the project's supported platforms and known limitations.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xuzhougeng/wispterm/agents-md"><img src="https://agentmods.dev/badge/instructions/xuzhougeng/wispterm/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,067 This file is loaded in full into every session.
When invoked 6,067 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.06067 $0.06067
Opus 5.5 $0.02427 $0.02427
Sonnet 5.5 $0.01213 $0.01213
Haiku 4.5 $0.00607 $0.00607

Measured today against content hash 8957ba252431, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wispterm 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 today.

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 · 234 lines

How it starts

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

AGENTS.md

Overview

WispTerm is a terminal emulator written in Zig, shipping desktop builds for Windows and macOS, plus an experimental Linux AppImage. It uses libghostty-vt (Ghostty's VT parser and terminal state machine) for terminal emulation, with its own rendering pipeline (D3D11/Metal/OpenGL + FreeType, plus DirectWrite/CoreText/fontconfig for font discovery by platform).

Windows is the primary and default development target (x86_64-windows-gnu), and day-to-day development happens on Windows in PowerShell. Platform-specific code lives behind narrow interfaces in src/platform/ (per-platform implementations plus _unsupported/_posix stubs) so macOS and Linux can share the terminal core. macOS is an active supported desktop build that is still stabilizing; Linux is experimental. See ROADMAP.md for future work and KNOWN_ISSUES.md for current platform limitations.

Architecture

WispTerm is split into a platform-agnostic core (terminal state, IO, rendering) and a per-platform host (window, event loop, input) that drives the core through a narrow surface API. The host interface is src/platform/window_backend.zig; OS facilities go through capability facades in src/platform/. The named contract — what the host implements, what services it supplies, and the invariants that keep the seam intact — is documented in docs/architecture.md. Read it before touching the platform boundary or starting a port.

UI presentation styles

WispTerm has exactly three application UI styles. Choose one before adding a screen; do not create a fourth ad-hoc overlay shape. The shared geometry contract is src/renderer/ui_patterns.zig. It is intentionally pure and is included in the fast test suite.

Style Use for Required structure Examples
Command palette Find-and-run actions with no persistent form state Search field, filtered and scrollable action list, visible selection, shortcut/meta column, Escape closes. Keep it transient; do not put multi-step configuration here. Command Center, Copilot History picker
Form dialog Small configuration, profile editing, confirmation, and launch choices Centered constrained dialog, title plus one-line instruction, aligned rows/fields, explicit primary and cancel/close actions. Must fit inside viewport gutters at every size. New Session, AI/SSH/MCP forms
Workbench page Persistent tab-owned tools with browsing, status, or multi-column content Header, content region, and a full-width footer/status band. Empty states explain why the page is empty and name the next action. Keyboard hints and non-blocking status belong in the footer/status band, never squeezed into a content column. Settings, Memory Center, Skill Center, Port Forwarding, Agent History

Read the full file on GitHub · 234 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. today Changed 8957ba252431
  2. 6d ago Changed · +1 lines · +70 tokens per session 1ee41f70eb73
  3. 1mo ago Changed 35bba2d09187
  4. 1mo ago First seen · 233 lines · 5,997 tokens per session scan A cff400c5b6b9

Subscribe to this mod's changes

wispterm AGENTS.md is an instructions file published in the GitHub repository xuzhougeng/wispterm (452 stars, last pushed today), licensed MIT. It adds 6,067 tokens to every session, about $0.0243 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,384 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