This guide covers integrating turbo-flow-claude-like capabilities
within the sindri environment. The integration brings enterprise-grade AI development features
including flexible agent management, multi-tier context systems, tmux workspaces, and verification-first development.
Thanks for the inspiration Marcus Patman!
Note
As of 2025-08-28 no commercial or community DevPod provider exists targeting fly.io
- 600+ Agents: Default install of Chris Royse's subagents
- YAML Configuration: Easily add/remove agent sources
- Smart Discovery: Search agents by name and functionality
- Automatic Updates: Keep agents current with upstream sources
- Global Context: CLAUDE.md, CCFOREVER.md
- User Preferences: Personal coding style and preferences
- Project Context: Project-specific instructions and overrides
- Hierarchical Loading: Automatic context composition
- Multi-Window Setup: Claude-1, Claude-2, Monitor, htop
- Session Persistence: Survives disconnections and VM suspensions
- Smart Monitoring: Auto-start monitoring tools
- Quick Navigation: Aliases and shortcuts
- Graceful Shutdown: Automatic session backup before VM suspension
- Smart Resume: Session restoration detection and guided recovery
- Comprehensive Testing: Code, tests, linting, type safety validation
- Quality Gates: Standards enforcement for all operations
- Systematic Validation: Structured approach to code quality
- Best Practices: Following established development patterns
- Manifest-Based Activation: Control which tools install via
active-extensions.conf - Standardized API: All extensions implement 6 required functions (prerequisites, install, configure, validate, status, remove)
- CLI Management: Use
extension-managerfor activating, installing, and managing extensions - Dependency Management: Explicit prerequisite checking before installation
- Idempotent Operations: Safe to re-run installations
- Clean Removal: Proper uninstall with dependency warnings
Available Extensions:
- Core:
workspace-structure,nodejs,ssh-environment - Claude AI:
claude,nodejs-devtools,agent-manager,context-loader - Languages:
python,rust,golang,ruby,php,jvm,dotnet - Infrastructure:
docker,infra-tools,cloud-tools,ai-tools - Tools:
monitoring,tmux-workspace,playwright
# Clone and customize configuration
git clone https://github.com/pacphi/sindri
cd sindri
# Optional: Customize configuration before deployment
nano docker/config/agents-config.yaml # Configure agent sources
nano docker/lib/agent-discovery.sh # Add discovery functions
nano docker/config/tmux.conf # Customize tmux settings
nano docker/lib/tmux-workspace.sh # Modify workspace launcher
nano docker/config/workspace-aliases # Customize all workspace aliases and shortcuts
# Deploy with your configuration
./scripts/vm-setup.sh --app-name my-claude-env# SSH into your VM
ssh developer@my-claude-env.fly.dev -p 10022
# Run the enhanced configuration
/workspace/scripts/vm-configure.sh
# Validate extension installations
extension-manager validate-all# Authenticate Claude Code
claude
# Install required extensions (auto-activates)
extension-manager install agent-manager
extension-manager install tmux-workspace
# Start the tmux workspace
tmux-workspace
# Install agents (see AGENTS.md for complete management guide)
agent-install
# Begin AI-assisted development
cf-swarm "Build a modern web application with authentication"Prerequisites: Requires the agent-manager extension to be installed.
# Install the agent-manager extension (auto-activates)
extension-manager install agent-managerFor complete agent management including installation, search, discovery, custom sources, and development, see AGENTS.md.
Key commands (available after agent-manager extension is installed):
agent-install- Install all configured agentsagent-find <term>- Search for specific agentsagent-help- Show all available agent commands
# View all context files
load-context
# View specific context
load-global # Global context only
load-user # User preferences only
load-project # Project context only
# Validate context system
validate-context-
Global Context (
/workspace/context/)CLAUDE.md: Core configuration and rulesCCFOREVER.md: Quality assurance protocols
-
User Preferences (
~/.claude/CLAUDE.md)- Personal coding style
- Preferred frameworks and tools
-
Project Context (
./CLAUDE.md)- Project-specific instructions
- Architecture decisions
- Development workflow
-
Session Overrides (
$CLAUDE_SESSION_CONTEXT)- Runtime modifications
- Temporary session changes
# Claude Flow with automatic context loading
cf-swarm "Implement user authentication"
cf-hive "Optimize database performance"
# Verify context loading
context-hierarchyPrerequisites: Requires the tmux-workspace extension to be installed.
# Install the tmux-workspace extension (auto-activates)
extension-manager install tmux-workspace# Start/attach to workspace
tmux-workspace
# Force create new session
tmux-workspace --new
# Check session status
tmux-status- Window 0 (Claude-1): Primary Claude Code session
- Window 1 (Claude-2): Secondary Claude session
- Window 2 (Monitor): Claude usage monitoring
- Window 3 (htop): System resource monitoring
# Quick window switching
t0 # Switch to Claude-1
t1 # Switch to Claude-2
t2 # Switch to Monitor
t3 # Switch to htop
# Session management
tmux-attach # Attach to existing session
tmux-list # List all sessions
tmux-cleanup # Clean up old sessions
tmux-resume-workspace # Smart resume (existing or new)The enhanced tmux system provides robust session management:
Automatic Backup During VM Suspension:
# When you suspend the VM, sessions are automatically:
# 1. Backed up to /workspace/backups/shutdown-YYYYMMDD-HHMMSS/
# 2. All panes receive Ctrl+S for editor saves
# 3. Users get notification messages
# 4. Session layouts are preserved
./scripts/vm-suspend.sh # Triggers automatic session backupSmart Resume After VM Restart:
# When VM resumes, the system detects:
# - Active sessions (automatically restored by tmux)
# - Available backup files for manual restoration
# - Session save files from helper functions
./scripts/vm-resume.sh # Shows detailed restoration statusManual Session Management:
# Session backup and restore
tmux-backup-all # Manually backup all current sessions
tmux-find-backups # List available backups
tmux-restore-last # Restore from most recent shutdown backup
tmux-save # Save current session layout
tmux-restore # Restore saved session layout
# Development workflows
tmux-dev-quick # Quick 3-pane development layout
tmux-resume-workspace # Smart workspace resumption# Validate extension installations
extension-manager validate-all
# Context system validation
validate-context
# System status check
/workspace/.system/lib/system-status.sh# Create project with context
new-project my-app node
cd my-app
# Add project-specific context
nano CLAUDE.md# Start tmux workspace
tmux-workspace
# Load mandatory agents and begin development
cf-swarm "
Create a REST API for user management with:
- Authentication and authorization
- User CRUD operations
- Data validation
- Error handling
- Unit and integration tests
Use doc-planner and microtask-breakdown agents to structure the work.
"# Run quality checks throughout development
npm test # Run test suite
npm run lint # Check code standards
npm run typecheck # Validate types
npm run build # Ensure compilation
# Validate extension installations
extension-manager validate-all# Playwright is pre-configured
npm run playwright
npx playwright test --ui| File | Purpose | Location |
|---|---|---|
agents-config.yaml |
Agent sources | /workspace/config/ |
tmux.conf |
Tmux configuration | /workspace/config/ |
CLAUDE.md |
Global context | /workspace/context/ |
CCFOREVER.md |
Quality assurance | /workspace/context/ |
# Context system
export CLAUDE_SESSION_CONTEXT="Additional session instructions"
# Tmux workspace
export TMUX_SESSION_NAME=claude-workspaceagent-install # Install all agents
agent-list # List available agents
agent-update # Update agents
agent-validate # Validate configuration
agent-count # Count total agents
agent-find <term> # Search for agents
agent-sample # Sample random agentsload-context # View all context
validate-context # Validate context system
context-hierarchy # Show loading hierarchytmux-workspace # Start workspace
tmux-status # Show session status
tmux-cleanup # Clean old sessions
t0, t1, t2, t3 # Quick window switchingclaude # Start Claude Code
dsp # Claude with skip permissions
extension-manager validate-all # Validate extension installations
monitor-claude # Start usage monitoring# Check network connectivity
curl -I https://api.github.com
# Validate agent configuration
agent-validate
# Re-run installation
agent-install# Check file permissions
find /workspace/context -type f -exec ls -la {} \;
# Validate context files
validate-context
# Test context loading
source /workspace/.system/lib/context-loader.sh
load_all_context# Check tmux installation
tmux -V
# Validate configuration
tmux -f /workspace/config/tmux.conf list-keys
# Force new session
tmux-workspace --new# Check system logs
tail -20 /workspace/logs/system.log
# Show current status
/workspace/.system/lib/system-status.sh
# Validate extension installations
extension-manager validate-all-
Validate Extension Installations
extension-manager validate-all
-
Check System Status
/workspace/.system/lib/system-status.sh
-
Review Logs
ls -la /workspace/logs/ tail -50 /workspace/logs/system.log
-
Reset Configuration
/workspace/scripts/vm-configure.sh --interactive
Create your own agents following the Claude Code sub-agent format:
name: My Custom Agent
description: Specialized agent for my specific needs
## Instructions
You are a specialized agent that helps with...
## Capabilities
- Specific capability 1
- Specific capability 2
## Usage Examples
Use this agent when you need to...Customize global context for your organization:
# Edit global context
nano /workspace/context/CLAUDE.md
# Add organization-specific rules
# Update development standards
# Include security requirements- Use
agent-findinstead of loading all agents - Configure only needed sources in agents-config.yaml
- Regular cleanup with agent update cycles
- Keep project context files small and focused
- Use session overrides for temporary changes
- Validate context regularly to avoid bloat
- Adjust scrollback buffer if memory constrained
- Use session persistence to avoid repeated startup
- Monitor resource usage in htop window
# Your existing data is preserved
# Run the integration setup
/workspace/scripts/vm-configure.sh
# Validate extension installations
extension-manager validate-all# Copy your custom agents
cp /path/to/your/agents/*.md /workspace/agents/
# Copy your context customizations
cp /path/to/your/CLAUDE.md /workspace/context/
# Update agents config to include your sources
nano /workspace/config/agents-config.yaml- Documentation:
/workspace/docs/ - Examples:
/workspace/projects/templates/ - Logs:
/workspace/logs/ - Configuration:
/workspace/config/ - Validation:
extension-manager validate-all
For issues and contributions, see the project repository.
Ready to begin AI-assisted development with enterprise-grade capabilities! 🚀