๐Ÿงฌ Helix

April 9, 2026 ยท View on GitHub

Two lines of code. Your agent never halts again.

npm version license powered by

Helix is a self-repair SDK for AI agents. When your agent hits a failure โ€” rate limits, timeouts, auth expiry, schema changes โ€” Helix's PCEC engine automatically detects, repairs, and continues. Zero human intervention.

Part of the Helix ecosystem.


Install

npm install @helix/sdk

Usage

import { wrap } from '@helix/sdk'

// Your existing agent โ€” zero changes required
const agent = async (input: any) => {
  // ... your agent logic
}

// Add Helix โ€” two lines
const resilientAgent = wrap(agent, { geneMarket: true })

// That's it. When your agent fails, Helix self-repairs.

How PCEC works

Every failure triggers a 4-step repair cycle:

๐Ÿ” Perceive โ†’ classify the error type ๐Ÿ”ง Construct โ†’ generate repair candidates โš–๏ธ Evaluate โ†’ select the best strategy โœ… Commit โ†’ save fix to Gene Map permanently

The same failure will never cost the same repair twice.

Run the demo

# Terminal demo โ€” before/after comparison
npx ts-node demo.ts

# Web dashboard โ€” real-time visualization
npm run server
# open http://localhost:7842             # Live PCEC demo
# open http://localhost:7842/scenarios   # 3 crypto scenarios

# Inspect stored repairs
npx ts-node demo.ts --show-map

What the demo shows

Screenshot 2026-03-16 at 8 33 29โ€ฏPM
Without HelixWith Helix
Iterations completed7 / 4040 / 40
Human interventions10
Auto-repairs04
Agent statushaltedrunning

Gene Map

Screenshot 2026-03-16 at 8 35 46โ€ฏPM

Every repair is stored permanently in ~/.helix/gene_map.db.

Error TypeStrategyStored
RATE_LIMITbackoff_retryโœ“
HTTP_503switch_endpointโœ“
TIMEOUTincrease_timeoutโœ“
AUTH_EXPIREDrotate_credentialsโœ“

Gene Market (Phase 2)

Every repair becomes a Gene Capsule, broadcast to all Helix instances on the network. One team's fix becomes every team's immunity.

Built with

  • TypeScript
  • better-sqlite3 (Gene Map persistence)
  • PCEC engine (Perceive โ†’ Construct โ†’ Evaluate โ†’ Commit)
  • Express + SSE (real-time web dashboard)

Part of Helix โ€” the AI agent operating system. Autonomous agents that self-repair, evolve, and share immunity.