open-sheet AGENTS.md

open-sheet AGENTS.md is an instructions file for Codex, OpenCode from lianghsun/open-sheet. It costs 1,070 tokens per session, scanned A, original, MIT.

A repository guide for Open-Sheet, a framework for building spreadsheet-like workbooks. It describes the packages and demo app in its pnpm and Turbo monorepo, where one codebase contains multiple related projects.

In plain words
What is it for?
Use it to build, test, type-check, lint, or develop the core, command-line tool, MCP server, and demo, while preserving the cell-reference rule.
Why use it?
It documents the package boundaries and protects an important rule: cell references must be generated rather than manually written.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/lianghsun/open-sheet/agents-md
Clone the repo
git clone --depth 1 https://github.com/lianghsun/open-sheet

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 open-sheet AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lianghsun/open-sheet/agents-md.svg)](https://agentmods.dev/instructions/lianghsun/open-sheet/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/lianghsun/open-sheet/agents-md"><img src="https://agentmods.dev/badge/instructions/lianghsun/open-sheet/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,070 This file is loaded in full into every session.
When invoked 1,070 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01070 $0.01070
Opus 5 $0.00535 $0.00535
Sonnet 5 $0.00214 $0.00214
Haiku 4.5 $0.00107 $0.00107

Measured 4d ago against content hash 0f215852ce30, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

open-sheet 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 · 88 lines

How it starts

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

open-sheet — repository guide

This file describes the framework repo. If you are authoring workbooks in a scaffolded workspace, you want the sheet-authoring skill instead.

Repo layout

pnpm + Turbo monorepo.

Path Package Purpose
packages/core @open-sheet/core Compiler, placement, references, formula engine, style bridge, export, viewer, Vite plugin, open-sheet CLI
packages/cli @open-sheet/cli Scaffolder and project template
packages/mcp @open-sheet/mcp MCP server over Streamable HTTP
apps/demo private Local framework consumer, dogfood target

Shared config at the root: biome.json, turbo.json, pnpm-workspace.yaml, tsconfig.base.json.

Commands

pnpm dev          # run the demo against local core
pnpm build        # build all packages
pnpm typecheck    # tsc across the monorepo
pnpm check        # biome: format, lint, organize imports
pnpm check:fix    # auto-fix
pnpm test         # vitest

Filter to one package: pnpm core <script>, pnpm cli <script>, pnpm mcp <script>.

The one invariant

No A1 address is ever authored by hand — not in apps/demo, not in fixtures, not in tests that represent user code.

The whole premise of open-sheet is that the framework owns every coordinate. A test fixture containing =SUM(B2:B13) written by a human is a fixture that stops testing the thing that matters. Tests may assert on A1 output; they must not author it.

The one exception is raw(), the deliberate escape hatch. It is expected to show #NOT_EVALUATED in the viewer.

Core pipeline

Understand this before touching packages/core:

sheets/<id>/index.tsx
  → (1) evaluate JSX via our own jsx-runtime (no react-dom, no DOM at all)
  → Block tree
  → (2) measure   each block reports its intrinsic { rows, cols }
  → (3) place     assign every block an origin; collisions are a bug
  → Grid model + anchor registry
  → (4) resolve   Refs → concrete A1 / defined names
  → (5) evaluate  topological evaluation → the numbers the viewer shows
  → emit: viewer | .xlsx | .csv | .html | .pdf

Read the full file on GitHub · 88 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 First seen · 88 lines · 1,070 tokens per session scan A 0f215852ce30

Subscribe to this mod's changes

open-sheet AGENTS.md is an instructions file published in the GitHub repository lianghsun/open-sheet (120 stars, last pushed 8d ago), licensed MIT. It adds 1,070 tokens to every session, about $0.0053 per session on Opus 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