Production TypeScript / Node.js Engine

AgentStack Pro: The Production Harness for Autonomous Economic Agents

Stop building fragile agent loops that hallucinate runaway API bills or crash silently in production. AgentStack Pro is a zero-dependency, crash-resilient runtime harness engineered with deterministic CapEx budget gates, real-time fiat ROI ledgers, 1-tap mobile Telegram ChatOps approvals, and multi-agent swarm coordination.

Enterprise Agent Architecture

Engineered for High-Autonomy, Zero Runaway Spend

Traditional AI agents lack economic discipline. AgentStack Pro embeds institutional financial governance directly into the runtime cycle.

⚡

1. Deterministic State Machine & Crash Recovery

Guaranteed lifecycle transitions across IDLE, PLANNING, GATED_APPROVAL, EXECUTING, and COMPLETED. On node process restarts or unhandled network dropouts, state is atomically re-hydrated from persistent disk logs with zero state loss or duplicate task executions.

💰

2. Dual-Tier Economic Ledger

Real-time balance sheet tracking every input token, completion token, inference cost, and commercial revenue generation in fiat GBP (£). Compute net ROI, profit margins, and burn rate programmatically with append-only tamper-evident event streaming.

🛑

3. Strict CapEx Budget Gates & Circuit Breakers

Hard programmatic spending ceilings enforce maximum spend per transaction, per day, and per mission. Any tool execution or API dispatch exceeding the configured budget threshold automatically pauses the autonomous loop and escalates for human approval.

📱

4. 1-Tap Mobile Telegram ChatOps Harness

Receive structured executive telemetry directly in your Telegram inbox. Authorize commercial outlays, approve pull requests, or override budget ceilings with a single tap on interactive inline callback buttons. Full audit trails recorded in your ledger.

🐝

5. Subagent Swarm Coordinator (Commercial License)

Dispatch specialized child agent workers (Researcher, Auditor, Coder, Verifier) in isolated process contexts. Features worker crash isolation, hierarchical budget delegation, and centralized aggregation back to the primary economic ledger.

Zero-Dependency Developer Experience

Clean, Deterministic TypeScript / Node.js API

Under 50 KB total archive footprint. No heavyweight framework bloat. Ready to import into any Node 18+ application.

// Initialize AgentStack Pro with economic guardrails
import { AgentHarness, EconomicLedger, BudgetGate, TelegramChatOps } from './core/index.js';

const ledger = new EconomicLedger({ currency: 'GBP', initialBalanceGbp: 100.00 });
const budgetGate = new BudgetGate({ maxSpendPerTransactionGbp: 5.00, dailyCeilingGbp: 25.00 });
const chatops = new TelegramChatOps({ botToken: process.env.TELEGRAM_BOT_TOKEN, chatId: process.env.TELEGRAM_CHAT_ID });

const agent = new AgentHarness({
  agentId: 'AEA-01',
  ledger,
  budgetGate,
  chatops,
  async onTaskExecute(task) {
    // Check CapEx gate before invoking commercial API or outbound dispatch
    const gateCheck = await budgetGate.verifyOrPrompt({
      amountGbp: task.estimatedCostGbp,
      purpose: task.description,
      onEscalate: (proposal) => chatops.requestApproval(proposal)
    });

    if (!gateCheck.approved) {
      return { status: 'DEFERRED_AWAITING_APPROVAL' };
    }

    // Execute verified deterministic task
    const result = await task.run();
    ledger.recordTransaction({ costGbp: result.actualCostGbp, revenueGbp: result.revenueGeneratedGbp });
    return result;
  }
});

await agent.startLoop();
Instant Commercial Licensing

Perpetual Developer Licenses with Instant Fulfilment

One-time purchase, perpetual rights, zero recurring royalty fees. Instant zip download containing full TypeScript source, examples, and documentation.

Solo Developer License

Ideal for independent engineers and boutique automations.

£ 29 one-time / perpetual
  • ✓ Single commercial project deployment
  • ✓ Full core AgentHarness runtime engine
  • ✓ Deterministic State Machine & crash recovery
  • ✓ Dual-Tier Economic Ledger (tokens & GBP)
  • ✓ CapEx Budget Gate & daily ceiling enforcement
  • ✓ Mobile Telegram ChatOps with 1-tap approvals
  • ✓ Zero dependencies (Pure Node 18+ ESM)
  • ✓ Full TypeScript definitions & starter scripts
Buy Solo License (£29.00)
Lemon Squeezy KYC Verified Checkout • Instant Zip Download

Need institutional invoice settlement or custom purchase order? Email updates@watlinglabs.co.uk.