A flexible, terminal-native AI runtime that adapts to your team's tooling, manages human-in-the-loop safety, and automates complex multi-step operations.
Extend to Any Stack & Custom Agents
OpsCode is not locked to a fixed set of tools. Define custom subagents with a simple AGENTS.md file, install bundled marketplace plugins with one command, connect external MCP tools, or bind async remote LangGraph subagents for distributed workloads.
- Custom subagents in .opscode/agents/
- Marketplace plugins with bundled MCP tools
- Deterministic 7-tier skill hierarchy
Modes Built for Safe Governance
Engineered specifically for infrastructure risk. Switch instantly between Manual Mode (prompt on every mutating action), Auto Mode (read-only fast-tracked with destructive gates), and YOLO Mode with Shift+Tab. Unicode and shell security scanners catch injections before execution.
- Shift+Tab runtime mode hot-swapping
- Shell command & Unicode injection scanners
- Headless 4-tier MCP security classification
Rubric Grading & Isolated Memory
Run unattended in CI/CD with self-grading Worker + Grader loops that evaluate acceptance criteria against markdown specs. 6 specialized subagents use isolated BranchMemoryStore sandboxes, keeping intermediate token churn out of your root context.
- Worker + Grader autonomous CI loops
- BranchMemoryStore context isolation
- SQLite-backed thread checkpointing & resume
Deep dive into the architectural principles that make OpsCode the most flexible, extensible, and safe AI runtime for modern DevOps and Platform Engineering teams.
Extend with Custom Subagents
OpsCode is built on a modular LangGraph orchestrator that dynamically routes tasks to specialized subagents. Beyond the 6 built-in agents, you can create custom subagents for any domain (SRE, database ops, observability, compliance) with a simple AGENTS.md file.
- Custom Subagents via AGENTS.md: Define domain personas, scoped skills, and system prompts directly inside your repository.
- Isolated Memory Sandboxes: Each subagent runs in its own
BranchMemoryStore. Intermediate research and tool noise never leak to the root session. - Progressive Disclosure: Subagent skills load on-demand when relevant files appear in your workspace, keeping token overhead minimal.
// Custom Subagent defined via .opscode/agents/sre-incident-responder/AGENTS.md --- name: sre-incident-responder description: Triages Datadog alerts, correlates error logs, and executes runbooks skills: [datadog-alert-parser, loki-log-correlation, runbook-executor] mcp_servers: [prometheus, datadog-api] --- Task: Triage 502 spike on production checkout service Status: Correlated 47 logs across 3 pods | Memory: Isolated BranchMemoryStore
Modes to Manage Oversight
Production infrastructure demands predictable human oversight. OpsCode provides three distinct runtime modes to control the degree of autonomy. Toggle between them anytime mid-session with Shift+Tab.
Every single mutating action (file edit, delete, shell command, or remote API call) stops the agent and prompts for interactive approval. You inspect the exact diff before anything touches the filesystem or cloud accounts.
Autonomous Rubric Self-Grading
Running AI agents in CI/CD pipelines requires objective quality verification. OpsCode implements an autonomous Worker + Grader loop: the Worker generates code, and the Grader model evaluates it against your markdown rubric spec.
- Autonomous Repair Loop: If the Grader scores below threshold, the Worker reads structured feedback and iteratively repairs the output.
- Multi-Model Architecture: Author code with fast models and grade strictly with frontier reasoning models (Claude 3.7 / GPT-4.1 / DeepSeek R1).
- Pipeline Ready: Exits 0 on rubric pass, non-zero on failure with full audit traces for pull request comments.
7-Tier Skill Hierarchy & Plugins
Teach OpsCode new capabilities with simple Markdown files (SKILL.md). A deterministic resolution hierarchy guarantees that your team's repository rules always take precedence.
- Project Overrides: Commit
.opscode/skills/directly to Git so your entire team shares identical agent conventions. - Marketplace Plugins: Install bundled skills, agents, MCP tools, and slash commands with
ops plugin install. - Tool Execution Hooks: Trigger custom security audit scripts before or after any tool executes via
hooks.json.
Switch model providers on the fly with /model in interactive sessions or --model in CI/CD pipelines. All model streams route through the identical safety gate and subagent memory sandbox.
Frontier & Reasoning Models
Cloud & API- Anthropic ClaudeClaude 3.7 Sonnet, 3.5 Haiku
- OpenAIGPT-4.5, GPT-4o, o3-mini
- Google GeminiGemini 2.5 Flash, 2.0 Pro
- DeepSeekDeepSeek R1, DeepSeek V3
- xAI GrokGrok 2.0, Grok Beta
Enterprise Cloud Endpoints
VPC & IAM Secured- AWS BedrockClaude 3.5, Llama 3.3, Amazon Titan
- Azure OpenAIPrivate VNet, Microsoft Entra ID
- Google Vertex AIGemini Enterprise, Custom Tuned
- IBM watsonx.aiGranite Models, Guardrails
- NVIDIA NIMSelf-hosted Microservices
High-Throughput & Local Offline
Zero Egress & Air-Gapped- OllamaFully offline local execution
- GroqLPU Ultra-low latency inference
- Together AIOpen weight hosting & finetunes
- Fireworks AIFast speculative decoding
- Any OpenAI-CompatiblevLLM, LocalAI, TGI endpoints
Multi-Model Pipeline Strategy: Use fast models (e.g. gemini-2.5-flash or deepseek-v3) for code scaffolding and frontier reasoning models (e.g. claude-3.7-sonnet or o3-mini) as strict rubric graders.
From SRE incident triage and Kubernetes platform engineering to multi-cloud infrastructure suites, OpsCode delivers battle-tested automation you can govern with confidence.
Incident Triage & Automated Runbooks
Diagnose production incidents across Kubernetes clusters, cloud logs, and observability tools. With custom subagents and Prometheus/Datadog MCP servers, OpsCode correlates traces, identifies root causes, and generates remediation runbooks.
Diagnostics Trace + Remediation RunbookKubernetes, Helm, & GitOps Delivery
Author hardened Helm charts and ArgoCD applications with Pod Security Standards (Restricted), PodDisruptionBudgets, zero-trust NetworkPolicies, and horizontal autoscaling. Includes automated dry-run linting and recovery loops.
Chart.yaml + values.yaml + ArgoCD ApplicationModular Terraform & OpenTofu Architectures
Generate production-grade Infrastructure as Code with IAM least privilege, multi-AZ VPC topologies, S3/DynamoDB state locking, and KMS key management. Features automated tflint validation loops and Terratest harnesses.
main.tf + variables.tf + outputs.tfHardened Pipelines & Custom Platform Skills
Author keyless AWS OIDC GitHub Actions workflows and declarative Jenkins pipelines. In headless CI mode, OpsCode uses autonomous Worker + Grader loops to score generated code against acceptance rubrics before merging.
.github/workflows/*.yml | JenkinsfileInstall the lightweight OpsCode CLI binary on Linux, macOS, or Windows (WSL). Zero external runtime dependencies required.
curl -LsSf https://raw.githubusercontent.com/talkops-ai/opscode/main/scripts/install.sh | bash