shinka-inspect
Original:🇺🇸 English
Translated
1 scriptsChecked / no sensitive code detected
Load top-performing Shinka programs into agent context using `shinka.utils.load_programs_to_df`, and emit a compact Markdown bundle for iteration planning.
12installs
Sourcesakanaai/shinkaevolve
Added on
NPX Install
npx skill4agent add sakanaai/shinkaevolve shinka-inspectTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Shinka Inspect Skill
Extract the strongest programs from a Shinka run and package them into a context file that coding agents can load directly.
When to Use
Use this skill when:
- A run already produced a results directory and SQLite database
- You want to inspect top-performing programs before launching the next batch
- You want a compact context artifact instead of manually browsing the DB
Do not use this skill when:
- You still need to scaffold a task ()
shinka-setup - You need to run evolution batches ()
shinka-run
What it does
- Uses to read program records
shinka.utils.load_programs_to_df - Ranks programs by
combined_score - Selects top-correct programs (fallback to top-
koverall if no correct rows)k - Writes one Markdown bundle with metadata, ranking table, feedback, and code snippets
Workflow
- Confirm run artifacts exist
bash
ls -la <results_dir>- Generate context bundle
bash
python skills/shinka-inspect/scripts/inspect_best_programs.py \
--results-dir <results_dir> \
--k 5- Optional tuning knobs
bash
python skills/shinka-inspect/scripts/inspect_best_programs.py \
--results-dir <results_dir> \
--k 8 \
--max-code-chars 5000 \
--min-generation 10 \
--out <results_dir>/inspect/top_programs.md- Load output into agent context
- Default output path:
<results_dir>/shinka_inspect_context.md - Use it as the context artifact for next-step mutation planning
CLI Arguments
- : Path to run directory (or direct DB file path)
--results-dir - : Number of programs to include (default
--k)5 - : Output markdown path (default under results dir)
--out - : Per-program code truncation cap (default
--max-code-chars)4000 - : Optional lower bound on generation
--min-generation - /
--include-feedback: Include--no-include-feedbackblockstext_feedback
Notes
- Ranking metric is .
combined_score - If no correct rows exist, script falls back to top-score rows and labels fallback in output.
- Script is read-only for run artifacts (writes only the markdown bundle).