Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
WolfStar Logo

Agent Zero

An open-source autonomous engineer that finds, fixes, and verifies problems in pull requests

GitHub License CI Node.js Package manager: aube


Overview

Agent Zero runs one trustworthy loop: ingest review feedback or inspect a pull-request diff proactively, validate the finding, apply a narrowly scoped policy-approved fix, run the repository's real checks, inspect the resulting diff, and produce evidence.

Feedback is never treated as truth merely because it came from a human or an AI reviewer.

  • Evidence over assertion – every fix carries the commands that verified it.
  • Proactive, not speculative – diff review reports the highest-priority finding only when checkout evidence supports it.
  • Confidence and impact gates – automatic fixes require confidence, an allowed change-risk class, repository permission, and verification.
  • observe by default – the safe mode inspects and reports, and never writes to a target repository.
  • One execution boundarypackages/runner is the only code allowed to run commands or mutate a checkout.
  • Adapters at the edges – the runtime stays independent of HTTP, GitHub, terminal UI, and model providers.

Architecture

GitHub adapter / CLI
        │
        ▼
   Agent state machine
 discover → understand → validate → plan → execute → verify → review
                                      │                    │
                                      └──── repair ◀───────┘
        │
        ▼
 Runner boundary ─── repository commands and file operations

Nuxt dashboard ─── frontend-only operational interface
Package Responsibility
packages/agent Orchestration and state transitions
packages/runner The only boundary that executes commands or mutates a checkout
packages/models Model-provider abstractions
packages/github GitHub event and API adapters
packages/config Configuration parsing and policy
packages/shared Stable cross-package contracts
packages/cli Argument parsing and terminal presentation
apps/dashboard Frontend-only Nuxt operational dashboard

Adapters depend on the runtime; the runtime never depends on adapters. See docs/architecture.md for the full dependency rules.


Quick start

Requirements: Node.js 24.2+ and aube, the package manager pinned in package.json. Both are pinned in mise.toml, so mise can install them together. Generated Node.js bundles target Node.js 24.2+.

mise install            # or: npm install -g --ignore-scripts=false @endevco/aube
aube ci
cp .env.example .env
aube test
aube run zero doctor
aube run zero review --feedback "Possible null dereference in src/user.ts"
aube run zero review --proactive
aube run dev

aube run <script> and aube test check install freshness first, so a separate install step is rarely needed. aube reads and writes the existing pnpm-lock.yaml and pnpm-workspace.yaml in place — the lockfile stays in pnpm's v9 format for anyone who still runs pnpm.


CLI

zero init                   create .agent-zero.yml
zero --version              print the injected CLI version
zero doctor [--json]        inspect the local environment
zero review (--feedback X | --proactive)  inspect without editing
zero fix (--feedback X | --proactive)     validate, edit, and verify (policy permitting)
zero run (--feedback X | --proactive)     run using the configured mode

The CLI parses arguments with @bomb.sh/args and renders with @clack/prompts. Use --proactive to inspect the working-tree diff without reviewer feedback. When neither trigger is provided in a terminal, it asks for the task interactively; use --feedback or --proactive with --json for scripts and CI.


Dashboard

aube run dev starts the frontend-only Nuxt dashboard on http://localhost:3000. It is an operational interface shell: it does not expose API or RPC routes, persist task data, import runtime packages, or execute repository work.

aube run test:e2e builds the dashboard, starts the production preview on port 5678, and runs the Playwright smoke suite. Use aube --filter @agent-zero/dashboard run test:e2e:ui for Playwright UI mode.

Hosted execution is available through the provider-neutral RunnerPool: every lease has a maximum lifetime, quota checks run before provisioning, expired sandboxes are stopped, and the agent receives only the ordinary Runner contract. See the sandbox provider evaluation.

Agent Zero supports native OpenAI, Anthropic, and Google Generative AI adapters, Vercel AI Gateway, and arbitrary OpenAI-compatible endpoints. Select the transport in repository policy and provide its credential through the environment:

