One agent.yaml. Validate, health-check, audit, and generate any AI agent.
npm install -g @agentspec/cli
agentspec validate agent.yaml # Schema validation
agentspec health agent.yaml # Runtime health checks
agentspec audit agent.yaml # Compliance scoring (OWASP LLM Top 10)
agentspec generate agent.yaml --framework langgraph- Define your agent in a single
agent.yaml— model, tools, memory, guardrails, prompts - Validate schema with instant feedback and path-aware errors
- Health-check all runtime dependencies (env vars, model API, Redis, Postgres, MCP servers)
- Audit compliance against OWASP LLM Top 10, model resilience, and memory hygiene packs
- Generate production-ready LangGraph, CrewAI, Mastra, or AutoGen code via Claude
- Scan an existing codebase and auto-generate the manifest
- Evaluate agent quality against JSONL datasets with CI pass/fail gates
- Deploy to Kubernetes — operator injects sidecar, exposes
/health/readyand/gap - Export to A2A / AgentCard format
- Visual dashboard for fleet-wide agent observability (coming soon)
- Native OpenTelemetry trace export (coming soon)
agent.yamlis the single source of truth — the SDK reads it at runtime, the CLI validates and audits it, the operator deploys it- Sidecar is injected automatically by the operator and exposes live
/health/ready,/gap, and/exploreendpoints without touching agent code - CLI wraps the SDK for local development — validate, audit, generate, scan, evaluate
- MCP Server bridges the sidecar to Claude Code and VS Code for in-editor introspection
# Install
npm install -g @agentspec/cli
# Create a manifest interactively
agentspec init
# Or scan an existing codebase
export ANTHROPIC_API_KEY=your-key
agentspec scan --dir ./src/
# Validate, health-check, audit
agentspec validate agent.yaml
agentspec health agent.yaml
agentspec audit agent.yaml
# Generate runnable code (requires ANTHROPIC_API_KEY)
agentspec generate agent.yaml --framework langgraph --output ./generated/# One-line install
curl -fsSL https://raw.githubusercontent.com/agents-oss/agentspec/main/install.sh | bash
# Or with Helm
helm install agentspec-operator \
oci://ghcr.io/agents-oss/charts/agentspec-operator \
--version 0.1.1 \
--namespace agentspec-system --create-namespacenpm install @agentspec/sdkHealth check:
AgentSpec Health — budget-assistant
─────────────────────────────────────
Status: ● healthy
ENV
✓ env:GROQ_API_KEY
✓ env:DATABASE_URL
✓ env:REDIS_URL
MODEL
✓ model:groq/llama-3.3-70b-versatile (94ms)
✓ model-fallback:azure/gpt-4 (112ms)
MEMORY
✓ memory.shortTerm:redis (3ms)
✓ memory.longTerm:postgres (5ms)
Compliance audit:
AgentSpec Audit — budget-assistant
────────────────────────────────────
Score : B 82/100
Category Scores
owasp-llm-top10 75% ███████████████░░░░░
model-resilience 100% ████████████████████
memory-hygiene 80% ████████████████░░░░
Violations (2)
[high] SEC-LLM-10 — API keys use $secret, not $env
[medium] MEM-04 — Vector store namespace isolated
apiVersion: agentspec.io/v1
kind: AgentSpec
metadata:
name: budget-assistant
version: 1.0.0
spec:
model:
provider: openai
id: gpt-4o-mini
apiKey: $env:OPENAI_API_KEY
fallback:
provider: azure
id: gpt-4
apiKey: $env:AZURE_OPENAI_API_KEY
prompts:
system: $file:prompts/system.md
tools:
- name: get-balance
type: function
description: "Get account balance"
module: $file:tools/finance.py
guardrails:
input:
- type: prompt-injection
action: reject
compliance:
packs:
- owasp-llm-top10
- model-resilienceSee the full manifest reference for all fields including memory, evaluation, MCP, subagents, and observability.
Full docs at agents-oss.github.io/agentspec
| Quick Start | Up and running in 5 minutes |
| Manifest Concepts | All manifest fields explained |
| Health Checks | Runtime dependency checking |
| Compliance & Audit | OWASP LLM Top 10 scoring |
| CLI Reference | All commands and flags |
TypeScript · pnpm workspaces · Zod · js-yaml · commander · vitest · tsup · Python · Kopf · FastAPI · Fastify · Helm
Apache 2.0
Issues and PRs welcome at github.com/agents-oss/agentspec.

