Run one local goal
Use the generated default agent for a small, safe task. Add --progress and --events when you want to see the execution loop.
adaptive-agent run \
--progress \
--events \
"Summarize this repository in five bullets."
Bun + TypeScript runtime and CLI stack
AdaptiveAgent is the operating layer for reliable AI agents.
Run goal-oriented agents with typed tools, structured events, approvals, resumable runs, retries, child-run delegation, and multi-model support.
What is AdaptiveAgent?
AdaptiveAgent is the operating layer for reliable AI agents.
It is a Bun + TypeScript runtime and CLI stack for running goal-oriented agents with typed tools, structured events, approvals, resumable runs, retries, child-run delegation, and multi-model support.
It helps teams move from fragile agent demos to controlled, inspectable, recoverable production workflows.
Runtime shape
AdaptiveAgent runs goals as durable sessions: tools stay explicit, events record each step, approvals gate sensitive actions, and runtime history supports inspection, retries, and recovery.
adaptive-agent run
Tool
event log
runtime history
Getting Started in 60secs
These commands are the complete README quickstart, with code blocks styled for scanning and terminal use.
Use the platform installer for macOS, Linux, or Windows PowerShell.
curl -fsSL https://github.com/ugmurthy/adaptiveAgent/releases/latest/download/install.sh | sh
curl -fsSL https://github.com/ugmurthy/adaptiveAgent/releases/latest/download/install.sh | sh
irm https://github.com/ugmurthy/adaptiveAgent/releases/latest/download/install.ps1 | iex
If the installer says adaptive-agent is not on your PATH, run the exact PATH command it prints.
The default hosted quickstart uses OpenRouter.
export OPENROUTER_API_KEY="<your-key>"
$env:OPENROUTER_API_KEY = "<your-key>"
Other supported providers use their own keys:
Create local config, check the provider, and confirm the agent is working.
adaptive-agent init
adaptive-agent doctor --provider-check
adaptive-agent run "Hello, confirm you are working"
That is it. You now have a configured local agent that can run goals, use tools, and produce inspectable runtime history.
Examples
Use these examples after the quickstart has created local config and your provider API key is available in the shell.
Use the generated default agent for a small, safe task. Add --progress and --events when you want to see the execution loop.
adaptive-agent run \
--progress \
--events \
"Summarize this repository in five bullets."
The examples/writing-adaptive-agent.sh script builds a dated writing prompt, chooses the installed CLI when available, and runs with automatic approvals.
chmod +x ./examples/writing-adaptive-agent.sh
./examples/writing-adaptive-agent.sh \
"The impact of Grok 4 on open source AI"
Run the bundled storm-researcher profile for a long-form, citation-heavy article that discovers perspectives, outlines first, then writes.
export MESH_API_KEY="<your-key>"
adaptive-agent run \
--agent ./packages/agent-sdk/bundled/agents/storm-researcher.json \
--approval auto \
--events \
--progress \
"Write a cited STORM-style article about agent reliability patterns in 2026."
Docs
AdaptiveAgent is a CLI-facing shell workflow backed by a typed runtime. The normal path is initialize config, choose an agent profile, run a goal, and inspect or retry the result.
Run adaptive-agent init once to create ~/.adaptiveAgent, install bundled agents and skills, and write default settings.
adaptive-agent doctor --provider-checkadaptive-agent catalogadaptive-agent configThe default command is adaptive-agent run "goal". Pass --agent to use a specific JSON profile by path or by a name found in your configured agent directories.
--provider and --model.--runtime memory locally or --runtime postgres for durable history.--approval manual, auto, or reject.Use runtime output modes and event flags to make runs easy to debug locally or consume from scripts.
--progress, --events, and --inspect.--output json or --output jsonl.adaptive-agent retry --run-id <runId> for failed retryable runs.adaptive-agent run "goal" for a quick local run.
--progress --events --inspect to watch the loop and review the result.
--approval reject for read-only audits, manual for prompts, or auto for trusted automation.
--output json or --output jsonl from scripts, CI, and benchmark runs.
--runtime postgres when a run needs history, retry, or restart-safe execution.
--approval reject so it can inspect but not mutate.
--provider ollama when data should stay on your machine.
An agent profile is a portable JSON workflow: model, instructions, tools, defaults, and optional delegates. Save named profiles such as reviewer.json, researcher.json, or release-manager.json, then run them with --agent.
Start with a read-only reviewer that can inspect files and web pages but cannot write or run shell commands.
{
"version": 1,
"id": "reviewer",
"name": "Repository Reviewer",
"invocationModes": ["run"],
"defaultInvocationMode": "run",
"model": {
"provider": "openrouter",
"model": "qwen/qwen3.5-27b",
"apiKeyEnv": "OPENROUTER_API_KEY"
},
"workspaceRoot": ".",
"systemInstructions": "Review code for correctness, safety, tests, and maintainability. Return prioritized findings with file references.",
"tools": ["read_file", "list_directory", "web_search", "read_web_page"],
"defaults": {
"maxSteps": 30,
"capture": "summary"
}
}
Use the profile by path, or place it in one of your configured agent directories and use the short name.
adaptive-agent run \
--agent ./agents/reviewer.json \
--approval reject \
--progress \
--inspect \
"Review the current repository changes for risky runtime behavior."
adaptive-agent catalog
Understand a codebase
adaptive-agent run \
--progress \
--events \
"Map this repository: packages, entrypoints, data flow, tests, and risky areas."
Create structured automation
adaptive-agent run \
--input-json '{"topic":"agent reliability","audience":"engineering leaders"}' \
--output json \
"Create a concise research brief."
Run with a local model
adaptive-agent run \
--provider ollama \
--model llama3.2 \
--runtime memory \
"Summarize this document without using a hosted provider."
Persist and retry long-running work
adaptive-agent run \
--runtime postgres \
--events \
--inspect \
"Audit these logs and summarize likely root causes."
adaptive-agent retry --run-id <runId> --runtime postgres
Use eval commands when you want repeatable model or agent-profile comparisons over JSONL cases.
adaptive-agent eval cases \
--input ./data/tasks.jsonl \
--out ./runs/results.jsonl \
--runtime postgres \
--output jsonl
For bigger objectives, use a coordinator profile and a worker catalog so research, writing, review, and synthesis can be separated.
adaptive-agent swarm-run \
--agent coordinator \
--worker-catalog researcher,writer,reviewer \
--runtime postgres \
--events \
"Produce a launch strategy."
AdaptiveAgent is technical today, but the same runtime can be packaged for non-technical users.