aistack AGENTS.md

aistack AGENTS.md is an instructions file for Codex, OpenCode from alp82/aistack. It costs 4,908 tokens per session, scanned A, original, MIT.

Repository instructions for AI Stack, a web app where people compare and choose groups of AI tools for different needs.

In plain words
What is it for?
Use them when developing the app, changing its database schema, or running approved production-data checks through the provided scripts.
Why use it?
They describe the local development setup and the safe process for working with production data, including database synchronization and schema changes.

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

Made for: Codex, OpenCode.

Per session 4,908 This file is loaded in full into every session.
When invoked 4,908 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.04908 $0.04908
Opus 5 $0.02454 $0.02454
Sonnet 5 $0.00982 $0.00982
Haiku 4.5 $0.00491 $0.00491

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

Security

Grade A, and why

aistack 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 3d 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 · 348 lines

How it starts

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

AI Stack Webapp

This is a webapp for sharing AI Stacks so that users can compare and choose the best set of tools for their needs.

Development Process

  • Web App is running on localhost:3019 - I am taking care of the dev servers running properly in my own terminal
  • Convex is running already as well
  • Schema changes are often required and okay
  • Avoid backwards-compat, prefer convex migrations

Prod database access

Never point the local Convex CLI at prod. That broke the local setup multiple times. All prod operations run on the server over ssh ([email protected]). Two scripts wrap this:

# Any Convex CLI command against prod, executed on the server.
# The admin key is minted on the server per call and never stored here.
scripts/convex-prod.sh data models --limit 20
scripts/convex-prod.sh run migrations/<name>:run

# Replace the local dev database with a fresh prod export.
# Destructive locally (auth tables included - log in again). Prod is only read.
scripts/sync-prod-db.sh

The local database lags behind prod. Before work that depends on real rows (catalog data entry, migration dry runs), run scripts/sync-prod-db.sh first. It copies what prod HAS: for a reading no machine has published yet, see "Publishing a measured reading to the local backend".

Prod deploys run through GitHub Actions exclusively. A push to main triggers .github/workflows/deploy-convex.yml, which pulls the ~/aistack checkout on the server and runs pnpm convex deploy there. Never run npx convex deploy against prod from a local machine. To run a new migration on prod: push to main, wait for the workflow, then scripts/convex-prod.sh run migrations/<name>:run.

Never pass --push to scripts/convex-prod.sh, and never give it deploy, dev, or push. The CLI runs from a minimal project dir on the server that holds no convex/ directory, so anything that writes code pushes an EMPTY function set and prod loses every function and every index at once. That is a full outage, and it happened on 2026-08-24. The script now refuses those four forms, and the recovery is the workflow's own command, run on the server: ssh [email protected] "bash -l -c 'cd ~/aistack && git fetch origin main && git reset --hard origin/main && /root/.local/share/pnpm/pnpm i && /root/.local/share/pnpm/pnpm convex deploy'". Table rows survive; the indexes come back with the deploy.

Read the full file on GitHub · 348 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. 3d ago First seen · 348 lines · 4,908 tokens per session scan A 47c87de1752a

Subscribe to this mod's changes

aistack AGENTS.md is an instructions file published in the GitHub repository alp82/aistack (47 stars, last pushed 3d ago), licensed MIT. It adds 4,908 tokens to every session, about $0.0245 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.