Extensible automation building blocks for agent authors.
A small TypeScript runtime for composing AI-agent calls into deterministic pipelines — cron jobs, webhooks, one-shots, agent chains. Drop a file into .thread-phase/, the framework picks it up.
npm install @autonome-research/thread-phase-cliThat's everything: library + adapter protocol + thread-phase CLI. The heavy agent SDKs (@anthropic-ai/sdk, openai, @mariozechner/pi-coding-agent) are optional peer deps — install only the ones whose adapter you use.
// .thread-phase/pipelines/hello.ts
import { oneShot } from '@autonome-research/thread-phase';
export default oneShot(async () => {
return { greeting: 'hello from thread-phase' };
});thread-phase run helloschedule({ intervalMs }), schedule({ cron }), hook({ path }) work the same way for cron jobs and webhooks. See EXTENDING.md.
| Package | Purpose |
|---|---|
@autonome-research/thread-phase |
Library: Phase, runPipeline, Trigger, JobRunner, patterns, helpers (oneShot / schedule / hook). |
@autonome-research/thread-phase-agents |
Adapter implementations for claude-code, codex, hermes, openclaw, pi, Anthropic, ACP chassis. |
@autonome-research/thread-phase-cli |
thread-phase bin + auto-loader. Depends on the other two — installing this gets the whole runtime. |
Locked versions across all three.
AGENTS.md— full guide for LLM agents generating thread-phase code.EXTENDING.md— extension contract (triggers, adapters, pipelines), three discovery tiers, and thethread-phase.extensionsmanifest format for extensions that need their own npm deps.MIGRATING.md— v2 → v3 upgrade notes.packages/thread-phase/docs/— patterns, recipes, cancellation.
MIT.