Skip to content

Adonis0123/adonis-skills / skills/agent-dispatch

agent-dispatch

Flagged

Choose the lightest agent setup for a coding, review, drafting or design-research task: do it yourself, fan out to 2-3 workers with independent parts across the Claude Code, Codex, Grok Build, Cursor or other CLIs and accounts on this machine, run a scoped architecture loop, or send one brief to independent researchers; pick a cross-model reviewer, test budget and cleanup; track dispatched work, external waits and user decisions on a Run Board. Use when work may need delegation, or the user asks to dispatch, fan out, parallelize, run several agents or accounts, get another AI's review or independent design opinions, or asks how dispatched work is going. Chinese triggers: 派活、并行、要不要多开几个 agent、分给多个 Claude 账号 / codex / grok、找另一个 AI 审、对比优秀设计、多方意见、进度看板、派出的任务进行到哪了。Not for unrelated read-only questions, trivial edits, research with no delegation, a single review of an existing diff (agentic-review-handoff), or the machine-wide session list (sideby sessions). Inside another named workflow, only size its workers.

FileKindSize
GLOSSARY.mdmarkdown2.1 KB
SKILL.mdskill md27.8 KB
evals/README.mdmarkdown7.6 KB
evals/README.zh-CN.mdmarkdown7.5 KB
evals/bench/compare.pyscript5.3 KB
evals/bench/run_bench.pyscript12.3 KB
evals/bench/tasks.jsonconfig6.6 KB
evals/bench/test_bench.pyscript4.4 KB
evals/build_plugin_eval.pyscript11.3 KB
evals/evals.jsonconfig31.4 KB
evals/results.mdmarkdown15.8 KB
evals/test_eval_harness.pyscript3.5 KB
evals/trigger-eval-set.jsonconfig1.6 KB
fixtures/probe-full.jsonconfig1.6 KB
fixtures/probe-single.jsonconfig690 B
fixtures/run-midrun/B9.jsonlother191 B
fixtures/run-midrun/deploy-log.txtmarkdown42 B
fixtures/run-midrun/run.jsonconfig1.8 KB
fixtures/run-sessions/B9.jsonlother191 B
fixtures/run-sessions/deploy-log.txtmarkdown42 B
fixtures/run-sessions/ended.jsonlother95 B
fixtures/run-sessions/run.jsonconfig2.1 KB
fixtures/run-sessions/sessions.jsonconfig804 B
fixtures/session-index.jsonconfig401 B
fixtures/sideby-stub/sessions.jsonconfig1.5 KB
fixtures/sideby-stub/sidebyexecutablescript4.1 KB
references/accounts.mdmarkdown10.4 KB
references/context-budget.mdmarkdown2.9 KB
references/fallbacks.mdmarkdown4.7 KB
references/launch.mdmarkdown16.1 KB
references/measure.mdmarkdown3.3 KB
references/research-brief.mdmarkdown1.3 KB
references/run-board.mdmarkdown48.7 KB
references/task-spec.mdmarkdown5.0 KB
scripts/board.cssother12.6 KB
scripts/board_interaction.jsscript3.7 KB
scripts/board_markdown.jsscript2.9 KB
scripts/board_render.pyscript17.2 KB
scripts/dispatch_board.pyscript95.3 KB
scripts/isolated_case.pyscript1.6 KB
scripts/probe_agents.pyscript12.9 KB
scripts/sideby_cli.pyscript3.2 KB
scripts/sideby_sessions.pyscript3.3 KB
scripts/test_billing_and_quota.pyscript10.9 KB
scripts/test_board_interaction.jsscript2.1 KB
scripts/test_board_markdown.jsscript2.9 KB
scripts/test_board_reload_state.jsscript2.7 KB
scripts/test_bug_regressions.pyscript4.7 KB
scripts/test_dispatch_board.pyscript68.9 KB
scripts/test_harness_limits.pyscript11.7 KB
scripts/test_lane_states.pyscript7.5 KB
scripts/test_probe_agents.pyscript19.2 KB
scripts/test_review_fixes.pyscript6.7 KB
scripts/test_rounds_and_watch.pyscript7.3 KB

