lain AGENTS.md

lain AGENTS.md is an instructions file for Codex, OpenCode from spuentesp/lain. It costs 689 tokens per session, scanned C, original, MIT.

A project instruction file containing background and maintenance notes for the Lain command-line tool, including version-fix history.

In plain words
What is it for?
Use it when working on Lain's version metadata, release tags, binaries, or installation scripts.
Why use it?
It gives coding agents the repository context needed to understand past release and installer problems before changing the project.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/spuentesp/lain/agents-md.svg)](https://agentmods.dev/instructions/spuentesp/lain/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/spuentesp/lain/agents-md"><img src="https://agentmods.dev/badge/instructions/spuentesp/lain/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 689 This file is loaded in full into every session.
When invoked 689 The same file — it is already loaded in full.
Security scan C 2 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.00689 $0.00689
Opus 5 $0.00345 $0.00345
Sonnet 5 $0.00138 $0.00138
Haiku 4.5 $0.00069 $0.00069

Measured today against content hash 723573fdf9de, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

lain AGENTS.md scanned grade C with 2 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 today.

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.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

site, so `curl … | bash` and direct invocation both work.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

site, so `curl … | bash` and direct invocation both work.
AGENTS.md · 51 lines

How it starts

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

AGENTS.md — notes for AI agents working in this Lain checkout

Background

The upstream v0.7.0 release tarball shipped a lain binary whose --version reported lain 0.6.1. Root cause: Cargo.toml's version field was never bumped from 0.6.1 when the v0.7.0 git tag was cut, so any binary built from that tree carried the old version string. Functionally the binary behaved as v0.7.0; only the version string was wrong.

Status (2026-09-02 → 2026-09-03)

  1. Local fix (commits 93d6344 + ae2a527): bumped Cargo.toml to 0.7.0 on fix/v0.7.0-version-bump, merged to main, and rebuilt ~/.local/lain/lain so --version correctly reports lain 0.7.0. Original tarball binary is kept as ~/.local/lain/lain.bak.0.6.1.
  2. Upstream fix (tag v0.7.1): bumped Cargo.toml to 0.7.1 and pushed the tag so the release workflow publishes corrected binaries to GitHub Releases. server.json's top-level + nested version fields get updated automatically by the release workflow; Formula/lain.rb and npm-shim/package.json are out of scope for this fix.
  3. Installer fix (tag v0.7.2): install.sh had a function-call-ordering bug — it invoked apply_noninteractive_defaults at the top of the file before defining the function further down. With set -e, that killed the script with command not found before any work happened, which is why this environment always installed Lain manually. apply_noninteractive_defaults is now defined above its call site, so curl … | bash and direct invocation both work.

After the v0.7.1 workflow completed, the official tarballs at https://github.com/spuentesp/lain/releases/tag/v0.7.1 report the correct version string. After the v0.7.2 workflow completes, fresh installs no longer hit the silent-exit bug.

Re-installing the official tarball

install.sh from upstream will now install lain 0.7.2 (or newer). Fresh installs work end-to-end via curl … | bash or direct invocation — no more manual install dance.

Read the full file on GitHub · 51 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. today First seen · 51 lines · 689 tokens per session scan C 723573fdf9de

Subscribe to this mod's changes

lain AGENTS.md is an instructions file published in the GitHub repository spuentesp/lain (6 stars, last pushed yesterday), licensed MIT. It adds 689 tokens to every session, about $0.0034 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.