@chude/ai-dev-environment
v4.8.1
Published
Production-grade development environment for AI developers working with Claude Code and AI tools. Features intelligent navigation, automated project discovery, comprehensive validation, and enterprise-ready reliability.
Maintainers
Readme
AI Dev Environment v4.6.4
Production-grade development environment for AI developers working with Claude Code and AI tools. Features intelligent navigation, automated project discovery, comprehensive validation, and reliability.
Features
Navigation System (go-* pattern)
- Instant navigation: Jump to any project with
go-projectname - Dynamic discovery: Find and add projects automatically
- Extensible design: Add new projects and aliases on the fly
- Cross-session persistence: Aliases survive between sessions
Development Tools
- Project management: Discover, add, and organize projects
- Quick operations: Start, test, and build projects with simple commands
- Memory system integration: Works with CLAUDE.md and MCP-Nexus
- Git integration: Quick git commands with short aliases
AI-First Design
- Claude Code ready: Optimized for use with Claude Code sessions
- MCP compatible: Integrates with Model Context Protocol servers
- Memory aware: Designed to work with AI memory systems
Production Features
Core Capabilities
- Performance monitoring: Real-time metrics, benchmarking, and optimization
- Version management: Semantic versioning with upgrade path validation
- Context-aware intelligence: Smart suggestions based on current project
- Backup and recovery: Full backup, restore, and history tracking
- Universal platform support: WSL2, Linux, macOS - one config works everywhere
- Comprehensive testing: 543 tests, 100% pass rate
- Smart discovery: Auto-detect and configure projects automatically
- Lazy loading: Sub-100ms startup times, <15MB memory footprint
- Security hardened: Input validation, path traversal protection, injection prevention
WoW (Ways of Working) Enforcement System
Adaptive compliance engine for Claude Code that enforces development best practices through intelligent hooks, behavioral tracking, and predictive intelligence.
v3.5.0 Features:
- Context-aware intelligence: Smart suggestions based on current context and history
- Consequence oracle: Predictive impact analysis before operations (planned)
- Persistent memory: Decision tracking across sessions (in progress)
- Override system: Intelligent override capabilities for justified exceptions
Core Features:
- File proliferation prevention: Blocks creation of new files, enforces editing existing ones
- Real-time scoring: Tracks compliance with 0-100 score and letter grades (A+ to F)
- Behavioral adaptation: Progressive responses based on violation history
- Auto-fix capabilities: Automatically corrects git commits (removes emojis, adds author)
- Root folder protection: Whitelist-based protection for clean project structure
- Gamification: Streak tracking, trust levels, and positive reinforcement
- Cognitive friction: Progressive delays for repeated violations
- Session reports: Comprehensive compliance summary at session end
How It Works:
- PreToolUse Hooks: Intercept and validate/block Write, Edit, and Bash operations
- State Management: Persistent tracking in
/tmp/.wow-state/ - Smart Context Detection: Allows temp files, enforces root whitelist
- Command Rewriting: Auto-fixes non-compliant git commands
- Progressive Education: First violation teaches, repeated violations increase friction
Consolidated Architecture (v3.5.0):
- Single Source of Truth: All WoW configuration in
/mnt/c/Users/[username]/.claude/ - Unified Access: Both
/root/.claudeand/home/[username]/.claudesymlink to central location - No File Duplication: All scripts, settings, and state in one place
Quick Start
npm Installation (Recommended)
Install with npm:
npm install -g @chude/ai-dev-environmentRestart your shell or run source ~/.bashrc to activate.
Alternative: GitHub One-Liner
Install directly from GitHub (no Node.js required):
curl -fsSL https://raw.githubusercontent.com/chudeemeke/AI-Dev-Environment/main/install | bashManual Installation
For more control or offline installation:
Clone and Install:
git clone https://github.com/chudeemeke/AI-Dev-Environment.git ~/Projects/AI-Dev-Environment
cd ~/Projects/AI-Dev-Environment
# Standard installation
bash scripts/install.sh -g
# Fast mode (instant output)
bash scripts/install.sh -g --fast
# Activate
source ~/.bashrcInstallation Options:
-gor--global: Global installation (adds to ~/.bashrc) - Required--fast: Skip comfortable delays (instant output) - Optional--unattended: Non-interactive mode for CI/CD - Optional
For PowerShell:
git clone https://github.com/yourusername/AI-Dev-Environment.git
cd AI-Dev-Environment
.\scripts\install.bat
# Restart PowerShell or run:
. $PROFILEManual WSL2 Setup (if aliases don't load):
# Source the bash loader directly
source /mnt/c/Users/$USER/iCloudDrive/Documents/AI\ Tools/Anthropic\ Solution/Projects/AI-Dev-Environment/src/loaders/bash-loader.sh
# Make it permanent
echo 'source /mnt/c/Users/$USER/iCloudDrive/Documents/AI\ Tools/Anthropic\ Solution/Projects/AI-Dev-Environment/src/loaders/bash-loader.sh' >> ~/.bashrcDeveloper Setup (Contributors)
For active development, use a symlink installation that points directly to your development repository:
# Clone the repository
git clone https://github.com/chudeemeke/AI-Dev-Environment.git ~/Projects/AI-Dev-Environment
cd ~/Projects/AI-Dev-Environment
# Create symlink to dev repo (instead of copying files)
rm -rf ~/.ai-dev-env # Remove existing installation if any
ln -sf ~/Projects/AI-Dev-Environment ~/.ai-dev-env
# Install (will detect symlink and preserve it)
bash scripts/install.sh -g
# Activate
source ~/.bashrcWhy use symlink for development?
- Changes to source files are immediately active (no reinstall needed)
- VERSION file is the single source of truth (local version always matches npm publish)
- Standard git workflow (branch, commit, push)
- Uninstall removes symlink only, preserves your dev repo
Verify developer mode:
ls -la ~/.ai-dev-env
# Should show: .ai-dev-env -> /path/to/your/AI-Dev-Environment
aidev --version
# Should match: cat VERSIONSwitching between modes:
# End user mode (standard install)
rm ~/.ai-dev-env
bash scripts/install.sh -g
# Developer mode (symlink)
rm -rf ~/.ai-dev-env
ln -sf ~/Projects/AI-Dev-Environment ~/.ai-dev-env
bash scripts/install.sh -gHow It Works
The system uses a central JSON configuration (config/aliases.json) that gets loaded by environment-specific loaders:
- WSL2/Linux:
src/loaders/bash-loader.sh - PowerShell:
src/loaders/powershell-loader.ps1 - Git Bash: Uses bash-loader.sh
This means you can update aliases in one place and they work everywhere!
WoW Enforcement Configuration
The WoW enforcement system is configured via Claude Code settings.json files:
Configuration Files
- Primary:
~/.claude/settings.json(Linux/Mac/WSL2) - Windows:
/mnt/c/Users/[username]/.claude/settings.json
Enabling WoW Enforcement
# The system includes several enforcement scripts:
./scripts/wow-enforcer.sh # Quick compliance check
./scripts/wow-session-tracker.sh # Detailed scoring and audit
./scripts/wow-quick-check.sh # Silent monitoringWoW Principles Enforced
- Edit > Create: Blocks new file creation, enforces editing existing files
- No Sycophancy: Continuous reminders to challenge poor decisions
- Defend Architecture: Prompts to stand by good design decisions
- Root Folder Protection: Only whitelisted files allowed in root
- Git Standards: Auto-fixes author and removes emojis
- Documentation Updates: Reminds to update docs with every change
- Precise Execution: Tracks and scores adherence to requirements
Monitoring Compliance
# Check current WoW score
cat /tmp/.wow-state/score
# View violation history
cat /tmp/.wow-state/audit.log
# Run full compliance audit
./scripts/wow-session-tracker.shBasic Usage
Navigation
# Go to a project
go-nexus # Navigate to MCP-Nexus
go-marketplace # Navigate to MCP-Marketplace
go-jarvis # Navigate to JARVIS-MCP
# List all navigation aliases
list-goAdding New Projects
# Add a simple navigation alias
add-go-alias myproject "/path/to/myproject"
# Add a complete project with npm operations
add-project voice "Voice-Assistant-System"
# Discover projects automatically
discover-projectsMaking Changes Permanent
# Save your new aliases
save-aliases
# Reload to use immediately
source ~/.bashrcProject Structure
AI-Dev-Environment/
├── README.md # This file
├── install.sh # Unix/Mac installer
├── install.bat # Windows installer
├── src/
│ ├── aliases/
│ │ ├── navigation.sh # go-* navigation aliases
│ │ ├── operations.sh # Operation aliases
│ │ ├── utilities.sh # Utility functions
│ │ └── git.sh # Git shortcuts
│ ├── functions/
│ │ ├── project-manager.sh # Project management functions
│ │ ├── discovery.sh # Project discovery
│ │ ├── persistence.sh # Save/load functionality
│ │ └── help.sh # Help system
│ └── config/
│ ├── defaults.sh # Default configuration
│ └── user.sh # User overrides
├── docs/
│ ├── EXTENDING.md # How to extend the system
│ ├── INTEGRATION.md # Integration with other tools
│ └── TROUBLESHOOTING.md # Common issues and solutions
├── examples/
│ ├── custom-aliases.sh # Example custom aliases
│ └── project-templates/ # Project templates
└── tests/
└── test-aliases.sh # Test suiteCore Concepts
The go-* Pattern
The go-* pattern makes navigation intuitive and discoverable:
go-prefix indicates navigation- Tab completion shows all available destinations
- Consistent and memorable
Dynamic Management
Add aliases without editing files:
add-go-alias trinity "/path/to/Trinity"
save-aliasesProject Discovery
Automatically find projects:
discover-projects
# Suggests aliases for all projects without oneExtensibility
Designed to grow with your needs:
- Add custom functions
- Create project templates
- Build automation tools
Advanced Usage
Custom Project Templates
Create templates for different project types:
# Add a Python project
add-python-project mlops "ML-Ops-Platform"
# Add a React project
add-react-project dashboard "Analytics-Dashboard"Batch Operations
Operate on multiple projects:
# Update all npm projects
update-all-npm
# Run tests across projects
test-all-projectsIntegration with AI Tools
Claude Code
Tell Claude in new sessions:
Please source ~/.bashrc and use the go-* navigation systemMCP Servers
Navigate to MCP servers quickly:
go-memory # Memory-Nexus server
go-filesystem # Filesystem-Nexus serverConfiguration
Environment Variables
# Project root directory
export PROJECTS_ROOT="/path/to/your/projects"
# Claude home directory
export CLAUDE_HOME="$HOME/.claude"
# MCP Nexus location
export MCP_NEXUS_ROOT="$PROJECTS_ROOT/MCP-Nexus"Customization
Edit ~/.ai-dev-env/config/user.sh to customize:
- Default paths
- Alias patterns
- Operation commands
Publishing Workflow (For Maintainers)
This project uses an Apple-style integrated release workflow with zero mental overhead.
Simple Release (Recommended)
aidev releaseWhat it does:
- Interactive prompts guide you through the release
- Bumps version (patch/minor/major)
- Optional CHANGELOG update
- Creates git commit + tag
- Pushes to GitHub (triggers CI)
- Monitors CI tests automatically
- Prompts for OTP when ready
- Publishes to npm
One command. Zero configuration. It just works.
Quick Releases
aidev release patch # Bug fixes
aidev release minor # New features
aidev release major # Breaking changesNo prompts - instant release creation. Publish later with aidev publish.
Manual Publish
aidev publishPublishes the most recent release. Useful if you skipped publishing during aidev release.
Advanced Options
Option 1: Direct Script (For Automation)
./scripts/publish-watch.sh vX.Y.ZFeatures:
- Automatically finds and monitors CI workflow
- Detects if workflow already completed
- Checks test results before prompting for OTP
- 3-attempt retry for invalid/expired OTP codes
- Skips duplicate publish if already on npm
- Comprehensive edge case handling
Option 2: GitHub UI Workflow (Mobile-Friendly)
- Navigate to Actions → "Publish to npm (Manual)"
- Click "Run workflow"
- Enter your 6-digit OTP from authenticator
- Click "Run workflow" button
Use when publishing from mobile or away from terminal.
CI/CD Pipeline
Every tag push triggers:
- Run Tests - Full test suite (542/542 tests must pass)
- Publish to npm - Requires manual OTP input (2FA security)
- Create GitHub Release - Automatic release notes
View workflow: .github/workflows/release.yml
Apple Philosophy in Action
Simple Interface:
aidev release- One command for common caseaidev publish- One command for edge case
Hidden Complexity:
- Version bumping, git operations, CI monitoring, OTP handling - all automatic
- Intelligent workflow detection, retry logic, edge case handling - invisible to user
It Just Works:
- No version numbers to remember (auto-detected)
- No manual git commands (automated)
- No workflow IDs to find (auto-discovered)
- No failed publishes (retry logic)
The workflow feels magical because complexity is hidden, not removed.
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Areas for Contribution
- New project templates
- Additional utility functions
- Integration with more AI tools
- Documentation improvements
Troubleshooting
Aliases Not Working
# Check if aliases are loaded
alias | grep go-
# Reload configuration
source ~/.bashrcPermission Issues
# Make scripts executable
chmod +x install.sh
chmod +x src/**/*.shFuture Roadmap
- [ ] VSCode integration
- [ ] Project templates marketplace
- [ ] AI-powered project suggestions
- [ ] Cross-platform PowerShell support
- [ ] Project health monitoring
- [ ] Automated dependency updates
License
MIT License - see LICENSE file for details.
Acknowledgments
Created as part of the AI development ecosystem for enhancing productivity with Claude Code and MCP servers.
Pro Tip: After installation, type alias-help for a quick reference of all available commands!
Test Line for Hook Verification
This line was added to test WoW enforcement hooks.
🤖 CI/CD Auto-Fix
This repository uses Claude AI to automatically fix CI/CD failures. If builds fail, Claude will automatically create a fix PR.
