Skip to content

Bashcrawl documentation

Every document in this repository, one line each β€” start with the root README to play, AGENTS.md to work on the code, and the guides below for depth.

New to the game? Read getting-started.md, then gameplay.md. Authoring rooms or courses? Start with contributing.md and authoring-courses.md. Working on the engine or the web app? PLATFORM.md has the layers and ARCHITECTURE.md every component. Pages under generated/ are rebuilt by make generate-contract-docs; never edit them by hand.

Backlog of record: GitHub Issues with the fleet labels.

Index

Repository root

Document What it covers
AGENTS.md Bashcrawl's direction is to become the ultimate open home for all things terminal learning: data, tools, resources and transparency, with a fantasy dungeon in your shell and a free browser trainer built from the same content, for everyone…
CHANGELOG.md Release history: the notable changes in each version, newest first.
SECURITY.md Supported versions and how to report a vulnerability privately.
PRD.md The product requirements for Bashcrawl β€” problem, users, goals, features and open questions β€” derived from the README, agent docs, config and code, with anything those sources do not state marked TBD.
logs/ What lands in logs/ during play and testing β€” JSONL gameplay and playtest telemetry, all of it gitignored β€” and the format of each file.
motion/ Where Bashcrawl's ASCII Motion art lives β€” stage clips and static art β€” and how to change a picture.
termforge/ TermForge in brief β€” the zero-dependency terminal framework behind every surface β€” with the commands to try its hosts and links to the full docs.

docs/

Document What it covers
docs/advanced.md Hidden areas, the full dungeon map, scroll format standards, the executable encounter template and agent playtesting, for players and authors going deeper.
docs/analytics.md What the web trainer measures, what it never does, how consent works and how to audit all of it: the public counterpart of web/src/analytics/.
docs/ARCHITECTURE.md The component map behind AGENTS.md: where every part of the dungeon, the TermForge framework, the game engine, the React web app and the tooling lives, what each owns, and the web app's design rules.
docs/authoring-courses.md Write a course without JavaScript: Markdown lessons with rule objectives in their frontmatter, a lab of practice files, and how to check your work.
docs/constitution.md The rules every change to this repo must satisfy, whoever makes it β€” a human or an AI agent. Agents read this before AGENTS.md conventions, the PRD, or the feature catalog. Ratified…
docs/contributing.md How to report issues, set up a development checkout, add rooms, encounters and scrolls, follow the code standards, and open a pull request.
docs/deploy.md The runbook for production on Azure Static Web Apps: the one-time bootstrap, the secrets and variables by exact name, the first deploy, attaching the custom domain, rollback, the Standard plan, and where the security headers come from.
docs/design-system.md The web trainer's visual language: the principles, the tokens, the primitives every screen is built from, and the rules that keep them consistent.
docs/gameplay.md The game's mechanics: core commands, room progression, inventory, health, encounters, hidden rooms, combat and game state.
docs/getting-started.md Install and start playing: clone and play, Binder or a macOS download, the web trainer, the help system, resetting the game and the playtest harness.
docs/PLATFORM.md The platform's five layers, the learning loop, how its patterns align with bashOS and chui, how to extend it, and the contracts that keep it honest.
docs/walkthrough.md Every path, puzzle and command in the dungeon, quest by quest: a complete guide to learning real UNIX commands by exploring the catacombs, solving puzzles and defeating monsters from the command line.
docs/adr/ The index and format of bashcrawl's Architecture Decision Records: one file per hard-to-reverse decision.
docs/amendments/ The append-only log of numbered amendments to the bashcrawl constitution, and how one is proposed and ratified.
docs/generated/ Reference pages generated from the content registries, the courses, the Makefile and the launcher; rebuild them with make generate-contract-docs instead of editing them.

src/

Document What it covers
src/help/ The bash help engine: its scripts, how to run it, and how it works out where the player is and what to suggest next.

docs/schemas/

Document What it covers
docs/schemas/content-registries.v1.md The minimum fields rooms.yaml, encounters.yaml and quests.yaml must carry for the shell and Python runtimes, and how CI enforces them.
docs/schemas/events.v1.md The normative contract for TermForge typed events: the event shape, delivery rules, every type and how events relate to the HUD's state diff.
docs/schemas/plugin.v1.md The normative contract for TermForge plugins: the descriptor, its lifecycle, the rules for plugins in termforge/core/, and validation.
docs/schemas/rules.v1.md The normative contract for TermForge rules β€” declarative predicates over a session that let content say when something is true, as data.
docs/schemas/terminal-protocol.v2.md The normative contract for the TermForge Line protocol (v2): the record every command handler, frontend and fixture exchanges, its display kinds and control actions.

docs/termforge/

Document What it covers
docs/termforge/architecture.md TermForge, the universal terminal framework under the web game: its module map, dependency rules, hook spine, platform services, VFS, sessions and vendoring contract.
docs/termforge/ascii-motion.md How every picture is an ASCII Motion file: where the art lives, how to change or add one, the motion CLI, and what plays where.
docs/termforge/authoring-apps.md Build your own terminal tool on TermForge: the App descriptor, command packs, worlds, plugins, hooks, branding and registering it with the hosts.
docs/termforge/hidden-gem.md DAEMON STORM, the secret pixel shooter in the TermForge HUD: how to open it, how its pixels and rules work, and how to recapture its screenshots.
docs/termforge/telnet-host.md Serve the game or any TermForge app over lightweight telnet/TCP: flags, negotiated and raw modes, the session model, hub mode and the security posture.