Skip to main content

Agent Resurrect (agent-resurrect-btw)

PyPI Track

Agent Resurrect is an autonomous telemetry and circuit-breaking engine for AI coding agents (Claude Code, Codex, Gemini CLI). It prevents infinite repair "doom-loops", safeguards API budgets, and retrieves team-wide resolutions stored in Databricks Delta Lake.


Quick Start

1. Installation

Install the SDK from PyPI:

pip install --upgrade agent-resurrect-btw

2. Initialize in Your Repository

Run in your project root:

resurrect init

This enables Entire checkpoint tracking and creates a starter configuration file at:

.resurrect/config.json

3. Configure Databricks Credentials

Open .resurrect/config.json and fill in your connection details:

{
  "databricks_host": "https://<your-workspace>.cloud.databricks.com",
  "databricks_token": "dapi...",
  "databricks_warehouse_id": "<your-warehouse-id>",
  "delta_table_name": "dev_failure_traps"
}

Alternative: Environment Variables

You can also supply credentials via your environment without editing files:

export DATABRICKS_HOST="https://<your-workspace>.cloud.databricks.com"
export DATABRICKS_TOKEN="dapi..."
export DATABRICKS_WAREHOUSE_ID="<your-warehouse-id>"
export DELTA_TABLE_NAME="dev_failure_traps"

4. Run Pre-Flight Diagnostics

Validate connectivity to Git, Entire CLI, and Databricks SQL Serverless:

resurrect doctor

For deep-dive logs and command traces, append --verbose:

resurrect doctor --verbose

Usage

Live Agent Execution & Circuit Breaking

Execute your coding agent or test suite wrapped in the Resurrect telemetry harness:

resurrect run "pytest test_redis_worker.py"

Or with an interactive agent:

resurrect run "codex 'fix the failing cluster connection in worker.py'"

How It Works:

  • Live Subprocess Supervision: Resurrect streams agent output live in the terminal.
  • Loop Detection: Evaluates consecutive failure signatures from Entire Git checkpoints (refs/entire/checkpoints/).
  • Emergency Circuit Breaker: When failure counts reach 3, execution halts immediately to prevent token and credit burn.
  • Lakehouse Remediation: Fetches proven fixes from Databricks Delta Lake (dev_failure_traps).
  • Handoff Manifest: Generates .resurrect/handoff_manifest.json with token counts, cost saved estimates, and context badges.

Inspect Checkpoints & Telemetry

Inspect the latest session checkpoint, token estimates, and privacy status:

resurrect inspect-checkpoint

Track 1: Privacy Boundary Compliance

Agent Resurrect includes a local security and sanitization boundary:

  • Zero Leakage: Raw prompts, full stack frames, and transcripts are never sent to external services.
  • Token & Path Scrubbing: Local paths (C:\Users\...) and secrets (dapi..., Bearer...) are scrubbed before SQL query generation.
  • Explicit Context Transparency: Output is badged as [COMPLETE CONTEXT] or [PARTIAL / REDACTED CONTEXT] so downstream engineers know whether fixes are verified or heuristic.

Metadata

Release files for agent-resurrect-btw 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent-resurrect-btw 0.1.3
File Size Uploaded Provenance
agent_resurrect_btw-0.1.3.tar.gz 15.8 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for agent-resurrect-btw 0.1.3
File Interpreter ABI Platform
agent_resurrect_btw-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / agent_resurrect_btw-0.1.3.tar.gz

Download URL agent_resurrect_btw-0.1.3.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
ec95b0fef8a45cf1f597f6a707b76e68a06fd4adc281752a5d9e70941d955ee2
BLAKE2b-256 checksum
How to use checksums
1fcccd8b8cf18ce26e0aa9c89bb34627968832261faed12f9d183e3db359d3a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Release files / agent_resurrect_btw-0.1.3-py3-none-any.whl

Download URL agent_resurrect_btw-0.1.3-py3-none-any.whl
Size 17.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f5b24d1436cac0c3e41ae282caab3e970b446d96f4097f271951adc4f0ffffa7
BLAKE2b-256 checksum
How to use checksums
f0e50322b8c2e75b44700cfe8fb454f3b9121c3177d4e9fbe25c4a09c6d66c90
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.0

Security for agent-resurrect-btw 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page