‹ 首页

shinka-run

@sakanaai · 收录于 5 天前 · 上游提交 1 周前

Run existing ShinkaEvolve tasks with the `shinka_run` CLI from a task directory (`evaluate.py` + `initial.<ext>`). Use when an agent needs to launch async evolution runs quickly with required `--results_dir`, generation count, and strict namespaced keyword overrides.

适合你,如果需要在命令行快速启动并监控进化算法任务。

/ 通过 npx 安装 校验哈希
npx oh-my-skill add sakanaai/shinkaevolve/shinka-run
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- sakanaai/shinkaevolve/shinka-run
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify sakanaai/shinkaevolve/shinka-run
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
1288GitHub stars
~1.1K上下文体积 · 单文件
索引托管

怎么用

商店整理自技能原文 · 版本 b67a073 · 表述以原文为准
它做什么

Claude 可以运行 ShinkaEvolve 的演化任务,通过 shinka_run 命令行从任务目录启动,需要指定结果目录和生成代数等参数。每批运行后暂停,询问用户下一步配置,除非用户要求全自动。

什么时候触发

当用户要求运行已有的 ShinkaEvolve 任务,且任务目录已有 evaluate.py 和 initial.<ext> 文件时触发。不用于从头创建新任务。

装好后可以这样说
Claude 会检查目录并启动演化。
Claude 会在相同结果目录下继续演化。
Claude 会在每批后自动继续,无需确认。
技能原文 SKILL.md作者撰写 · Apache-2.0 · b67a073

Shinka Run CLI Skill

Run a batch of program mutations using ShinkaEvolve's CLI interface.

When to Use

Use this skill when:

  • evaluate.py and initial.<ext> already exist
  • The user wants to run code evolution using the ShinkaEvolve/Shinka library
  • You want configurable program evolution runs using explicit CLI args

Do not use this skill when:

  • You need to scaffold a new task from scratch (use shinka-setup)
What is ShinkaEvolve?

A framework developed by SakanaAI that combines LLMs with evolutionary algorithms to propose program mutations, that are then evaluated and archived. The goal is to optimize for performance and discover novel scientific insights.

Repo and documentation: https://github.com/SakanaAI/ShinkaEvolve Paper: https://arxiv.org/abs/2212.04180

Workflow
  1. Inspect task directory
ls -la <task_dir>

Confirm evaluate.py and initial.<ext> exist.

  1. Inspect CLI reference quickly
shinka_run --help
  1. Check model availability before proposing a run
shinka_models
shinka_models --verbose

Validate the exact run config against shinka_models:

  • Mutation models: every entry in evo.llm_models must appear in the llm list.
  • Meta recommendation models: if evo.meta_rec_interval is set and evo.meta_llm_models is set, every meta model must appear in the llm list.
  • Prompt evolution models: if evo.evolve_prompts=true, use evo.prompt_llm_models when provided, otherwise evo.llm_models; every selected model must appear in the llm list.
  • Embedding model: if evo.embedding_model is set, it must appear in the embedding list.
  • Local OpenAI-compatible models are allowed for LLMs and embeddings via local/<model>@http(s)://host[:port]/v1, and these local models are not expected to appear in shinka_models.

Important runtime rules:

  • Do not assume meta recommendations fall back to evo.llm_models. In the current runner, meta recommendations are only enabled when evo.meta_llm_models is explicitly set.
  • Prompt evolution does fall back to evo.llm_models when evo.prompt_llm_models is unset.
  • Treat local/<model>@http(s)://host[:port]/v1 values as an explicit exception to the shinka_models membership check. Instead, confirm the local endpoint URL and serving status separately before running.
  • If any required model is missing from shinka_models, stop and ask the user to either change the config or set the missing credentials first.
  1. Confirm first-batch configuration with the user
  2. Minimum: budget scope, generation count, critical overrides.
  3. Explicitly confirm the mutation LLMs, meta recommendation LLMs, prompt evolution LLMs, and embedding model after checking them against shinka_models.
  4. If unclear, ask before running.
  5. Do not override any non-confirmed arguments.
  1. Launch main run with explicit knobs
shinka_run \
  --task-dir <task_dir> \
  --results_dir <results_dir> \
  --num_generations 40 \
  --set db.num_islands=3 \
  --set job.time=00:10:00 \
  --set evo.task_sys_msg='<task-specific system message guiding search>'\
  --set evo.llm_models='["gpt-5-mini","gpt-5-nano"]' \
  --set evo.meta_llm_models='["gpt-5-mini"]' \
  --set evo.prompt_llm_models='["gpt-5-mini"]' \
  --set evo.embedding_model='text-embedding-3-small' \
  # Concurrency settings for parallel sampling and evaluation
  --max-evaluation-jobs 2 \
  --max-proposal-jobs 2 \
  --max-db-workers 2
  1. Verify outputs before handoff
ls -la <results_dir>

Expect artifacts like run log, generation folders, and SQLite DBs.

  1. Between-batch handoff (unless explicitly autonomous)
  2. Summarize outcomes from the finished batch.
  3. Ask user for the next batch config before running again.
  4. Explicitly ask: "What new directions should we push next batch? Please include algorithm ideas, constraints, and failure modes to avoid."
  5. Turn user feedback into a revised system prompt and pass it via --set evo.task_sys_msg=... in the next shinka_run call.
  6. If the prompt is long/multiline, put it in a config file and use --config-fname instead of shell-escaping.
  7. Unless the user explicitly wants a fresh run/fork, keep the same --results_dir for follow-up batches.

Example next-batch command with feedback-driven prompt:

shinka_run \
  --task-dir <task_dir> \
  --results_dir <results_dir> \
  --num_generations 20 \
  --set evo.task_sys_msg='<new system prompt derived from user feedback>' \
  --set db.num_islands=3
Batch Control Policy (Required)

Treat one shinka_run invocation as one batch of program evaluations/generations.

  • Default mode: human-in-the-loop between batches.
  • After each batch and before the first, always ask the user what configuration to run next (budget, --num_generations, model/settings overrides, concurrency, islands, output path).
  • Do not start the next batch until the user confirms the next config.
  • Keep --results_dir fixed across continuation batches so Shinka can reload prior results.
  • Exception: if the user explicitly asks for fully autonomous execution, you may continue across batches without re-asking between runs.
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。