AI DevOps Framework
AI DevOps Framework (aidevops) is an advanced AI operations platform and OpenCode plugin designed to automate and manage development, business, marketing, and creative projects. Currently at version 3.8.74, the framework is under active development with frequent minor releases, typically on a daily or near-daily cadence as evidenced by the release history (v3.8.74, v3.8.73, etc.). Key differentiators include autonomous orchestration by an AI supervisor, a suite of 13 multi-domain specialist AI agents (with over 900 subagents), multi-model safety verification for high-stakes operations, and cost-aware model routing for resource efficiency. It emphasizes a Git-first workflow, parallel agent execution using Git worktrees, and self-healing/self-improving capabilities. The framework is optimized for OpenCode and Claude models, providing enterprise-level security and quality control for autonomous project delivery.
Common errors
-
aidevops: command not found
cause The aidevops CLI was not installed globally, or the installation directory is not in your system's PATH.fixRun `npm install -g aidevops` (or `brew install marcusquinn/tap/aidevops`) and ensure your shell's PATH includes the npm global bin directory. Restart your terminal if necessary. -
Error: Node.js version x.y.z is not supported. Please use Node.js >=18.0.0.
cause Your current Node.js version does not meet the minimum requirement specified by the package.fixUpgrade your Node.js environment to version 18 or higher. Consider using `nvm` (Node Version Manager) to easily switch between Node.js versions: `nvm install 18 && nvm use 18`. -
API Key not found or invalid for AI provider: Anthropic
cause The necessary API key for an underlying AI service (e.g., Claude via Anthropic) has not been set or is incorrect, preventing agents from making requests.fixSet the appropriate environment variable (e.g., `ANTHROPIC_API_KEY`) with a valid key, or configure it via `aidevops config set <key> <value>` if supported. -
Git command failed: fatal: working tree 'path/to/worktree' is missing or not a working tree
cause A Git worktree managed by aidevops has been corrupted or manually removed, causing the framework to lose track of a project's state.fixAttempt to repair or re-initialize the worktree using `aidevops git repair` (if available) or manually recreate the project's state. In severe cases, you may need to re-initialize the project (`aidevops init`) and re-fetch changes.
Warnings
- gotcha The framework is primarily a CLI tool (`aidevops`) designed for global installation and direct command execution. It is not intended for direct programmatic import into JavaScript/TypeScript applications as a library. Interaction is exclusively via shell commands.
- breaking The `aidevops` framework, as an AI-driven system, is under continuous development. While semantic versioning is used, frequent minor releases (e.g., v3.8.x) may introduce behavioral changes to AI agents or workflows that, while not strictly API-breaking, might alter expected outcomes or require adjustments in prompts/configurations. Users should regularly review the `CHANGELOG.md` for detailed updates.
- gotcha The framework relies heavily on external AI models (e.g., Claude, via OpenCode) and requires proper configuration of API keys and access. Misconfigured credentials or exceeding rate limits will lead to operational failures for AI agents.
- gotcha The `aidevops` CLI requires Node.js >=18.0.0. Running with older Node.js versions may lead to unexpected errors or installation failures.
- gotcha The `aidevops` framework creates and manages Git worktrees and branches for parallel agent execution. Incorrect manual manipulation of these Git structures outside of `aidevops` commands can lead to project inconsistencies or data loss.
Install
-
npm install aidevops -
yarn add aidevops -
pnpm add aidevops
Quickstart
import { exec } from 'child_process';
import { promisify } from 'util';
const execPromise = promisify(exec);
async function runAideVopsQuickstart() {
console.log('--- AI DevOps Framework Quick Start ---');
// Ensure aidevops is installed globally (or install it)
try {
console.log('Checking aidevops installation...');
await execPromise('npm install -g aidevops');
console.log('aidevops installed or updated globally via npm.');
} catch (error) {
console.error(`Failed to install aidevops: ${error.message}`);
return;
}
// Update the framework and any registered projects
try {
console.log('\nUpdating framework and projects...');
const { stdout } = await execPromise('aidevops update');
console.log(stdout);
} catch (error) {
console.error(`Failed to update aidevops: ${error.message}`);
}
// Check the status of the aidevops installation
try {
console.log('\nChecking aidevops status...');
const { stdout } = await execPromise('aidevops status');
console.log(stdout);
} catch (error) {
console.error(`Failed to get aidevops status: ${error.message}`);
}
// Initialize aidevops in a new or existing project directory
// This would typically be run within a specific project's root.
// For demonstration, we'll just show the command.
console.log('\nTo initialize aidevops in a project, navigate to your project directory and run:');
console.log(' aidevops init');
console.log('\nTo list registered projects:');
console.log(' aidevops list projects');
console.log('\n--- Quick Start Complete ---');
}
runAideVopsQuickstart().catch(console.error);