Blueprint AGENTS.md

A project instruction file for the Blueprint TypeScript branch, defining its authority order, development workflow, architecture, package-manager rules, and checks.

In plain words
What is it for?
Use it when working on Blueprint to follow its pnpm workflow, preserve worktree changes, update task records and documentation, and run the required checks.
Why use it?
It gives coding agents consistent project-specific rules for planning, editing, testing, documentation, and task tracking.

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/magolor/blueprint/agents-md
Clone the repo
git clone --depth 1 https://github.com/Magolor/Blueprint

Made for: Codex, OpenCode.

Per session 583 This file is loaded in full into every session.
When invoked 583 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.00583 $0.00583
Opus 5 $0.00292 $0.00292
Sonnet 5 $0.00117 $0.00117
Haiku 4.5 $0.00058 $0.00058

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

Security

Grade A, and why

Blueprint 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 · 69 lines

How it starts

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

Blueprint Agent Guide

Purpose and authority

The typescript branch is the active Blueprint product line. It is a strict starter for a small Node SDK and CLI package.

Use this authority order:

  1. Current user instructions and this guide.
  2. Shipped code, tests, package artifacts, and CI.
  3. README.en.md and docs/README.md.
  4. Current plans and reports.

package.json owns direct dependencies and commands. pnpm-lock.yaml owns resolved dependency state. Use pnpm only.

Work loop

  1. Run rtk pnpm tasks --ready for non-trivial work.
  2. Claim an existing task before you create one.
  3. Keep resumable state only in docs/tasks.yaml.
  4. Use one linked plan for architectural or multi-slice work.
  5. Preserve unrelated changes and other worktrees.
  6. Run focused checks during implementation.
  7. Run rtk pnpm check before closeout.
  8. Update canonical docs and docs/DEVLOG.md.
  9. Remove completed or canceled queue rows.

The queue supports draft, ready, active, blocked, and postponed. Record cancellation during closeout, then remove the row.

TypeScript architecture

  • Keep one cohesive native ESM package until a real boundary earns another package.
  • Use src/index.ts as the only public SDK boundary.
  • Use src/cli.ts as a thin adapter over the SDK.
  • Validate external values from unknown.
  • Use direct functions for stateless behavior. Do not invent a template-domain object.
  • Keep strict compiler options enabled.
  • Add no framework, GUI, service, database, plugin, or workspace without a concrete requirement.

Commands

Prefix local agent commands with rtk.

rtk pnpm install --frozen-lockfile
rtk pnpm check:fast
rtk pnpm check
rtk pnpm build
rtk pnpm package:check

pnpm check is the complete code, documentation, and package gate.

Branch and skill contract

typescript is active and is the hosted default. python is the compatibility line. These are the only long-lived branches.

Product files can differ. The .agents/skills/heaven-style/ tree must be byte-identical on every configured product branch. The default branch set is python typescript.

Read the full file on GitHub · 69 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 · 69 lines · 583 tokens per session scan A 70c95cad98da

Subscribe to this mod's changes

Blueprint AGENTS.md is an instructions file published in the GitHub repository Magolor/Blueprint (5 stars, last pushed 6d ago), licensed MIT. It adds 583 tokens to every session, about $0.0029 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.