session-start
Skill0 starsChanged 6 months agoMITView on GitHub
Briefs the current session by reading session state, handoff doc, and memory to determine the active phase, task, and context budget. Outputs a structured briefing and detects whether the phase should be skipped or reverted based on observable artifacts. Use at the start of every long-running agent session, or when user says "start session", "what are we working on", "resume", "pick up where we left off", "what's the active task".
24 other projects use a version of this.
Adopted by
Most recently taken up by
- mayankasthana/applymatetheir own version, first seen Oct 1, 2026
- maiconlara/session-starttheir own version, first seen Sep 29, 2026
- sandraschi/opencode-cli-mcptheir own version, first seen Sep 27, 2026
- kimkon1011/orgiast-claude-rulestheir own version, first seen Sep 25, 2026
- ilang-ai/autocodetheir own version, first seen Sep 20, 2026
- Simple-With-Us/BotFleettheir own version, first seen Sep 16, 2026
Used with
Projects with it also use session-end, reflect and 1 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
itsjwillSkillsession-end
Generate and save a session summary before ending conversation.
Also in 7 projects that use this
Microsoft AzureSkillreflect
Learning capture system that extracts HIGH/MED/LOW confidence patterns from conversations to prevent repeating mistakes. Use after user corrections ("no", "wrong"), praise ("perfect", "exactly"), or when discovering edge cases. Complements .squad/agents/{agent}/history.md and .squad/decisions.md.
Also in 3 projects that use this
VercelSkillsetup
Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".
Also in 4 projects that use this
Other versions24 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 24
- bitwize-music-studio/claude-ai-music-skills★ 531same name
- AlexZio00/sovereign-skills★ 138same name
- ilang-ai/autocode★ 103same name
- iamneilroberts/claude-skills★ 26same name
- itsjwill/claude-memory★ 15same name
- IlyaGorsky/memory-toolkit★ 13same name
- troykelly/claude-skills★ 11same name
- mae616/ai-template★ 9same name
- DINAKAR-S/company-ai-os★ 4same name
- freskhu/genesis★ 4same name
14 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- context-handoverSkill
- harness-auditSkill
- harness-guideSkill
- harness-issuesSkill
- harness-prdSkill
- harness-triageSkill
- harness-verify-before-moveSkill
- setup-harness-skillsSkill
- fullerSkill
- skill-cleanupSkill
- write-harness-skillSkill
The file
We split this skill into the rules it gives an agent
2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 50
Detect interrupted session: if session.status is "in_progress" AND session.last_active is >5 minutes old → interrupted session.
- Distinctive: line 76
Do NOT default to any phase.
“Common” is measured: kept by at least 6 in 10 of the 22 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Session Start
Explore → Evaluate → Brief. Never ask questions before reading available state.
State file
Session state lives in .harness/state.json. Schema:
{
"version": "1.0",
"session": {
"status": "idle",
"started_at": "ISO 8601",
"last_session": "ISO 8601"
},
"position": {
"phase": "01-discuss",
"active_task": "task title string",
"resume_file": ".harness/phases/01-discuss/.continue-here.json",
"stopped_at": "brief description of last action"
}
}session.status: "idle" (clean close) | "in_progress" (active or interrupted).
Execution sequence
1. EXPLORE — if the
SessionStarthook ran, state fields are already in your context window viaadditionalContext— use them directly. Otherwise read:.harness/state.json→session.status,session.last_active,position.*.harness/config.json→ GitHub owner, repo, project board ID (harness key).harness/phases/XX-name/.continue-here.json→ path fromposition.resume_file.git/config→ remote origin (fallback if config.json absent)CLAUDE.md/AGENTS.md→## Agent skillsblock present? (setup indicator).harness/phases/01-discuss/→ anyCONTEXT.mdfiles? (phase skip signal).harness/phases/02-plan/→ anyPLAN.mdfiles? (phase skip signal)MEMORY.mdor top-3 memory entries relevant to active task.claude/handoff.md→ legacy fallback if .continue-here.json absent (deprecated)
Note:
session.statusandsession.started_atare set automatically by theSessionStarthook before this skill runs. No manual state write needed.2. RESUME CONTEXT — determine if this is a clean resume or interrupted recovery:
Detect interrupted session: if
session.statusis"in_progress"ANDsession.last_activeis >5 minutes old → interrupted session. Output a Recovery briefing (see Step 5b).If
last_activeis absent (hook not configured), fall back to:session.started_at>30 minutes old.Clean resume chain (
session.status: "idle"or absent):- a.
.harness/phases/XX/.continue-here.json— primary. Readnext_action,completed_work,remaining_work. - b. Memory system query — query active memory system for entries relevant to the active task. No GitHub required. If roam MCP tools are available (
roam_contextorroam_retrieve), callroam_retrieve <active_task>and include the architecture snapshot in the briefing output. - c. Mid-session recovery (.continue-here.json stale or absent):
git log --oneline -20+ recent GitHub per-AC progress comments (gh api repos/{owner}/{repo}/issues/{N}/comments --jq '[.[] | select(.body | startswith("Progress"))] | .[-5:]'). - d. Legacy
.claude/handoff.md— use only if .continue-here.json absent and no migration has run. - e. Cold start — nothing found.
- a.
3. EVALUATE — apply phase skip/revert (observable checks only):
Condition Action .harness/phases/01-discuss/contains aCONTEXT.mdSkip discuss → set phase to plan .harness/phases/02-plan/contains aPLAN.mdSkip discuss + plan → set phase to execute position.phaseis02-planbut no CONTEXT.md in01-discuss/Revert to discuss position.phaseis03-executebut no PLAN.md in02-plan/Revert to plan Log skip/revert in the briefing: "Phase advanced to execute — found PLAN.md in 02-plan and approved CONTEXT.md."
- 4. COLD-START — if all of the above yield nothing (no config.json, state.json, .continue-here.json, GitHub issues):
- Output: "No prior session state found."
- Present what WAS found (e.g., "Found CLAUDE.md with no ## Agent skills block")
- Suggest: "Run
/setup-harness-skillsto initialize .harness/ or describe what you'd like to work on." - Do NOT default to any phase. Wait for user input.
5. OUTPUT — emit one of two briefing formats:
5a. Clean resume briefing:
## Session briefing Phase: [discuss / plan / execute / verify] (0N-name) Active task: #N — [title] Effort remaining: ~N context window(s) (token budget: 1 = ~150K–200K tokens) Pick up from: [<next_action> from .continue-here.json] Budget for this session: [phase-specific table from context-handover/phase-budgets.md] Run /context-handover when approaching 80% usage.5b. Recovery briefing (interrupted session detected):
## Recovery briefing — interrupted session detected Last active: [session.last_active] — no context-handover was recorded. Phase: [position.phase] Active task: [position.active_task] Last known intent: [position.stopped_at, or next_action from stale .continue-here.json] ## What changed since interruption (git log) [output of: git log --after="<session.last_active>" --oneline] ## What to do Review the git log above. If work is partially complete, continue from the last commit. If the session left code in an inconsistent state, run lint+build before proceeding. Run /context-handover when approaching 80% usage.
Phase budget tables live in ../context-handover/phase-budgets.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

