kairos-session
Skill4 starsChanged 8 months agoMITView on GitHub
When starting or ending a work session, or when context files need maintenance. Use when the user says "boot up," "morning briefing," "end session," "session review," "what changed," "sync state," "kairos," "dream," "consolidate," "session start," or at the natural beginning/end of any significant work session. Implements structured session lifecycle with intelligent context loading, state diffing, and memory consolidation.
- Commits and pushes
In this repository21 other files it gives its agents.
- docs/llms.txtllms.txt
- llms.txtllms.txt
- anti-distillationSkill
- autodreamSkill
- batch-modeSkill
- bughunterSkill
- codebase-insightSkill
- code-reviewSkill
- context-compressionSkill
- coordinator-modeSkill
- effort-estimateSkill
- frustration-awareSkill
- magic-docsSkill
- pr-autofixSkill
- prompt-speculationSkill
- security-reviewSkill
- session-reviewSkill
- stuck-recoverySkill
- thinkbackSkill
- ultraplanSkill
- undercover-modeSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. About 0 are common, 16 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
Read all context files in priority order:
- Distinctive: line 36
If the project doesn't use kai-style files, adapt:
- Very specific: line 37
Check for auto-memory directories (.claude/projects/*/memory/, .cursor/, etc.)
- Very specific: line 38
Check for project instruction files (CLAUDE.md, AGENTS.md, README.md, docs/)
- Distinctive: line 39
Check git log for recent activity
- Distinctive: line 40
Check for any project-specific context files
- Distinctive: line 64
If calendar access is available:
- Distinctive: line 125
Before writing updates, run the autoDream cycle on affected files:
- Distinctive: line 127
Read each file that will be updated
- Distinctive: line 158
After user approval (or automatically in KAIROS daemon mode):
- Distinctive: line 164
If work is incomplete, leave a breadcrumb for the next session:
- Distinctive: line 184
When running persistently on a server, KAIROS operates on a schedule:
- Distinctive: line 196
Run the appropriate cycle
- Very specific: line 197
If changes were made: git add kai/ && git commit -m "kai: kairos [cycle-type]" && git push
- Distinctive: line 198
If something urgent was found: notify via configured channel (Slack, email)
- Distinctive: line 202
Boot is fast, dream is thorough: Don't spend 5 minutes loading context at session start.
- Distinctive: line 204
Dream before committing: Always consolidate before writing to context files — prevents memory bloat.
- Distinctive: line 205
Respect file ownership: Only update files the project's instruction file designates for updates.
- Distinctive: line 206
Handoff notes are for your future self: Write them like you have amnesia tomorrow (you do).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
KAIROS Session — Intelligent Session Lifecycle
You are a session lifecycle manager. You handle the ritual of starting and ending work sessions — loading the right context, detecting what's changed, and consolidating learnings when the session ends.
Two Modes
Mode 1: Session Boot (/kairos boot or session start)
Execute this sequence:
Step 1: Context Loading
Read all context files in priority order:
Tier 1 (Identity — always):
1. Project instructions file (CLAUDE.md, AGENTS.md, etc.) — who you are, project rules
2. GRAVITY.md or equivalent — current priorities
3. PULSE.md or equivalent — live state
Tier 2 (Context — always):
4. WORLDMODEL.md — full system map
5. RELATIONSHIPS.md — people context
6. INSTINCT.md — patterns and reflexes
Tier 3 (On-demand — load if relevant):
7. Domain-specific files based on likely taskIf the project doesn't use kai-style files, adapt:
- Check for auto-memory directories (
.claude/projects/*/memory/,.cursor/, etc.) - Check for project instruction files (
CLAUDE.md,AGENTS.md,README.md,docs/) - Check git log for recent activity
- Check for any project-specific context files
Step 2: State Diffing
Compare current state against last known state:
Check:
- Which context files changed since last session? (git diff, modified dates)
- Are any context files stale? (not updated in 3+ days when they should be)
- Are there new untracked files that might be important?
- What happened in git since last session? (commits by others, PRs merged)
- Are there any active PRs or issues assigned to the user?Flag changes:
Since your last session:
- GRAVITY.md was updated — priorities shifted: [summary]
- 3 commits merged to main by [collaborator]
- PULSE.md is 5 days stale — may need refresh
- New file added: src/auth/middleware.tsStep 3: Calendar & Time Awareness
If calendar access is available:
- What meetings are coming up today?
- Are there deadlines approaching?
- Is there a standup/review soon that needs prep?
Step 4: Briefing Generation
Produce a focused briefing:
## Session Briefing — [DATE]
### Priority Stack (from GRAVITY)
1. [top priority] — [status]
2. [second priority] — [status]
3. [third priority] — [status]
### Since Last Session
- [key changes]
### Stale Context (needs refresh)
- [files that are outdated]
### Today's Commitments
- [calendar items, deadlines]
### Suggested Focus
Based on priorities + calendar + recent momentum:
→ [recommended focus for this session]Mode 2: Session Close (/kairos dream or session end)
Execute this sequence:
Step 1: Session Transcript Review
Review what happened this session:
- What tasks were completed?
- What decisions were made?
- What was learned?
- What broke and was fixed?
- What's still in progress?
- Who was mentioned?
Step 2: Categorize Updates
Map session events to context files:
| Event | Target File | Action |
| Task completed | MEMORY.md | Append summary |
| Priority changed | GRAVITY.md | Reorder |
| Something broke | SCARS.md | Add entry |
| Decision made | LINEAGE.md | Record decision + rationale |
| Business state changed | PULSE.md | Update status |
| New obligation | DEBTS.md | Add entry |
| Pattern learned | INSTINCT.md | Add pattern |
| New person mentioned | RELATIONSHIPS.md | Add/update entry |
| Identity evolved | soul.md | Update |
Step 3: autoDream Consolidation
Before writing updates, run the autoDream cycle on affected files:
- Read each file that will be updated
- Scan for contradictions between existing content and new updates
- Scan for duplicates
- Scan for entries that should be promoted or demoted:
- Recurring scars → INSTINCT patterns
- Resolved debts → remove
- Stale memories → archive or delete
- Merge new information with existing, preferring newer data
Step 4: Draft Updates
For each file that needs changes, draft the update:
Updates to apply:
MEMORY.md:
+ Session 2026-04-01: Built 13 skills for power-skills package
+ Researched agent architecture patterns for skill design
- [removed: duplicate entry about XYZ]
GRAVITY.md:
~ Reordered: power-skills now priority 2 (was not listed)
SCARS.md:
No changes needed
PULSE.md:
~ Updated: Personal/power-skills — repo created, 13 skills in progressStep 5: Apply & Commit
After user approval (or automatically in KAIROS daemon mode):
- Apply all updates to context files
- Stage changed kai/ files
- Commit:
kai: session update [YYYY-MM-DD]
Step 6: Handoff Note
If work is incomplete, leave a breadcrumb for the next session:
## Session Handoff — [DATE]
### In Progress
- [task]: [current state, what's left]
### Blocked On
- [blocker]: [what's needed to unblock]
### Next Session Should Start With
- [specific first action]
### Context To Load
- [files or information the next session will need]KAIROS Daemon Mode (Cloud VPS)
When running persistently on a server, KAIROS operates on a schedule:
Every 15 min: Quick pulse — check for git changes, flag urgent items
Every 1 hour: State scan — read PULSE.md, check for staleness
Every 6 hours: autoDream — full memory consolidation cycle
7:00 AM: Morning briefing — generate and post/save
11:00 PM: Day review — summarize the day, update all context filesEach cycle:
git pulllatest changes- Run the appropriate cycle
- If changes were made:
git add kai/ && git commit -m "kai: kairos [cycle-type]" && git push - If something urgent was found: notify via configured channel (Slack, email)
Rules
- Boot is fast, dream is thorough. Don't spend 5 minutes loading context at session start. Briefing should take <30 seconds to read.
- Never skip the diff. The most valuable part of boot is knowing what changed since you were last here.
- Dream before committing. Always consolidate before writing to context files — prevents memory bloat.
- Respect file ownership. Only update files the project's instruction file designates for updates.
- Handoff notes are for your future self. Write them like you have amnesia tomorrow (you do).
- Staleness thresholds:
- PULSE.md: stale after 3 days
- GRAVITY.md: stale after 7 days
- MEMORY.md: review after 50 entries
- SCARS.md: review after 20 entries
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.

