원클릭으로
debrief
Capture a structured session summary and send it to the cortex OACP workspace. Run at the end of any Codex session.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Capture a structured session summary and send it to the cortex OACP workspace. Run at the end of any Codex session.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
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.
Consolidate session debriefs into a single source of truth (SSOT). Run once daily from the cortex repo.
| name | debrief |
| description | Capture a structured session summary and send it to the cortex OACP workspace. Run at the end of any Codex session. |
Capture what happened during a Codex session and deliver a structured summary to the cortex OACP workspace for morning consolidation by /sync.
/debrief - generate and send the debrief/debrief --dry-run - generate and display the summary without sendingWhen the user runs /debrief, do the following:
Determine where the cortex repo lives:
config.yaml and SSOT.md, use the current repo root as CORTEX_DIRCORTEX_DIR from the environment~/cortexRead ${CORTEX_DIR}/config.yaml if it exists; otherwise fall back to ${CORTEX_DIR}/config.example.yaml as a default template. Expand ~ and $VARS in the values you read.
Extract:
oacp_home - defaults to ${OACP_HOME:-$HOME/oacp}project - defaults to cortexcortex_dir - defaults to ${CORTEX_DIR}Use the resolved values as:
OACP_HOME - expanded oacp_homeCORTEX_PROJECT - expanded projectCORTEX_DIR - expanded cortex_dirIf both repo-local .codex/ settings and global ~/.codex/ settings exist, prefer repo-local conventions first.
Determine the source project using this fallback chain:
AGENTS.md for an explicit project identifier.codex/ notes or workspace config if presentCLAUDE.md for compatibility with repos that still keep project metadata theregit rev-parse --show-toplevel and use the basenameNormalize the project name to lowercase with hyphens.
Review the conversation and current repo state to capture:
git status --short; use commit history only as a supplementUse the conversation context as the primary source. Git activity supplements but does not replace the session summary.
Write a concise markdown summary in this format:
# Debrief: <project> - <YYYY-MM-DD HH:MM TZ>
## What Changed
- bullet points of accomplishments
## Tasks Touched
- PRs, issues, or work items (or "None")
## Decisions Made
- key decisions with rationale
## Blockers
- blocking items (or "None")
## Next Steps
- [ ] carry-forward items
## Files Modified
- key files touched during the session
Keep it factual and concise - 2-6 bullet points per section.
Deliver the summary through OACP using a standard inbox message:
oacp send "${CORTEX_PROJECT}" \
--from codex \
--to codex \
--type notification \
--subject "Debrief: <project> <YYYY-MM-DD>" \
--body-file <temp_file> \
--channel debrief \
--oacp-dir "${OACP_HOME}"
Notes:
$OACP_HOME/projects/cortex/agents/codex/inbox/channel: debrief and a Debrief: subject so /sync can filter safelyoacp is unavailable, report a blocker instead of writing protocol files by hand--dry-run was specified, display the summary and skip the sendPrint:
Debrief sent: <project> <date> -> cortex/agents/codex/inbox/
~/.codex/skills/ or project-locally in .codex/skills/; the instructions are the same either way/sync can aggregate them across repos and runtimes