Monoloth: Instructions file for Codex

AGENTS.md

Monoloth AGENTS.md is an instructions file for Codex, OpenCode from noahain/Monoloth. It costs 3,574 tokens per session, scanned A, original, MIT.

Repository-specific instructions for Monoloth, a cross-platform desktop terminal app built with Tauri, Rust, and plain JavaScript. Tauri connects the desktop window to native Rust code.

In plain words
What is it for?
Use them when modifying terminal sessions, configuration, history, window behavior, plugins, frontend modules, or Rust and JavaScript tests.
Why use it?
They explain the project's unusual file layout, script-loading order, build requirements, and test commands so changes do not break the app.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md; mentions OpenCode.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/noahain/monoloth/agents-md"><img src="https://agentmods.dev/badge/instructions/noahain/monoloth/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,574 This file is loaded in full into every session.
When invoked 3,574 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.03574 $0.03574
Opus 5.5 $0.01430 $0.01430
Sonnet 5.5 $0.00715 $0.00715
Haiku 4.5 $0.00357 $0.00357

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

Security

Grade A, and why

Monoloth 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 19d 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 · 143 lines

How it starts

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

AGENTS.md

Stack

Tauri 2 (v2.11.1) + Rust backend, vanilla JS frontend. No bundler, no package.json, no Node build step. Version 2.2.6 in Cargo.toml and tauri.conf.json. Identifier com.monoloth.app. Cross-platform (Windows/macOS/Linux). Rust 1.77.2+ and C++ Build Tools required.

Layout

  • src-tauri/src/ — main.rs → lib.rs::run() registers plugins, restores window state, wires close handler, lists all IPC commands. Commands in commands/ (one file per concern: config, fs, history, image, profile, shell, terminal, version, window). Core: pty.rs (PTY session manager), config.rs (untyped serde_json::Value map via Arc<Mutex<ConfigInner>>), history.rs.
  • frontend/ — index.html loads <script> tags in load-bearing order below. IIFE modules expose one window.Monolith* global each — no imports. lib/ has vendored xterm*, dom-utils.js (sets window.MonolothUI), and plugin wrappers.
  • style.css (~6991 lines) — flat CSS, no preprocessor. --modal-* CSS variable tokens for themeable colors.
  • Tests: 14 *.test.cjs suites / 90 tests in frontend/ using Node vm sandbox. cargo test for Rust (80 tests across config, terminal, history, fs, image).

Build / test commands

No scripts. Raw commands:

# from repo root
cargo check --manifest-path src-tauri/Cargo.toml   # fast typecheck
cargo test --manifest-path src-tauri/Cargo.toml    # all Rust tests (80)
node --test frontend/*.test.cjs                    # all frontend tests (90)
node --test frontend/terminal.test.cjs             # single suite

# from src-tauri/ (workdir, not --manifest-path — CLI is npm's tauri.cmd)
tauri dev                                          # dev build with hot-reload
tauri build                                        # release build

cargo test --manifest-path src-tauri/Cargo.toml works from repo root. node --test must run from repo root — suites hardcode repo-root-relative reads. cargo tauri is not installed; use tauri (npm's tauri.cmd) from src-tauri/. Neither tauri dev nor tauri build accepts --manifest-path. No formatter, linter, or pre-commit. Don't introduce one without asking.

Read the full file on GitHub · 143 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. 19d ago Changed · +4 lines · +177 tokens per session 930f63f8aaa0
  2. 2mo ago First seen · 139 lines · 3,397 tokens per session scan A 3c80f857bcc5

Subscribe to this mod's changes

Monoloth AGENTS.md is an instructions file published in the GitHub repository noahain/Monoloth (10 stars, last pushed 3d ago), licensed MIT. It adds 3,574 tokens to every session, about $0.0143 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-31.

Related

Monoloth AGENTS.md compared with instructions from other repositories

Monoloth AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Monoloth AGENTS.mdnoahain/MonolothInstructions file103d agoMITA3,574Codex, 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