一键导入
agent-candidate-search
Deterministic read-only search over completed task outcome ledger records to produce score-free Agent Factory candidates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Deterministic read-only search over completed task outcome ledger records to produce score-free Agent Factory candidates.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Selects the best-matching Kamino agent template for a given task, fills its template variables from the provided task and context, verifies no placeholders remain, and writes the completed agent file into the per-task folder .kamino/tasks/<task_id>/. Use when the user provides a task and wants a Kamino agent chosen and instantiated, mentions selecting or creating an agent from .kamino/agents, references the kamino agent index, or asks to run template-replace on an agent template.
Executes an assembled pipeline of instantiated Kamino agents in sequence using subagents, verifying each agent's output before proceeding to the next. Reads the run order from a dispatch-queue's execution-graph.md, prints the sequence to the terminal, and runs each step. Use when the user has a dispatch-queue (from taskgraph) or instantiated agent files and wants them executed, or asks to run/execute the assembled agents and confirm each step worked.
Copies this Kamino factory into a new folder in virgin state by running copy-factory.sh — installing both the .claude/ control plane (afac plugin manifest, skills, judge and classifier agents) and the .kamino/ data plane (blueprints, deterministic scripts, eval schemas), with an empty ledger and no inherited run data. Use when the user wants to install, clone, bootstrap, or set up a fresh agent factory in another repository or directory, asks to copy the factory somewhere, or invokes /copy-factory.
Validates the Kamino agent library by running template-variable-checks.sh over the .kamino/agents directory — confirming every agent's required_inputs match the {{variables}} used in its body (both directions) and that its hardcoded_properties declaration is present and accurate. Use when the user wants to check or validate the agents, verify template-variable consistency, lint the agent blueprints, or invokes /check.
Ingests a source of problems + solutions from disk (a crawl, a dataset, a folder of problem files) into a standard-shape evaluation corpus the factory can sweep. Because the factory engine stays 100% corpus-agnostic, this skill does NOT hardcode any source format — it interviews the user, AUTHORS a corpus-specific builder script on demand, snapshots the ground-truth answers, runs the builder, validates the result against the corpus integrity gates, and records provenance. The authored builder and its input data live with the ingestion record (git-tracked), never in the generic engine. Use when the user wants to turn a problem set / dataset / answer list into a corpus, add a new corpus, ingest LeetCode/Project-Euler-style problems, or "make a corpus out of this folder".
Creates a new reusable Kamino agent blueprint (an agent template) from the blueprint scaffold. It discovers the authoring fields marked with <<...>> in the scaffold, interviews the user for each (persona, model, effort, rules, definition of done, steps, output format, input schema), fills them in, leaves the {{...}} invocation variables intact, writes the blueprint into the ad-hoc tier, and registers it in the index. Use when the user wants to add a new agent type, create an agent blueprint or template, design a new agent from scratch, or extend the .kamino/agents library so clone can later select it.
| name | agent-candidate-search |
| description | Deterministic read-only search over completed task outcome ledger records to produce score-free Agent Factory candidates. |
Use this skill after task-evaluate and rank-task-difficulty, before factory chooses agents. It searches successful historical task outcomes and returns a shortlist of agents the factory should consider.
This skill is deterministic and does not invoke any LLM agent.
<ledger>
.kamino/evals/tasks/task-outcome-ledger.jsonl
</ledger>
<task_evaluation_json>
path/to/task-evaluation.json
</task_evaluation_json>
<difficulty_json>
path/to/difficulty-placement.json
</difficulty_json>
<limit>10</limit>
Optional central config override (defaults to .kamino/factory-config.json):
<config>.kamino/factory-config.json</config>
.kamino/evals/scripts/agent_candidate_search.pyRun the script only through uv run:
uv run .kamino/evals/scripts/agent_candidate_search.py \
--ledger ".kamino/evals/tasks/task-outcome-ledger.jsonl" \
--task-eval "<task-eval.json>" \
--difficulty "<difficulty.json>" \
--limit "10" \
--format json
Strict JSON containing:
schema_versiontask_idtask_text_hashlimitcandidate_countcandidatesrouting_config — the success_rate_threshold / min_attempts_for_rate values applied, read from the central factory config .kamino/factory-config.jsonEach candidate carries success-rate statistics computed over all ledger attempts for its route+agent+model+effort combination, failures included:
historical_attempt_count, historical_success_count, historical_success_ratesame_task_type_attempt_count, same_task_type_success_count, same_task_type_success_rate (scoped to the current task's task_type)meets_success_rate_threshold — true when the same-task-type rate is strictly above the configured threshold over at least the configured minimum attemptsCandidates that meet the threshold rank first. Candidate output is a shortlist to consider, not a winner list.
Cold start: when the ledger file does not exist yet, or exists but is empty (the virgin-factory state), the search succeeds with candidate_count 0 and an empty candidates list. A ledger with malformed or schema-invalid records still fails.
uv run.Fail clearly if:
limit is non-positive or non-integer.