Architecture: Bootstrap Scripts
Component: scripts/bootstrap/Type: Environment Configuration Tools: Bash, Node.js, SPT
Design
The bootstrap scripts define the "Software" layer of the development environment. They are primarily driven by the setup.sh script, which transforms a generic container into a specialized "AI-Augmented" workspace.
Core Capabilities
- Tooling Installation:
uv: Python package manager.npm: Node.js packages (global).claude-code,spt: AI assistants.
- MCP Integration:
- Installs and registers Model Context Protocol servers (Playwright, Chrome DevTools).
- Configures
~/.config/claude/mcp.json.
- Alias Injection:
- Injects extensive shell aliases for workflow optimization (via
config/aliases.shand logic insetup.sh).
- Injects extensive shell aliases for workflow optimization (via
- Claude Context:
- Deploys
CLAUDE.mdandagents/directories to guide the AI assistant.
- Deploys
Initialization Flow
- Provisioning:
infraspins up the container. - Startup: Coder agent executes
startup_script. - Clone: User repo and dotfiles are cloned.
- Setup:
scripts/bootstrap/setup.sh(or dotfiles scripts) are executed.- Installs global tools.
- Configures MCP.
- Sets up shell environment.