![AI DevOps social graph preview](docs/assets/og-image.png) # AI DevOps Framework **[aidevops.sh](https://aidevops.sh)** is an [OpenCode](https://opencode.ai/) plugin and AI DevOps framework for people who want AI to do useful work across code, infrastructure, business, marketing, content, and creative projects without turning every job into another long, fragile chat. Most AI tools still leave you doing the hard coordination yourself: finding the right context, choosing a model, protecting secrets, managing branches, watching CI, spotting stuck work, and remembering what went wrong last time. aidevops puts structure around that work so agents can share context, work safely in parallel, spend model budget where it matters, and leave the system better than they found it. > **Recommended setup:** [OpenCode](https://opencode.ai/) + OpenAI models. GPT-5.5 is the preferred high-capability model for complex agent work; GPT-5.4 mini is the preferred fast, lower-cost model for triage and routine implementation. Claude models (Anthropic) remain fully supported, and other model providers are evaluated from time to time as their quality, latency, and cost profiles change. *"Scope a mission to redesign the landing pages — break it into milestones, dispatch workers in parallel, validate each milestone, and track budget across the whole project."* **One conversation, autonomous project delivery, with security, teamwork, token efficiency, and quality control built in.** Founded by [Marcus Quinn](https://github.com/marcusquinn) on 9th November 2025 to help anyone level-up their AI & Open-Source game. ## **The Aim** **Maximum value for your time and money.** **[aidevops](https://aidevops.sh)** is built for the gap between “the model can probably do this” and “the work is actually done, verified, safe, and worth the cost.” - Load the right context when it is needed, instead of stuffing every agent, skill, and tool into the prompt. - Spend tokens and model budget deliberately. Cheap and fast models should handle routine work; stronger models should handle judgement, architecture, review, and risk. - Keep secrets out of chat. Credentials, tenants, scans, confirmations, and audit logs are part of the workflow, not an afterthought. - Let people and agents work across machines without trampling each other. Worktrees, branches, PRs, task IDs, mailbox state, and memory keep the work separated and traceable. - Notice when the system is struggling. Stuck workers, orphaned PRs, stale assignments, CI failures, review-bot traps, and repeated mistakes should become visible signals. - Improve the framework from real use. Imported skills, session learnings, quality findings, and better patterns should become better agents, hooks, scripts, and docs. - Optimise for profitable outcomes: useful work shipped, lower supervision cost, safer operations, and decisions that make sense beyond the next prompt. The result: an AI operations platform that manages projects across every business domain — absorbing everything automatable so you can focus on what matters. **Built on proven patterns**: aidevops implements [industry-standard agent design patterns](#agent-design-patterns) - including multi-layer action spaces, context isolation, and iterative execution loops. ## **Why This Framework?** **Beyond single-task AI.** A normal AI harness can be brilliant for one job and still weak at the work around the job. aidevops is for the surrounding discipline: context, routing, safety, git hygiene, collaboration, verification, memory, and follow-through. **What makes it different:** - **Pulse supervision** - scheduled checks can dispatch workers, merge ready PRs, close loops, and surface stuck work. - **Domain agents** - code, automation, product, business, marketing, legal, content, research, SEO, health, reports, and framework work each get their own guidance. - **Cross-model checks** - risky operations can be reviewed by a second provider to reduce shared failure modes. - **Service coverage** - hosting, Git platforms, DNS, security, monitoring, deployment, payments, communications, and more are handled through repeatable helpers. - **Mission work** - larger goals can be split into milestones with validation, budget tracking, and automatic advancement. --- [![GitHub Actions](https://github.com/marcusquinn/aidevops/actions/workflows/code-quality.yml/badge.svg?branch=main)](https://github.com/marcusquinn/aidevops/actions/workflows/code-quality.yml) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=marcusquinn_aidevops&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=marcusquinn_aidevops) [![CodeFactor](https://www.codefactor.io/repository/github/marcusquinn/aidevops/badge)](https://www.codefactor.io/repository/github/marcusquinn/aidevops) [![Maintainability](https://qlty.sh/gh/marcusquinn/projects/aidevops/maintainability.svg)](https://qlty.sh/gh/marcusquinn/projects/aidevops) [![Codacy Badge](https://app.codacy.com/project/badge/Grade/2b1adbd66c454dae92234341e801b984)](https://app.codacy.com/gh/marcusquinn/aidevops/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade) [![CodeRabbit](https://img.shields.io/badge/CodeRabbit-AI%20Reviews-FF570A?logo=coderabbit&logoColor=white)](https://coderabbit.ai) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Copyright](https://img.shields.io/badge/Copyright-Marcus%20Quinn%202025--2026-blue.svg)](https://github.com/marcusquinn) [![Version](https://img.shields.io/badge/Version-3.32.220-blue.svg)](https://github.com/marcusquinn/aidevops/releases) [![npm version](https://img.shields.io/npm/v/aidevops)](https://www.npmjs.com/package/aidevops) [![Homebrew](https://img.shields.io/badge/homebrew-marcusquinn%2Ftap-orange)](https://github.com/marcusquinn/homebrew-tap) [![GitHub repository](https://img.shields.io/badge/github-repository-181717.svg?logo=github)](https://github.com/marcusquinn/aidevops) [![Services Supported](https://img.shields.io/badge/Services%20Supported-30+-brightgreen.svg)](#comprehensive-service-coverage) [![AGENTS.md](https://img.shields.io/badge/AGENTS.md-Compliant-blue.svg)](https://agents.md/) [![AI Optimized](https://img.shields.io/badge/AI%20Optimized-Yes-brightgreen.svg)](https://github.com/marcusquinn/aidevops/blob/main/AGENTS.md) [![MCP Servers](https://img.shields.io/badge/MCP%20Servers-20-orange.svg)](#mcp-integrations) [![API Integrations](https://img.shields.io/badge/API%20Integrations-30+-blue.svg)](#comprehensive-service-coverage) [![Lines of code](docs/metrics/badges/loc.svg)](docs/metrics/repo-metrics.md) [![Dependencies](docs/metrics/badges/dependencies.svg)](docs/metrics/repo-metrics.md) [![Languages by lines of code](docs/metrics/badges/languages.svg)](docs/metrics/repo-metrics.md) ## Attribution aidevops is MIT licensed. Reuse is welcome, including commercial use, provided the copyright and license notices are retained. If you build a derivative framework, automation bot, workflow library, or commercial product from aidevops code or distinctive operating patterns, see [ATTRIBUTION.md](ATTRIBUTION.md) for the required notices and preferred credit text. ## Quick Reference - **Purpose**: AI-assisted DevOps automation framework - **Install**: `npm install -g aidevops && aidevops update` - **Recommended runtime/models**: OpenCode + OpenAI GPT-5.5 / GPT-5.4 mini - **Entry**: `aidevops` CLI, `~/.aidevops/agents/AGENTS.md` - **Stack**: Bash scripts, TypeScript (Bun), MCP servers - **Recent focus**: OpenCode control-plane safety, local repo metrics, mobile simulator testing, self-hosted runner operations, and pulse/worker diagnostics ### Key Commands - `aidevops init` - Initialize in any project - `aidevops update` - Update framework - `aidevops auto-update` - Automatic update polling (enable/disable/status) - `aidevops runtime-bundle list` - List retained validated runtime bundles; use `rollback --bundle-id --reason ` for an explicit audited rollback - `aidevops gpt56-context [enable|disable|status]` - Keep GPT-5.6 at a 300K advertised context window in OpenCode (enabled by default), so 80% auto-compaction runs near 240K before long-context pricing; disable to use native provider limits - `aidevops secret` - Manage secrets (gopass encrypted, AI-safe) - `aidevops security` - Full security assessment (posture, secrets, supply chain) - `aidevops lint audit` - Audit native lint/format/typecheck commands and repo-verify hooks - `aidevops lint configure --dry-run` - Preview safe evidence-based lint provisioning - `aidevops metrics generate` - Generate local LOC, language, and dependency data for README badges or app about pages - `/onboarding` - Interactive setup wizard (in AI assistant) - `/design-artifact` - Route artifact-first UI, deck, email, poster, and mobile mockup work - `/open-design` - Manage the optional Open Design companion studio - `/auto-browse` - Learn, optimize, and graduate repeatable browser operations and web data-mining workflows - `/report-render` - Render report-ready Markdown or JSON to HTML with sticky TOC, print CSS, evidence badges, and source cards for PDF export - `/report-token-use` - Generate a local per-session token, model, compaction, and MCP-use report - `/pulse` - Run the autonomous supervisor loop for dispatch, merge, diagnostics, and stuck-work recovery - `/serve-sim` / `serve-sim-helper.sh` - Exercise mobile web flows in simulator-backed local previews ### Agent Structure - 14 primary agents (Build+, Automate, Product, SEO, Marketing-Sales, etc.) with specialist @subagents on demand - 2,150+ agent and subagent markdown files organized by domain - 1,630+ helper scripts in `.agents/scripts/` - 185+ slash commands and workflow guides for common operations ### What You Can Ask aidevops To Do - Build, fix, review, release, and maintain software with worktrees, PRs, tests, and quality gates. - Run infrastructure, hosting, DNS, monitoring, security, and deployment workflows. - Plan products, PRDs, onboarding, monetisation, growth, analytics, and UI direction. - Operate business, finance, receipts, invoices, marketing, outreach, SEO, content, video, and personal-productivity routines. - Discover the right capability with `/skills recommend "TASK"`, `/onboarding`, or the OpenCode agent picker. ### Recent framework upgrades Since the last README feature refresh, aidevops has added or expanded: - **OpenCode GUI/control-plane planning**: ADRs, threat model, trust-boundary guidance, and containment rules for a future GUI that stays local-first, auditable, and explicitly separated from secret-bearing helpers (`docs/gui/`). - **Mobile and simulator workflows**: app-development guidance, App Store Connect support, Expo/Xcode/Swift workflows, Maestro/minisim/iOS Simulator MCP references, and `serve-sim` mobile web testing support (`.agents/tools/mobile/`). - **Self-hosted runner operations**: lifecycle and storage runbooks, Docker foreground-mode guidance, systemd timer freshness triage, and ExecStop race-guard documentation (`.agents/reference/github-self-hosted-runners.md`). - **Pulse diagnostics and reliability**: compact API-budget diagnostics, pulse cadence/API diagnostics, GitHub read ramp pacing, configurable worker floors, Renovate dashboard skipping, and more defensive duplicate/blocked-by/rate-limit handling. - **Worker and PR observability**: worker diagnostic failure families, runtime observability signals, review-thread response scanning, required-check validation, orphan-recovery base handling, and safer automated GitHub write guards. - **Runtime-neutral safety and evidence contracts**: shared command decisions across supported runtimes, commit-pinned plugin provenance with explicit hook authorization, recognized-client network checks, causal worker lineage, and redacted state snapshots/deltas in the existing observability database. - **OpenCode runtime polish**: versioned session title suffixes, session archive retention, OAuth pool hardening, debug-error preservation, and reusable shell-env version lookup in the OpenCode plugin. ## **Enterprise-Grade Quality & Security** **Comprehensive DevOps framework with tried & tested services integrations, popular and trusted MCP servers, and enterprise-grade infrastructure quality assurance code monitoring and recommendations.** **Vault security model:** aidevops defines protected data classes, provider routing labels, trust boundaries, and phased encrypted sync architecture in `.agents/reference/vault.md`. Vault guidance is local-first: third-party AI providers can only reason over data that has been decrypted into their prompt or tool context, so provider-side logs/retention remain outside Vault's technical control. Future local LLM mode reduces provider exposure but not local host compromise risk. **Vault passphrase warning:** aidevops cannot recover a lost Vault passphrase. Save it in a trusted password manager with backups; never paste it into AI chat, CLI arguments, environment variables, logs, issue comments, or test fixtures. ### Report creation, previews, and PDF exports Use aidevops to turn evidence bundles into decision-ready reports while keeping Markdown or JSON as the canonical source. Report agents can produce AI-search audits, SEO/GEO scorecards, delivery reviews, campaign reports, board packs, incident summaries, recurring client handoffs, and before/after remediation evidence. New report capabilities include: - Markdown-first report anatomy with cover pages, executive summaries, evidence ledgers, source cards, action prompts, appendix links, charts, Mermaid/LaTeX fallbacks, and `verified`, `partial`, `inferred`, or `missing` evidence badges. - DESIGN.md-backed visual templates plus `basic` no-CSS output for lightweight handoff. - Browser preview HTML with sticky contents, source-card links, copy buttons, and light/dark theme variants where a style supports them. - PDF-ready profiles for A4, US Letter, and 16:9 slides. Generated PDF links use `*-a4.pdf`, `*-usletter.pdf`, and `*-slides.pdf` names. - Versioned examples under `_reports/examples/`; open `_reports/examples/index.html` locally to browse the example reports, rendered styles, and PDF exports. Create a report: 1. Load `reports/general.md` for structure, then the matching domain report doc such as `reports/seo-geo.md`, `reports/development.md`, `reports/marketing.md`, or `reports/business.md`. 2. Gather source evidence first. Use deterministic `run:` steps or service helpers for collection, then ask the domain agent plus `agent:Reports` to interpret and prioritise. 3. Save canonical source as `report.md` or `report.json` in `_reports/drafts//` while working, or in `_reports/examples//` only after privacy review. 4. Render with `/report-render report.md` or `.agents/scripts/report-render-helper.sh render report.md --template