neosh: Instructions file for Codex

AGENTS.md

neosh AGENTS.md is an instructions file for Codex, OpenCode from neoswarm/neosh. It costs 41,808 tokens per session, scanned A, original, MIT.

A set of instructions for neosh, a terminal-based coding workspace with a Rust core and TypeScript plugins. It explains how the project is divided and how its public extension interface owns features such as windows, panels, commands, keys, colours, and layouts.

In plain words
What is it for?
Use it when modifying the editor core, communication types, Deno-based scripting, providers, plugins, or user-customisable interface features. It also guides work across the project’s Rust and TypeScript parts.
Why use it?
It helps contributors understand which part of the code owns each responsibility and preserves neosh’s rule that built-in features must also be available to plugins. This makes changes less likely to bypass the project’s extension design.

Instructions file for CodexOpenCode

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

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/me/src/neosh.

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/neoswarm/neosh/agents-md"><img src="https://agentmods.dev/badge/instructions/neoswarm/neosh/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41,808 This file is loaded in full into every session.
When invoked 41,808 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.41808 $0.41808
Opus 5.5 $0.16723 $0.16723
Sonnet 5.5 $0.08362 $0.08362
Haiku 4.5 $0.04181 $0.04181

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

Security

Grade A, and why

neosh 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 21d 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,889 lines

How it starts

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

Working on neosh

A terminal-first agent workspace: Rust core, TypeScript plugins, "the extensibility model of Neovim and the feature set of Cursor".

The thesis is that extensibility is the product. Every capability ships on the same public API a third-party plugin author would use. If a feature needs a private escape hatch, the API is wrong and the API is what to fix.

Which means the user owns the workspace, not us: every part of it is theirs to replace, and a plugin of their own is how they do it. New windows, panels and floats; new commands and keys on any of them; different colours, different layout, a sidebar that is nothing like ours — none of that is a feature we grant, it is what the API is for. Ours are the defaults, and a default is something you turn off.

Layout

Crate Owns
neosh-proto Every wire type. #[derive(TS)] on all of them; generated .ts is committed.
neosh-core Buffers, windows, floats, extmarks, highlights, focus, keymaps, the single-writer Editor. No I/O.
neosh-script The deno_core host and the op surface. The only crate that knows deno exists.
neosh-provider trait Provider, the shared SSE parser, and one driver per transport.
neosh-agent Session, Turn, the tool registry, the permission layer, the agent loop.
neosh-syntax Syntax highlighting: what a token is, never what colour it is. The only crate that knows a grammar exists.
neosh-tui Terminal frontend. Owns all display-width maths.
neosh The binary. Wires the tasks, owns config, hosts the chat — and is both the workspace (daemon.rs) and the terminal that views it (client.rs).
neosh-plugins plugins/ itself. One file of Rust holding the include_dir!s, because the tree an include_dir! reads has to be under the package root or it embeds here and publishes empty.

plugins/api/ is @neosh/api — generated protocol types plus a hand-written ergonomic layer. plugins/builtin/ are ordinary plugins that happen to ship in the binary. The directory is also a crate (plugins/Cargo.toml, plugins/lib.rs) and nothing moved to make it one: cargo package carries only what is under a package root, so a neosh-script embedding ../../plugins built fine in a checkout and would have uploaded a crate with no plugins and no API source in it. Publishing is docs/releasing.md.

Read the full file on GitHub · 1,889 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. 21d ago Changed · +63 lines · +1,648 tokens per session 1975d79488a8
  2. 25d ago Changed · +10 lines · +224 tokens per session 7037587dc113
  3. 26d ago Changed · +60 lines · +1,396 tokens per session cb4d65759072
  4. 27d ago Changed · +4 lines · +111 tokens per session 8da433af95c6
  5. 1mo ago Changed · +36 lines · +841 tokens per session d934ece9ed97
  6. 1mo ago Changed · +154 lines · +3,612 tokens per session 151631e36226
  7. 1mo ago Changed · +58 lines · +1,318 tokens per session 52111e59ec75
  8. 2mo ago Changed · +105 lines · +2,431 tokens per session b7f4b2ea2d42
  9. 2mo ago Changed · +93 lines · +2,295 tokens per session aded72e5324a
  10. 2mo ago First seen · 1,306 lines · 27,932 tokens per session scan A 4ffa6de5d0b8

Subscribe to this mod's changes

neosh AGENTS.md is an instructions file published in the GitHub repository neoswarm/neosh (31 stars, last pushed 22d ago), licensed MIT. It adds 41,808 tokens to every session, about $0.1672 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

neosh AGENTS.md compared with instructions from other repositories

neosh AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
neosh AGENTS.mdneoswarm/neoshInstructions file3122d agoMITA41,808Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot