boj-server copilot-instructions.md

A repository rulebook for GitHub Copilot that sets coding, file-location, licensing, language, container, and safety conventions.

In plain words
What is it for?
It guides new files, build and test commands, container definitions, and Idris2, Zig, Rust, Haskell, OCaml, Coq, and Lean code.
Why use it?
It gives the coding assistant project-specific boundaries before it changes code, helping avoid forbidden tools, languages, patterns, and file locations.

Instructions file for GitHub Copilot

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/hyperpolymath/boj-server/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/hyperpolymath/boj-server

Made for: GitHub Copilot.

Per session 510 This file is loaded in full into every session.
When invoked 510 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.00510 $0.00510
Opus 5 $0.00255 $0.00255
Sonnet 5 $0.00102 $0.00102
Haiku 4.5 $0.00051 $0.00051

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

Security

Grade A, and why

boj-server copilot-instructions.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 yesterday.

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.

.github/copilot-instructions.md · 61 lines

What it actually says

Copilot Instructions

Before Writing Code

  • Read 0-AI-MANIFEST.a2ml in the repo root for canonical file locations.
  • State files (.a2ml) live in .machine_readable/ ONLY, never the root.

License

  • SPDX: MPL-2.0 on all new files.
  • Never use AGPL-3.0.
  • Copyright: Jonathan D.A. Jewell (hyperpolymath) <[email protected]>

Code Style

  • Use descriptive variable names.
  • Annotate and document all files.
  • Add SPDX header to every source file.
  • Use just for build/test/lint commands.

Banned Patterns

  • Idris2: no believe_me, no assert_total
  • Haskell: no unsafeCoerce, no unsafePerformIO
  • OCaml: no Obj.magic
  • Coq: no Admitted
  • Lean: no sorry
  • Rust: no transmute unless FFI with // SAFETY: comment

Banned Languages

  • No TypeScript (use AffineScript)
  • No Node.js / npm / bun (use Deno)
  • No Go (use Rust)
  • No Python (use Julia or Rust)

Containers

  • Use Podman, never Docker.
  • Name the file Containerfile, never Dockerfile.
  • Base image: cgr.dev/chainguard/wolfi-base:latest.

ABI/FFI

  • ABI definitions in Idris2 (src/abi/).
  • FFI implementations in Zig (ffi/zig/).
  • Generated C headers in generated/abi/.

State Files

Never create these in the repo root: STATE.a2ml, META.a2ml, ECOSYSTEM.a2ml, AGENTIC.a2ml, NEUROSYM.a2ml, PLAYBOOK.a2ml. They belong in .machine_readable/ only.

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. yesterday First seen · 61 lines · 510 tokens per session scan A e9ed539e47f4

Subscribe to this mod's changes

boj-server copilot-instructions.md is an instructions file published in the GitHub repository hyperpolymath/boj-server (3 stars, last pushed 4d ago), licensed MPL-2.0. It adds 510 tokens to every session, about $0.0026 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.