@r1z4x/tezgah 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +738 -0
- package/LICENSE +21 -0
- package/MANIFEST +753 -0
- package/README.de.md +169 -0
- package/README.es.md +168 -0
- package/README.fr.md +166 -0
- package/README.md +161 -0
- package/README.tr.md +163 -0
- package/agents/tezgah-reviewer.md +70 -0
- package/bin/codegen +337 -0
- package/bin/consult +797 -0
- package/bin/tezgah-adhd +50 -0
- package/bin/tezgah-agents +45 -0
- package/bin/tezgah-capture +66 -0
- package/bin/tezgah-context +96 -0
- package/bin/tezgah-decisions +213 -0
- package/bin/tezgah-design +953 -0
- package/bin/tezgah-docs +1199 -0
- package/bin/tezgah-doctor +497 -0
- package/bin/tezgah-dsh +37 -0
- package/bin/tezgah-dsh.cmd +70 -0
- package/bin/tezgah-gate +75 -0
- package/bin/tezgah-import-ai-research +439 -0
- package/bin/tezgah-index +32 -0
- package/bin/tezgah-lessons +148 -0
- package/bin/tezgah-mcp +322 -0
- package/bin/tezgah-migrate +324 -0
- package/bin/tezgah-pony +50 -0
- package/bin/tezgah-research +772 -0
- package/bin/tezgah-rollback +93 -0
- package/bin/tezgah-route +124 -0
- package/bin/tezgah-setup +5798 -0
- package/bin/tezgah-status +383 -0
- package/bin/tezgah-task +607 -0
- package/bin/tezgah-taste +423 -0
- package/bin/tezgah-triage +485 -0
- package/bin/tezgah.js +36 -0
- package/commands/adhd.md +21 -0
- package/commands/ponytail.md +21 -0
- package/docs/README.md +112 -0
- package/docs/architecture.md +226 -0
- package/docs/citations-baseline.json +59 -0
- package/docs/clarity-baseline.json +116 -0
- package/docs/contract.md +416 -0
- package/docs/environment.md +141 -0
- package/docs/evidence.md +831 -0
- package/docs/feature-audit.md +139 -0
- package/docs/gate.md +407 -0
- package/docs/glossary.md +201 -0
- package/docs/hosts.md +400 -0
- package/docs/index.json +471 -0
- package/docs/judge.md +193 -0
- package/docs/layers.md +189 -0
- package/docs/models.md +160 -0
- package/docs/operations.md +666 -0
- package/docs/research.md +809 -0
- package/docs/results/paired-outcome-2026-10.jsonl +254 -0
- package/docs/results/paired-outcome-2026-10.md +204 -0
- package/docs/skills.md +236 -0
- package/docs/status-line.md +315 -0
- package/docs/testing.md +287 -0
- package/docs/vision.md +117 -0
- package/hooks/hooks.json +33 -0
- package/hooks/projects-auto-init.py +98 -0
- package/hooks/projects-posttooluse.py +149 -0
- package/hooks/projects-pretooluse.py +40 -0
- package/hooks/projects-stop.py +60 -0
- package/hooks/tezgah_agents.py +817 -0
- package/hooks/tezgah_apps.py +266 -0
- package/hooks/tezgah_attest.py +255 -0
- package/hooks/tezgah_clarity.py +171 -0
- package/hooks/tezgah_components.py +140 -0
- package/hooks/tezgah_context.py +2953 -0
- package/hooks/tezgah_embed.py +765 -0
- package/hooks/tezgah_gate.py +2736 -0
- package/hooks/tezgah_guard.py +177 -0
- package/hooks/tezgah_index.py +124 -0
- package/hooks/tezgah_integrity.py +5141 -0
- package/hooks/tezgah_judge.py +487 -0
- package/hooks/tezgah_lang.py +230 -0
- package/hooks/tezgah_lessons.py +210 -0
- package/hooks/tezgah_models.py +855 -0
- package/hooks/tezgah_paths.py +1132 -0
- package/hooks/tezgah_policy.py +1039 -0
- package/hooks/tezgah_rank.py +77 -0
- package/hooks/tezgah_replay.py +1109 -0
- package/hooks/tezgah_research.py +5176 -0
- package/hooks/tezgah_shapes.py +305 -0
- package/hooks/tezgah_skill_pick.py +227 -0
- package/hooks/tezgah_snapshot.py +490 -0
- package/hooks/tezgah_stopspec.py +320 -0
- package/hooks/tezgah_task.py +458 -0
- package/hooks/tezgah_taste.py +201 -0
- package/hooks/tezgah_untrusted.py +112 -0
- package/hooks/tezgah_update.py +430 -0
- package/hosts/codex/hook.py +268 -0
- package/hosts/codex/hooks.json +26 -0
- package/hosts/cursor/hook.py +461 -0
- package/hosts/cursor/hooks.json +44 -0
- package/hosts/dsh/hooks.json +21 -0
- package/hosts/dsh/statusline/lib/client.js +138 -0
- package/hosts/dsh/statusline/lib/index.js +104 -0
- package/hosts/dsh/statusline/package.json +28 -0
- package/hosts/omp/hook.py +277 -0
- package/hosts/omp/tezgah-hook.ts.in +701 -0
- package/hosts/opencode/plugins/tezgah.js +2742 -0
- package/hosts/opencode/tui/tezgah-tui.tsx +151 -0
- package/output-styles/tezgah.md +142 -0
- package/package.json +32 -0
- package/packaging/build.sh +342 -0
- package/packaging/install.ps1 +166 -0
- package/packaging/install.sh +56 -0
- package/packaging/upgrade.sh +142 -0
- package/skills/ai-research/0-autoresearch-skill/SKILL.md +411 -0
- package/skills/ai-research/0-autoresearch-skill/references/agent-continuity.md +95 -0
- package/skills/ai-research/0-autoresearch-skill/references/progress-reporting.md +166 -0
- package/skills/ai-research/0-autoresearch-skill/references/skill-routing.md +219 -0
- package/skills/ai-research/0-autoresearch-skill/templates/findings.md +44 -0
- package/skills/ai-research/0-autoresearch-skill/templates/research-log.md +41 -0
- package/skills/ai-research/01-model-architecture/litgpt/SKILL.md +469 -0
- package/skills/ai-research/01-model-architecture/litgpt/references/custom-models.md +569 -0
- package/skills/ai-research/01-model-architecture/litgpt/references/distributed-training.md +452 -0
- package/skills/ai-research/01-model-architecture/litgpt/references/supported-models.md +337 -0
- package/skills/ai-research/01-model-architecture/litgpt/references/training-recipes.md +620 -0
- package/skills/ai-research/01-model-architecture/mamba/SKILL.md +260 -0
- package/skills/ai-research/01-model-architecture/mamba/references/architecture-details.md +207 -0
- package/skills/ai-research/01-model-architecture/mamba/references/benchmarks.md +256 -0
- package/skills/ai-research/01-model-architecture/mamba/references/training-guide.md +389 -0
- package/skills/ai-research/01-model-architecture/nanogpt/SKILL.md +290 -0
- package/skills/ai-research/01-model-architecture/nanogpt/references/architecture.md +383 -0
- package/skills/ai-research/01-model-architecture/nanogpt/references/data.md +477 -0
- package/skills/ai-research/01-model-architecture/nanogpt/references/training.md +565 -0
- package/skills/ai-research/01-model-architecture/rwkv/SKILL.md +260 -0
- package/skills/ai-research/01-model-architecture/rwkv/references/architecture-details.md +345 -0
- package/skills/ai-research/01-model-architecture/rwkv/references/rwkv7.md +387 -0
- package/skills/ai-research/01-model-architecture/rwkv/references/state-management.md +370 -0
- package/skills/ai-research/01-model-architecture/torchtitan/SKILL.md +358 -0
- package/skills/ai-research/01-model-architecture/torchtitan/references/checkpoint.md +182 -0
- package/skills/ai-research/01-model-architecture/torchtitan/references/custom-models.md +259 -0
- package/skills/ai-research/01-model-architecture/torchtitan/references/float8.md +134 -0
- package/skills/ai-research/01-model-architecture/torchtitan/references/fsdp.md +127 -0
- package/skills/ai-research/02-tokenization/huggingface-tokenizers/SKILL.md +516 -0
- package/skills/ai-research/02-tokenization/huggingface-tokenizers/references/algorithms.md +654 -0
- package/skills/ai-research/02-tokenization/huggingface-tokenizers/references/integration.md +638 -0
- package/skills/ai-research/02-tokenization/huggingface-tokenizers/references/pipeline.md +724 -0
- package/skills/ai-research/02-tokenization/huggingface-tokenizers/references/training.md +566 -0
- package/skills/ai-research/02-tokenization/sentencepiece/SKILL.md +235 -0
- package/skills/ai-research/02-tokenization/sentencepiece/references/algorithms.md +201 -0
- package/skills/ai-research/02-tokenization/sentencepiece/references/training.md +305 -0
- package/skills/ai-research/03-fine-tuning/axolotl/SKILL.md +158 -0
- package/skills/ai-research/03-fine-tuning/axolotl/references/api.md +5549 -0
- package/skills/ai-research/03-fine-tuning/axolotl/references/dataset-formats.md +1030 -0
- package/skills/ai-research/03-fine-tuning/axolotl/references/index.md +16 -0
- package/skills/ai-research/03-fine-tuning/axolotl/references/other.md +3564 -0
- package/skills/ai-research/03-fine-tuning/llama-factory/SKILL.md +80 -0
- package/skills/ai-research/03-fine-tuning/llama-factory/references/_images.md +24 -0
- package/skills/ai-research/03-fine-tuning/llama-factory/references/advanced.md +1056 -0
- package/skills/ai-research/03-fine-tuning/llama-factory/references/getting_started.md +350 -0
- package/skills/ai-research/03-fine-tuning/llama-factory/references/index.md +20 -0
- package/skills/ai-research/03-fine-tuning/llama-factory/references/other.md +32 -0
- package/skills/ai-research/03-fine-tuning/peft/SKILL.md +431 -0
- package/skills/ai-research/03-fine-tuning/peft/references/advanced-usage.md +515 -0
- package/skills/ai-research/03-fine-tuning/peft/references/troubleshooting.md +481 -0
- package/skills/ai-research/03-fine-tuning/unsloth/SKILL.md +80 -0
- package/skills/ai-research/03-fine-tuning/unsloth/references/index.md +8 -0
- package/skills/ai-research/03-fine-tuning/unsloth/references/llms.md +83 -0
- package/skills/ai-research/04-mechanistic-interpretability/nnsight/SKILL.md +436 -0
- package/skills/ai-research/04-mechanistic-interpretability/nnsight/references/README.md +79 -0
- package/skills/ai-research/04-mechanistic-interpretability/nnsight/references/api.md +345 -0
- package/skills/ai-research/04-mechanistic-interpretability/nnsight/references/tutorials.md +301 -0
- package/skills/ai-research/04-mechanistic-interpretability/pyvene/SKILL.md +473 -0
- package/skills/ai-research/04-mechanistic-interpretability/pyvene/references/README.md +74 -0
- package/skills/ai-research/04-mechanistic-interpretability/pyvene/references/api.md +384 -0
- package/skills/ai-research/04-mechanistic-interpretability/pyvene/references/tutorials.md +377 -0
- package/skills/ai-research/04-mechanistic-interpretability/saelens/SKILL.md +386 -0
- package/skills/ai-research/04-mechanistic-interpretability/saelens/references/README.md +71 -0
- package/skills/ai-research/04-mechanistic-interpretability/saelens/references/api.md +334 -0
- package/skills/ai-research/04-mechanistic-interpretability/saelens/references/tutorials.md +319 -0
- package/skills/ai-research/04-mechanistic-interpretability/transformer-lens/SKILL.md +346 -0
- package/skills/ai-research/04-mechanistic-interpretability/transformer-lens/references/README.md +55 -0
- package/skills/ai-research/04-mechanistic-interpretability/transformer-lens/references/api.md +363 -0
- package/skills/ai-research/04-mechanistic-interpretability/transformer-lens/references/tutorials.md +340 -0
- package/skills/ai-research/05-data-processing/nemo-curator/SKILL.md +383 -0
- package/skills/ai-research/05-data-processing/nemo-curator/references/deduplication.md +88 -0
- package/skills/ai-research/05-data-processing/nemo-curator/references/filtering.md +103 -0
- package/skills/ai-research/05-data-processing/ray-data/SKILL.md +326 -0
- package/skills/ai-research/05-data-processing/ray-data/references/integration.md +83 -0
- package/skills/ai-research/05-data-processing/ray-data/references/transformations.md +84 -0
- package/skills/ai-research/06-post-training/grpo-rl-training/README.md +98 -0
- package/skills/ai-research/06-post-training/grpo-rl-training/SKILL.md +572 -0
- package/skills/ai-research/06-post-training/miles/SKILL.md +315 -0
- package/skills/ai-research/06-post-training/miles/references/api-reference.md +142 -0
- package/skills/ai-research/06-post-training/miles/references/troubleshooting.md +353 -0
- package/skills/ai-research/06-post-training/openrlhf/SKILL.md +249 -0
- package/skills/ai-research/06-post-training/openrlhf/references/algorithm-comparison.md +405 -0
- package/skills/ai-research/06-post-training/openrlhf/references/custom-rewards.md +531 -0
- package/skills/ai-research/06-post-training/openrlhf/references/hybrid-engine.md +288 -0
- package/skills/ai-research/06-post-training/openrlhf/references/multi-node-training.md +455 -0
- package/skills/ai-research/06-post-training/simpo/SKILL.md +219 -0
- package/skills/ai-research/06-post-training/simpo/references/datasets.md +479 -0
- package/skills/ai-research/06-post-training/simpo/references/hyperparameters.md +453 -0
- package/skills/ai-research/06-post-training/simpo/references/loss-functions.md +351 -0
- package/skills/ai-research/06-post-training/slime/SKILL.md +464 -0
- package/skills/ai-research/06-post-training/slime/references/api-reference.md +393 -0
- package/skills/ai-research/06-post-training/slime/references/troubleshooting.md +387 -0
- package/skills/ai-research/06-post-training/torchforge/SKILL.md +433 -0
- package/skills/ai-research/06-post-training/torchforge/references/api-reference.md +328 -0
- package/skills/ai-research/06-post-training/torchforge/references/troubleshooting.md +410 -0
- package/skills/ai-research/06-post-training/trl-fine-tuning/SKILL.md +455 -0
- package/skills/ai-research/06-post-training/trl-fine-tuning/references/dpo-variants.md +228 -0
- package/skills/ai-research/06-post-training/trl-fine-tuning/references/online-rl.md +83 -0
- package/skills/ai-research/06-post-training/trl-fine-tuning/references/reward-modeling.md +123 -0
- package/skills/ai-research/06-post-training/trl-fine-tuning/references/sft-training.md +169 -0
- package/skills/ai-research/06-post-training/verl/SKILL.md +391 -0
- package/skills/ai-research/06-post-training/verl/references/api-reference.md +302 -0
- package/skills/ai-research/06-post-training/verl/references/troubleshooting.md +392 -0
- package/skills/ai-research/07-safety-alignment/constitutional-ai/SKILL.md +290 -0
- package/skills/ai-research/07-safety-alignment/llamaguard/SKILL.md +337 -0
- package/skills/ai-research/07-safety-alignment/nemo-guardrails/SKILL.md +297 -0
- package/skills/ai-research/07-safety-alignment/prompt-guard/SKILL.md +312 -0
- package/skills/ai-research/08-distributed-training/accelerate/SKILL.md +332 -0
- package/skills/ai-research/08-distributed-training/accelerate/references/custom-plugins.md +454 -0
- package/skills/ai-research/08-distributed-training/accelerate/references/megatron-integration.md +490 -0
- package/skills/ai-research/08-distributed-training/accelerate/references/performance.md +526 -0
- package/skills/ai-research/08-distributed-training/deepspeed/SKILL.md +141 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/08.md +18 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/09.md +174 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/2020.md +379 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/2023.md +280 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/assets.md +180 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/index.md +36 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/mii.md +119 -0
- package/skills/ai-research/08-distributed-training/deepspeed/references/other.md +1192 -0
- package/skills/ai-research/08-distributed-training/megatron-core/SKILL.md +366 -0
- package/skills/ai-research/08-distributed-training/megatron-core/references/benchmarks.md +250 -0
- package/skills/ai-research/08-distributed-training/megatron-core/references/parallelism-guide.md +405 -0
- package/skills/ai-research/08-distributed-training/megatron-core/references/production-examples.md +474 -0
- package/skills/ai-research/08-distributed-training/megatron-core/references/training-recipes.md +548 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/SKILL.md +231 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_dcp_async_recipe.md +14 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_dcp_overview.md +19 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_dcp_recipe.md +18 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_ddp_notes.md +10 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_device_mesh_tutorial.md +22 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_examples_fsdp2.md +15 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_fsdp1_api.md +9 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_fsdp2_tutorial.md +45 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_fully_shard_api.md +49 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/pytorch_tp_tutorial.md +22 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/ray_train_fsdp2_example.md +13 -0
- package/skills/ai-research/08-distributed-training/pytorch-fsdp2/references/torchtitan_fsdp_notes.md +14 -0
- package/skills/ai-research/08-distributed-training/pytorch-lightning/SKILL.md +346 -0
- package/skills/ai-research/08-distributed-training/pytorch-lightning/references/callbacks.md +437 -0
- package/skills/ai-research/08-distributed-training/pytorch-lightning/references/distributed.md +491 -0
- package/skills/ai-research/08-distributed-training/pytorch-lightning/references/hyperparameter-tuning.md +557 -0
- package/skills/ai-research/08-distributed-training/ray-train/SKILL.md +406 -0
- package/skills/ai-research/08-distributed-training/ray-train/references/multi-node.md +629 -0
- package/skills/ai-research/09-infrastructure/lambda-labs/SKILL.md +545 -0
- package/skills/ai-research/09-infrastructure/lambda-labs/references/advanced-usage.md +612 -0
- package/skills/ai-research/09-infrastructure/lambda-labs/references/troubleshooting.md +531 -0
- package/skills/ai-research/09-infrastructure/modal/SKILL.md +341 -0
- package/skills/ai-research/09-infrastructure/modal/references/advanced-usage.md +504 -0
- package/skills/ai-research/09-infrastructure/modal/references/troubleshooting.md +495 -0
- package/skills/ai-research/09-infrastructure/skypilot/SKILL.md +509 -0
- package/skills/ai-research/09-infrastructure/skypilot/references/advanced-usage.md +492 -0
- package/skills/ai-research/09-infrastructure/skypilot/references/troubleshooting.md +571 -0
- package/skills/ai-research/10-optimization/awq/SKILL.md +310 -0
- package/skills/ai-research/10-optimization/awq/references/advanced-usage.md +325 -0
- package/skills/ai-research/10-optimization/awq/references/troubleshooting.md +345 -0
- package/skills/ai-research/10-optimization/bitsandbytes/SKILL.md +411 -0
- package/skills/ai-research/10-optimization/bitsandbytes/references/memory-optimization.md +522 -0
- package/skills/ai-research/10-optimization/bitsandbytes/references/qlora-training.md +522 -0
- package/skills/ai-research/10-optimization/bitsandbytes/references/quantization-formats.md +448 -0
- package/skills/ai-research/10-optimization/flash-attention/SKILL.md +367 -0
- package/skills/ai-research/10-optimization/flash-attention/references/benchmarks.md +216 -0
- package/skills/ai-research/10-optimization/flash-attention/references/transformers-integration.md +294 -0
- package/skills/ai-research/10-optimization/gguf/SKILL.md +427 -0
- package/skills/ai-research/10-optimization/gguf/references/advanced-usage.md +505 -0
- package/skills/ai-research/10-optimization/gguf/references/troubleshooting.md +443 -0
- package/skills/ai-research/10-optimization/gptq/SKILL.md +450 -0
- package/skills/ai-research/10-optimization/gptq/references/calibration.md +338 -0
- package/skills/ai-research/10-optimization/gptq/references/integration.md +130 -0
- package/skills/ai-research/10-optimization/gptq/references/troubleshooting.md +96 -0
- package/skills/ai-research/10-optimization/hqq/SKILL.md +445 -0
- package/skills/ai-research/10-optimization/hqq/references/advanced-usage.md +529 -0
- package/skills/ai-research/10-optimization/hqq/references/troubleshooting.md +504 -0
- package/skills/ai-research/10-optimization/ml-training-recipes/SKILL.md +319 -0
- package/skills/ai-research/10-optimization/ml-training-recipes/references/architecture.md +320 -0
- package/skills/ai-research/10-optimization/ml-training-recipes/references/biomedical.md +498 -0
- package/skills/ai-research/10-optimization/ml-training-recipes/references/domain-specific.md +626 -0
- package/skills/ai-research/10-optimization/ml-training-recipes/references/experiment-loop.md +129 -0
- package/skills/ai-research/10-optimization/ml-training-recipes/references/optimizers.md +330 -0
- package/skills/ai-research/10-optimization/ml-training-recipes/references/scaling-and-selection.md +428 -0
- package/skills/ai-research/11-evaluation/bigcode-evaluation-harness/SKILL.md +405 -0
- package/skills/ai-research/11-evaluation/bigcode-evaluation-harness/references/benchmarks.md +394 -0
- package/skills/ai-research/11-evaluation/bigcode-evaluation-harness/references/custom-tasks.md +425 -0
- package/skills/ai-research/11-evaluation/bigcode-evaluation-harness/references/issues.md +395 -0
- package/skills/ai-research/11-evaluation/lm-evaluation-harness/SKILL.md +490 -0
- package/skills/ai-research/11-evaluation/lm-evaluation-harness/references/api-evaluation.md +491 -0
- package/skills/ai-research/11-evaluation/lm-evaluation-harness/references/benchmark-guide.md +489 -0
- package/skills/ai-research/11-evaluation/lm-evaluation-harness/references/custom-tasks.md +603 -0
- package/skills/ai-research/11-evaluation/lm-evaluation-harness/references/distributed-eval.md +520 -0
- package/skills/ai-research/11-evaluation/nemo-evaluator/SKILL.md +494 -0
- package/skills/ai-research/11-evaluation/nemo-evaluator/references/adapter-system.md +341 -0
- package/skills/ai-research/11-evaluation/nemo-evaluator/references/configuration.md +448 -0
- package/skills/ai-research/11-evaluation/nemo-evaluator/references/custom-benchmarks.md +316 -0
- package/skills/ai-research/11-evaluation/nemo-evaluator/references/execution-backends.md +362 -0
- package/skills/ai-research/12-inference-serving/llama-cpp/SKILL.md +258 -0
- package/skills/ai-research/12-inference-serving/llama-cpp/references/optimization.md +90 -0
- package/skills/ai-research/12-inference-serving/llama-cpp/references/quantization.md +214 -0
- package/skills/ai-research/12-inference-serving/llama-cpp/references/server.md +126 -0
- package/skills/ai-research/12-inference-serving/sglang/SKILL.md +442 -0
- package/skills/ai-research/12-inference-serving/sglang/references/deployment.md +491 -0
- package/skills/ai-research/12-inference-serving/sglang/references/radix-attention.md +414 -0
- package/skills/ai-research/12-inference-serving/sglang/references/structured-generation.md +542 -0
- package/skills/ai-research/12-inference-serving/tensorrt-llm/SKILL.md +187 -0
- package/skills/ai-research/12-inference-serving/tensorrt-llm/references/multi-gpu.md +299 -0
- package/skills/ai-research/12-inference-serving/tensorrt-llm/references/optimization.md +243 -0
- package/skills/ai-research/12-inference-serving/tensorrt-llm/references/serving.md +471 -0
- package/skills/ai-research/12-inference-serving/vllm/SKILL.md +364 -0
- package/skills/ai-research/12-inference-serving/vllm/references/optimization.md +227 -0
- package/skills/ai-research/12-inference-serving/vllm/references/quantization.md +285 -0
- package/skills/ai-research/12-inference-serving/vllm/references/server-deployment.md +256 -0
- package/skills/ai-research/12-inference-serving/vllm/references/troubleshooting.md +448 -0
- package/skills/ai-research/13-mlops/mlflow/SKILL.md +704 -0
- package/skills/ai-research/13-mlops/mlflow/references/deployment.md +745 -0
- package/skills/ai-research/13-mlops/mlflow/references/model-registry.md +771 -0
- package/skills/ai-research/13-mlops/mlflow/references/tracking.md +681 -0
- package/skills/ai-research/13-mlops/swanlab/SKILL.md +406 -0
- package/skills/ai-research/13-mlops/swanlab/references/integrations.md +305 -0
- package/skills/ai-research/13-mlops/swanlab/references/visualization.md +234 -0
- package/skills/ai-research/13-mlops/tensorboard/SKILL.md +629 -0
- package/skills/ai-research/13-mlops/tensorboard/references/integrations.md +639 -0
- package/skills/ai-research/13-mlops/tensorboard/references/profiling.md +546 -0
- package/skills/ai-research/13-mlops/tensorboard/references/visualization.md +621 -0
- package/skills/ai-research/13-mlops/weights-and-biases/SKILL.md +590 -0
- package/skills/ai-research/13-mlops/weights-and-biases/references/artifacts.md +585 -0
- package/skills/ai-research/13-mlops/weights-and-biases/references/integrations.md +701 -0
- package/skills/ai-research/13-mlops/weights-and-biases/references/sweeps.md +848 -0
- package/skills/ai-research/14-agents/a-evolve/SKILL.md +383 -0
- package/skills/ai-research/14-agents/a-evolve/references/README.md +831 -0
- package/skills/ai-research/14-agents/a-evolve/references/api.md +594 -0
- package/skills/ai-research/14-agents/a-evolve/references/architecture.md +417 -0
- package/skills/ai-research/14-agents/a-evolve/references/design-patterns.md +462 -0
- package/skills/ai-research/14-agents/a-evolve/references/examples.md +352 -0
- package/skills/ai-research/14-agents/a-evolve/references/issues.md +591 -0
- package/skills/ai-research/14-agents/a-evolve/references/releases.md +112 -0
- package/skills/ai-research/14-agents/a-evolve/references/tutorials.md +819 -0
- package/skills/ai-research/14-agents/autogpt/SKILL.md +403 -0
- package/skills/ai-research/14-agents/autogpt/references/advanced-usage.md +536 -0
- package/skills/ai-research/14-agents/autogpt/references/troubleshooting.md +421 -0
- package/skills/ai-research/14-agents/crewai/SKILL.md +498 -0
- package/skills/ai-research/14-agents/crewai/references/flows.md +439 -0
- package/skills/ai-research/14-agents/crewai/references/tools.md +430 -0
- package/skills/ai-research/14-agents/crewai/references/troubleshooting.md +481 -0
- package/skills/ai-research/14-agents/langchain/SKILL.md +480 -0
- package/skills/ai-research/14-agents/langchain/references/agents.md +500 -0
- package/skills/ai-research/14-agents/langchain/references/integration.md +563 -0
- package/skills/ai-research/14-agents/langchain/references/rag.md +601 -0
- package/skills/ai-research/14-agents/llamaindex/SKILL.md +569 -0
- package/skills/ai-research/14-agents/llamaindex/references/agents.md +84 -0
- package/skills/ai-research/14-agents/llamaindex/references/data_connectors.md +109 -0
- package/skills/ai-research/14-agents/llamaindex/references/query_engines.md +407 -0
- package/skills/ai-research/15-rag/chroma/SKILL.md +406 -0
- package/skills/ai-research/15-rag/chroma/references/integration.md +39 -0
- package/skills/ai-research/15-rag/faiss/SKILL.md +221 -0
- package/skills/ai-research/15-rag/faiss/references/index_types.md +281 -0
- package/skills/ai-research/15-rag/pinecone/SKILL.md +358 -0
- package/skills/ai-research/15-rag/pinecone/references/deployment.md +182 -0
- package/skills/ai-research/15-rag/qdrant/SKILL.md +493 -0
- package/skills/ai-research/15-rag/qdrant/references/advanced-usage.md +649 -0
- package/skills/ai-research/15-rag/qdrant/references/troubleshooting.md +632 -0
- package/skills/ai-research/15-rag/sentence-transformers/SKILL.md +255 -0
- package/skills/ai-research/15-rag/sentence-transformers/references/models.md +124 -0
- package/skills/ai-research/16-prompt-engineering/dspy/SKILL.md +590 -0
- package/skills/ai-research/16-prompt-engineering/dspy/references/examples.md +664 -0
- package/skills/ai-research/16-prompt-engineering/dspy/references/modules.md +476 -0
- package/skills/ai-research/16-prompt-engineering/dspy/references/optimizers.md +567 -0
- package/skills/ai-research/16-prompt-engineering/guidance/SKILL.md +572 -0
- package/skills/ai-research/16-prompt-engineering/guidance/references/backends.md +555 -0
- package/skills/ai-research/16-prompt-engineering/guidance/references/constraints.md +675 -0
- package/skills/ai-research/16-prompt-engineering/guidance/references/examples.md +768 -0
- package/skills/ai-research/16-prompt-engineering/instructor/SKILL.md +740 -0
- package/skills/ai-research/16-prompt-engineering/instructor/references/examples.md +108 -0
- package/skills/ai-research/16-prompt-engineering/instructor/references/providers.md +71 -0
- package/skills/ai-research/16-prompt-engineering/instructor/references/validation.md +607 -0
- package/skills/ai-research/16-prompt-engineering/outlines/SKILL.md +652 -0
- package/skills/ai-research/16-prompt-engineering/outlines/references/backends.md +616 -0
- package/skills/ai-research/16-prompt-engineering/outlines/references/examples.md +774 -0
- package/skills/ai-research/16-prompt-engineering/outlines/references/json_generation.md +653 -0
- package/skills/ai-research/17-observability/langsmith/SKILL.md +422 -0
- package/skills/ai-research/17-observability/langsmith/references/advanced-usage.md +549 -0
- package/skills/ai-research/17-observability/langsmith/references/troubleshooting.md +538 -0
- package/skills/ai-research/17-observability/phoenix/SKILL.md +475 -0
- package/skills/ai-research/17-observability/phoenix/references/advanced-usage.md +620 -0
- package/skills/ai-research/17-observability/phoenix/references/troubleshooting.md +539 -0
- package/skills/ai-research/18-multimodal/audiocraft/SKILL.md +564 -0
- package/skills/ai-research/18-multimodal/audiocraft/references/advanced-usage.md +667 -0
- package/skills/ai-research/18-multimodal/audiocraft/references/troubleshooting.md +505 -0
- package/skills/ai-research/18-multimodal/blip-2/SKILL.md +564 -0
- package/skills/ai-research/18-multimodal/blip-2/references/advanced-usage.md +681 -0
- package/skills/ai-research/18-multimodal/blip-2/references/troubleshooting.md +527 -0
- package/skills/ai-research/18-multimodal/clip/SKILL.md +253 -0
- package/skills/ai-research/18-multimodal/clip/references/applications.md +208 -0
- package/skills/ai-research/18-multimodal/cosmos-policy/SKILL.md +402 -0
- package/skills/ai-research/18-multimodal/cosmos-policy/references/libero-commands.md +175 -0
- package/skills/ai-research/18-multimodal/cosmos-policy/references/robocasa-commands.md +147 -0
- package/skills/ai-research/18-multimodal/llava/SKILL.md +304 -0
- package/skills/ai-research/18-multimodal/llava/references/training.md +198 -0
- package/skills/ai-research/18-multimodal/openpi/SKILL.md +480 -0
- package/skills/ai-research/18-multimodal/openpi/references/checkpoints-and-env-map.md +86 -0
- package/skills/ai-research/18-multimodal/openpi/references/config-recipes.md +50 -0
- package/skills/ai-research/18-multimodal/openpi/references/pytorch-gotchas.md +49 -0
- package/skills/ai-research/18-multimodal/openpi/references/remote-client-pattern.md +48 -0
- package/skills/ai-research/18-multimodal/openpi/references/training-debugging.md +46 -0
- package/skills/ai-research/18-multimodal/openvla-oft/SKILL.md +441 -0
- package/skills/ai-research/18-multimodal/openvla-oft/references/aloha-workflow.md +141 -0
- package/skills/ai-research/18-multimodal/openvla-oft/references/config-troubleshooting.md +97 -0
- package/skills/ai-research/18-multimodal/openvla-oft/references/libero-workflow.md +115 -0
- package/skills/ai-research/18-multimodal/openvla-oft/references/paper-and-checkpoints.md +84 -0
- package/skills/ai-research/18-multimodal/segment-anything/SKILL.md +500 -0
- package/skills/ai-research/18-multimodal/segment-anything/references/advanced-usage.md +590 -0
- package/skills/ai-research/18-multimodal/segment-anything/references/troubleshooting.md +485 -0
- package/skills/ai-research/18-multimodal/stable-diffusion/SKILL.md +519 -0
- package/skills/ai-research/18-multimodal/stable-diffusion/references/advanced-usage.md +717 -0
- package/skills/ai-research/18-multimodal/stable-diffusion/references/troubleshooting.md +556 -0
- package/skills/ai-research/18-multimodal/whisper/SKILL.md +317 -0
- package/skills/ai-research/18-multimodal/whisper/references/languages.md +190 -0
- package/skills/ai-research/19-emerging-techniques/knowledge-distillation/SKILL.md +458 -0
- package/skills/ai-research/19-emerging-techniques/knowledge-distillation/references/minillm.md +335 -0
- package/skills/ai-research/19-emerging-techniques/long-context/SKILL.md +536 -0
- package/skills/ai-research/19-emerging-techniques/long-context/references/extension_methods.md +469 -0
- package/skills/ai-research/19-emerging-techniques/long-context/references/fine_tuning.md +612 -0
- package/skills/ai-research/19-emerging-techniques/long-context/references/rope.md +403 -0
- package/skills/ai-research/19-emerging-techniques/model-merging/SKILL.md +497 -0
- package/skills/ai-research/19-emerging-techniques/model-merging/references/coefficient-tuning.md +415 -0
- package/skills/ai-research/19-emerging-techniques/model-merging/references/evaluation.md +463 -0
- package/skills/ai-research/19-emerging-techniques/model-merging/references/examples.md +429 -0
- package/skills/ai-research/19-emerging-techniques/model-merging/references/methods.md +353 -0
- package/skills/ai-research/19-emerging-techniques/model-pruning/SKILL.md +495 -0
- package/skills/ai-research/19-emerging-techniques/model-pruning/references/wanda.md +348 -0
- package/skills/ai-research/19-emerging-techniques/moe-training/SKILL.md +526 -0
- package/skills/ai-research/19-emerging-techniques/moe-training/references/architectures.md +433 -0
- package/skills/ai-research/19-emerging-techniques/moe-training/references/inference.md +349 -0
- package/skills/ai-research/19-emerging-techniques/moe-training/references/training.md +426 -0
- package/skills/ai-research/19-emerging-techniques/speculative-decoding/SKILL.md +467 -0
- package/skills/ai-research/19-emerging-techniques/speculative-decoding/references/lookahead.md +310 -0
- package/skills/ai-research/19-emerging-techniques/speculative-decoding/references/medusa.md +351 -0
- package/skills/ai-research/20-ml-paper-writing/academic-plotting/SKILL.md +479 -0
- package/skills/ai-research/20-ml-paper-writing/academic-plotting/references/data-visualization.md +509 -0
- package/skills/ai-research/20-ml-paper-writing/academic-plotting/references/diagram-generation.md +395 -0
- package/skills/ai-research/20-ml-paper-writing/academic-plotting/references/style-guide.md +305 -0
- package/skills/ai-research/20-ml-paper-writing/ml-paper-writing/SKILL.md +982 -0
- package/skills/ai-research/20-ml-paper-writing/ml-paper-writing/references/checklists.md +348 -0
- package/skills/ai-research/20-ml-paper-writing/ml-paper-writing/references/citation-workflow.md +563 -0
- package/skills/ai-research/20-ml-paper-writing/ml-paper-writing/references/reviewer-guidelines.md +349 -0
- package/skills/ai-research/20-ml-paper-writing/ml-paper-writing/references/sources.md +165 -0
- package/skills/ai-research/20-ml-paper-writing/ml-paper-writing/references/writing-guide.md +477 -0
- package/skills/ai-research/20-ml-paper-writing/presenting-conference-talks/SKILL.md +298 -0
- package/skills/ai-research/20-ml-paper-writing/presenting-conference-talks/references/slide-templates.md +505 -0
- package/skills/ai-research/20-ml-paper-writing/systems-paper-writing/SKILL.md +270 -0
- package/skills/ai-research/20-ml-paper-writing/systems-paper-writing/references/checklist.md +279 -0
- package/skills/ai-research/20-ml-paper-writing/systems-paper-writing/references/reviewer-guidelines.md +116 -0
- package/skills/ai-research/20-ml-paper-writing/systems-paper-writing/references/section-blueprints.md +400 -0
- package/skills/ai-research/20-ml-paper-writing/systems-paper-writing/references/systems-conferences.md +261 -0
- package/skills/ai-research/20-ml-paper-writing/systems-paper-writing/references/writing-patterns.md +231 -0
- package/skills/ai-research/21-research-ideation/brainstorming-research-ideas/SKILL.md +384 -0
- package/skills/ai-research/21-research-ideation/creative-thinking-for-research/SKILL.md +366 -0
- package/skills/ai-research/22-agent-native-research-artifact/compiler/SKILL.md +245 -0
- package/skills/ai-research/22-agent-native-research-artifact/compiler/references/ara-schema.md +439 -0
- package/skills/ai-research/22-agent-native-research-artifact/compiler/references/exploration-tree-spec.md +125 -0
- package/skills/ai-research/22-agent-native-research-artifact/compiler/references/validation-checklist.md +149 -0
- package/skills/ai-research/22-agent-native-research-artifact/research-manager/SKILL.md +324 -0
- package/skills/ai-research/22-agent-native-research-artifact/research-manager/references/event-taxonomy.md +124 -0
- package/skills/ai-research/22-agent-native-research-artifact/research-manager/references/provenance-tags.md +190 -0
- package/skills/ai-research/22-agent-native-research-artifact/research-manager/references/session-protocol.md +162 -0
- package/skills/ai-research/22-agent-native-research-artifact/rigor-reviewer/SKILL.md +322 -0
- package/skills/ai-research/22-agent-native-research-artifact/rigor-reviewer/references/review-dimensions.md +182 -0
- package/skills/ai-research/SKILL.md +101 -0
- package/skills/ai-research/SOURCE +38 -0
- package/skills/ai-research/index/1-frame.md +18 -0
- package/skills/ai-research/index/2-data.md +21 -0
- package/skills/ai-research/index/3-train.md +48 -0
- package/skills/ai-research/index/4-measure.md +25 -0
- package/skills/ai-research/index/5-run.md +23 -0
- package/skills/ai-research/index/6-write.md +35 -0
- package/skills/ai-research/library.json +3456 -0
- package/skills/analyze-app/EVALS.md +82 -0
- package/skills/analyze-app/SKILL.md +188 -0
- package/skills/design-contract/EVALS.md +80 -0
- package/skills/design-contract/SKILL.md +171 -0
- package/skills/design-library/EVALS.md +85 -0
- package/skills/design-library/INDEX.md +59 -0
- package/skills/design-library/SKILL.md +58 -0
- package/skills/design-library/SOURCE +131 -0
- package/skills/design-library/adaptive-interfaces/skills/colour-independence/SKILL.md +90 -0
- package/skills/design-library/adaptive-interfaces/skills/flexible-typography/SKILL.md +83 -0
- package/skills/design-library/adaptive-interfaces/skills/information-density/SKILL.md +87 -0
- package/skills/design-library/adaptive-interfaces/skills/preference-audit/SKILL.md +70 -0
- package/skills/design-library/adaptive-interfaces/skills/responsive-accessibility/SKILL.md +86 -0
- package/skills/design-library/adaptive-interfaces/skills/responsive-review/SKILL.md +76 -0
- package/skills/design-library/adaptive-interfaces/skills/simplified-views/SKILL.md +97 -0
- package/skills/design-library/adaptive-interfaces/skills/specify/SKILL.md +63 -0
- package/skills/design-library/adaptive-interfaces/skills/user-preference-respect/SKILL.md +100 -0
- package/skills/design-library/cognitive-accessibility/skills/adaptive-personalisation/SKILL.md +61 -0
- package/skills/design-library/cognitive-accessibility/skills/assess-load/SKILL.md +48 -0
- package/skills/design-library/cognitive-accessibility/skills/cognitive-load-assessment/SKILL.md +60 -0
- package/skills/design-library/cognitive-accessibility/skills/contextual-help-design/SKILL.md +61 -0
- package/skills/design-library/cognitive-accessibility/skills/error-prevention-recovery/SKILL.md +71 -0
- package/skills/design-library/cognitive-accessibility/skills/focus-attention-design/SKILL.md +67 -0
- package/skills/design-library/cognitive-accessibility/skills/memory-load-reduction/SKILL.md +60 -0
- package/skills/design-library/cognitive-accessibility/skills/plain-language-design/SKILL.md +78 -0
- package/skills/design-library/cognitive-accessibility/skills/review/SKILL.md +56 -0
- package/skills/design-library/cognitive-accessibility/skills/simplify/SKILL.md +39 -0
- package/skills/design-library/cognitive-accessibility/skills/wayfinding-navigation/SKILL.md +64 -0
- package/skills/design-library/design-research/skills/behavioural-analytics/SKILL.md +33 -0
- package/skills/design-library/design-research/skills/qual-quant-triangulation/SKILL.md +33 -0
- package/skills/design-library/inclusive-interaction/skills/audit/SKILL.md +50 -0
- package/skills/design-library/inclusive-interaction/skills/design-flow/SKILL.md +58 -0
- package/skills/design-library/inclusive-interaction/skills/feedback-and-status/SKILL.md +76 -0
- package/skills/design-library/inclusive-interaction/skills/gesture-alternatives/SKILL.md +70 -0
- package/skills/design-library/inclusive-interaction/skills/keyboard-navigation/SKILL.md +99 -0
- package/skills/design-library/inclusive-interaction/skills/keyboard-review/SKILL.md +54 -0
- package/skills/design-library/inclusive-interaction/skills/motion-sensitivity/SKILL.md +79 -0
- package/skills/design-library/inclusive-interaction/skills/multi-modal-input/SKILL.md +70 -0
- package/skills/design-library/inclusive-interaction/skills/touch-target-design/SKILL.md +71 -0
- package/skills/design-library/inclusive-interaction/skills/voice-interaction/SKILL.md +68 -0
- package/skills/design-library/visual-critique/skills/critique-affordance/SKILL.md +45 -0
- package/skills/design-library/visual-critique/skills/critique-brand-consistency/SKILL.md +42 -0
- package/skills/design-library/visual-critique/skills/critique-color/SKILL.md +44 -0
- package/skills/design-library/visual-critique/skills/critique-composition/SKILL.md +46 -0
- package/skills/design-library/visual-critique/skills/critique-information-density/SKILL.md +45 -0
- package/skills/design-library/visual-critique/skills/critique-typography/SKILL.md +45 -0
- package/skills/design-library/visual-critique/skills/critique-visual-hierarchy/SKILL.md +40 -0
- package/skills/feature-audit/EVALS.md +83 -0
- package/skills/feature-audit/SKILL.md +326 -0
- package/skills/harness/EVALS.md +81 -0
- package/skills/harness/SKILL.md +88 -0
- package/skills/i-have-adhd/EVALS.md +80 -0
- package/skills/i-have-adhd/SKILL.md +183 -0
- package/skills/no-ai-slop/EVALS.md +89 -0
- package/skills/no-ai-slop/SKILL.md +209 -0
- package/skills/no-ai-slop/eval.md +52 -0
- package/skills/plan-add/EVALS.md +79 -0
- package/skills/plan-add/SKILL.md +179 -0
- package/skills/plan-add/render_table.py +72 -0
- package/skills/plan-status/EVALS.md +78 -0
- package/skills/plan-status/SKILL.md +52 -0
- package/skills/plan-sync/EVALS.md +80 -0
- package/skills/plan-sync/SKILL.md +69 -0
- package/skills/pm-frameworks/SKILL.md +33 -0
- package/skills/pm-frameworks/SOURCE +39 -0
- package/skills/pm-frameworks/intended-vs-implemented/SKILL.md +42 -0
- package/skills/pm-frameworks/opportunity-solution-tree/SKILL.md +64 -0
- package/skills/ponytail/EVALS.md +80 -0
- package/skills/ponytail/SKILL.md +124 -0
- package/skills/product-analysis/EVALS.md +103 -0
- package/skills/product-analysis/SKILL.md +361 -0
- package/skills/research/EVALS.md +104 -0
- package/skills/research/SKILL.md +570 -0
- package/skills/rl-env/SKILL.md +53 -0
- package/skills/rl-env/SOURCE +41 -0
- package/skills/rl-env/generate-nemo-gym-env/SKILL.md +169 -0
- package/skills/rl-env/generate-nemo-gym-env/references/architecture.md +114 -0
- package/skills/rl-env/generate-openenv-env/SKILL.md +183 -0
- package/skills/rl-env/generate-openenv-env/references/architecture.md +82 -0
- package/skills/rl-env/generate-ors-env/SKILL.md +209 -0
- package/skills/rl-env/generate-ors-env/references/architecture.md +113 -0
- package/skills/rl-env/generate-verifiers-env/SKILL.md +188 -0
- package/skills/rl-env/generate-verifiers-env/references/architecture.md +119 -0
- package/skills/rl-env/rl-env-from-description/SKILL.md +124 -0
- package/skills/rl-env/rl-env-from-description/references/interview.md +75 -0
- package/skills/rl-env/rl-env-from-description/references/nemo_gym.md +41 -0
- package/skills/rl-env/rl-env-from-description/references/openenv.md +35 -0
- package/skills/rl-env/rl-env-from-description/references/ors.md +50 -0
- package/skills/rl-env/rl-env-from-description/references/verifiers.md +39 -0
- package/skills/tezgah-contract/EVALS.md +78 -0
- package/skills/tezgah-contract/SKILL.md +792 -0
- package/statusline.py +129 -0
- package/workflows/graph-impact.js +153 -0
- package/workflows/graph-map.js +158 -0
- package/workflows/graph-review.js +170 -0
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
<!-- vendored from orchestra-research/AI-research-SKILLs@773a52944ba4747a18bd4ae9ade53fff041adcbc 14-agents/a-evolve/references/README.md; MIT (c) Orchestra Research -->
|
|
2
|
+
# A-Evolve Official Documentation Reference
|
|
3
|
+
|
|
4
|
+
> This document consolidates key information from the official A-Evolve documentation
|
|
5
|
+
> at [github.com/A-EVO-Lab/a-evolve](https://github.com/A-EVO-Lab/a-evolve).
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Project Overview](#project-overview)
|
|
10
|
+
- [Installation Guide](#installation-guide)
|
|
11
|
+
- [Quick Start Guide](#quick-start-guide)
|
|
12
|
+
- [Architecture Overview](#architecture-overview)
|
|
13
|
+
- [Agent Protocol](#agent-protocol)
|
|
14
|
+
- [Benchmark Adapters](#benchmark-adapters)
|
|
15
|
+
- [Evolution Engines](#evolution-engines)
|
|
16
|
+
- [Workspace Contract](#workspace-contract)
|
|
17
|
+
- [Configuration Reference](#configuration-reference)
|
|
18
|
+
- [Built-in Agents](#built-in-agents)
|
|
19
|
+
- [Built-in Benchmarks](#built-in-benchmarks)
|
|
20
|
+
- [Evolution Algorithms](#evolution-algorithms)
|
|
21
|
+
- [Skill System](#skill-system)
|
|
22
|
+
- [Memory System](#memory-system)
|
|
23
|
+
- [Version Control](#version-control)
|
|
24
|
+
- [Observation Pipeline](#observation-pipeline)
|
|
25
|
+
- [FAQ](#faq)
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Project Overview
|
|
30
|
+
|
|
31
|
+
A-Evolve is the universal infrastructure for evolving AI agents through self-improvement. It enables automatic, data-driven optimization of agents across any domain using any evolution algorithm.
|
|
32
|
+
|
|
33
|
+
### Design Principles
|
|
34
|
+
|
|
35
|
+
1. **File-system as contract**: All evolvable agent state lives as plain files in a workspace directory. No databases, no learned weights, no opaque parameters. Every mutation is an explicit edit to a text file.
|
|
36
|
+
|
|
37
|
+
2. **Pluggable everything**: Three interfaces — `BaseAgent`, `BenchmarkAdapter`, `EvolutionEngine` — enable any combination of agent, benchmark, and algorithm.
|
|
38
|
+
|
|
39
|
+
3. **Git for versioning**: Every evolution cycle creates git snapshots. Changes are diffable, rollbackable, and human-readable.
|
|
40
|
+
|
|
41
|
+
4. **LLM-in-the-loop**: The default evolution engine uses an LLM with bash tools to analyze observations and directly mutate workspace files. The evolver is itself an AI agent improving other AI agents.
|
|
42
|
+
|
|
43
|
+
5. **Zero manual engineering**: Once configured, evolution runs autonomously. The loop handles solving, evaluation, mutation, gating, and convergence detection.
|
|
44
|
+
|
|
45
|
+
### Key Results
|
|
46
|
+
|
|
47
|
+
Using Claude Opus 4.6 as both the solver and evolver model:
|
|
48
|
+
|
|
49
|
+
| Benchmark | Score | Leaderboard Position |
|
|
50
|
+
|-----------|-------|---------------------|
|
|
51
|
+
| MCP-Atlas | 79.4% | #1 |
|
|
52
|
+
| SWE-bench Verified | 76.8% | ~#5 |
|
|
53
|
+
| Terminal-Bench 2.0 | 76.5% | ~#7 |
|
|
54
|
+
| SkillsBench | 34.9% | #2 |
|
|
55
|
+
|
|
56
|
+
These results demonstrate that LLM-driven evolution of prompts, skills, and memory can produce state-of-the-art agent performance across diverse domains.
|
|
57
|
+
|
|
58
|
+
---
|
|
59
|
+
|
|
60
|
+
## Installation Guide
|
|
61
|
+
|
|
62
|
+
### Requirements
|
|
63
|
+
|
|
64
|
+
- Python >= 3.11
|
|
65
|
+
- Git (for workspace versioning)
|
|
66
|
+
- An LLM API key (Anthropic, OpenAI, or AWS Bedrock credentials)
|
|
67
|
+
|
|
68
|
+
### Installation Options
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
# Core package (matplotlib, pyyaml)
|
|
72
|
+
pip install a-evolve
|
|
73
|
+
|
|
74
|
+
# With specific LLM provider support
|
|
75
|
+
pip install a-evolve[anthropic] # Anthropic Claude API
|
|
76
|
+
pip install a-evolve[openai] # OpenAI API
|
|
77
|
+
pip install a-evolve[bedrock] # AWS Bedrock (boto3)
|
|
78
|
+
pip install a-evolve[litellm] # Multi-provider via LiteLLM
|
|
79
|
+
|
|
80
|
+
# With domain-specific dependencies
|
|
81
|
+
pip install a-evolve[swe] # SWE-bench (strands-agents, datasets, swebench)
|
|
82
|
+
pip install a-evolve[mcp] # MCP-Atlas (mcp, strands-agents, litellm)
|
|
83
|
+
pip install a-evolve[skillbench] # SkillsBench (strands-agents)
|
|
84
|
+
|
|
85
|
+
# Everything
|
|
86
|
+
pip install a-evolve[all]
|
|
87
|
+
|
|
88
|
+
# Development
|
|
89
|
+
pip install a-evolve[dev] # pytest, ruff, hypothesis
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### From Source
|
|
93
|
+
|
|
94
|
+
```bash
|
|
95
|
+
git clone https://github.com/A-EVO-Lab/a-evolve.git
|
|
96
|
+
cd a-evolve
|
|
97
|
+
pip install -e ".[all,dev]"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Verifying Installation
|
|
101
|
+
|
|
102
|
+
```python
|
|
103
|
+
import agent_evolve as ae
|
|
104
|
+
print(ae.__version__) # Should print version
|
|
105
|
+
print(ae.Evolver) # Should print class reference
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
---
|
|
109
|
+
|
|
110
|
+
## Quick Start Guide
|
|
111
|
+
|
|
112
|
+
### 3-Line Evolution
|
|
113
|
+
|
|
114
|
+
```python
|
|
115
|
+
import agent_evolve as ae
|
|
116
|
+
|
|
117
|
+
evolver = ae.Evolver(agent="swe", benchmark="swe-verified")
|
|
118
|
+
results = evolver.run(cycles=10)
|
|
119
|
+
print(f"Final score: {results.final_score}")
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
This:
|
|
123
|
+
1. Copies the built-in SWE seed workspace to a working directory
|
|
124
|
+
2. Instantiates `SweAgent` from the workspace manifest
|
|
125
|
+
3. Runs 10 evolution cycles against SWE-bench Verified
|
|
126
|
+
4. Returns `EvolutionResult` with scores, convergence status, and details
|
|
127
|
+
|
|
128
|
+
### With Custom Configuration
|
|
129
|
+
|
|
130
|
+
```python
|
|
131
|
+
import agent_evolve as ae
|
|
132
|
+
|
|
133
|
+
config = ae.EvolveConfig(
|
|
134
|
+
batch_size=15, # 15 tasks per cycle
|
|
135
|
+
max_cycles=25, # Up to 25 evolution rounds
|
|
136
|
+
evolve_prompts=True, # Mutate system prompt
|
|
137
|
+
evolve_skills=True, # Discover and refine skills
|
|
138
|
+
evolve_memory=True, # Build episodic memory
|
|
139
|
+
holdout_ratio=0.2, # 20% held out for validation
|
|
140
|
+
evolver_model="us.anthropic.claude-opus-4-6-v1",
|
|
141
|
+
egl_threshold=0.02, # Stop if < 2% improvement
|
|
142
|
+
egl_window=5, # Over 5 consecutive cycles
|
|
143
|
+
)
|
|
144
|
+
|
|
145
|
+
evolver = ae.Evolver(
|
|
146
|
+
agent="swe",
|
|
147
|
+
benchmark="swe-verified",
|
|
148
|
+
config=config,
|
|
149
|
+
)
|
|
150
|
+
results = evolver.run()
|
|
151
|
+
|
|
152
|
+
# Inspect results
|
|
153
|
+
print(f"Cycles: {results.cycles_completed}")
|
|
154
|
+
print(f"Score: {results.final_score:.3f}")
|
|
155
|
+
print(f"Converged: {results.converged}")
|
|
156
|
+
print(f"Score history: {results.score_history}")
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Architecture Overview
|
|
162
|
+
|
|
163
|
+
### System Diagram
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
User Code (3 lines)
|
|
167
|
+
│
|
|
168
|
+
▼
|
|
169
|
+
┌──────────────────────────────────────┐
|
|
170
|
+
│ Evolver API │
|
|
171
|
+
│ - Resolves agent, benchmark, config │
|
|
172
|
+
│ - Creates EvolutionLoop │
|
|
173
|
+
│ - Returns EvolutionResult │
|
|
174
|
+
└──────────────┬───────────────────────┘
|
|
175
|
+
│
|
|
176
|
+
┌──────────▼──────────┐
|
|
177
|
+
│ EvolutionLoop │
|
|
178
|
+
│ For each cycle: │
|
|
179
|
+
│ 1. Solve │
|
|
180
|
+
│ 2. Observe │
|
|
181
|
+
│ 3. Snapshot │
|
|
182
|
+
│ 4. Evolve │
|
|
183
|
+
│ 5. Snapshot │
|
|
184
|
+
│ 6. Record │
|
|
185
|
+
│ 7. Reload │
|
|
186
|
+
│ 8. Converge? │
|
|
187
|
+
└──────────┬──────────┘
|
|
188
|
+
│
|
|
189
|
+
┌──────────┼──────────┐
|
|
190
|
+
│ │ │
|
|
191
|
+
▼ ▼ ▼
|
|
192
|
+
Agent Benchmark Engine
|
|
193
|
+
solve() evaluate() step()
|
|
194
|
+
│ │ │
|
|
195
|
+
└──────────┼──────────┘
|
|
196
|
+
│
|
|
197
|
+
▼
|
|
198
|
+
Agent Workspace
|
|
199
|
+
(filesystem + git)
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
### Component Interactions
|
|
203
|
+
|
|
204
|
+
**Forward flow (solve):**
|
|
205
|
+
1. `EvolutionLoop` calls `benchmark.get_tasks()` to get a batch of tasks
|
|
206
|
+
2. For each task, calls `agent.solve(task)` to get a `Trajectory`
|
|
207
|
+
3. Calls `benchmark.evaluate(task, trajectory)` to get `Feedback`
|
|
208
|
+
4. Bundles into `Observation(task, trajectory, feedback)` triples
|
|
209
|
+
|
|
210
|
+
**Evolution flow (mutate):**
|
|
211
|
+
1. `EvolutionLoop` passes observations to `engine.step()`
|
|
212
|
+
2. Engine reads workspace files, analyzes observations
|
|
213
|
+
3. Engine mutates workspace files (prompts, skills, memory)
|
|
214
|
+
4. Returns `StepResult(mutated, summary, metadata)`
|
|
215
|
+
|
|
216
|
+
**Reload flow (sync):**
|
|
217
|
+
1. `EvolutionLoop` calls `agent.reload_from_fs()`
|
|
218
|
+
2. Agent re-reads prompts, skills, memory from workspace
|
|
219
|
+
3. Next cycle uses evolved state
|
|
220
|
+
|
|
221
|
+
---
|
|
222
|
+
|
|
223
|
+
## Agent Protocol
|
|
224
|
+
|
|
225
|
+
### BaseAgent Abstract Class
|
|
226
|
+
|
|
227
|
+
All evolvable agents inherit from `BaseAgent`:
|
|
228
|
+
|
|
229
|
+
```python
|
|
230
|
+
from agent_evolve.protocol.base_agent import BaseAgent
|
|
231
|
+
from agent_evolve.types import Task, Trajectory
|
|
232
|
+
|
|
233
|
+
class MyAgent(BaseAgent):
|
|
234
|
+
def __init__(self, workspace_dir: str):
|
|
235
|
+
super().__init__(workspace_dir)
|
|
236
|
+
# Initialize your LLM client, tools, etc.
|
|
237
|
+
|
|
238
|
+
def solve(self, task: Task) -> Trajectory:
|
|
239
|
+
"""Solve a single task and return the trajectory.
|
|
240
|
+
|
|
241
|
+
This is the only method you MUST override.
|
|
242
|
+
"""
|
|
243
|
+
# Your solving logic here
|
|
244
|
+
return Trajectory(
|
|
245
|
+
task_id=task.id,
|
|
246
|
+
output="solution",
|
|
247
|
+
steps=[{"tool": "llm", "action": "generate"}],
|
|
248
|
+
)
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
### Agent Lifecycle
|
|
252
|
+
|
|
253
|
+
1. **Construction**: `__init__(workspace_dir)` — set up LLM client, load initial state
|
|
254
|
+
2. **State loading**: `reload_from_fs()` — read prompts, skills, memory from workspace
|
|
255
|
+
3. **Solving**: `solve(task)` — process one task, return trajectory
|
|
256
|
+
4. **Memory buffering**: `remember(content, category)` — store lessons during solve
|
|
257
|
+
5. **State export**: `export_to_fs()` — flush buffered memories and skill proposals
|
|
258
|
+
6. **Hot reload**: `reload_from_fs()` — re-read after evolution mutates files
|
|
259
|
+
|
|
260
|
+
### Agent Properties
|
|
261
|
+
|
|
262
|
+
| Property | Type | Description |
|
|
263
|
+
|----------|------|-------------|
|
|
264
|
+
| `system_prompt` | `str` | Content of `prompts/system.md` |
|
|
265
|
+
| `skills` | `list[SkillMeta]` | Available skills from `skills/` directory |
|
|
266
|
+
| `memories` | `list[dict]` | Loaded episodic/semantic memories |
|
|
267
|
+
|
|
268
|
+
### Agent Best Practices
|
|
269
|
+
|
|
270
|
+
1. **Always use `self.system_prompt`** — don't hardcode prompts
|
|
271
|
+
2. **Inject skills into LLM context** — they're the primary evolution mechanism
|
|
272
|
+
3. **Call `remember()` for reusable lessons** — not for task-specific notes
|
|
273
|
+
4. **Keep `solve()` deterministic** when possible (temperature=0 for reproducibility)
|
|
274
|
+
5. **Truncate trajectories** — don't store full conversation if not needed for evolution
|
|
275
|
+
|
|
276
|
+
---
|
|
277
|
+
|
|
278
|
+
## Benchmark Adapters
|
|
279
|
+
|
|
280
|
+
### BenchmarkAdapter Abstract Class
|
|
281
|
+
|
|
282
|
+
```python
|
|
283
|
+
from agent_evolve.benchmarks.base import BenchmarkAdapter
|
|
284
|
+
from agent_evolve.types import Task, Trajectory, Feedback
|
|
285
|
+
|
|
286
|
+
class MyBenchmark(BenchmarkAdapter):
|
|
287
|
+
def get_tasks(self, split="train", limit=10):
|
|
288
|
+
"""Return tasks from the benchmark dataset.
|
|
289
|
+
|
|
290
|
+
Args:
|
|
291
|
+
split: "train" or "test" (for holdout evaluation)
|
|
292
|
+
limit: Maximum number of tasks to return (default 10)
|
|
293
|
+
"""
|
|
294
|
+
return [Task(id="1", input="task description")]
|
|
295
|
+
|
|
296
|
+
def evaluate(self, task, trajectory):
|
|
297
|
+
"""Evaluate an agent's trajectory on a task.
|
|
298
|
+
|
|
299
|
+
Returns Feedback with:
|
|
300
|
+
- success: bool (binary pass/fail)
|
|
301
|
+
- score: float (0.0 to 1.0 continuous)
|
|
302
|
+
- detail: str (human-readable explanation)
|
|
303
|
+
"""
|
|
304
|
+
return Feedback(success=True, score=0.9, detail="Passed 9/10 tests")
|
|
305
|
+
```
|
|
306
|
+
|
|
307
|
+
### Benchmark Best Practices
|
|
308
|
+
|
|
309
|
+
1. **Rich feedback details** — the evolver reads `feedback.detail` to decide what to mutate
|
|
310
|
+
2. **Deterministic evaluation** — same input should produce same score
|
|
311
|
+
3. **Diverse task coverage** — include easy, medium, and hard tasks
|
|
312
|
+
4. **Strict train/test split** — no overlap between splits
|
|
313
|
+
5. **Score granularity** — continuous scores (0.0-1.0) are more useful than binary pass/fail
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
## Evolution Engines
|
|
318
|
+
|
|
319
|
+
### EvolutionEngine Abstract Class
|
|
320
|
+
|
|
321
|
+
```python
|
|
322
|
+
from agent_evolve.engine.base import EvolutionEngine
|
|
323
|
+
from agent_evolve.types import StepResult
|
|
324
|
+
|
|
325
|
+
class MyEngine(EvolutionEngine):
|
|
326
|
+
def step(self, workspace, observations, history, trial):
|
|
327
|
+
"""Mutate the workspace based on observations.
|
|
328
|
+
|
|
329
|
+
Args:
|
|
330
|
+
workspace: AgentWorkspace — typed I/O for agent files
|
|
331
|
+
observations: list[Observation] — recent (task, trajectory, feedback) triples
|
|
332
|
+
history: EvolutionHistory — query past cycles and workspace versions
|
|
333
|
+
trial: TrialRunner — optional live evaluation runner
|
|
334
|
+
|
|
335
|
+
Returns:
|
|
336
|
+
StepResult with mutated flag, summary, and metadata
|
|
337
|
+
"""
|
|
338
|
+
# Analyze observations, mutate workspace
|
|
339
|
+
return StepResult(mutated=True, summary="Updated prompts")
|
|
340
|
+
|
|
341
|
+
def on_cycle_end(self, accepted: bool, score: float):
|
|
342
|
+
"""Optional callback after gating decision."""
|
|
343
|
+
pass
|
|
344
|
+
```
|
|
345
|
+
|
|
346
|
+
### Engine Selection Guide
|
|
347
|
+
|
|
348
|
+
| Engine | When to Use | Compute Cost |
|
|
349
|
+
|--------|-------------|-------------|
|
|
350
|
+
| AEvolveEngine (default) | General-purpose, diverse domains | High (full LLM call) |
|
|
351
|
+
| GuidedSynthesisEngine | Skill discovery focus | Medium |
|
|
352
|
+
| AdaptiveEvolutionEngine | Noisy evaluation, fine control | Medium |
|
|
353
|
+
| AdaptiveSkillEngine | Skill-heavy domains | Medium |
|
|
354
|
+
| Custom | Domain-specific mutation logic | Variable |
|
|
355
|
+
|
|
356
|
+
---
|
|
357
|
+
|
|
358
|
+
## Workspace Contract
|
|
359
|
+
|
|
360
|
+
### Directory Structure
|
|
361
|
+
|
|
362
|
+
```
|
|
363
|
+
workspace/
|
|
364
|
+
├── manifest.yaml # Required: agent metadata
|
|
365
|
+
├── prompts/
|
|
366
|
+
│ ├── system.md # Main system prompt
|
|
367
|
+
│ └── fragments/ # Modular prompt pieces
|
|
368
|
+
│ ├── reasoning.md
|
|
369
|
+
│ └── output_format.md
|
|
370
|
+
├── skills/
|
|
371
|
+
│ ├── _drafts/ # Proposed skills pending review
|
|
372
|
+
│ │ └── new-skill.md
|
|
373
|
+
│ └── verify-solution/ # Accepted skills
|
|
374
|
+
│ └── SKILL.md
|
|
375
|
+
├── tools/
|
|
376
|
+
│ ├── registry.yaml # Tool manifest
|
|
377
|
+
│ └── custom_tool.py # Tool implementations
|
|
378
|
+
├── memory/
|
|
379
|
+
│ ├── episodic.jsonl # Failure lessons
|
|
380
|
+
│ └── semantic.jsonl # Domain knowledge
|
|
381
|
+
└── evolution/ # Managed by loop
|
|
382
|
+
├── observations/
|
|
383
|
+
│ ├── batch_0001.jsonl
|
|
384
|
+
│ └── batch_0002.jsonl
|
|
385
|
+
├── history.jsonl
|
|
386
|
+
└── metrics.json
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
### Manifest Format
|
|
390
|
+
|
|
391
|
+
```yaml
|
|
392
|
+
agent:
|
|
393
|
+
type: reference # Must be "reference"
|
|
394
|
+
entrypoint: my_package.agents.MyAgent # Dotted Python path
|
|
395
|
+
|
|
396
|
+
evolvable_layers: # Which directories can be mutated
|
|
397
|
+
- prompts # System prompt + fragments
|
|
398
|
+
- skills # Skill library
|
|
399
|
+
- memory # Episodic/semantic memory
|
|
400
|
+
# - tools # Tool implementations (optional)
|
|
401
|
+
|
|
402
|
+
reload_strategy: hot # "hot" (re-read files) or "cold" (restart)
|
|
403
|
+
```
|
|
404
|
+
|
|
405
|
+
### AgentWorkspace API
|
|
406
|
+
|
|
407
|
+
The `AgentWorkspace` class provides typed read/write access:
|
|
408
|
+
|
|
409
|
+
**Prompts:**
|
|
410
|
+
- `read_prompt() -> str` — reads `prompts/system.md`
|
|
411
|
+
- `write_prompt(content: str)` — writes `prompts/system.md`
|
|
412
|
+
- `read_fragment(name: str) -> str` — reads `prompts/fragments/{name}`
|
|
413
|
+
- `write_fragment(name: str, content: str)` — writes a fragment
|
|
414
|
+
- `list_fragments() -> list[str]` — lists fragment filenames
|
|
415
|
+
|
|
416
|
+
**Skills:**
|
|
417
|
+
- `list_skills() -> list[SkillMeta]` — lists skills with name, description, path
|
|
418
|
+
- `read_skill(name: str) -> str` — reads skill content (frontmatter stripped)
|
|
419
|
+
- `write_skill(name: str, content: str)` — writes or updates a skill
|
|
420
|
+
- `delete_skill(name: str)` — removes a skill directory
|
|
421
|
+
|
|
422
|
+
**Drafts:**
|
|
423
|
+
- `list_drafts() -> list[dict]` — lists pending skill proposals
|
|
424
|
+
- `write_draft(name: str, content: str)` — writes a draft proposal
|
|
425
|
+
- `clear_drafts()` — removes all pending drafts
|
|
426
|
+
|
|
427
|
+
**Memory:**
|
|
428
|
+
- `add_memory(entry: dict, category: str = "episodic")` — appends to category JSONL
|
|
429
|
+
- `read_memories(category: str = "episodic", limit: int = 100) -> list[dict]`
|
|
430
|
+
- `read_all_memories(limit: int = 100) -> list[dict]` — all categories combined
|
|
431
|
+
|
|
432
|
+
**Tools:**
|
|
433
|
+
- `read_tool_registry() -> list[dict]` — reads `tools/registry.yaml`
|
|
434
|
+
- `write_tool_registry(tools: list[dict])` — writes tool manifest
|
|
435
|
+
- `read_tool(name: str) -> str` — reads tool source code
|
|
436
|
+
- `write_tool(name: str, content: str)` — writes tool implementation
|
|
437
|
+
|
|
438
|
+
**Evolution Metadata:**
|
|
439
|
+
- `read_evolution_history() -> list[dict]` — reads `evolution/history.jsonl`
|
|
440
|
+
- `read_evolution_metrics() -> dict` — reads `evolution/metrics.json`
|
|
441
|
+
|
|
442
|
+
---
|
|
443
|
+
|
|
444
|
+
## Configuration Reference
|
|
445
|
+
|
|
446
|
+
### EvolveConfig Fields
|
|
447
|
+
|
|
448
|
+
| Field | Type | Default | Description |
|
|
449
|
+
|-------|------|---------|-------------|
|
|
450
|
+
| `batch_size` | `int` | `10` | Tasks per solve round |
|
|
451
|
+
| `max_cycles` | `int` | `20` | Maximum evolution iterations |
|
|
452
|
+
| `holdout_ratio` | `float` | `0.2` | Fraction held out for validation |
|
|
453
|
+
| `evolve_prompts` | `bool` | `True` | Allow prompt mutation |
|
|
454
|
+
| `evolve_skills` | `bool` | `True` | Allow skill creation/modification |
|
|
455
|
+
| `evolve_memory` | `bool` | `True` | Allow memory writes |
|
|
456
|
+
| `evolve_tools` | `bool` | `False` | Allow tool implementation changes |
|
|
457
|
+
| `trajectory_only` | `bool` | `False` | Hide scores from evolver |
|
|
458
|
+
| `evolver_model` | `str` | `"us.anthropic.claude-opus-4-6-v1"` | LLM for evolution engine |
|
|
459
|
+
| `evolver_max_tokens` | `int` | `16384` | Max tokens for evolver calls |
|
|
460
|
+
| `egl_threshold` | `float` | `0.05` | Convergence epsilon |
|
|
461
|
+
| `egl_window` | `int` | `3` | Cycles for plateau detection |
|
|
462
|
+
| `extra` | `dict` | `{}` | Extension point for custom params |
|
|
463
|
+
|
|
464
|
+
### Loading from YAML
|
|
465
|
+
|
|
466
|
+
```yaml
|
|
467
|
+
# config.yaml
|
|
468
|
+
batch_size: 15
|
|
469
|
+
max_cycles: 30
|
|
470
|
+
evolve_prompts: true
|
|
471
|
+
evolve_skills: true
|
|
472
|
+
evolve_memory: false
|
|
473
|
+
evolver_model: us.anthropic.claude-opus-4-6-v1
|
|
474
|
+
egl_threshold: 0.03
|
|
475
|
+
egl_window: 5
|
|
476
|
+
extra:
|
|
477
|
+
solver_proposed: true
|
|
478
|
+
merge_threshold: 0.7
|
|
479
|
+
```
|
|
480
|
+
|
|
481
|
+
```python
|
|
482
|
+
config = ae.EvolveConfig.from_yaml("config.yaml")
|
|
483
|
+
```
|
|
484
|
+
|
|
485
|
+
### Configuration Strategies
|
|
486
|
+
|
|
487
|
+
**Conservative (stable improvement):**
|
|
488
|
+
```python
|
|
489
|
+
config = ae.EvolveConfig(
|
|
490
|
+
batch_size=10,
|
|
491
|
+
max_cycles=10,
|
|
492
|
+
evolve_prompts=True,
|
|
493
|
+
evolve_skills=False,
|
|
494
|
+
evolve_memory=False,
|
|
495
|
+
egl_threshold=0.05,
|
|
496
|
+
)
|
|
497
|
+
```
|
|
498
|
+
|
|
499
|
+
**Aggressive (maximum exploration):**
|
|
500
|
+
```python
|
|
501
|
+
config = ae.EvolveConfig(
|
|
502
|
+
batch_size=20,
|
|
503
|
+
max_cycles=50,
|
|
504
|
+
evolve_prompts=True,
|
|
505
|
+
evolve_skills=True,
|
|
506
|
+
evolve_memory=True,
|
|
507
|
+
evolve_tools=True,
|
|
508
|
+
egl_threshold=0.01,
|
|
509
|
+
egl_window=7,
|
|
510
|
+
)
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
**Skill-focused (procedure discovery):**
|
|
514
|
+
```python
|
|
515
|
+
config = ae.EvolveConfig(
|
|
516
|
+
batch_size=10,
|
|
517
|
+
max_cycles=25,
|
|
518
|
+
evolve_prompts=False,
|
|
519
|
+
evolve_skills=True,
|
|
520
|
+
evolve_memory=True,
|
|
521
|
+
)
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
---
|
|
525
|
+
|
|
526
|
+
## Built-in Agents
|
|
527
|
+
|
|
528
|
+
### SWE Agent (`seed_workspaces/swe/`)
|
|
529
|
+
|
|
530
|
+
**Domain**: SWE-bench code patching
|
|
531
|
+
**Model**: Claude Opus 4.6 via AWS Bedrock
|
|
532
|
+
**Framework**: Strands-agents (CodeDojo-compatible)
|
|
533
|
+
|
|
534
|
+
Key features:
|
|
535
|
+
- Verify-fix loop: runs tests before and after each edit
|
|
536
|
+
- Hypothesis-first approach: form theory before exploring
|
|
537
|
+
- Skill proposal generation: agent reflects on verification process
|
|
538
|
+
- Conversation capture with per-turn token tracking
|
|
539
|
+
- Dynamic tool loading from workspace `tools/registry.yaml`
|
|
540
|
+
|
|
541
|
+
**Tools available**: bash, submit, text_editor, python_exec
|
|
542
|
+
|
|
543
|
+
### Terminal Agent (`seed_workspaces/terminal/`)
|
|
544
|
+
|
|
545
|
+
**Domain**: Terminal-Bench 2.0 shell challenges
|
|
546
|
+
**Model**: Claude Sonnet 4 via AWS Bedrock
|
|
547
|
+
**Framework**: Strands-agents
|
|
548
|
+
|
|
549
|
+
Key features:
|
|
550
|
+
- Concurrent timeout enforcement via ThreadPoolExecutor
|
|
551
|
+
- Test file copying only during evaluation (prevents cheating)
|
|
552
|
+
- Pre-built skills: self-verification, environment-discovery, scientific-computing, debug-and-fix
|
|
553
|
+
- Memory injection disabled (time-sensitive tasks)
|
|
554
|
+
- Graceful timeout fallback
|
|
555
|
+
|
|
556
|
+
**Tools available**: bash, python, submit
|
|
557
|
+
|
|
558
|
+
### MCP Agent (`seed_workspaces/mcp/`)
|
|
559
|
+
|
|
560
|
+
**Domain**: MCP-Atlas tool calling
|
|
561
|
+
**Model**: Claude Opus 4.6 via AWS Bedrock
|
|
562
|
+
**Framework**: Strands-agents with MCP integration
|
|
563
|
+
|
|
564
|
+
Key features:
|
|
565
|
+
- MCP server connection management
|
|
566
|
+
- Tool discovery and invocation
|
|
567
|
+
- Multi-provider support via LiteLLM
|
|
568
|
+
|
|
569
|
+
---
|
|
570
|
+
|
|
571
|
+
## Built-in Benchmarks
|
|
572
|
+
|
|
573
|
+
### SWE-bench Verified
|
|
574
|
+
|
|
575
|
+
**Module**: `agent_evolve.benchmarks.swe_verified`
|
|
576
|
+
**Tasks**: Real GitHub issues from popular Python repositories
|
|
577
|
+
**Evaluation**: Runs test suite, checks if agent's patch fixes the issue
|
|
578
|
+
**Metric**: Pass rate (0.0 to 1.0)
|
|
579
|
+
|
|
580
|
+
### MCP-Atlas
|
|
581
|
+
|
|
582
|
+
**Module**: `agent_evolve.benchmarks.mcp_atlas`
|
|
583
|
+
**Tasks**: Tool calling scenarios with MCP servers
|
|
584
|
+
**Evaluation**: Checks correct tool selection and parameter passing
|
|
585
|
+
**Metric**: Accuracy (0.0 to 1.0)
|
|
586
|
+
|
|
587
|
+
### Terminal-Bench 2.0
|
|
588
|
+
|
|
589
|
+
**Module**: `agent_evolve.benchmarks.terminal2`
|
|
590
|
+
**Tasks**: Shell command challenges (file manipulation, system admin, scripting)
|
|
591
|
+
**Evaluation**: Runs test scripts to verify terminal state
|
|
592
|
+
**Metric**: Pass rate (0.0 to 1.0)
|
|
593
|
+
|
|
594
|
+
### SkillsBench
|
|
595
|
+
|
|
596
|
+
**Module**: `agent_evolve.benchmarks.skill_bench`
|
|
597
|
+
**Tasks**: Multi-step procedural tasks
|
|
598
|
+
**Evaluation**: Checks step-by-step correctness
|
|
599
|
+
**Metric**: Accuracy (0.0 to 1.0)
|
|
600
|
+
|
|
601
|
+
### ARC-AGI-3
|
|
602
|
+
|
|
603
|
+
**Module**: `agent_evolve.benchmarks.arc_agi3`
|
|
604
|
+
**Tasks**: Interactive game levels (25 games, 181 levels)
|
|
605
|
+
**Evaluation**: RHAE score (ratio of human to agent actions, squared)
|
|
606
|
+
**Metric**: Average RHAE across levels (0.0 to 1.0)
|
|
607
|
+
|
|
608
|
+
---
|
|
609
|
+
|
|
610
|
+
## Evolution Algorithms
|
|
611
|
+
|
|
612
|
+
### AEvolveEngine (SkillForge)
|
|
613
|
+
|
|
614
|
+
**Module**: `agent_evolve.algorithms.skillforge.engine`
|
|
615
|
+
**Strategy**: LLM-driven workspace mutation
|
|
616
|
+
|
|
617
|
+
The default engine gives an LLM full bash tool access to the workspace and asks it to improve the agent based on observations. This is the most flexible engine — it can make arbitrary changes to any workspace file.
|
|
618
|
+
|
|
619
|
+
**Context provided to the LLM:**
|
|
620
|
+
- Recent observations (task inputs, agent outputs, feedback)
|
|
621
|
+
- Current system prompt
|
|
622
|
+
- Current skill library
|
|
623
|
+
- Pending draft proposals
|
|
624
|
+
- Score history
|
|
625
|
+
|
|
626
|
+
**Mutation capabilities:**
|
|
627
|
+
- Edit system prompt (refine, consolidate, extend)
|
|
628
|
+
- Create new skills from observed patterns
|
|
629
|
+
- Merge overlapping skills
|
|
630
|
+
- Write episodic memory entries
|
|
631
|
+
- Review and curate draft proposals
|
|
632
|
+
|
|
633
|
+
### GuidedSynthesisEngine
|
|
634
|
+
|
|
635
|
+
**Module**: `agent_evolve.algorithms.guided_synth`
|
|
636
|
+
**Strategy**: Memory-first, curated skills
|
|
637
|
+
|
|
638
|
+
Emphasizes learning from failures before creating skills. Conservative approach that prevents skill bloat.
|
|
639
|
+
|
|
640
|
+
**Process:**
|
|
641
|
+
1. Extract lessons from failed tasks
|
|
642
|
+
2. Write episodic memory entries
|
|
643
|
+
3. After accumulating patterns, synthesize skill proposals
|
|
644
|
+
4. Curate proposals: ACCEPT, MERGE, or SKIP
|
|
645
|
+
|
|
646
|
+
### AdaptiveEvolutionEngine
|
|
647
|
+
|
|
648
|
+
**Module**: `agent_evolve.algorithms.adaptive`
|
|
649
|
+
**Strategy**: Reward tracking + observation filtering
|
|
650
|
+
|
|
651
|
+
Adjusts intervention intensity based on score trends. Makes smaller changes when improving, larger changes when plateaued.
|
|
652
|
+
|
|
653
|
+
### AdaptiveSkillEngine
|
|
654
|
+
|
|
655
|
+
**Module**: `agent_evolve.algorithms.adaptive_skill`
|
|
656
|
+
**Strategy**: Skill-centric discovery
|
|
657
|
+
|
|
658
|
+
Focuses exclusively on building the skill library. Identifies task categories where the agent fails and creates targeted skills.
|
|
659
|
+
|
|
660
|
+
---
|
|
661
|
+
|
|
662
|
+
## Skill System
|
|
663
|
+
|
|
664
|
+
### Skill File Format
|
|
665
|
+
|
|
666
|
+
```markdown
|
|
667
|
+
---
|
|
668
|
+
name: verify-edge-cases
|
|
669
|
+
description: "TRIGGER when: checking boundary conditions. DO NOT TRIGGER: for happy-path tests."
|
|
670
|
+
---
|
|
671
|
+
|
|
672
|
+
## Pattern
|
|
673
|
+
Test all falsy-but-valid values: 0, False, "", [], {}
|
|
674
|
+
|
|
675
|
+
## Process
|
|
676
|
+
1. List all input boundaries
|
|
677
|
+
2. Run each against the implementation
|
|
678
|
+
3. Check both output AND side effects
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
### Skill Discovery Process
|
|
682
|
+
|
|
683
|
+
1. **Agent proposes**: During `solve()`, agent writes draft to `skills/_drafts/`
|
|
684
|
+
2. **Engine reviews**: During `step()`, engine reads drafts and decides:
|
|
685
|
+
- **ACCEPT**: Move to `skills/{name}/SKILL.md`
|
|
686
|
+
- **MERGE**: Combine with existing similar skill
|
|
687
|
+
- **SKIP**: Discard (too narrow, redundant, or incorrect)
|
|
688
|
+
3. **Engine creates**: Engine can also create skills directly from observation analysis
|
|
689
|
+
4. **Refinement**: Existing skills are updated based on new observations
|
|
690
|
+
|
|
691
|
+
### Skill Library Management
|
|
692
|
+
|
|
693
|
+
Target: 5-10 broad, reusable skills per workspace. Avoid:
|
|
694
|
+
- 30+ narrow skills (library bloat)
|
|
695
|
+
- Skills that duplicate system prompt content
|
|
696
|
+
- Skills with no TRIGGER condition (always-on = should be in prompt)
|
|
697
|
+
|
|
698
|
+
---
|
|
699
|
+
|
|
700
|
+
## Memory System
|
|
701
|
+
|
|
702
|
+
### Episodic Memory
|
|
703
|
+
|
|
704
|
+
Records specific lessons from task attempts:
|
|
705
|
+
|
|
706
|
+
```json
|
|
707
|
+
{"content": "pytest --no-header flag needed for clean output", "category": "episodic", "task_id": "django-16379"}
|
|
708
|
+
{"content": "Off-by-one errors common in range() with len()", "category": "episodic", "task_id": "numpy-8823"}
|
|
709
|
+
```
|
|
710
|
+
|
|
711
|
+
### Semantic Memory
|
|
712
|
+
|
|
713
|
+
General domain knowledge:
|
|
714
|
+
|
|
715
|
+
```json
|
|
716
|
+
{"content": "Django uses reverse URL resolution via urlpatterns", "category": "semantic"}
|
|
717
|
+
{"content": "NumPy broadcasting rules: dimensions must match or be 1", "category": "semantic"}
|
|
718
|
+
```
|
|
719
|
+
|
|
720
|
+
### Memory Limits
|
|
721
|
+
|
|
722
|
+
- `BaseAgent.reload_from_fs()` loads up to 200 memory entries by default
|
|
723
|
+
- `AgentWorkspace.read_memories()` defaults to limit=100
|
|
724
|
+
- Old memories should be pruned or consolidated during evolution
|
|
725
|
+
|
|
726
|
+
---
|
|
727
|
+
|
|
728
|
+
## Version Control
|
|
729
|
+
|
|
730
|
+
### Git Tagging Convention
|
|
731
|
+
|
|
732
|
+
| Tag | When Created | Purpose |
|
|
733
|
+
|-----|-------------|---------|
|
|
734
|
+
| `pre-evo-1` | Before cycle 1 evolution | Snapshot of solve-only state |
|
|
735
|
+
| `evo-1` | After cycle 1 evolution | Snapshot of evolved state |
|
|
736
|
+
| `pre-evo-2` | Before cycle 2 evolution | Snapshot before next mutation |
|
|
737
|
+
| `evo-2` | After cycle 2 evolution | Snapshot of evolved state |
|
|
738
|
+
|
|
739
|
+
### Useful Git Commands
|
|
740
|
+
|
|
741
|
+
```bash
|
|
742
|
+
# See all evolution checkpoints
|
|
743
|
+
git tag -l "evo-*"
|
|
744
|
+
|
|
745
|
+
# Compare two evolution stages
|
|
746
|
+
git diff evo-1 evo-10
|
|
747
|
+
|
|
748
|
+
# See what changed in a specific cycle
|
|
749
|
+
git diff pre-evo-5 evo-5
|
|
750
|
+
|
|
751
|
+
# Read a file at a specific point in time
|
|
752
|
+
git show evo-3:prompts/system.md
|
|
753
|
+
|
|
754
|
+
# Revert to a known good state
|
|
755
|
+
git checkout evo-5 -- .
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
---
|
|
759
|
+
|
|
760
|
+
## Observation Pipeline
|
|
761
|
+
|
|
762
|
+
### JSONL Format
|
|
763
|
+
|
|
764
|
+
Each observation is stored in `evolution/observations/batch_{label}.jsonl`:
|
|
765
|
+
|
|
766
|
+
```json
|
|
767
|
+
{
|
|
768
|
+
"task_id": "django__django-16379",
|
|
769
|
+
"task_input": "Fix FileBasedCache has_key method...",
|
|
770
|
+
"task_metadata": {},
|
|
771
|
+
"agent_output": "--- a/django/core/cache/backends/filebased.py\n+++ ...",
|
|
772
|
+
"steps": [
|
|
773
|
+
{"tool": "bash", "action": "read_file", "file": "django/core/cache/backends/filebased.py"},
|
|
774
|
+
{"tool": "text_editor", "action": "edit", "file": "django/core/cache/backends/filebased.py"}
|
|
775
|
+
],
|
|
776
|
+
"success": true,
|
|
777
|
+
"score": 1.0,
|
|
778
|
+
"feedback_detail": "All 24 tests passed"
|
|
779
|
+
}
|
|
780
|
+
```
|
|
781
|
+
|
|
782
|
+
### Querying Observations
|
|
783
|
+
|
|
784
|
+
```python
|
|
785
|
+
history = EvolutionHistory("./my-workspace")
|
|
786
|
+
|
|
787
|
+
# All observations from last 3 cycles
|
|
788
|
+
recent = history.get_observations(last_n_cycles=3)
|
|
789
|
+
|
|
790
|
+
# Only failures
|
|
791
|
+
failures = history.get_observations(only_failures=True)
|
|
792
|
+
|
|
793
|
+
# Score curve
|
|
794
|
+
scores = history.get_score_curve() # [(1, 0.62), (2, 0.68), ...]
|
|
795
|
+
```
|
|
796
|
+
|
|
797
|
+
---
|
|
798
|
+
|
|
799
|
+
## FAQ
|
|
800
|
+
|
|
801
|
+
### Can I use A-Evolve with any LLM?
|
|
802
|
+
|
|
803
|
+
Yes. The agent can use any LLM for solving. The evolver model is configurable via `EvolveConfig.evolver_model`. Supported providers: Anthropic (direct API), OpenAI, AWS Bedrock, LiteLLM (multi-provider).
|
|
804
|
+
|
|
805
|
+
### Does evolution require training data?
|
|
806
|
+
|
|
807
|
+
No in the traditional ML sense. You need a `BenchmarkAdapter` that provides tasks and evaluation, but there are no training/gradient steps. Evolution is purely file-system mutation guided by LLM reasoning.
|
|
808
|
+
|
|
809
|
+
### How many cycles should I run?
|
|
810
|
+
|
|
811
|
+
Start with 10 cycles and check convergence. If score is still improving, run more. Default convergence detection (`egl_threshold=0.05`, `egl_window=3`) stops automatically when improvement plateaus.
|
|
812
|
+
|
|
813
|
+
### Can I resume evolution after stopping?
|
|
814
|
+
|
|
815
|
+
Yes. The workspace retains its evolved state. Create a new `Evolver` pointing to the same workspace and call `run()` again.
|
|
816
|
+
|
|
817
|
+
### Is evolution deterministic?
|
|
818
|
+
|
|
819
|
+
No. LLM calls are inherently non-deterministic. Running the same config twice may produce different evolved agents with similar final scores.
|
|
820
|
+
|
|
821
|
+
### Can I evolve multiple agents simultaneously?
|
|
822
|
+
|
|
823
|
+
Yes, but each must have its own workspace directory. The evolution loop modifies workspace files directly, so concurrent access to the same workspace is not safe.
|
|
824
|
+
|
|
825
|
+
### What's the cost per evolution cycle?
|
|
826
|
+
|
|
827
|
+
Each cycle involves: (batch_size) agent solve calls + 1 evolver call. For batch_size=10 with Claude, expect ~$5-20 per cycle depending on task complexity and model used.
|
|
828
|
+
|
|
829
|
+
### Can I use A-Evolve without a benchmark?
|
|
830
|
+
|
|
831
|
+
Not directly. The evolution loop requires `BenchmarkAdapter.evaluate()` to produce `Feedback`. However, you can implement a custom benchmark that uses human evaluation, LLM-as-judge, or any other scoring mechanism.
|