無料GitHub で公開
synapse
Codex-led multi-model workflow (Codex + Claude + Gemini). Use when the user asks to run `synapse <cmd> ...` to generate draft diffs/audits and persist artifacts to `./.synapse/**`.
含まれるファイル(45)
- SKILL.md3.6 KB
- assets/defaults.json800 B
- assets/ui/index.html23.2 KB
- references/feat.md213 B
- references/init.md437 B
- references/pack.md472 B
- references/plan.md1.2 KB
- references/run.md1.5 KB
- references/ui.md1.2 KB
- references/verify.md605 B
- references/workflow.md2.5 KB
- scripts/_synapse/__init__.py60 B
- scripts/_synapse/agents_md.py3.6 KB
- scripts/_synapse/cmd_init.py1.0 KB
- scripts/_synapse/cmd_pack.py2.3 KB
- scripts/_synapse/cmd_plan.py5.7 KB
- scripts/_synapse/cmd_run.py6.9 KB
- scripts/_synapse/cmd_ui.py6.8 KB
- scripts/_synapse/cmd_verify.py5.8 KB
- scripts/_synapse/common.py1.1 KB
- scripts/_synapse/config.py611 B
- scripts/_synapse/context_git.py2.2 KB
- scripts/_synapse/context_pack.py3.6 KB
- scripts/_synapse/context_queries.py2.0 KB
- scripts/_synapse/context_rg.py3.5 KB
- scripts/_synapse/context_sensitivity.py2.8 KB
- scripts/_synapse/context_snippets.py3.1 KB
- scripts/_synapse/file_ops.py3.3 KB
- scripts/_synapse/llm_protocol.py1.8 KB
- scripts/_synapse/llm_runner.py6.8 KB
- scripts/_synapse/llm_stream.py899 B
- scripts/_synapse/llm.py3.5 KB
- scripts/_synapse/paths.py4.8 KB
- scripts/_synapse/process_utils.py1.3 KB
- scripts/_synapse/safety.py2.5 KB
- scripts/_synapse/state.py6.4 KB
- scripts/_synapse/storage_paths.py1.9 KB
- scripts/_synapse/verify/__init__.py35 B
- scripts/_synapse/verify/dotnet.py454 B
- scripts/_synapse/verify/golang.py376 B
- scripts/_synapse/verify/node.py2.4 KB
- scripts/_synapse/verify/python.py2.2 KB
- scripts/_synapse/verify/rust.py378 B
- scripts/_synapse/verify/types.py539 B
- scripts/synapse.py5.2 KB
SKILL.md(原文)
インストールする前に、エージェントに与えられる指示の中身を確認できます。
Synapse (Codex Skill)
Synapse is a project-local workflow runner driven by Codex (main controller).
Models (roles)
- Codex (main controller): decides routing, writes prompts, applies final code, runs verification, and delivers
- Claude: planning/architecture/risks + backend draft diffs + general code audit
- Gemini: frontend/UI draft diffs + UI/UX + accessibility audit (only when
task_typeincludes frontend)
Artifacts are written under ./.synapse/** in the target project root.
Hard rules (must follow)
- Only handle requests that start with
synapse <cmd> ...(no slash commands). - Before running anything: open
references/<cmd>.mdand summarize (purpose, usage, models, writes/side effects, and any safety/confirmation requirements). - If any script-level CLI args are unclear (
init/pack/plan/run/verify/ui), runsynapse.py <cmd> --help(viauv) and follow the output. - Run Synapse scripts via
uv:
uv run --no-project python <SKILL_DIR>/scripts/synapse.py --project-dir <PROJECT_DIR> <cmd> ...
- Treat any external diff as a draft. Do not apply verbatim; Codex rewrites to production quality.
- Prompts are not hardcoded in scripts. Codex must generate prompts and pass them via
synapse run --prompt-file .... workflow/featare end-to-end (Codex-orchestrated) meta commands. Treatreferences/workflow.mdas the source of truth for the exact steps and Gate requirements (includinggate_prep+ single-round Gate).task_typerules:- If the user explicitly sets
--task-type, respect it. - If omitted: default to
fullstack(info-complete; higher cost) and still presentfrontend/backend/fullstackoptions + Codex recommendation at the Gate.
- If the user explicitly sets
- Git safety:
- Prefer a clean working tree. If it's dirty, surface it at the Gate and ask how to proceed (stash/commit/abort).
- If the project is not a git repo, propose
git initat the Gate (review quality is best with git).
Global flags (common)
--project-dir <dir>: directory inside the target project (default:.)--resume-gemini <SESSION_ID>/--resume-claude <SESSION_ID>--resume <SESSION_ID>: alias for--resume-gemini(back-compat)- If both
--resumeand--resume-geminiare provided with different values, Synapse errors to avoid silent confusion.
- If both
Command map
User-level commands (typed in Codex chat):
workflow,feat
Script-level subcommands (Codex runs via uv):
init,pack,plan,run,verify,ui
Script guarantees
- Project root detection:
git rev-parse --show-toplevel(fallback: current directory). - Artifacts always go under
./.synapse/**(plans/context/logs/patches/state/index). - Writes are guarded by
assets/defaults.json:safety.allowed_write_roots(hard fail if a write would escape these roots). initonly writes:AGENTS.md,.gitignore,./.synapse/**(idempotent).verifymay create project-local toolchain artifacts (lockfiles,.venv/,node_modules/, build outputs) as a side effect.- External model calls use local
claude+geminiCLIs in stream-json mode (session_idcaptured; resume supported). Synapse never enables “auto-approve” modes (Gemini runs with--approval-mode default; Claude runs with--permission-mode plan --tools "" --strict-mcp-config). uistarts a local read-only web viewer for.synapse/**(prompts/outputs/patches/logs/state).
レビュー
まだレビューはありません。使ってみた感想をお寄せください。