合理的推断是:任务被拆成阶段,阶段之间通过持久化的任务状态串联,每个阶段有明确的输入输出快照。一旦进程崩溃,系统能从最近的检查点恢复,而不是从头重跑(否则 API 成本会失控)。下方流程图描述了这一数据流的典型形态:
graph TD
A[市场数据输入] --> B{"Convoy 编排器"}
B -->|"拆分阶段"| C[Agent 调研市场]
C --> D[生成功能清单]
D --> E[编码并生成 PR]
B --> F[状态持久化-检查点]
F -->|"崩溃后恢复"| C
E --> G[成本追踪]
G --> H[OpenClaw Gateway 暴露 80+ API]
H --> I[外部系统调用]
80+ 个 API 端点的数量说明它被设计成一个可被外部驱动的"引擎"而非单体脚本:OpenClaw Gateway 作为自托管入口,把这些能力(任务创建、状态查询、成本统计等)以接口形式暴露,方便接入 CI、看板或自研控制台。这种"网关 + 引擎"的分层,也让成本追踪有了落点——每一次模型调用的消耗都可以按任务、按阶段归集。
The world's first Autonomous Product Engine (APE): AI agents research your market, generate features, and ship code as PRs. Convoy mode, crash recovery, cost tracking, 80+ API endpoints. Self-hosted via OpenClaw Gateway.
Autopilot now has a product-level Repo Setup tab that verifies a repository is ready before agents create PR-bound work. It checks authenticated git access, default branch confirmation, GitHub API and PR metadata access, GitHub Actions status, workflow token permissions, PR workflow secrets, and PR workflow variables.
When setup is blocked, users can fix supported GitHub configuration from the UI: set workflow token permissions to read/write, add missing Actions secrets, and add missing Actions variables. Secret values are written directly to GitHub and are not stored in Autensa.
Build Queue tasks with GitHub PRs now include a PR checks recovery panel. Failed checks are classified as retryable, repo setup, or external provider failures, with actions to rerun failed GitHub Actions jobs or rerequest external checks where GitHub supports it.
Private Repo Readiness
Product creation and settings now validate private repos with authenticated git access, detect the remote default branch, and require user confirmation before Autopilot starts. Workspace isolation preflights the selected branch and can use the detected default branch, avoiding main clone failures on repos that use master.
Each dispatched task now gets its own OpenClaw conversation session. Previously, all tasks assigned to the same agent shared one session, causing context to accumulate across tasks until the model’s context window was exhausted and the agent stalled. The openclaw_sessions table already had a task_id column — dispatch now uses it for session lookup, session ID generation, and insert. Parallel tasks on the same agent work independently.
Agent ID fields now accept both standard UUID format (8-4-4-4-12) and 32-character hex identifiers from the OpenClaw gateway. Previously, Zod’s strict .uuid() validation rejected gateway-format agent IDs, causing “Invalid UUID” errors when assigning imported agents to tasks.
The task delete button now shows a loading state (“Deleting…”), disables during the request, and displays inline error messages when deletion fails. Previously, the button had no feedback — if the API request failed or was slow, users saw no response and assumed the button was broken.
The Autopilot product settings modal now includes a Status dropdown (Active / Paused) and a Danger Zone section with an Archive button. Paused products stop automated research and ideation cycles. Archived products are hidden from the dashboard but data is preserved. The main product listing now filters out archived products.
v2.4.1 — Community Bug Fixes
Autopilot model routing — Provider models now route through openclaw/default with the original model in x-openclaw-model, fixing 404 errors on OpenClaw deployments. (@Ahmedkasmi-dev, #109)
AUTOPILOT_MODEL env var — Removed hardcoded model override in description generation so the shared AUTOPILOT_MODEL config is respected. (@aaronmeza, #116)
Gateway catalog sync — Local agent role assignments are now preserved during gateway sync instead of being overwritten every 60 seconds. (@cgluttrell, #119)
Task chat reliability — Agent replies are now captured even without an active SSE connection, and the “waiting” indicator no longer shows stale state. (@heliokeplert-ctrl, #126)
v2.4.0 — Agent Skill Creation Loop
Agents learn reusable procedures from completed tasks
v2.2.x — Preference learning, token tracking, health check endpoints, backup API
v2.1.x — Server-side pipeline, error reporting, idea badges
v2.0.x — Session key prefix, dispatch stability, community contributions
v2.0 Highlights
Autensa v2 is a ground-up expansion from task orchestration dashboard to the world’s first autonomous product improvement engine. It researches your market, generates feature ideas, lets you decide with a swipe, and builds them — automatically.
🔬 Product Autopilot — The Full Pipeline
The headline feature. Point Autensa at any product (repo + live URL) and it runs a continuous improvement loop:
Autonomous Research — AI agents analyze your codebase, scan your live site, and research your market: competitors, user intent, conversion patterns, SEO gaps, technical opportunities. Runs on configurable schedules — daily, weekly, or on-demand.
AI-Powered Ideation — Research feeds into ideation agents that generate concrete, scored feature ideas. Each idea includes an impact score, feasibility score, size estimate, technical approach, and a direct link to the research that inspired it.
Swipe to Decide — Ideas appear as cards in a Tinder-style interface. Four actions:
Pass — Rejected. The preference model learns from it.
Maybe — Saved to the Maybe Pool. Resurfaces in 1 week with fresh context.
Automated Build → PR — Approved ideas flow through the full agent pipeline: Build agent implements the feature → Test agent runs the suite → Review agent inspects the diff → Pull request created on GitHub with full context.
Your only job is the swipe. Everything else is automated.
📄 Product Program (Karpathy AutoResearch Pattern)
Inspired by Andrej Karpathy’s AutoResearch architecture. Each product has a Product Program — a living document that instructs research and ideation agents on what to look for, what matters, and what to ignore. The program evolves as swipe data accumulates: the system learns your taste, not just patterns.
🚛 Convoy Mode — Parallel Multi-Agent Execution
Large features get decomposed into subtasks with a visual dependency graph (DAG). Multiple agents (3–5) work simultaneously with dependency-aware scheduling:
Parallel subtask execution — Independent pieces run concurrently
Dependency graph visualization — See what depends on what
Health monitoring — Detects stalled, stuck, or zombie agents automatically
Auto-nudge — Reassigns or restarts agents that go dark
Crash recovery — Checkpoints save agent progress; work resumes from last checkpoint, not from scratch
💬 Operator Chat — Talk to Agents Mid-Build
Don’t wait for a PR to give feedback. Two communication modes:
Queued Notes — Add context (“use the existing auth middleware”) that gets delivered at the agent’s next checkpoint
Direct Messages — Delivered immediately to the agent’s active session for real-time course correction
Full chat history preserved per task — every message, note, and response.
💰 Cost Tracking & Budget Caps
Granular spend visibility across every dimension:
Per-task cost tracking — See exactly what each feature costs to build
Per-product aggregation — Total spend across all tasks for a product
Daily and monthly caps — Set budget limits that auto-pause dispatch when exceeded
Cost breakdown API — Detailed reports by agent, model, and time period
🧠 Knowledge Base & Learner Agent
A dedicated Learner agent captures lessons from every build cycle — what worked, what failed, what patterns emerged. Knowledge entries are injected into future dispatches so agents don’t repeat mistakes.
📋 Enhanced Planning Phase
Before any build starts, agents run a structured planning phase:
AI asks clarifying questions about requirements and constraints
Generates a detailed spec from your answers
Multi-agent planning specs with sub-agent definitions and execution steps
Approval gate — you review the plan before any code is written
🔄 Checkpoint & Crash Recovery
Agent progress is saved at configurable checkpoints:
If a session crashes, work resumes from the last checkpoint — not from scratch
Checkpoint restore API for manual recovery
Checkpoint history visible per task
🎯 Preference Learning
Every swipe trains a per-product preference model:
Category weights (growth, SEO, UX, etc.) adjust based on approvals/rejections
Complexity preferences calibrate over time
Tag pattern recognition refines idea generation
Ideas get sharper with every iteration
🔁 Maybe Pool
Ideas you’re not sure about don’t disappear:
Swiped “Maybe” ideas enter a holding pool
Automatically resurface after a configurable period with new market context
Batch re-evaluation mode to review accumulated maybes
Can be promoted to Yes at any time
📡 Live Activity Feed
Real-time SSE stream of everything happening across all products:
Research progress, ideation cycles, swipe events
Build progress, test results, review outcomes
Agent health events, cost updates, PR creation
Filterable by product, agent, and event type
🛡️ Automation Tiers
Choose your comfort level per product:
Tier
Behavior
Best For
Supervised
PRs created automatically. You review and merge manually.
Production apps
Semi-Auto
PRs auto-merge when CI passes and review agent approves.
Staging & trusted repos
Full Auto
Everything automated end-to-end. Idea → deployed feature.
Side projects & MVPs
🔀 Workspace Isolation
Each build task gets an isolated workspace:
Git Worktrees for repo-backed projects — isolated branch, no conflicts with other agents
Task Sandboxes for local/no-repo projects — dedicated directory under .workspaces/task-{id}/
Port allocation (4200–4299 range) for dev servers — no port conflicts between concurrent builds
Serialized merge queue — completed tasks merge one at a time with conflict detection
Product-scoped locking — concurrent completions for the same product queue automatically
📊 Product Scheduling
Configure autonomous cycles per product:
Research frequency (daily, weekly, custom cron)
Ideation frequency (after each research cycle, or independent schedule)
Auto-dispatch rules (immediate on “Yes” swipe, or batch)
Schedule management UI with enable/disable per schedule
✨ Features
Product Autopilot
🔬 Autonomous market research (competitors, SEO, user intent, technical gaps)
💡 AI-powered ideation with impact/feasibility scoring
👆 Swipe interface for instant approve/reject/maybe decisions
🛡️ Privacy first — no trackers, no centralized data collection
🌐 Multi-machine support (Tailscale compatible)
🛡️ Automation tiers (Supervised / Semi-Auto / Full Auto)
🛡️ Privacy
Autensa is open-source and self-hosted. The project does not include ad trackers, third-party analytics beacons, or a centralized data collector.
Your task data, research results, ideas, swipe history, and product programs stay in your own deployment (SQLite + workspace). If you connect external services (AI providers or remote gateways), only the data you explicitly send to those services leaves your environment.
SQLite database auto-created at ./mission-control.db. Migrations run automatically on startup (21 migrations). As of v2.0.1, a timestamped backup is created before any pending migration runs.
Check OpenClaw is running: openclaw gateway status
Verify URL and token in .env.local
Check firewall isn’t blocking port 18789
Planning questions not loading
Check OpenClaw logs: openclaw gateway logs
Verify your AI API key is valid
Refresh and click the task again
Port 4000 already in use
lsof -i :4000
kill -9 <PID>
Agent callbacks failing behind a proxy (502 errors)
If you’re behind an HTTP proxy (corporate VPN, Hiddify, etc.), agent callbacks to localhost may fail because the proxy intercepts local requests.
Fix: Set NO_PROXY so localhost bypasses the proxy:
# Linux / macOS
export NO_PROXY=localhost,127.0.0.1
# Windows (cmd)
set NO_PROXY=localhost,127.0.0.1
# Docker
docker run -e NO_PROXY=localhost,127.0.0.1 ...
评论