evals/test_eval_harness.py

View on GitHub
"""The eval sideby stub answers in the shapes the skill's own parser accepts; the trigger suite grades loading only."""
import json
import os
import shutil
import subprocess
import sys
import tempfile
import unittest
from pathlib import Path

SKILL_DIR = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(SKILL_DIR / "scripts"))
sys.path.insert(0, str(SKILL_DIR / "evals"))

from sideby_cli import valid_response  # noqa: E402
from build_plugin_eval import evaluation_note  # noqa: E402


class SidebyStubTest(unittest.TestCase):
    def setUp(self):
        self.tmp = tempfile.mkdtemp()
        shutil.copytree(SKILL_DIR / "fixtures" / "sideby-stub", Path(self.tmp) / "stub")
        self.env = {**os.environ, "PATH": f"{self.tmp}/stub:{os.environ['PATH']}"}

    def tearDown(self):
        shutil.rmtree(self.tmp)

    def run_stub(self, *args):
        return subprocess.run(["sideby", *args], capture_output=True, text=True, env=self.env)

    def test_sessions_list_and_aliases_pass_the_skill_parser(self):
        for command in (["sessions"], ["list"], ["config", "get", "aliases"]):
            result = self.run_stub(*command, "--json")
            self.assertEqual(result.returncode, 0, command)
            self.assertTrue(valid_response(command, json.loads(result.stdout)), command)

    def test_send_returns_a_receipt_and_logs_the_text(self):
        result = self.run_stub("send", "6e9c249d", "A1 按推荐", "--json")
        self.assertEqual(result.returncode, 0)
        data = json.loads(result.stdout)
        self.assertEqual(data["schemaVersion"], 1)
        self.assertEqual(data["message"]["status"], "delivered")
        self.assertEqual(data["message"]["toSessionId"], "6e9c249d-9a58-427f-bd46-95697fc8897a")
        sent = (Path(self.tmp) / "stub" / "sent.log").read_text(encoding="utf-8")
        self.assertIn("A1 按推荐", sent)

    def test_send_to_codex_needs_paste_and_unknown_target_fails(self):
        codex = json.loads(self.run_stub("send", "3f9a2c71", "hi", "--json").stdout)
        self.assertEqual(codex["message"]["status"], "paste-needed")
        self.assertEqual(self.run_stub("send", "nope", "hi", "--json").returncode, 1)
        self.assertEqual(self.run_stub("ui", "--background").returncode, 1)

    def test_note_puts_the_stub_on_path(self):
        note = evaluation_note(["fixtures/sideby-stub/sideby"])
        self.assertIn('PATH="$PWD/fixtures/sideby-stub:$PATH"', note)
        self.assertNotIn("sideby", evaluation_note(["fixtures/probe-full.json"]).split("probe-full.json", 1)[1])


class TriggerSuiteTest(unittest.TestCase):
    def test_one_case_per_query_graded_on_loading(self):
        with tempfile.TemporaryDirectory() as tmp:
            out = Path(tmp) / "suite"
            subprocess.run([sys.executable, str(SKILL_DIR / "evals" / "build_plugin_eval.py"), "--trigger", "--out", str(out)],
                           check=True, capture_output=True)
            items = json.loads((SKILL_DIR / "evals" / "trigger-eval-set.json").read_text(encoding="utf-8"))
            cases = sorted(p.name for p in out.iterdir())
            self.assertEqual(len(cases), len(items))
            for name, item in zip(cases, items):
                grader = (out / name / "graders" / "skill-fired.md").read_text(encoding="utf-8")
                self.assertEqual(name.endswith("fires"), item["should_trigger"])
                self.assertEqual("max: 0" in grader, not item["should_trigger"])
                self.assertIn(item["query"], (out / name / "prompt.md").read_text(encoding="utf-8"))


if __name__ == "__main__":
    unittest.main()
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall