Welcome to the complete documentation for devkit. Start here to understand what's available.
New to this environment? Start here:
-
SETUP.md - Complete installation and configuration guide
- Initial installation steps
- Database setup (PostgreSQL, Redis)
- SSL certificate generation
- Environment variable configuration
-
Run the setup script (after cloning):
./scripts/setup-all.sh
Project Overview
- What this environment is
- Core stack overview
- AI agent workforce
- Quick installation summary
Complete Setup Guide
- Step-by-step installation
- Local database setup
- PostgreSQL configuration
- Redis setup
- MongoDB (optional)
- SSL certificate generation
- Local services management
- Environment variable setup
- Development helpers
- Troubleshooting initial setup
Tool Reference Guide
- Deep dive into each tool
- Command reference for every tool
- Keyboard shortcuts
- Common workflows
- Performance tips
- Quick reference tables
Keyboard Shortcuts & Quick Commands
- Terminal keybindings
- Zellij pane management
- LazyGit navigation
- Common aliases
Problem Solving
- Installation issues
- Tool-specific problems
- Database troubleshooting
- Shell configuration issues
- Performance optimization
- SSL/TLS debugging
- System health checks
All scripts are in /scripts/ and copied to ~/.local/bin/ during setup.
# Complete setup (runs all below)
setup-all.sh
# Database setup
setup-db.sh
# Initializes PostgreSQL and Redis
# SSL certificates
setup-ssl.sh
# Generates self-signed certificates for HTTPS development
# Service management
start-services.sh # Start PostgreSQL, Redis, Docker
stop-services.sh # Stop all serviceschmod +x ~/.local/bin/*.sh# Setup from scratch
~/devkit/scripts/setup-all.sh
# Setup just databases
~/.local/bin/setup-db.sh
# Generate SSL certs
~/.local/bin/setup-ssl.sh
# Start services
~/.local/bin/start-services.sh
# Stop services
~/.local/bin/stop-services.shTemplate for environment variables. Copy to ~/.env and fill in values.
Includes:
- Database connection strings
- API keys (OpenAI, Anthropic, Gemini, GitHub)
- SSL certificate paths
- Application configuration
cp .env.example ~/.env
nano ~/.env # Edit with your valuesGhostty terminal configuration. Includes:
- Font size and styling
- Mouse behavior
- Reload config keybinding
- Theme (Catppuccin)
- Cursor style (bar, no blink)
- Window padding and state persistence
- Copy-on-select
Git delta configuration for syntax-highlighted diffs. Includes:
- Side-by-side diffs with line numbers
- Catppuccin Mocha syntax theme
- Navigate mode (n/N to jump between files)
- Histogram diff algorithm
- zdiff3 merge conflict style
Shell enhancements (source in .zshrc). Includes:
- Zoxide init (smart cd with
zandzi) - FZF + fd integration (fast file/dir search with previews)
- Catppuccin Mocha colors for fzf
- eza aliases (ls, ll, la, tree)
- Quick navigation (.., ..., ....)
- Zellij layout aliases (ztest, zmig, zapi, zpipe, zdebug, zmon, zdb)
Zellij window manager configuration and layouts:
layouts/monitor.kdl- Monitor layout (btop + logs + Docker)layouts/database.kdl- Database layout (PostgreSQL + Redis)config.kdl- Zellij keybindings and settings
Shell configuration with:
- Tool initialization
- Aliases
- Functions
- Environment setup
# Clone and setup
git clone <repo> ~/devkit
cd ~/devkit
./scripts/setup-all.sh
# Edit environment variables
nano ~/.env
# Reload shell
source ~/.zshrc
# Start services
start-services.sh
# Launch a layout
ztest
# Check service status
brew services list# Start all services
start-services.sh
# Launch a Zellij layout
ztest # Test runner
zapi # API dev workspace# PostgreSQL
psql -d mydeveloper -U devuser
# Redis
redis-cli
# MongoDB (if setup)
mongosh# Stop services
stop-services.sh
# Exit Zellij
exit # In Zellij paneAdd to .zshrc:
alias db-start='brew services start postgresql@15'
alias db-stop='brew services stop postgresql@15'
alias redis-start='brew services start redis'
alias dev='cd ~/projects && zdev'
alias logs='tail -f ~/.local/var/logs/dev.log'Create layout in ~/.config/zellij/layouts/custom.kdl:
layout {
pane split_direction="horizontal" {
pane command="zsh"
pane command="lazygit" size="30%"
}
}Use with: zellij --layout ~/.config/zellij/layouts/custom.kdl
Create environment-specific .env files:
.env # Local development (git-ignored)
.env.production # Production config
.env.staging # Staging config
.env.test # Test databasePROJECT/
├── README.md ← Project overview
├── SETUP.md ← Installation & config
├── TOOLS.md ← Tool reference
├── CHEATSHEET.md ← Keyboard shortcuts
├── TROUBLESHOOTING.md ← Problem solving
├── DOCUMENTATION.md ← This file
│
├── scripts/
│ ├── setup-all.sh ← Master setup
│ ├── setup-db.sh ← Database setup
│ ├── setup-ssl.sh ← SSL generation
│ ├── start-services.sh ← Start services
│ └── stop-services.sh ← Stop services
│
├── .env.example ← Environment template
├── .zshrc (if present) ← Shell config
├── .config/
│ ├── ghostty/config ← Terminal config
│ ├── git/delta.gitconfig ← Git delta config
│ └── shell/enhancements.zsh ← Shell enhancements
│
└── zellij/
├── config.kdl ← Zellij config
└── layouts/
├── testrunner.kdl ← Test runner + watch
├── migrations.kdl ← DB migrations + queries
├── api.kdl ← API development
├── pipeline.kdl ← CI/CD + deploy
├── debug.kdl ← Debug + floating notes
├── monitor.kdl ← System monitor
└── database.kdl ← Database consoles
See opencode/aig_agents/ for specialized AI agents.
Current agents:
- Advisor - Task routing
- Architect - System design
- Engineer - Feature implementation
- Lead Dev - Fast fixes
- QA - Test generation
- Reviewer - Code review
- Security - Vulnerability scanning
- Linear - Project management
Invoke with: @agent-name in OpenCode
- Start: SETUP.md
- Run:
./scripts/setup-all.sh - Configure: Edit
~/.env
- Reference: TOOLS.md
- Shortcuts: CHEATSHEET.md
- Workflow: Use Zellij panes
- First: TROUBLESHOOTING.md
- Then: Check SETUP.md relevant section
- Last: Search tool's GitHub issues
After running setup-all.sh, verify:
- All Homebrew tools installed:
brew list | grep -E "(zellij|lazygit|yazi|starship|btop|bat|ripgrep|eza|fd|fzf|zoxide|git-delta|jq|tldr|dust)" - PostgreSQL running:
brew services list | grep postgresql - Redis running:
redis-cli ping - SSL certificates generated:
ls ~/.local/etc/ssl/ - Environment file created:
ls ~/.env - Configurations symlinked:
ls -l ~/.config/zellij ~/.config/ghostty - Shell reloaded:
echo $SHELLshould be/bin/zsh - Scripts executable:
ls -la ~/.local/bin/*.sh
For setup issues:
- Read SETUP.md - Step-by-step guide
- Check TROUBLESHOOTING.md - Common solutions
For tool questions:
- Read TOOLS.md - Complete reference
- Check CHEATSHEET.md - Keyboard shortcuts
- Visit tool's official documentation (links in TOOLS.md)
For workflow issues:
- Check CHEATSHEET.md for shortcuts
- Read relevant section in TOOLS.md
- Try command:
man <toolname>
- Want to start? → SETUP.md
- Need help using tools? → TOOLS.md
- Forgot a shortcut? → CHEATSHEET.md
- Something broke? → TROUBLESHOOTING.md
- Quick reference? → TOOLS.md
Last updated: 2026-03-13