model.provider Credential environment variable Model example
ai-gateway AI_GATEWAY_API_KEY or Vercel OIDC anthropic/claude-sonnet-4.5
anthropic ANTHROPIC_API_KEY claude-sonnet-4-5
google GOOGLE_GENERATIVE_AI_API_KEY gemini-2.5-pro
openai OPENAI_API_KEY gpt-5
openai-compatible OPENAI_COMPATIBLE_API_KEY (or legacy OPENAI_API_KEY) provider-specific

AGENT_ZERO_MODEL_BASE_URL is an optional operator environment variable for custom gateways and self-hosted endpoints. Endpoint URLs and credentials cannot be named or embedded in .agent-zero.yml, so untrusted repository policy cannot redirect a provider secret. The AI Gateway accepts provider/model identifiers and exposes the broader AI SDK provider catalog without adding provider-specific logic to the Agent Zero runtime.

To record cost, configure explicit rates; Agent Zero never guesses provider pricing:

model:
  provider: openai-compatible
  name: gpt-5
  inputCostPerMillionTokens: 1.25
  outputCostPerMillionTokens: 10

observe is the safe default and never writes files. Proactive pull-request webhooks are ignored until proactive.enabled is true. Automatic changes additionally require mode: fix or autonomous, autofix.enabled, sufficient confidence, an allowed change-risk class, repository-native checks, and (by default for proactive/autonomous work) an isolated runner. High-impact changes always require human approval.


Toolchain

  • aube – package manager, pinned through packageManager, reusing the pnpm lockfile and workspace files.
  • typescript-native-bridge – overrides typescript repo-wide, so tsc keeps the classic package surface while the checker runs on tsgo in-process. The override lives in pnpm-workspace.yaml and is pinned exactly; the fork only publishes prerelease versions.
  • Turborepo – schedules workspace tasks in dependency order and caches tsdown build outputs.
  • tsdown – builds publishable packages as ESM and CommonJS with matching declarations and source maps, through the shared tsdown configuration. The Nuxt dashboard uses the Nuxt build pipeline instead.
  • Oxlint + Oxfmt – type-aware linting and repository-wide formatting, extended with @e18e/eslint-plugin for modernization, module-replacement, and performance rules.
  • Knip – detects unused files, exports, and dependencies across the workspace as part of lint:ci.
  • @arethetypeswrong/cli + Publint – validate every package build.
  • @redstardev/unplugin-version-injector – replaces the version marker in @agent-zero/shared; the CLI displays that injected version in its header.

GitHub Actions run typecheck, build/export validation, Oxlint, Oxfmt, tests, and an injected-version smoke test. The manual release-readiness workflow validates artifacts without publishing; package publication remains absent until npm trusted publishing and the @agent-zero policy are configured.


Security model

The included LocalRunner is intended for trusted local development. Production deployments must place it inside Docker, a microVM, or another ephemeral sandbox with CPU, memory, filesystem, and network policies. Only packages/runner may invoke shell commands.

Report vulnerabilities privately as described in SECURITY.md. Do not open a public issue.


Agent Skills

Task-specific Agent Skills live in .skills/ and are exposed to coding agents through .agents/skills/. Skilld manages the versioned tsdown skill, and the same portable layout covers architecture, CLI, Turborepo, and safety work:

aube run skills:list
aube run skills:install
aube run check:repo

AGENTS.md and .github/copilot-instructions.md provide concise entry points for coding agents without replacing the human contributor guide.


Open in your editor

Want to contribute without setting up locally? Click any button below to open this project in a cloud development environment:

Open in VS Code Open in GitHub Codespaces Open in StackBlitz Open in Gitpod


Contributing

Please read the Contributing Guide before submitting a pull request, and the architecture and safety rules in AGENTS.md.

Thank you to all the people who have already contributed to Agent Zero!

Contributors

Apache-2.0 © WolfStar Project.

About

No description, website, or topics provided.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages