wc3-map-ts-template: Instructions file for Codex

AGENTS.md

wc3-map-ts-template AGENTS.md is an instructions file for Codex, OpenCode from eiriksgata/wc3-map-ts-template. It costs 2,725 tokens per session, scanned A, original, MIT.

A set of repository instructions for a Warcraft III map project that uses TypeScript compiled to Lua. It explains the project structure, tools, commands, and editing rules.

In plain words
What is it for?
Use it when navigating the repository, changing map code or data, running builds, and working with the KKWE editor.
Why use it?
It gives an agent the local conventions it needs to make changes without putting files in the wrong place or using the wrong build process.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is eiriksgata/wc3-map-ts-template's own configuration. It tells Codex and OpenCode how to work on wc3-map-ts-template 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 wc3-map-ts-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to eiriksgata/wc3-map-ts-template. 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/eiriksgata/wc3-map-ts-template/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/eiriksgata/wc3-map-ts-template

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 wc3-map-ts-template AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/eiriksgata/wc3-map-ts-template/agents-md"><img src="https://agentmods.dev/badge/instructions/eiriksgata/wc3-map-ts-template/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,725 This file is loaded in full into every session.
When invoked 2,725 The same file — it is already loaded in full.
Security scan A 0 findings. 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.02725 $0.02725
Opus 5.5 $0.01090 $0.01090
Sonnet 5.5 $0.00545 $0.00545
Haiku 4.5 $0.00272 $0.00272

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

Security

Grade A, and why

wc3-map-ts-template 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 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.

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 · 166 lines

How it starts

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

Repository Guidelines

This repository is a Warcraft III 1.27a map development template using TypeScript-to-Lua.

Project Identity

  • Project: wc3-map-ts-template
  • Primary goal: build Warcraft III maps with TypeScript, compile to Lua, then package to w3x.
  • Core stack: TypeScript, typescript-to-lua, @eiriksgata/wc3ts, KKWE, w3x2lni.
  • Package manager: Yarn (see packageManager in package.json).

Project Structure

  • src/: TypeScript source code for gameplay, systems, UI, and examples.
  • src/main.ts: main runtime entry, exports initialize and onHotReload.
  • src/ydlua/: JAPI bridge layer. Initialize before using extended JAPI APIs.
  • scripts/: build and dev orchestration.
  • scripts/build.ts: production build pipeline.
  • scripts/dev.ts: development watch and hot-reload notification pipeline.
  • scripts/common.ts: shared build helpers.
  • lua/bootstrap.lua: Lua bootstrap entry, handles dev and prod loading differences.
  • maps/: w3x2lni LNI map project sources (KKWE opens this directory directly).
  • maps/map/: map data including generated Lua main.lua in production mode.
  • maps/table/: LNI object-editor / map-info ini files; KKWE rewrites these on save.
  • dist/: generated build outputs, including dist/map.w3x and dev-mode Lua outputs.
  • dev_lib/: local tool binaries (KKWE, w3x2lni).
  • config.json: paths for w3x2lni and KKWE.

Build And Run Commands

Use only scripts that exist in package.json.

  • yarn dev: development mode with initial build + tstl watch + hot-reload notification generation.
  • yarn build: production build (compile, inject Lua call, bootstrap copy, minify, package map).
  • yarn build:dev: one-off development build for agent validation and local debug packaging.
  • yarn build:prod: explicit production alias for build.ts prod mode.
  • yarn test: compile and then launch map through scripts/test.ts.
  • yarn watch: raw tstl watch.
  • yarn build:map: package maps to dist/map.w3x through w3x2lni.
  • yarn test:map: launch Warcraft III with dist/map.w3x via KKWE.

Read the full file on GitHub · 166 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 · 166 lines · 2,725 tokens per session scan A f33efdfb1754

Subscribe to this mod's changes

wc3-map-ts-template AGENTS.md is an instructions file published in the GitHub repository eiriksgata/wc3-map-ts-template (28 stars, last pushed 2mo ago), licensed MIT. It adds 2,725 tokens to every session, about $0.0109 per session on Opus 5.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-09-03.

Related

wc3-map-ts-template AGENTS.md compared with instructions from other repositories

wc3-map-ts-template AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wc3-map-ts-template AGENTS.mdeiriksgata/wc3-map-ts-templateInstructions file282mo agoMITA2,725Codex, 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