DSH Proactive Heartbeat & Autonomous Daemon

DSH Proactive Heartbeat & Autonomous Daemon

@john-walks-slow/dsh-proactive·v1.4.0·core

A production-grade asynchronous heartbeat and persistent daemon runtime for DeepSeek Harness agents. Features declarative cron scheduling, session state persistence, and event-driven wakeups for autonomous background workflows.

Proactive · Daemon · Cron · Microkernel

GitHubNPM
Installation & Integration
bash
manager:
$ pnpm add @john-walks-slow/dsh-proactive

Architecture

DSH Proactive equips DeepSeek Harness agents with an asynchronous event loop and resilient daemon supervisor. Traditional LLM workflows remain strictly reactive, failing to address continuous monitoring or automated infrastructure maintenance. By injecting persistent timer interrupts into the Cordis microkernel, agents can autonomously register cron expressions and asynchronous callbacks. Dormant sessions serialize context state into disk storage during idle phases and rehydrate seamlessly upon trigger delivery, optimizing token expenditure while enabling true autonomous background operation.

Core Features

01

Declarative Cron Syntax: Standard crontab registration with second-level precision and live cancellation

02

Zero-Waste Session Sleep: Persists dormant stacks to storage, eliminating idle token burn

03

Quiet Hours & Rate Limiter: Enforces daily dispatch thresholds and quiet-hour windows to curb alerts

04

Distributed Lock Safeguard: Built-in Redis and file locks prevent duplicate execution across clusters

Core Workflow

01

Schedule Registration

Agent registers cron expressions and wakeup intent via strongly typed schema tools.

02

Session Hibernation

Cordis interceptor serializes stack frames to lightweight persistence, releasing runtime locks.

03

Timer Interrupt Delivery

Host daemon identifies target interval and broadcasts execution wakeup signal to the bus.

04

Context Rehydration & Inference

Restores session context and environment variables, advancing downstream autonomous actions.

Configuration Parameters Reference (YAML / JSON)

ParameterTypeDefaultDescription
minIdleSecondsnumber60Minimum idle duration before state hibernation
quietHoursStartstring22:00Quiet window start timestamp (HH:mm)
dailyQuotanumber50Global maximum limit on autonomous wakeups per day