agentraloop
v0.2.0
Published
Agent-centric pipeline runtime and web studio for orchestrating AI work.
Downloads
34
Maintainers
Readme
AgentraLoop
AgentraLoop is an agent-centric runtime for queueing, executing, and supervising long-running AI work. Instead of treating execution as a single chat transcript, it models pipelines, queues, tasks, runs, providers, and user workspaces as explicit runtime objects.
Status: active development, usable for local experimentation and self-hosted workflows.
License: ISC
Repository health:
npm run verifypassesnpm audit --omit=devreports0production vulnerabilities- docs, REST API reference, and contribution guides are included
Community:
Quick start:
npm install
npm run verify
npm run serveDefault local URL:
http://127.0.0.1:8787The project combines:
- a Node.js/TypeScript runtime and HTTP server
- a React-based Web Studio for operations and editing
- queue-backed task dispatch
- provider-aware agent execution across Codex and Claude integrations
Why AgentraLoop
Most AI applications still center everything around a live conversation. That works for short interactions, but it is a poor fit for continuous software work that needs:
- durable task intake
- queue ordering and pause/resume semantics
- explicit run state and history
- user-scoped workspaces
- operator-visible runtime control
- reusable workflow definitions
AgentraLoop is designed for that operational model.
Core Concepts
Pipeline: a directed graph of agent nodes and edgesQueue: the intake and ordering boundary for a pipelineTask: a queued unit of requested workRun: a concrete execution instance with node-level status and historyProvider: the backend that executes each node, such ascodex-cli,codex-sdk, orclaude-agent-sdkUser Scope: isolated workspace, data, logs, queues, and pipelines per user
Features
- Queue-driven execution for long-running AI work
- Pipeline graph editing in the browser
- Run inspection with node-level status and event history
- Task queue management with reorder, pause, resume, edit, and delete operations
- User-scoped runtime isolation
- REST API for automation and external integrations
- VitePress documentation site with architecture, design, and API references
Repository Layout
src/: runtime, server, storage, schema validation, provider integrations, CLI entry pointsweb/: Vite + React Web Studiopipelines/: checked-in pipeline definitionsexamples/: small API/client examplestest/: Node test suitedocs/: VitePress documentation sourcepublic/app/: production Web Studio assets generated by the build
Requirements
- Node.js
>= 20.11 npmsqlite3onPATHif you want the full queue-backed test suite to passcodexonPATHif you usecodex-cliorcodex-sdkpipeline nodes- appropriate provider credentials and local setup for any agent backend you enable
Installation
Install dependencies:
npm installBuild the runtime and Web Studio:
npm run buildRunning the Server
Start the local HTTP server:
npm run serveDefault base URL:
http://127.0.0.1:8787The server hosts both the REST API and the Web Studio.
CLI Usage
Run the bundled default pipeline once:
npm run devAfter publishing to npm, the packaged CLI can be started directly with:
npx agentraloop serveYou can also run:
npx agentraloop runEnvironment Variables
Common runtime configuration:
PORT: HTTP server portPIPELINE_PATH: explicit default pipeline filePIPELINE_CWD: default workspace directoryPIPELINE_DB_PATH: SQLite database pathPIPELINE_MODEL_PROFILE: default model profile (fastorstandard)AGENTRALOOP_USERS_ROOT: root directory for user-scoped dataAGENTRALOOP_USERS_FILE: user registry JSON pathAGENTRALOOP_DEFAULT_USER_ID: default user scopeAGENTRALOOP_PUBLIC_DIR: override built web asset directory
Development Commands
npm run build: compilesrc/and build the web app intopublic/appnpm run build:web: rebuild only the Web Studio assetsnpm run lint: run the TypeScript typecheck gatenpm test: rebuild and run the Node test suitenpm run verify: run lint, tests, and docs build togethernpm run serve: start the HTTP server fromsrc/server.tsnpm run dev: run the default pipeline entry point fromsrc/main.tsnpm run docs:dev: start the VitePress docs site locallynpm run docs:generate: build the docs site oncenpm run docs:preview: preview the generated docs sitenpm run docs:site: build and preview the docs in one command
Contributing
Contribution workflow and repository expectations are documented here:
If you are changing runtime behavior, run npm test before opening a PR. For docs-only changes, run npm run docs:build.
Documentation
Documentation is organized as a VitePress site under docs/.
- Docs home: docs/index.md
- Getting started: docs/getting-started.md
- REST API reference: docs/api/rest-api.md
- Architecture: docs/architecture/index.md
- Design notes: docs/design/index.md
- Research notes: docs/research/index.md
Build and preview locally:
npm run docs:generate
npm run docs:previewDo not open docs/.vitepress/dist/index.html with file://. VitePress output should be previewed through an HTTP server.
REST API
The server exposes JSON-over-HTTP endpoints for:
- health and workspace inspection
- user scope management
- pipeline CRUD and graph saves
- queue and task operations
- run creation, control, inspection, and retry
See the full API reference here:
Example Workflow
- Start the server with
npm run serve. - Open the Web Studio in the browser.
- Select or create a user scope.
- Choose a pipeline in the Editor or Queue page.
- Submit a task into the selected queue.
- Watch the run progress in Runtime and inspect output in History.
Runtime Artifacts
These directories are typically local runtime state and should not be committed unless the change is intentional:
data/users/runtime-workspaces/logs/public/app/assets/
Status
AgentraLoop is under active development. The runtime model, Web Studio, and documentation are usable, but parts of the system still depend on local host setup, provider availability, and environment-specific tooling.
License
ISC. See LICENSE. ISC
