gpuix: Instructions file for Codex

AGENTS.md

gpuix AGENTS.md is an instructions file for Codex, OpenCode from remorses/gpuix. It costs 18,310 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for GPUIX, a user-interface layer built on GPUI, the Rust interface toolkit used by Zed. They explain the project architecture and require checking the underlying GPUI API before adding workarounds.

In plain words
What is it for?
Use them when changing GPUIX elements, events, styles, mutation handling, mouse capture, native behavior, or the test renderer.
Why use it?
They help prevent fixes that conflict with the underlying toolkit or break when its source is updated.

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/morse/Documents/GitHub/zed-gpuix-<change>.

About the project

GPUIX provides React and TypeScript bindings for GPUI, a GPU-accelerated framework for building native desktop interfaces. Developers use it to create memory-efficient desktop applications whose React components render through Metal, DirectX, or Vulkan without Electron or web views.

remorses/gpuix · 2,875 stars · on GitHub · gpuix.dev

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/remorses/gpuix/agents-md"><img src="https://agentmods.dev/badge/instructions/remorses/gpuix/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18,310 This file is loaded in full into every session.
When invoked 18,310 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.18310 $0.18310
Opus 5.5 $0.07324 $0.07324
Sonnet 5.5 $0.03662 $0.03662
Haiku 4.5 $0.01831 $0.01831

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

Security

Grade A, and why

gpuix 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 4d 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 · 1,541 lines

How it starts

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

AGENTS.md - GPUIX Codebase Guide

Read README.md first to understand what GPUIX is, the architecture, mutation API, event flow, supported elements/events/styles, and the test renderer.

Unless you are remorses or monotykamary, do not open a pull request. Open an issue. See External contributors.

README is the public API contract

Document every user-facing feature, element, prop, event, renderer option, public method, and behavior change in README.md in the same change. A changeset does not replace API documentation.

GPUIX is a thin layer on GPUI

Read the GPUI docs and the GPUI source before you write native code. zed/crates/gpui is checked out in this repository. gpui::ListState, gpui::div, gpui::Window and the rest are the real API; GPUIX only translates a React tree into calls on them.

Do not invent behaviour on top of GPUI. If a GPUIX element needs something GPUI does not do, the order is:

  1. Find the GPUI API that already does it. Search zed/crates/gpui for the symbol
  2. Search zed-industries/zed issues and PRs. Someone may have shipped it already
  3. Fix it in the remorses/zed fork as a normal GPUI change, and bump the submodule
  4. Only then, add GPUIX code

Never paper over GPUI in packages/native. A workaround that re-applies state after GPUI computed it, patches a value GPUI owns, or reaches around a GPUI invariant will break on the next submodule bump and is very hard to debug. When such a change is unavoidable, it must state in a comment what GPUI does, why that is not what GPUIX needs, and which GPUI call makes it safe.

Prefer the smallest translation. Fewer moving parts is more important than matching any other framework's behaviour.

No hooks unless the value is reactive

Do not add a hook to @gpuix/react or a primitive to @gpuix/solid unless the value changes over time and the component must re-render when it does (useWindowSize, useWindowInsets). A value that is fixed once the window opens is a plain exported function, like isTerminal(). Apps and examples follow the same rule: no useState, useMemo, or custom hook for a value that a plain call or constant gives.

Read the full file on GitHub · 1,541 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. 4d ago Changed · +14 lines · +201 tokens per session fc2ab1f33a50
  2. 5d ago Changed · +41 lines · +471 tokens per session 30b7fc804111
  3. 17d ago Changed · +24 lines · +340 tokens per session 93833f34e822
  4. 21d ago Changed · +4 lines · +64 tokens per session 95df6d304cd1
  5. 26d ago Changed · +3 lines · +67 tokens per session acd77b849af3
  6. 1mo ago Changed · +6 lines · +107 tokens per session 7296fae411a7
  7. 1mo ago Changed · +12 lines · +201 tokens per session dd7433621171
  8. 1mo ago Changed · +43 lines · +493 tokens per session 5ee8481bd2ee
  9. 1mo ago Changed · +11 lines · +121 tokens per session a3209a63902a
  10. 2mo ago First seen · 1,383 lines · 16,245 tokens per session scan A d4f4e86a528e

Subscribe to this mod's changes

gpuix AGENTS.md is an instructions file published in the GitHub repository remorses/gpuix (2,875 stars, last pushed 5d ago), licensed Apache-2.0. It adds 18,310 tokens to every session, about $0.0732 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

gpuix AGENTS.md compared with instructions from other repositories

gpuix AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gpuix AGENTS.mdremorses/gpuixInstructions file2.9k5d agoApache-2.0A18,310Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,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