autoflow
Autoresearch orchestrator — discovers skills with autoresearch.enabled, runs the experiment loop, and uses a multiplicative composite metric with hard constraint gates.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-08-15
- Stars
- ★ 30
- Forks
- 7
01 前言 Front Matter
- name
- autoflow
- description
- Autoresearch orchestrator — discovers skills with autoresearch.enabled, runs the experiment loop, and uses a multiplicative composite metric with hard constraint gates.
- allowed-tools
- Read, Write, Edit, Bash, Grep, Glob
- argument-hint
- <start|status|pause|resume|metrics|history>
- disable-model-invocation
- true
02 资源文件 2
- 参考文档commands/autoflow.md26.1 KB
- 参考文档manifest.yaml2.1 KB
03 SKILL.md 正文
Autoflow — Autoresearch Orchestrator for Skill Self-Improvement
Purpose
Discover skills that opt into the autoresearch pattern (via autoresearch.enabled: true in their manifest), run experiments autonomously, measure quality via a multiplicative composite metric, and trigger skill self-improvement with strict ratchet mechanics. This is Karpathy's autoresearch applied to software delivery: agents experiment on real tasks, measure results with fixed evaluation infrastructure, and upgrade their own skills — but only when the evidence confirms improvement.
How It Works
- Configure — human picks an approval checkpoint (trust level) and reviews an execution plan with sequencing and parallelization rationale
- Discover autoresearch-enabled skills by scanning
manifest.yamlfiles forautoresearch.enabled: true - Load
program.md(human control surface) for thresholds, constraints, and cadence - Plan — deep-inspect eligible issues, infer explicit and implicit dependencies, build serial waves and bounded parallel packets, then present the plan for approval
- Run experiments: process approved runnable issues through the target skill with human gates auto-approved below the checkpoint and park issues at waiting-human checkpoints without stalling the whole drain
- Measure with the multiplicative composite score:
S = f^α · p^β · q^γ · (1-r)^δ - Improve after every completed issue when thresholds are breached: snapshot → skill-improve → evaluation window → ratchet decide
- Keep or revert — binary decision, no ambiguity, hard constraint gates as vetoes
Approval Checkpoints
At session start, the human chooses a trust level that controls which human gates auto-approve:
after-brainstorm/after-design/after-spec/after-scope/after-qa/after-pr/full-auto/all-gates
Default and max autonomy configured in program.md. Quality gates are never bypassed.
Inputs
- Subcommand:
start,status,pause,resume,metrics,history
Steps
- Follow the command specification in
${AGENTS_SKILLS_ROOT}/autoflow/commands/autoflow.mdexactly. - Always read
program.mdfrom the repository root before starting any loop iteration. - Never modify
program.md,_shared/*.pyscripts, or_shared/autoresearch.md— these are fixed evaluation infrastructure. - Respect all escalation and cadence rules from
program.md. - Log every run and improvement cycle to
.jarvis/context/autoflow/(per-project state). - Use
ratchet.pyfor all score computation, gate checking, and keep/revert decisions.
Output
- Run-by-run execution log with ratchet scores
- Aggregate quality score trend (multiplicative composite)
- Hard constraint gate status
- Improvement history with keep/revert decisions and evidence
- Escalation notifications when thresholds or constraints are breached
- Pool state (when running concurrently)
- Approved execution plan with dependency and packet rationale
The Autoresearch Protocol
See ${AGENTS_SKILLS_ROOT}/_shared/autoresearch.md for the full protocol specification,
including the three-file contract, metric layers, and adoption checklist.
Decision Trace Protocol
This skill participates in the skill evolution system by capturing decision traces at gate resolutions and consulting accumulated feedback.
Trace Consultation (short loop)
Before executing any step with a quality or human gate, query accumulated decision traces:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_query.py" recent \
--skill "autoflow" --gate "<gate_name>" --limit 5 --min-loops 1
If patterns or recent feedback exist, incorporate them as additional constraints. Do not cite traces to the user unless asked.
Trace Capture (after gate resolution)
After every gate resolves, capture a decision trace:
python3 "${AGENTS_SKILLS_ROOT}/_shared/trace_capture.py" capture \
--skill "autoflow" \
--gate "<gate_name>" --gate-type "<human|quality>" \
--outcome "<approved|rejected|passed|failed>" \
--refinement-loops <N> \
[--feedback "<user's feedback text>"] \
[--category <CATEGORY>]
Post-Run Retrospective
After completion, ask: "Any feedback on this autoflow run? (skip to finish)" If provided, capture via trace_capture.py with gate "run_retrospective" and gate-type "retrospective".
04 同仓库更多 Skills
wiki-research
Autonomous research orchestrator for Jarvis Wiki domains. Spawns a Claude agent with web tools to find new sources, drops them into raw/, runs the compile pipeline, and emits autoresearch traces for the autoflow ratchet.
tmux-agent-launcher
Launch Claude, OpenCode, or Codex in a named tmux session from the command line or agent workflows.
test-quality-validator
Validate generated or hand-written tests for coverage completeness, correctness, and false-green risks using the canonical QA runtime, regression artifacts, and optional delivery-profile rules.
tech-spec
Generate production-ready technical specifications from product specs.
tech-spec-review
Seven-lens engineering review for technical_spec.md files, including an explicit simplicity and architectural fitness gate.
spec-to-regression
Generate browser and API regression scenarios from approved product and technical specs using the Harnessy delivery profile and regression artifact contract.