This guide provides detailed workflows and explains how to configure Grid to match your team's style.
Before you start, tell Grid who you are. This name is used for the Leaderboard and Multiplayer Roasts.
grid auth <your_username>
# Example:
grid auth neo
# ✅ Identity updated to: neoAre you the Team Lead? → Run grid init to create the project configuration.
Are you a Team Member? → Run grid dev <repo_url> <your_name> to join an existing project.
Run this once in your project root to "install" Grid into the repo.
cd your-project
grid initWhat just happened?
Grid created a file named .grid in your folder. This is your Project Configuration File.
ACTION REQUIRED:
- Open
.gridin your code editor - Add your Webhook URL (for Discord/Slack notifications)
- Define Banned Files (to stop team members from leaking secrets)
- Save the file
Once you have edited the .grid file, upload it to the Grid Cloud so your team can access these rules.
grid cloud_syncOutput:
✅ Configuration synced to Cloud Brain.
📡 Project ID: 550e8400-e29b... registered.
Now, when other developers run grid dev, they will automatically fetch these rules.
When you join a team using Grid, use this command instead of manually cloning the repo:
grid dev <repo_url> <your_name>
# Example:
grid dev https://github.com/your-org/your-repo aliceWhat happens:
- Clones the repository
- Sets your Grid identity to
alice - Downloads the
.gridconfig from Cloud Brain - Downloads team webhooks and banned file patterns
Output:
✅ Identity set to: alice
📥 Cloning backend...
🌥️ Syncing with Cloud Brain...
✅ Secrets & Webhooks downloaded.
✅ SETUP COMPLETE.
>> Run: cd backend
This file controls how Grid behaves for your entire team.
{
"project_id": "550e8400-e29b-41d4-a716-446655440000",
"lead_dev": "neo",
"banned_files": [
".env",
".env.local",
"secrets.json",
"*.key",
"*.pem",
"id_rsa"
],
"webhook_url": "https://discord.com/api/webhooks/YOUR_WEBHOOK_URL",
"services": {
"db": {
"image": "postgres:15-alpine",
"ports": ["5432:5432"],
"environment": {
"POSTGRES_USER": "grid_user",
"POSTGRES_PASSWORD": "secure_password",
"POSTGRES_DB": "grid_db"
}
},
"cache": {
"image": "redis:alpine",
"ports": ["6379:6379"]
}
}
}- project_id: DO NOT TOUCH. This connects your repo to the Cloud Database.
- banned_files: The "No-Fly List." Any file matching these patterns will be blocked from being pushed.
- Why? To prevent leaking API keys.
- webhook_url: Your Discord Webhook URL.
- Why? So
grid roast --sharecan post directly to your team channel.
- Why? So
- services (Optional): Docker service definitions for your infrastructure.
- Why? Team members can run
grid docker upwithout creating docker-compose.yml - Grid auto-generates the Docker configuration from this JSON
- Supports any Docker Compose service syntax (image, ports, environment, volumes, etc.)
- Why? Team members can run
Grid separates developers into two categories: Sane Professionals and Cowboys.
For developers who actually remember to create a branch before writing code.
# You are already on 'feature/login'
grid push "implemented auth logic"
# Output:
# 🔍 Scanning for secrets... Clean.
# ✅ Changes staged and committed.
# 🚀 Pushed to origin/feature/login.
# "Suspiciously clean code. Good job."For developers who forget to create branches. You are on main, you made breaking changes, and you tried to push.
# You are on 'main' (The Mistake)
grid push "quick hotfix"
# Output:
# ⚠️ COWBOY DETECTED. "Did you forget you're on production?"
# 🔀 Taking the wheel...
# Creating safety branch: cowboy/maverick/quick-hotfix/yolo-mode
# ✅ Branch switched. Files moved.
# 📤 Pushed to safety branch.
#
# 👉 PR LINK PRE-GENERATED:
# https://github.com/org/repo/compare/main...cowboy/maverick/quick-hotfixWhy? Grid saved you from breaking the build. It automatically branched off, moved your changes, pushed them, and gave you a PR link. The branch name includes the identity of the developer (maverick) so everyone knows who messed up.
Grid acts as a firewall for your repo.
# Accidentally added a .env file containing keys
grid push "update config"
# Output:
# 🚫 PUSH BLOCKED. "Are you trying to give hackers a free lunch?"
# ⚠️ Restricted files detected: ['.env']
# → Files auto-unstaged.How did it know?
It checked the banned_files list in your .grid file (which you configured earlier).
Want to see if your teammate has been writing bad code?
grid roast --dev <teammate_name>
# Example:
grid roast --dev alice
# Output:
# ╭─ Roasting alice ──────────────╮
# │ Last Commit: "typo fix" │
# │ │
# │ Grid says: "Took you 3 │
# │ commits to fix one word? │
# │ Efficient." │
# ╰──────────────────────────────╯Broadcast the shame to your entire team.
grid roast --dev bob --shareHow does it know where to post?
It uses the webhook_url you added to the .grid file.
Tired of typing grid before every command? Enter the Grid Shell.
# Launch the shell
gridInside the shell, you don't need prefixes. It behaves like a normal terminal but supercharged.
# Your prompt:
neo@matrix GRID ~/projects/backend $
# Just type commands directly:
push "refactor api" # Runs: grid push ...
roast app.py # Runs: grid roast ...
status # Runs: grid status
# System commands still work:
npm install
git status
ls -laRemove all local branches that have been merged into main.
grid purge
# Output:
# 🗑️ Deleting merged branches...
# ✅ Removed: feature/old-login
# ✅ Removed: bugfix/header-fix
# 🎯 Cleaned up 2 branchesGenerate a summary of your day's work from git history.
grid recap
# Output:
# ╭─ Daily Recap - 2026-01-22 ───╮
# │ Commits Today: 8 │
# │ Files Changed: 14 │
# │ Lines Added: +237 │
# │ Lines Removed: -89 │
# │ │
# │ Top Commits: │
# │ • "Add OAuth integration" │
# │ • "Fix login redirect" │
# │ • "Update dependencies" │
# ╰──────────────────────────────╯View diagnostics and project information.
grid status
# Output:
# ╭─ SYSTEM DIAGNOSTICS ─────────╮
# │ Current Branch: feature/auth │
# │ Git Status: Clean │
# │ Identity: neo │
# │ Project: backend-api │
# │ Last Commit: 2 hours ago │
# ╰──────────────────────────────╯Find who wrote a specific line and get a roast.
grid blame src/auth.py 42
# Output:
# ╭─ Blame Detective ─────────────╮
# │ File: src/auth.py:42 │
# │ Author: alice │
# │ Commit: "quick fix" │
# │ Date: 3 days ago │
# │ │
# │ Grid says: "This line looks │
# │ like it was written at 3am." │
# ╰──────────────────────────────╯
# Share to team Discord
grid blame src/auth.py 42 --shareSee who's been pushing to protected branches the most.
grid rank
# Output:
# ╭─ Recklessness Ranking ───────╮
# │ Rank │ Developer │ Cowboy │
# │ │ │ Incidents │
# ├──────┼───────────┼────────────┤
# │ #1 │ Alice │ 23 │
# │ │ │ 🤠 Sheriff │
# │ │ │ of Chaos │
# ├──────┼───────────┼────────────┤
# │ #2 │ Bob │ 17 │
# │ │ │ 🐴 Deputy │
# │ │ │ Danger │
# ├──────┼───────────┼────────────┤
# │ #3 │ Neo │ 2 │
# │ │ │ Village │
# │ │ │ Idiot │
# ╰───────────────────────────────╯
#
# "Alice, you're the reason we can't have nice things."How it works: Grid scans remote cowboy branches to count violations per developer.
Visualize your project's file structure.
grid tree
# Output:
# 📂 backend-api/
# ├─📁 src/
# │ ├─📄 auth.py
# │ ├─📄 api.py
# │ └─📁 utils/
# │ └─📄 helpers.py
# ├─📁 tests/
# └─📄 README.mdGrid can update itself! Run this command to check for and install the latest version.
grid update
# For pip/dev users:
# Downloads and installs latest version from GitHub
# Output: ✅ ASSIMILATION COMPLETE. RESTART GRID.
# For .exe users:
# Opens browser to download latest installer
# Output: Opening download portal...Manual update methods:
- Developers:
pip install --upgrade git+https://github.com/quantforge-ai/grid-cli.git - Windows users: Download latest
GridSetup.exeand run it
| Command | Action |
|---|---|
grid auth <name> |
Sets your identity |
grid init |
(Lead Only) Creates local configuration |
grid cloud_sync |
(Lead Only) Uploads config to Cloud Brain |
grid dev <url> <name> |
(Team Member) Clone repo and download config |
grid update |
Check for updates and upgrade Grid |
grid push "<msg>" |
Smart push (handles secrets & cowboy mode) |
grid branch <name> |
Creates or switches to a branch |
grid home [--clean] |
Returns to main and pulls updates |
grid status |
Shows system diagnostics and project info |
grid roast [file] |
Analyzes code quality (file or whole project) |
grid roast --dev <name> [--share] |
Roasts a teammate (optionally share to Discord) |
grid blame <file> <line> [--share] |
Find who wrote a line (with roast) |
grid purge |
Deletes all merged local branches |
grid recap |
Generates daily standup report from git history |
grid rank |
Shows the Cowboy Leaderboard |
grid tree |
Visualizes project structure |
grid docker up [-d] |
Starts Docker containers (detached mode optional) |
grid docker down |
Stops Docker containers |
grid docker nuke |
Kills all running containers |
grid docker ps |
Shows container status |
Happy Coding!
Grid is watching.