yuzudraw: Instructions file for Codex

AGENTS.md

yuzudraw AGENTS.md is an instructions file for Codex, OpenCode from agavra/yuzudraw. It costs 2,272 tokens per session, scanned A, original, MIT.

Project instructions for YuzuDraw, a macOS app for creating ASCII diagrams, which use text characters to draw shapes and layouts. They describe the app structure and the commands for generating its Xcode project, building it, testing it, and building its command-line tool.

In plain words
What is it for?
Use them when changing YuzuDraw, its SwiftUI interface, drawing tools, data models, or command-line tool. They also explain how to run the app’s unit tests and builds.
Why use it?
They give a coding agent the project’s expected workflow and file locations. This reduces mistakes such as editing generated Xcode files or skipping required checks.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/agavra/yuzudraw/agents-md"><img src="https://agentmods.dev/badge/instructions/agavra/yuzudraw/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,272 This file is loaded in full into every session.
When invoked 2,272 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.02272 $0.02272
Opus 5.5 $0.00909 $0.00909
Sonnet 5.5 $0.00454 $0.00454
Haiku 4.5 $0.00227 $0.00227

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

Security

Grade A, and why

yuzudraw 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 2mo 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 · 159 lines

How it starts

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

YuzuDraw

A macOS app for drawing ASCII diagrams (Monodraw/Figma-like).

Build & Test

# Generate Xcode project (after modifying project.yml)
xcodegen generate

# Build (warnings are treated as errors via project.yml settings)
xcodebuild -scheme YuzuDraw -destination 'platform=macOS' build

# Run tests (UI smoke tests are excluded from the scheme; only unit tests run)
xcodebuild -scheme YuzuDraw -destination 'platform=macOS' test

# Build CLI
xcodebuild -project YuzuDraw.xcodeproj -scheme YuzuDrawCLI -configuration Debug build

Project Structure

  • project.yml — XcodeGen spec (source of truth for the Xcode project)
  • YuzuDraw/App/ — App entry point (YuzuDrawApp with WorkspaceViewModel)
  • YuzuDraw/Models/ — Data models (Canvas, Geometry, Shapes, Layers, Document, ProjectMetadata, ProjectTab, RecentProject)
  • YuzuDraw/Views/ — SwiftUI views (RootView, WelcomeView, TabBarContentView, ContentView, CanvasView, ToolbarView, LayerPanel, InspectorPanel)
  • YuzuDraw/ViewModels/ — Observable view models (WorkspaceViewModel, EditorViewModel)
  • YuzuDraw/Tools/ — Drawing tool system (Tool protocol, SelectionTool, RectangleTool, ArrowTool, TextTool)
  • YuzuDraw/Serialization/ — Document persistence (JSON via DocumentCodable, DSL via DSLSerializer/DSLParser, ProjectFileManager for file I/O)
  • YuzuDraw/Automation/ — Shared automation service for CLI workflows (DiagramAutomationService)
  • YuzuDrawCLI/ — CLI entrypoint and command handling
  • YuzuDraw/Resources/ — Assets, Info.plist, entitlements
  • YuzuDrawTests/ — Unit tests

Architecture

Rendering Pipeline

Document (shapes, layers, groups)  ← semantic model, source of truth
    │
    ▼
RenderEngine: iterate layers bottom→top, render visible shapes
    │
    ▼
Canvas (2D character grid)  ← "framebuffer", re-rendered on every mutation
    │
    ▼
CanvasView: displays Canvas.render() as monospaced Text
  • Canvas is a dumb 2D character grid — shapes are the source of truth, not canvas cells
  • Document.render(into:) clears canvas then renders all visible layers/shapes in order
  • EditorViewModel.rerender() is called after every document mutation

Read the full file on GitHub · 159 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. 2mo ago First seen · 159 lines · 2,272 tokens per session scan A 8c03239bfa8f

Subscribe to this mod's changes

yuzudraw AGENTS.md is an instructions file published in the GitHub repository agavra/yuzudraw (55 stars, last pushed 7mo ago), licensed MIT. It adds 2,272 tokens to every session, about $0.0091 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

yuzudraw AGENTS.md compared with instructions from other repositories

yuzudraw AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
yuzudraw AGENTS.mdagavra/yuzudrawInstructions file557mo agoMITA2,272Codex, 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