How bamr87/bashcrawl works
Bashcrawl teaches POSIX terminal skills through a filesystem dungeon, with a browser trainer documented as a second way to play. The tree exposes TermForge, the terminal framework behind the game and monitoring demos, plus a Python playtest harness that drives a real Bash session in a sandbox and scores content gaps. The browser application and dungeon content are not present in this tree, so their internal runtime stages cannot be mapped here; the documented browser capabilities are noted without inventing implementation links.
Main entry points: index.js Node framework API · shell.js Shell kernel · harness.py Playtest harness · host-tty.js TTY host
Components 30
TermForge apps
- Bashcrawl game
termforge/apps/bashcrawl.js - Procwatch
termforge/apps/procwatch/index.js - Agentwatch
termforge/apps/agentwatch/index.js - Daemon Storm
termforge/node/gem.js
Shell runtime
- Shell kernel
termforge/core/shell.js - Command parser
termforge/core/parser.js - POSIX commands
termforge/core/packs/posix.js - Shell state
termforge/core/state.js - Virtual filesystem
termforge/core/vfs.js - Shell hooks
termforge/core/hooks.js - Command registry
termforge/core/registry.js - Terminal art
termforge/core/art.js - ASCII motion
termforge/core/ascii-motion.js - Input handling
termforge/core/input.js - Session controller
termforge/core/session.js
Terminal hosts
- Node framework API
termforge/node/index.js - TTY host
termforge/node/host-tty.js - Telnet host
termforge/node/host-telnet.js - Terminal UI
termforge/node/tui.js - Pixel buffer
termforge/node/pixels.js
Playtest harness
- Bash session
src/playtest/bash_session.py - Game sandbox
src/playtest/sandbox.py - Playtest harness
src/playtest/harness.py - Play context
src/playtest/context.py - Event recorder
src/playtest/recorder.py - MCP server
src/playtest/mcp_server.py - Gap scorer
src/playtest/scorer.py
Other components
- Player
- AI playtest agent
- Browser trainer
Connections 38
- Player → Bashcrawl game: plays
README.md - Player → Browser trainer: plays
README.md - Bashcrawl game → Shell kernel: creates sessions
termforge/apps/bashcrawl.js - Bashcrawl game → Node framework API: loads framework
termforge/apps/bashcrawl.js - Procwatch → Node framework API: creates shell
termforge/apps/procwatch/index.js - Agentwatch → Node framework API: creates shell
termforge/apps/agentwatch/index.js - Shell kernel → Command parser: parses commands
termforge/core/shell.js - Shell kernel → Virtual filesystem: uses filesystem
termforge/core/shell.js - Shell kernel → Shell state: uses state
termforge/core/shell.js - Shell kernel → Shell hooks: runs hooks
termforge/core/shell.js - Shell kernel → Command registry: uses registry
termforge/core/shell.js - Shell kernel → ASCII motion: uses motion
termforge/core/shell.js - Shell kernel → Terminal art: uses art
termforge/core/shell.js - POSIX commands → Command parser: parses input
termforge/core/packs/posix.js - Node framework API → Shell kernel: exports shell
termforge/node/index.js - Node framework API → POSIX commands: exports commands
termforge/node/index.js - Node framework API → Shell state: exports state
termforge/node/index.js - Node framework API → Virtual filesystem: exports filesystem
termforge/node/index.js - Node framework API → Shell hooks: exports hooks
termforge/node/index.js - Node framework API → Command registry: exports registry
termforge/node/index.js - Node framework API → Input handling: exports input
termforge/node/index.js - Node framework API → Session controller: exports sessions
termforge/node/index.js - TTY host → Node framework API: loads framework
termforge/node/host-tty.js - TTY host → Terminal UI: uses interface
termforge/node/host-tty.js - TTY host → Bashcrawl game: hosts game
- TTY host → Procwatch: hosts monitor
- TTY host → Agentwatch: hosts dashboard
- Terminal UI → Input handling: reads input
termforge/node/tui.js - Daemon Storm → Pixel buffer: renders pixels
termforge/node/gem.js - Telnet host → Node framework API: hosts apps
README.md - AI playtest agent → MCP server: plays through
README.md - MCP server → Playtest harness: provides tools
README.md - Playtest harness → Game sandbox: creates sandbox
src/playtest/harness.py - Playtest harness → Bash session: drives session
src/playtest/harness.py - Playtest harness → Play context: builds context
src/playtest/harness.py - Playtest harness → Event recorder: records events
src/playtest/harness.py - Bash session → Game sandbox: runs in
src/playtest/bash_session.py - Playtest harness → Gap scorer: scores gaps
README.md