stardrive AGENTS.md

Repository instructions for AI coding agents working on Stardrive, an Astro web project. They require checking whether the repository has been initialized and following its setup files before handling other requests.

In plain words
What is it for?
Use them when working in Stardrive to check initialization, follow the project’s setup instructions, create its mode marker when required, and then continue with development work.
Why use it?
They prevent an agent from changing an uninitialized project before its required setup and operating mode have been established.

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

Made for: Codex, OpenCode.

Per session 2,707 This file is loaded in full into every session.
When invoked 2,707 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.02707 $0.02707
Opus 5 $0.01354 $0.01354
Sonnet 5 $0.00541 $0.00541
Haiku 4.5 $0.00271 $0.00271

Measured 2d ago against content hash 2d179f9d114f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stardrive 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 Β· 125 lines

How it starts

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

πŸ›‘ CRITICAL: REPOSITORY BOOTSTRAP DIRECTIVE πŸ›‘

As an AI agent operating in this repository, you MUST execute the following state check before analyzing, coding, or responding to any user prompt:

  1. CHECK STATE: Silently verify if the file STARDRIVE_AGENT_MODE.md exists in the root directory.
  2. IF MISSING (UNINITIALIZED):
    • Intercept the prompt: Acknowledge to the user that you are running the initial repository setup first.
    • Never (!) proceed without this file being present!
    • Read the file SETUP.md in the./.ai/ directory..
    • Execute ALL setup, scaffolding, and configuration instructions defined in SETUP.md and related files. Ask the user about clarification where necessary.
    • Create the STARDRIVE_AGENT_MODE.md file in the root directory to mark initialization as complete, setting its content to "project" or "boilerplate" - depending on what the user's case is about.
    • Proceed to fulfill the user's original request.
  3. IF PRESENT (INITIALIZED):
    • Directly proceed to fulfilling the user's prompt.
    • Mind the content of the STARDRIVE_AGENT_MODE.md as it defines your general scope as described in the AGENTS.md.

General information and guidelines for AI agents

Analyze your high-level use case first

Check for an STARDRIVE_AGENT_MODE.md file at the root level. Its content is a single keyword that selects your mode:

  • boilerplate - You are maintaining the boilerplate code itself as a contributor (not building a new website with it). Follow BOILERPLATE_MODE.md. Do not execute the other .ai guides as setup steps (SETUP.md, CONFIG_GUIDE.md, TRIMMING_GUIDE.md, FAVICON_GUIDE.md); they describe the end-user setup flow. You may still read and update them when your changes affect that flow - keeping them accurate is part of boilerplate maintenance.
  • project - You are using the boilerplate to build a new project and website. Treat this codebase as an already-started project to adjust and extend to the user's specifications, not as a boilerplate. Open PLAN.md first to see what is still open. If no PLAN.md exists yet, the configuration has not been planned - run SETUP.md to create it. Ignore BOILERPLATE_MODE.md.

Read the full file on GitHub Β· 125 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 Β· 125 lines Β· 2,707 tokens per session scan A 2d179f9d114f

Subscribe to this mod's changes

stardrive AGENTS.md is an instructions file published in the GitHub repository peltmonger/stardrive (183 stars, last pushed 2d ago), licensed MIT. It adds 2,707 tokens to every session, about $0.0135 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-30.