moosestack: Instructions file for Codex

AGENTS.md

moosestack AGENTS.md is an instructions file for Codex, OpenCode from 514-labs/moosestack. It costs 1,794 tokens per session, scanned C, original, MIT.

Repository instructions for MooseStack, a multi-language monorepo containing Rust, TypeScript, and Python code. A monorepo is one repository that holds multiple related packages or applications.

In plain words
What is it for?
Use them when developing MooseStack features, running workspace builds, debugging the Rust CLI, or running unit and end-to-end tests.
Why use it?
They list the commands and project rules needed to build, format, lint, and test code across all supported languages, including required end-to-end tests for important changes.

Instructions file for CodexOpenCode

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

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/514-labs/moosestack/agents-md"><img src="https://agentmods.dev/badge/instructions/514-labs/moosestack/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,794 This file is loaded in full into every session.
When invoked 1,794 The same file — it is already loaded in full.
Security scan C 1 finding. 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.01794 $0.01794
Opus 5.5 $0.00718 $0.00718
Sonnet 5.5 $0.00359 $0.00359
Haiku 4.5 $0.00179 $0.00179

Measured 2mo ago against content hash 59336af690f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

moosestack AGENTS.md scanned grade C with 1 finding 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 2mo 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf node_modules && pnpm install
AGENTS.md · 126 lines

How it starts

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

AGENTS.md

Multi-language monorepo (Rust CLI + TypeScript/Python libraries) using PNPM workspaces, Turbo Repo, and Cargo workspace.

CRITICAL: When changing MooseStack functionality, ALWAYS run end-to-end tests. When changing user-facing features, add E2E tests to python-tests/typescript-tests templates AND audit documentation. Logs: ~/.moose/*-cli.log. Always format the code.

Build & Development Commands

All Languages

  • Build all: pnpm build (Turbo orchestrates builds)
  • Dev mode: pnpm dev (starts dev servers)
  • Clean: pnpm clean
  • Lint all: pnpm lint
  • Format: pnpm format (Prettier for TS/JS)

Rust

  • Build: cargo build
  • Debug CLI: Use debug build with verbose logging for ALL moose CLI commands:
    RUST_LOG=debug RUST_BACKTRACE=1 MOOSE_LOGGER__LEVEL=Debug ~/repos/moosestack/target/debug/moose-cli <command>
    
    Example: RUST_LOG=debug RUST_BACKTRACE=1 MOOSE_LOGGER__LEVEL=Debug ~/repos/moosestack/target/debug/moose-cli init my-app typescript
  • Test all: cargo test
  • Test single: cargo test <test_name> or cargo test --package <package_name> --test <test_file>
  • Lint: cargo clippy --all-targets -- -D warnings (REQUIRED pre-commit, no warnings allowed)
  • Format: cargo fmt

TypeScript

  • Test lib: cd packages/ts-moose-lib && pnpm test (runs mocha tests)
  • Test single: cd packages/ts-moose-lib && pnpm test --grep "test name pattern"
  • Typecheck: cd packages/ts-moose-lib && pnpm typecheck

Python

  • Test lib: cd packages/py-moose-lib && pytest
  • Test single: cd packages/py-moose-lib && pytest tests/test_file.py::test_function_name
  • Test pattern: cd packages/py-moose-lib && pytest -k "test_pattern"

End-to-End Tests

  • Run E2E: cd apps/framework-cli-e2e && pnpm test (includes pretest: cargo build, pnpm build, package templates)
  • Single E2E test: cd apps/framework-cli-e2e && pnpm test --grep "test name"

Testing Templates Manually

Templates cannot be run directly from within the repo—they must be initialized in a temp directory first. To test a template using the current branch's CLI and moose-lib versions:

# 1. Build the CLI
cargo build --package moose-cli

# 2. Package templates (creates tgz files with current template content)
node scripts/package-templates.js

# 3. Initialize template in a temp directory (outside the repo)
cd /tmp && ~/repos/moosestack/target/debug/moose-cli init my-test-app <template-name>

# 4. Verify the lockfile is up-to-date
cd /tmp/my-test-app && pnpm install
git status  # Should show "nothing to commit, working tree clean"

If the lockfile changes after pnpm install, regenerate it in the template source directory:

cd ~/repos/moosestack/templates/<template-name>
rm -rf node_modules && pnpm install
# Commit the updated pnpm-lock.yaml

Read the full file on GitHub · 126 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. 2mo ago First seen · 126 lines · 1,794 tokens per session scan C 59336af690f9

Subscribe to this mod's changes

moosestack AGENTS.md is an instructions file published in the GitHub repository 514-labs/moosestack (591 stars, last pushed 3d ago), licensed MIT. It adds 1,794 tokens to every session, about $0.0072 per session on Opus 5.5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

moosestack AGENTS.md compared with instructions from other repositories

moosestack AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
moosestack AGENTS.md514-labs/moosestackInstructions file5913d agoMITC1,794Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,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