AuraKeeper is an agent-driven runtime repair tool that uses the CLI to set up runtime error hooks in existing projects, captures application errors, reproduces them in isolated workspaces, generates minimal fixes, verifies and tests them, and promotes verified patches back to the target repository.
It combines agent-generated hook setup, frontend monitoring, multi-agent repair orchestration, local or Docker sandboxing, user-controlled promotion modes, and connector support across 8+ stacks so the full error-to-fix workflow can run in one system. Because setup is agentic, AuraKeeper can adapt the hook integration to an existing project or a completely new stack instead of relying only on predefined templates.
AuraKeeper connects the pieces needed to move from a runtime failure to a verified code change:
- Project onboarding:
aurakeeper hookinspects an existing repository and automatically sets up runtime error capture, repair configuration, and the project integration. It can apply a premade hook pattern or ask an agent to generate a project-specific integration, which lets AuraKeeper plug into existing projects or new stacks instead of requiring a predefined template.aurakeeper localcan run the local AuraKeeper backend, provision project credentials, and pass those credentials into a development command. - Error ingestion: applications send structured runtime errors with service metadata, stack traces, runtime details, request context, user context, and arbitrary debugging data. AuraKeeper can also import upstream incidents from Sentry into the same normalized error log pipeline.
- Frontend monitoring: the UI lets you create or select projects, configure repair targets, choose auto-run and patch promotion behavior, inspect ingested errors, track state changes, start manual repairs, and review previous repair attempts, diffs, reports, and artifacts.
- Automated repair orchestration: when auto-run is enabled, new errors can queue the repair flow automatically. AuraKeeper runs agents that select the backend, gather context, replicate the issue, create the fix, verify it, test it, promote it, and complete the repair.
- Agent roles: the Replicator reproduces the failure and narrows the likely cause, the Worker creates the smallest safe patch, and the Tester reviews verification output and regression risk before the repair can pass.
- Sandboxed verification: repair work runs in isolated local or Docker workspaces. Production, hosted, or untrusted contexts prefer Docker, while trusted local projects can use local execution when allowed by policy.
- Agent choice: users can choose whether repair runs use Codex or PI as the agent backend.
- Patch promotion: users decide whether verified patches are applied back to the original checkout automatically, or kept pending for manual review and apply.
- Artifacts and examples: repair attempts persist reports, patch/diff files, verification output, and downloadable artifacts. Connector SDKs and runnable examples cover CLI, JavaScript, Next.js, React Native, Python, Go, JVM, .NET, Ruby, and PHP.
- Onboard: run
aurakeeper hookin an existing project and AuraKeeper automatically sets up runtime error capture, repair configuration, and the project integration. - Run locally: start AuraKeeper with
aurakeeper localor./run-local.sh, then create or select the project in the frontend and choose auto-run plus auto or manual patch promotion. - Trigger: cause a runtime error from the app or a connector example.
- Repair: AuraKeeper ingests the error, queues the repair, and runs agents that select the backend, gather context, replicate the issue, create the fix, verify it, test it, promote it, and complete the repair. The work can run in a sandbox when needed, and the user can choose whether the agent backend is Codex or PI.
- Review and promote: inspect the diff, verification output, reports, and artifacts, then apply the verified patch automatically or manually.
- Reuse: run connector examples and verification commands across the supported stacks, or let the agentic setup generate the hook integration for a stack without a predefined template.
AuraKeeper is organized around a deterministic orchestration layer and focused agents:
- the Replicator Agent reproduces failures and writes a concise handoff with commands, logs, and likely cause
- the Worker Agent prepares the smallest safe patch and returns verification evidence with the repair attempt
- the verification orchestrator coordinates repository context, repair policy, isolated execution, artifact capture, and final report generation
The backend implementation for orchestration lives in
backend/src/verification/orchestrator.ts.
Verification is the hard gate: if checks fail, the repair attempt does not pass.
The repository root openapi.yaml is the source of truth for
the API contract. Keep implementation, SDKs, and examples aligned with it.
Current API surface includes:
POST /v1/projectsPATCH /v1/projects/{projectId}GET /v1/examplesPOST /v1/examples/{exampleId}/runsGET /v1/examples/runs/{runId}GET /v1/logs/errorsPOST /v1/logs/errorsPOST /v1/sources/sentryPOST /v1/sources/sentry/{sourceId}/pollPOST /v1/logs/errors/{logId}/repair-attemptsGET /v1/logs/errors/{logId}/repair-statusGET /v1/logs/errors/{logId}/repair-attemptsPOST /v1/logs/errors/{logId}/repair-attempts/{repairAttemptId}/applyGET /v1/logs/errors/{logId}/artifacts/{artifactId}
Structured error events support service metadata, runtime details, normalized error fields, stack traces, arbitrary context, and request or user metadata.
backend: API, persistence, ingestion pipeline, Sentry import, and verification orchestrationfrontend: local UI for projects, logs, repair attempts, and example workflowscli: installable AuraKeeper product CLIconnectors: runtime SDKs and framework-specific connectorsexamples: runnable multi-language demo projectsopenapi.yaml: canonical API contract
Run the full local app from the repository root:
./run-local.shThe script:
- creates missing default
.envfiles for backend and frontend - installs backend and frontend dependencies
- starts the backend on
http://127.0.0.1:3000 - starts the frontend on
http://127.0.0.1:5173 - shuts both services down on
Ctrl+C
The installable AuraKeeper CLI lives in cli. It is separate from the
runtime-focused connector in connectors/cli.
Install it locally from this repository with:
npm install --prefix cli
npm run --prefix cli build
npm install -g ./cliVerify installation with:
aurakeeper --helpCurrent commands:
aurakeeper hook: inspects the current repository and installs an AuraKeeper or Sentry-based hook through an interactive flowaurakeeper local: starts the local backend, provisions a project token, and can inject credentials into a development command such asaurakeeper local -- npm run dev
Connector implementations live under connectors. Each
connector includes its own runtime code, setup instructions, and example usage.
Available connectors:
connectors/javascriptconnectors/pythonconnectors/nextjsconnectors/react-nativeconnectors/cliconnectors/goconnectors/jvmconnectors/dotnetconnectors/rubyconnectors/php
Each connector has a broken example under its examples/ directory. These
projects intentionally trigger a failure, send the event to AuraKeeper, and
ship with a matching verification command.
Typical demo flow:
- Start the local app with
./run-local.sh. - Create or select a project and copy its API token.
- List available examples:
make list- Run one example:
AURAKEEPER_API_TOKEN=<project-token> make run python- Run its verification command:
make verify-example pythonExamples default to http://127.0.0.1:3000/v1/logs/errors. Override that with
AURAKEEPER_ENDPOINT if the backend is running elsewhere.
You can also run all registered examples:
make run-allRepository-level validation commands:
make doctor
make bootstrap
make test
make check
make build
make validate
make validate-all
make validate-containerWhat they do:
make doctor: verifies required local toolchains are installedmake bootstrap: installs project dependenciesmake test: runs backend tests with Bunmake check: runs backend checks and frontend lintingmake build: builds and compiles the supported app and connector targetsmake validate: runs doctor, bootstrap, test, check, and buildmake validate-all: runsvalidateplus all registered examplesmake validate-container: runs the validation flow inside the dev container
For isolated multi-language development, use the dev container in
./.devcontainer/.
It includes Node.js, npm, pnpm, Bun, Python, Ruby, PHP, Go, Java, Maven, and
.NET. When the container starts, .devcontainer/post-create.sh runs
make bootstrap automatically.
