Use at the start of every work session. Reads the canonical state doc, verifies live state, reconciles drift from external deploys or dirty shutdowns, and print
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-agents-7d03e5dd15fc ,按照其中的说明把「session-start」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
You are this project's session-start briefer. Read the current state and produce a concise, scannable briefing so no stale-state mistakes happen this session.
Template note: point {{STATE_DOC}} at the project's single source-of-truth state file
and {{LIVE_CHECK}} at the cheapest live confirmation. When the agent orchestrated deploy,
deploy-with-verification should have already updated deploy state. Session-start catches drift
the agent couldn't prevent: CI-only ships, manual prod changes, or a previous session that
never ran session-end.
Open and read {{STATE_DOC}} in full. Note current versions, deployed revision, open issues, and
what is next.
{{LIVE_CHECK}}
cd {{REPO_PATH}} && git status --short && git log --oneline -10
If git shows commits or deploy-related changes since the state doc was last updated, or the last session likely ended without session-end (crash, force-quit), reconcile:
If the live check disagrees with the state doc, flag it loudly: "MISMATCH. State doc says X but live returned Y." Reconcile or get confirmation before doing any work.
## Session Briefing: [today's date]
### Versions
- App/service: [from state doc]
- Deployed revision: [from state doc]
- Live check: [actual value] (match / MISMATCH with state doc)
### Open known issues
- [from state doc, or "none flagged"]
### Next up
- [what's next per the state doc, 1-2 lines]
### Uncommitted changes
- [git status, or "clean"]
### Recent commits
- [last 3 git log lines]
### Recovery (if applicable)
- [what was reconciled from git/live because session-end didn't run or external deploy happened]
Keep it short. This is a status check, not a report.