AGENTS.md — AI Agent Guide for Wargames¶
Since 2026-11-23 this directory is the Wargames agency's back office. Its pages are published as a collection of lifehacker.dev:
overthewire/is nowpages/_wargames/at the repository root, served under/wargames/(the URLs were/docs/wargames/…), and the images are inassets/images/wargames/. Read everyoverthewire/path below aspages/_wargames/. The pages build with the rest of lifehacker.dev (scripts/ci/build.sh), not with thejekyll_theme.pycommand below. The refresh tool moved with them:scripts/docs-aggregator/transform.pywrites/wargames/…permalinks (URL_PREFIX) and makes relative reference links resolve, so a refresh no longer undoes the move. To refresh, stage the tool's output anywhere (--output-dir), unwrap it to one paragraph per line, runtools/carry-study-guides.py <staged>/wargames/overthewire --old-dir ../../pages/_wargames, then move the result intopages/_wargames/. A dry run against OverTheWire on 2026-11-24 reproduced all 219 permalinks and showed upstream changes in three pages (bandit/bandit14.md,leviathan/index.md,narnia/index.md); they have not been applied. Decision:docs/adr/0003-agencies-as-collections.md.Cross-tool entry point for AI coding agents (GitHub Copilot, Claude Code, Cursor, Aider, etc.)
Project snapshot¶
- What it is: A content-only Jekyll site — a vendored markdown mirror of the OverTheWire challenges, published on GitHub Pages
- Theme source: remote (
remote_theme: bamr87/zer0-mistakes) — this repo vendors zero theme files - Theme repo: https://github.com/bamr87/zer0-mistakes
- Content: at the repo root —
index.md(homepage) andoverthewire/**(the challenge pages). There is nopages/directory and no populated Jekyll collections.
Quick commands¶
# Build (zer0-CMS's Jekyll-theme option: the theme at the tag the root workspace.yml pins, Jekyll 4.4.1
# in the image tools/jekyll/Dockerfile pins — Docker, no Ruby) into _site/
python3 ../../tools/jekyll_theme.py build wargames
# Lint (markdown prose must be one paragraph per line — CI enforces it)
python3 ../../tools/unwrap-prose.py --check # --write to fix
There is no test suite. CI is the safety net — see the workflow list in CLAUDE.md.
Operating rules¶
- Make minimal, surgical changes. Match existing style.
- Validate before declaring done — run a Jekyll build and
python3 ../../tools/unwrap-prose.py --check. - Site content lives at the repo root (
index.md,overthewire/**); site data lives in_data/. - Don't hand-edit the upstream text in
overthewire/**— those pages are vendored and re-synced from upstream byscripts/docs-aggregator/. The exceptions are the Study guide block at the end of each page (between thestudy-guidemarker comments) and the site-owned front matter (description,excerpt,title, …); after a re-sync, restore them with../../tools/unwrap-prose.py --writethentools/carry-study-guides.py(seeREADME.md). Study guides must stay spoiler-free: no passwords, payloads or finished solutions. - No theme overrides here. This repo is a pure
remote_themeconsumer with no_layouts/,_includes/,_sass/, or_plugins/— keep it that way. Theme changes belong upstream in zer0-mistakes. The theme's documented consumer layers are fine and are how the site is styled:_config.ymlkeys,_data/, page front matter, andassets/css/user-overrides.css/assets/js/user-overrides.js(loaded becauseuser_overrides: true).remote_themedoes not merge the theme's own_config.yml, so any key the chrome reads must be set in this repo's_config.yml. - Verify presentation in a browser, against what production serves — not a plain gem-theme build, which merges theme config and hides defects. See "Local development" in
README.md.
See CLAUDE.md for the fuller site-wiring reference and README.md for the reader-facing overview.