Install
openclaw skills install session-context-bridgeAutomatically save, restore, and switch project session contexts to retain tasks, decisions, file states, blockers, and environment details across work sessi...
openclaw skills install session-context-bridgeNever start from zero. Carry context across sessions automatically.
Every new session starts blind. You lose:
Claude-mem (65K stars) proved this is a massive need. This is the lightweight, framework-agnostic version.
## Session Context — 2026-04-22 03:00
### Active Task
- Building API endpoint for user onboarding
- Status: 70% complete, auth middleware done, tests pending
### Key Decisions
1. Chose JWT over session cookies (reason: mobile-first, stateless)
2. Rate limiting: 100 req/min per user
3. Database: PostgreSQL with UUID primary keys
### File Map
- `src/auth/middleware.ts` — JWT validation (DONE)
- `src/routes/onboarding.ts` — Main endpoint (IN PROGRESS, line 47)
- `tests/onboarding.test.ts` — Not started
- `prisma/schema.prisma` — User model updated
### Blockers
- Waiting on design team for email template
- Need staging database credentials from DevOps
### Environment
- Node v22.22.2, pnpm 10.28
- DATABASE_URL in .env (not committed)
- Redis running on localhost:6379
## Restoring Context from 2026-04-22 03:00
### Resume Point
→ Continue `src/routes/onboarding.ts` at line 47
→ Next: implement email verification flow
→ Then: write tests
### Context Loaded
- 3 key decisions loaded
- File map: 4 files
- 2 blockers noted
- Environment confirmed
Ready to continue.
project/
├── .context/
│ ├── current.md ← Active session context (always up-to-date)
│ ├── archive/
│ │ ├── 2026-04-20.md ← Previous sessions
│ │ └── 2026-04-21.md
│ └── decisions.md ← Long-running decision log
current.md Template# Session Context
> Last updated: [TIMESTAMP]
## 🎯 Active Task
[What you're working on right now]
## ✅ Completed This Session
- [x] Task 1
- [x] Task 2
## 🔄 In Progress
- [ ] Task 3 (status: ___)
## 📋 Todo (Next Session)
- [ ] Task 4
- [ ] Task 5
## 🧠 Key Decisions
1. [Decision] — [Reason]
## 📁 File Map
| File | Status | Notes |
|------|--------|-------|
| path/to/file | DONE/WIP/TODO | Description |
## 🚧 Blockers
- [What's blocking you]
## 🔧 Environment
- Runtime versions
- Active services
- Config state
decisions.md Template# Decision Log
> Architectural and design decisions with reasoning.
## [DATE] — [Decision Title]
- **Decision:** [What was decided]
- **Context:** [What was the situation]
- **Reason:** [Why this option was chosen]
- **Alternatives:** [What else was considered]
- **Revisit if:** [Conditions that might change this decision]
current.md with all sections filledarchive/YYYY-MM-DD.mddecisions.md with any new decisionscat .context/current.md | head -5.context/current.md.context/decisions.mdgit status vs expected state.context/ directories per projectcurrent.md becomes useless without history.cursor/rules/context.mdcMIT