一键导入
autodev-lev
Heartbeat-driven autonomous development loop using lev loop autodev, with interval, budget, and tick controls for in-process SDLC execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Heartbeat-driven autonomous development loop using lev loop autodev, with interval, budget, and tick controls for in-process SDLC execution.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Routes adaptive multi-agent deliberation with fractal context cycles. Use when using /cdo, think/deep/debug/parliament work, or long runs paired with autoresearch scheduling.
Use when you need an evidence-first provenance report from `cass`, repo docs, `.lev`, `~/.agents/diagrams`, `qmd`, or Grep/Glob tools.
Use the codebase knowledge graph for structural code queries. Triggers on: explore the codebase, understand the architecture, what functions exist, show me the structure, who calls this function, what does X call, trace the call chain, find callers of, show dependencies, impact analysis, dead code, unused functions, high fan-out, refactor candidates, code quality audit, graph query syntax, Cypher query examples, edge types, how to use search_graph.
Handle blocked destructive commands. Use when dcg blocks rm -rf, git reset --hard, DROP DATABASE, kubectl delete, or when configuring agent safety guardrails.
Use when running a visible Lev autopilot that coordinates research, interview, arch, propose, AgentPing, warm-worker intent, realtime dashboard intent, and lev exec updates across the lifecycle.
Mine atuin history and shell logs to find repetitive workflows, build Rust CLI or bash automations. Use when analyzing command patterns or finding automation opportunities.
基于 SOC 职业分类
| name | autodev-lev |
| description | Heartbeat-driven autonomous development loop using lev loop autodev, with interval, budget, and tick controls for in-process SDLC execution. |
Heartbeat-driven autonomous development loop using Lev primitives. Unlike
/autodev-loop(which uses Claude Code CronCreate), this runs throughlev loop autodevwith sleep-based pacing — staying in-process with full state continuity between ticks.
/autodev-lev # Start with defaults (5m heartbeat)
/autodev-lev 10m # Custom interval
/autodev-lev --budget=50k # Token budget cap
/autodev-lev --max-ticks=5 # Stop after 5 ticks
/autodev-lev --until="all specs pass" # Semantic exit condition
/autodev-lev status # Show queue and config
/autodev-lev --dry-run # Scan only, show what would execute
┌─────────────────────────────────────────────────────────┐
│ Top-Level Orchestrator (you) │
│ Manages SDLC stages: SCAN → PLAN → EXEC → VALIDATE │
└──────────────┬──────────────────────────────────────────┘
│ /autodev-lev 5m
▼
┌─────────────────────────────────────────────────────────┐
│ Heartbeat Loop (lev loop autodev) │
│ │
│ ┌──────┐ sleep(5m) ┌──────┐ sleep(5m) ┌──────┐ │
│ │SCAN │────────────→│SCAN │────────────→│SCAN │ │
│ └──┬───┘ └──┬───┘ └──┬───┘ │
│ │ entities? │ entities? │ none │
│ ▼ ▼ ▼ │
│ ┌──────┐ ┌──────┐ all_done │
│ │ EXEC │ │ EXEC │ │
│ └──┬───┘ └──┬───┘ │
│ │ │ │
│ └─ runSdlcLoop() └─ runSdlcLoop() │
│ (token spend) (token spend) │
└─────────────────────────────────────────────────────────┘
| autodev-loop | autodev-lev | |
|---|---|---|
| Runtime | Claude Code CronCreate | lev loop autodev (in-process) |
| Pacing | Cron fires fresh invocation | Sleep between ticks (state preserved) |
| Token efficiency | Every tick = new context load | Scan phase = zero LLM cost |
| State | Stateless across ticks | Full continuity in-process |
| Concurrency | Single agent per cron tick | maxWorkers per tick |
| Exit conditions | Manual /autodev-loop --stop | Budget, until, max-ticks, circuit breaker |
lev loop for entity queuelev loop autodev with flags.lev/pm/plans/, docs/specs/).lev/validation-gates.yaml, report gate statusrunSdlcLoop() on discovered entitiessdlc-exec-validate)sdlc.flowmind.exec)maxWorkers for concurrent executionAfter each tick, check exit conditions in order:
--fail-fast flag--max-ticks limit--budgetSleep for --interval duration. Process stays alive, state preserved.
SIGINT/SIGTERM triggers graceful shutdown after current tick completes.
Config lives in plugins/core-sdlc/config.yaml under autodev.heartbeat:
autodev:
heartbeat:
interval: 5m
max_workers: 3
max_entities: 5
max_ticks: 0 # 0 = unlimited
budget_tokens: 0 # 0 = unlimited
stack: sdlc-exec-validate
profile: sdlc.flowmind.exec
circuit_breaker_threshold: 3
Overridable via CLI flags (flags win over config).
When invoked as /autodev-lev:
# 1. Parse args
INTERVAL="${1:-5m}"
FLAGS="${@:2}"
# 2. Delegate to lev loop autodev
lev loop autodev --interval=$INTERVAL $FLAGS
When the orchestrator (top-level agent) uses this skill:
lev loop autodev --interval=5m --max-ticks=10 --budget=100klev loop autodev status for queue snapshotUses existing prompt-stack plugin for entity composition:
sdlc-exec-validate — default: execute entity + validate gatessdlc-deepen-plan — deep plan decompositionsdlc-hygiene — hygiene scan--stack=<id>FlowMind will absorb this when it settles. Until then, prompt stacks are the steering layer.
| Reason | Meaning |
|---|---|
all_done | No entities remaining in queue |
no_work | No entities found on first scan |
budget_exhausted | Token budget consumed |
max_ticks | Hit --max-ticks limit |
until_met | Semantic exit condition satisfied |
fail_fast | Stopped on first failure |
circuit_breaker | 3 consecutive tick failures |
interrupted | SIGINT/SIGTERM received |
$ lev loop autodev --interval=5m --max-ticks=10 --budget=50k
⚡ Tick 1 | 4 entities | interval 5.0m
→ Processed: 2 | Succeeded: 2 | Failed: 0 | 45200ms
💤 Sleeping 5.0m...
⚡ Tick 2 | 2 entities | interval 5.0m | budget 12000/50000
→ Processed: 2 | Succeeded: 1 | Failed: 1 | 38100ms
💤 Sleeping 5.0m...
⚡ Tick 3 | 1 entities | interval 5.0m | budget 28000/50000
→ Processed: 1 | Succeeded: 1 | Failed: 0 | 22300ms
💤 Sleeping 5.0m...
⚡ Tick 4 | 0 entities | interval 5.0m | budget 35000/50000
✓ No entities remaining — all done.
─── Autodev Session Complete ───
Ticks: 4
Processed: 5
Succeeded: 4
Failed: 1
Duration: 15.2m
Exit: all_done
lev loop run directly.@lev-os/orchestration/entities — discoverPlans, loadLoopConfigplugins/core-sdlc/src/workflows/sdlc-loop.ts — runSdlcLoopplugins/prompt-stack — prompt composition (until FlowMind absorbs)core/exec — execution engine with semaphore + token trackingEnhanced idle/stale detection beyond basic pane_last_active:
Source: .lev/pm/parity/clawhip.yaml (cw-04), .lev/pm/parity/omx.yaml (omx-09), tribunal items 18+24 (UNANIMOUS AGREE)