Monoloth AGENTS.md

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

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/noahain/monoloth/agents-md
Clone the repo
git clone --depth 1 https://github.com/noahain/Monoloth

Made for: Codex, OpenCode.

Per session 3,397 This file is loaded in full into every session.
When invoked 3,397 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.03397 $0.03397
Opus 5 $0.01699 $0.01699
Sonnet 5 $0.00679 $0.00679
Haiku 4.5 $0.00340 $0.00340

Measured 2d ago against content hash 3c80f857bcc5, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 2d 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 · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 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.rslib.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 · 139 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. 2d 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 (8 stars, last pushed 16d ago), licensed MIT. It adds 3,397 tokens to every session, about $0.0170 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-31.