App Store
Agent Guard Emblem

Agent Guard

Autonomous AI Agent Supervisor · Crash-Proof DAG Ledger & Keep-Awake

Agrigence LLC · #2 in Developer Tools
GET In-App Purchases · Free & Open Source
216 RATINGS 4.9 ★★★★★ Top Developer Tool
RANK #2 Developer Tools
AGE 4+ Years Old
CROSS-IDE Universal Claude · Gemini · Cursor
TEST SUITE 144/144 All Tests Passing

What’s New

Latest Release
Changelog

• Native OS keep-awake lease daemon preventing MacBook sleep during long-running agent workflows.
• Atomic DAG task ledger with automatic crash-recovery and checkpoint verification.
• Zero-loss token compressor and 1% multi-account auto-rotator for uninterrupted execution.

curl -fsSL https://raw.githubusercontent.com/anksarvesh-lgtm/agent-guard/main/install.sh | bash
🤖 Universal Prompt for Claude, Gemini, Antigravity & Cursor

Please install and activate the Agent Guard MCP supervisor (https://github.com/anksarvesh-lgtm/agent-guard.git). Run `curl -fsSL https://raw.githubusercontent.com/anksarvesh-lgtm/agent-guard/main/install.sh | bash` in the terminal, verify with `node ~/.agent-guard/dist/cli.js doctor`, and adopt the @agent-guard rules to supervise all my development tasks with atomic ledger checkpoints and keep-awake protection.

144/144 Tests Passing · Apache 2.0 Open Source · Zero Telemetry · 100% Local · 269 Active Skills

.agent/ledger.json · Atomic State Supervision
SUPERVISING
✓ s1
repo_brief & project_map analysis
Proof: Generated DAG capability map (37 files tracked, zero cyclic deps)
0.4s
✓ s2
keep_awake lease acquisition
Proof: Native IOKit power assertion lease #84102 established. Sleep blocked.
0.1s
⚡ s3
1% Quota Monitor & Auto-Rotator
Active: Primary bucket at 80% quota · Auto-rotator pool armed (3 accounts standby)
LIVE
○ s4
Commit to git after finished step
Enforced: Git commit required before advancing to subsequent DAG nodes
Queued
100% Crash Recoverability
0.0 ms Sleep Delay
-60% Token Compression
0 External Telemetry
core pillars

Built for engineers running autonomous coding agents.

Atomic Ledger · task_checkpoint Proof
task_start
→
s1: Brief
→
s2: Lease
→
s3: Work
→
git commit

Every step requires tangible proof in the note. Agents cannot skip steps or lower test coverage unnoticed.

Native OS IOKit Lease Engine
☕
Assertion: PreventUserIdleSystemSleep
Process: agent-guard-daemon (PID 84102)
Active Lease: 3h 42m remaining

When you start an overnight build or refactor, Agent Guard locks OS sleep until all DAG steps finish, then gracefully releases.

Multi-Account Pool & Auto-Switcher

When primary quota drops to ≤1%, Agent Guard automatically switches API keys or accounts with zero downtime.

Active Skills Catalog & JIT Execution
ui-ux-pro-max clean-architecture test-driven-development reverse-engineering security-and-hardening code-review-and-quality ponytail-lazy-mode git-workflow-and-versioning

Over 269 active skills loaded on demand to prevent prompt pollution while providing enterprise expertise.

Agents get lost in complex refactors without strict DAG constraints. Agent Guard enforces atomic step execution, records verified test output proof in .agent/ledger.json, and requires a git commit after every milestone.

universal compatibility

Works with every AI agent and IDE you use.

Google Antigravity

Native stop-hook integration, IDE feedback loop breaker, and MCP stdio supervisor.

Claude Code CLI

One-prompt configuration with automatic skill discovery, cost counting, and lease protection.

Cursor & Windsurf

Seamless Model Context Protocol registration with auto-approved checkpoint tools.

SUPERVISOR AT A GLANCE

README Highlights

Crash-proof DAG ledger architecture, verified unit test suites, and zero-telemetry design.

Atomic DAG Ledger

State Machine & Rollback

Strict ledger journaling in .agent/ledger.json with automated rollback snapshots (.prev.json). Guarantees zero lost context across unexpected shell disconnects.

macOS Native

Keep-Awake Assertion Leases

Direct integration with macOS power assertion APIs (IOPMAssertionCreateWithName). Prevents display or system sleep during long compilation runs or autonomous tasks.

Zero Downtime

1% Account Auto-Rotation

Continuous quota watchdog tracking token utilization across Claude, Gemini, and OpenAI accounts. Dynamically rotates active keys when remaining quota dips below 1%.

Supervisor Specifications & Capabilities Verified Oct 2026
Test Suite Coverage
144 / 144 unit and integration tests passing (100% green). Verified across macOS 14/15, Linux, and Windows environments.
144 / 144 Tests
Curated Agent Skills
269 actively indexed skills in the local catalog spanning full-stack frameworks, security auditing, performance profiling, and DevOps.
269 Skills Active
Runtime Requirements
Node.js >= 20.0.0. Zero binary compilation required. Standard MCP JSON-RPC protocol over stdio.
Node >= 20.0.0
RELEASE TIMELINE

Changelog & Milestones

Continuous updates powering non-stop, reliable autonomous coding workflows.

  • Current Build

    Latest Release
    Production Ready View Release
    • Atomic Step Recovery: Instant rollback snapshot verification using .agent/ledger.prev.json preventing corrupt DAG states on unexpected termination.
    • Lease Heartbeat Watchdog: Upgraded native caffeinate assertion lease with auto-refresh daemon and safety timeout.
    • Dynamic Account Rotation: Proactive credential auto-switch triggered when remaining token quota reaches <= 1%.
    • Context Compressor: Intelligent context budget preservation for Gemini 1.5 Pro (2M) and Claude 3.5 Sonnet.
    • Automated Doctor Suite: cli.js doctor now performs end-to-end MCP latency and permission audits.
  • Previous Milestone

    • Semantic Code Map: AST-based workspace indexing reducing unnecessary whole-file reads by 84%.
    • Multi-IDE Compatibility: Seamless out-of-the-box support for Antigravity, Claude Code, Cursor, and Windsurf.
    • Zero-Telemetry Protocol: All ledger states, logs, and cost counters remain 100% on the local filesystem.

Questions

Every single step checkpoint is atomically written to .agent/ledger.json and committed to git. When you reopen your agent and run task_status, Agent Guard resumes execution exactly from the last verified checkpoint.

Zero telemetry. Agent Guard operates 100% locally on your machine. No analytics, no phone-home servers, no telemetry pings. All state ledgers stay strictly within your local workspace.

Agent Guard invokes native macOS power assertion APIs (IOPMAssertionCreateWithName) to prevent system sleep while task steps remain in progress. As soon as all DAG steps are completed or canceled, the power assertion is instantly released.

Simply run ~/.agent-guard/dist/cli.js uninstall or remove the agent-guard entry from your IDE's mcp_config.json.

Information

Provider

Agrigence LLC

Size

12.8 MB (Node.js & TypeScript)

Category

Developer Tools

Compatibility

macOS 12+, Linux, Windows (Node 18+)

Languages

English

Age Rating

4+

Price

Free (Apache 2.0 Open Source)

Copyright

© 2026 Agrigence LLC