AI-Native Developer Infrastructure
Toolkit for developers using Claude Code, Cursor, and Codex
Quick Start • Features • Installation • Usage
optimi-mac is an open-source toolkit that helps developers manage AI agent infrastructure across multiple projects.
The Problem: Claude Code, Cursor, and Codex each need their own config files (CLAUDE.md, .cursorrules, AGENTS.md). Managing these across 10+ projects becomes chaos.
The Solution: Single Source of Truth (.agent/MAIN.md) + visual dashboard + automation scripts.
curl -fsSL https://raw.githubusercontent.com/Humanji7/optimi-mac/main/.agent/scripts/install-statusline.sh | bashgit clone https://github.com/Humanji7/optimi-mac.git
cd optimi-mac
npx -y http-server .agent/dashboard -p 8889 -o| Feature | Description |
|---|---|
| 🏥 Health Dashboard | Web UI showing all projects status, active hooks, uncommitted changes |
| 🏗️ Setup AI | One-click .agent/ infrastructure for any project |
| 📊 StatusLine | Real-time context usage (%) with color alerts in Claude Code |
| 🌙 Night Watch | Automated batch refactoring with dry-run preview |
| 🧠 Triage | Generates surgical fix prompts for broken projects |
| 📋 GUPP | Anti-crash protocols for reliable AI coding sessions |
| 📝 Living Memory | Error Journal for learning from human-agent collaboration failures |
git clone https://github.com/Humanji7/optimi-mac.git ~/projects/optimi-maccurl -fsSL https://raw.githubusercontent.com/Humanji7/optimi-mac/main/.agent/scripts/install-statusline.sh | bash# Start dashboard
cd ~/projects/optimi-mac
npx -y http-server .agent/dashboard -p 8889 -o
# Refresh data
bash .agent/scripts/projects-health-check.shbash ~/projects/optimi-mac/.agent/scripts/setup-ai-infrastructure.sh ~/projects/YOUR_PROJECT
# Dry run (preview)
bash ~/projects/optimi-mac/.agent/scripts/setup-ai-infrastructure.sh --dry-run ~/projects/YOUR_PROJECTThis creates:
your_project/
├── .agent/
│ ├── MAIN.md # Single Source of Truth
│ └── workflows/
├── CLAUDE.md # → redirect to .agent/MAIN.md
├── AGENTS.md # → redirect
└── .cursorrules # → redirect
# Preview what would be refactored
bash .agent/scripts/night-watch.sh --dry-run
# Run on specific projects
bash .agent/scripts/night-watch.sh project1 project2optimi-mac/
├── .agent/
│ ├── dashboard/ # Web UI
│ ├── scripts/ # Automation scripts
│ ├── workflows/ # Claude Code slash commands
│ ├── templates/ # .agent/ scaffolding
│ └── prompts/ # AI prompt templates
└── CLAUDE.md # GUPP protocol
| Script | Purpose |
|---|---|
projects-health-check.sh |
Scan ~/projects and generate health report |
setup-ai-infrastructure.sh |
Create .agent/ + redirect files |
install-statusline.sh |
Install context usage indicator |
night-watch.sh |
Batch refactoring automation |
generate-triage-prompt.sh |
Create surgical fix prompts |
log-error.sh |
Log errors to Living Memory journal |
Copy .agent/workflows/ to your project and use:
| Command | Description |
|---|---|
/anti-crash-rules |
GUPP anti-crash protocols |
/decompose |
Break task into atomic molecules |
/setup-ai-pipeline |
Create .agent/ from scratch |
/triage-project |
Auto-fix dashboard issues |
- Fork the repository
- Create feature branch (
git checkout -b feature/amazing) - Commit changes (
git commit -m 'Add amazing feature') - Push to branch (
git push origin feature/amazing) - Open Pull Request
MIT License — see LICENSE for details.
Made with 🧠 for AI-first developers