Loading...
Loading...
Context compression and summarization methodology. Techniques for reducing token usage while preserving decision-critical information.
npx skill4agent add oimiragieo/agent-studio context-compressor| Type | Compression Strategy |
|---|---|
| Code | Keep signatures, summarize implementations |
| Conversations | Extract decisions, drop small talk |
| Documentation | Keep headings and key points |
| Errors | Keep message and location, drop stack frames |
| Logs | Keep patterns, drop repetitions |
User: Should we use Redis or Memcached?
Assistant: Let me analyze both options...
[500 words of analysis]
Recommendation: Redis for pub/sub support.
User: Ok let's use Redis.Decision: Use Redis (chosen for pub/sub support)// 100 lines of UserService implementationUserService: CRUD operations for users
- Methods: create, read, update, delete, findByEmail
- Dependencies: db, validator, logger
- Location: src/services/user.jsError: Cannot read property 'id' of undefined
at UserController.getUser (src/controllers/user.js:45:23)
at Layer.handle [as handle_request] (node_modules/express/lib/router/layer.js:95:5)
... 20 more stack framesError: Cannot read 'id' of undefined @ src/controllers/user.js:45
Cause: User object is null when accessing .id## Session Summary
### Decisions Made
- [D1] Use Redis for caching
- [D2] JWT for authentication
### Files Modified
- src/auth/jwt.js (new)
- src/config/redis.js (updated)
### Open Items
- [ ] Add rate limiting
- [ ] Write tests for JWTCompress the last 10 messages for context handoff## Context Summary (compressed from 10 messages)
### Task
Implementing user authentication with JWT
### Progress
1. Created JWT utility (src/auth/jwt.js)
2. Added login endpoint (src/routes/auth.js)
3. Tests failing - mock issue
### Key Decisions
- Using RS256 for JWT signing (security over performance)
- 1-hour token expiry with refresh tokens
### Current Issue
Jest mock for jwt.sign not working
Location: src/auth/**tests**/jwt.test.js:23
### Next Steps
1. Fix JWT mock
2. Add refresh token endpoint.claude/workflows/core/router-decision.md.claude/workflows/core/skill-lifecycle.mdsession-handoffswarm-coordinationcat .claude/context/memory/learnings.md.claude/context/memory/learnings.md.claude/context/memory/issues.md.claude/context/memory/decisions.mdASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.