ワンクリックで
sync
Consolidate session debriefs into a single source of truth (SSOT). Run once daily from the cortex repo.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Consolidate session debriefs into a single source of truth (SSOT). Run once daily from the cortex repo.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
Capture a structured session summary and send it to the cortex inbox. Run at the end of any Claude Code session.
Consolidate session debriefs into a single source of truth (SSOT). Run once daily from the cortex repo.
Capture a structured session summary and send it to the cortex OACP workspace. Run at the end of any Codex session.
SOC 職業分類に基づく
| name | sync |
| description | Consolidate session debriefs into a single source of truth (SSOT). Run once daily from the cortex repo. |
Read all unprocessed debriefs from the cortex OACP workspace, enrich them with memory and git context, and rewrite SSOT.md - a compact document that any agent can read at session start.
/sync - full consolidation/sync --dry-run - generate the SSOT without writing to disk/sync --collect-only - show the collected inputs without writing the SSOTWhen the user runs /sync, do the following:
Read config.yaml from the cortex repo root. If it is missing, fall back to config.example.yaml only to infer the expected keys and defaults.
Extract and expand ~ / $VARS for:
oacp_home - defaults to ${OACP_HOME:-$HOME/oacp}project - defaults to cortexcortex_dir - defaults to the current repo rootenrich_sources.oacp_memory - memory base dir and glob patternenrich_sources.git_repos - repos to include in git history enrichmentmax_ssot_lines - maximum SSOT size (default 60)Use the resolved values as:
OACP_HOME - expanded oacp_homeCORTEX_PROJECT - expanded projectCORTEX_DIR - expanded cortex_dirScan all agent inboxes in the cortex OACP workspace:
command find "$OACP_HOME/projects/$CORTEX_PROJECT/agents" -path "*/inbox/*.yaml" -type f
For each YAML message:
yaml.safe_loadchannel: debrief or a subject starting with Debrief:If no debriefs are found, report No new debriefs. SSOT unchanged. and exit cleanly.
If --collect-only was passed, show the collected debriefs and stop after enrichment.
Read memory files under the configured memory base directory and extract:
For each configured git repo, collect recent activity:
git -C <repo_path> log --oneline --since="<lookback_days> days ago"
If a repo is missing locally, skip it and note the omission in the output.
Synthesize the debriefs, memory context, and git history into this format:
# SSOT - <YYYY-MM-DD>
> Auto-generated by `/sync`. Do not edit manually.
## Active Work
- <project>: <summary> (<agents involved>). <status>.
## Decisions
- <project>: <decision> (<date>)
## Blockers
- <project>: <blocker>
## Carry-Forward
- [ ] <project>: <next step>
Constraints:
max_ssot_linesSSOT.mdWrite the generated document to ${CORTEX_DIR}/SSOT.md.
If --dry-run was specified, display the proposed SSOT and skip file writes and inbox cleanup.
After a successful SSOT write, delete each processed inbox message:
rm "$OACP_HOME/projects/$CORTEX_PROJECT/agents/<agent>/inbox/<message>.yaml"
Do not move processed debriefs into outbox. The sender-side outbox copy created at send time is already the durable record.
No outbound messages are required for the base /sync flow. If you later notify another agent about sync results, use oacp send rather than writing protocol files manually.
Print:
Sync complete: <N> debriefs processed, SSOT.md updated (<line_count> lines).
Sources: <list of agents/projects that contributed>
SSOT.md in place~/.codex/skills/ or project-locally in .codex/skills/