From harness
Use this skill when the user asks about previous sessions, wants to continue from where they left off, references past work history, or needs to recall what was decided in earlier sessions. Do NOT load for: code implementation, code reviews, ad-hoc information, or in-session note-taking. Manages cross-session learning and memory persistence — records patterns, decisions, and context that carry across sessions.
npx claudepluginhub tim-hub/powerball-harness --plugin harnessThis skill is limited to using the following tools:
A skill for managing cross-session learning and memory.
Creates isolated Git worktrees for feature branches with prioritized directory selection, gitignore safety checks, auto project setup for Node/Python/Rust/Go, and baseline verification.
Executes implementation plans in current session by dispatching fresh subagents per independent task, with two-stage reviews: spec compliance then code quality.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
A skill for managing cross-session learning and memory. Records and references past work, decisions, and learned patterns.
This skill is automatically triggered by the following phrases:
This skill saves work history to .claude/memory/ and enables
knowledge continuity across sessions.
It also clarifies where important information should be stored (details: docs/MEMORY_POLICY.md).
.claude/
├── memory/
│ ├── session-log.md # Per-session log
│ ├── decisions.md # Important decisions
│ ├── patterns.md # Learned patterns
│ └── context.json # Project context
└── state/
└── agent-trace.jsonl # Agent Trace (tool execution history)
decisions.md / patterns.md
#decision #db) with an Index at the topsession-log.md / context.json / .claude/state/
Each session record is assigned a session ID using the ${CLAUDE_SESSION_ID} environment variable.
This improves traceability across sessions.
## Session: 2024-01-15 14:30 (session: abc123def)
### Completed Tasks
- [x] User authentication implementation
- [x] Login page creation
### Generated Files
- src/lib/auth.ts
- src/app/login/page.tsx
### Important Decisions
- Authentication method: Adopted Supabase Auth
### Handoff for Next Session
- Logout feature not yet implemented
- Password reset also needed
Note:
${CLAUDE_SESSION_ID}is an environment variable automatically set by Claude Code. A unique ID is assigned per session, useful for log tracking and issue investigation.
## Technology Choices
| Date | Decision | Reason |
|------|----------|--------|
| 2024-01-15 | Supabase Auth | Free tier available, easy setup |
| 2024-01-14 | Next.js App Router | Latest best practices |
## Architecture
- Components: `src/components/`
- Utilities: `src/lib/`
- Type definitions: `src/types/`
## Patterns for This Project
### Component Naming
- PascalCase
- Example: `UserProfile.tsx`, `LoginForm.tsx`
### API Endpoints
- `/api/v1/` prefix
- RESTful design
### Error Handling
- Wrap in try-catch
- Error messages in Japanese
{
"project_name": "my-blog",
"created_at": "2024-01-14",
"stack": {
"frontend": "next.js",
"backend": "next-api",
"database": "supabase",
"styling": "tailwind"
},
"current_phase": "Phase 2: Core Features",
"last_session": "2024-01-15T14:30:00Z"
}
.claude/memory/context.jsonAgent Trace Usage:
# Get list of recently edited files
tail -50 .claude/state/agent-trace.jsonl | jq -r '.files[].path' | sort -u
# Get project information
tail -1 .claude/state/agent-trace.jsonl | jq '.metadata'
decisions.mdpatterns.mdsession-log.mdcontext.jsonSince Claude Code 2.1.49, memory usage on session resume has been reduced by 68%.
# Use --resume for long work sessions
claude --resume
# Split large tasks and resume sessions
claude --resume "continue from where we left off"
| Scenario | Recommendation |
|---|---|
| Long implementation | Resume session every 1-2 hours |
| Large-scale refactoring | Split sessions by feature unit |
| Memory shortage warning | Resume immediately with --resume |
💡 Memory efficiency has been significantly improved, so actively take advantage of session resumption.
User: "Continue from last time"
Claude Code:
📋 Previous Session (2024-01-15)
Completed tasks:
- User authentication
- Login page
Incomplete:
- Logout feature
- Password reset
Say "build the logout feature" to continue implementation.
User: "Tell me about this project"
Claude Code:
📁 Project: my-blog
Tech stack:
- Next.js + Tailwind CSS + Supabase
Current phase: Core feature development
Progress: 40% complete
Recent decisions:
- Adopted Supabase Auth
- Using App Router
Claude Code 2.1.32+ has an "auto-memory" feature that automatically saves cross-session learnings to ~/.claude/projects/<project>/memory/MEMORY.md.
It coexists with the Harness memory system as a 3-layer architecture:
| Layer | System | Content | Management |
|---|---|---|---|
| Layer 1 | Claude Code Auto-Memory | General learnings (mistake avoidance, tool usage) | Implicit, automatic |
| Layer 2 | Harness SSOT | Project-specific decisions and patterns | Explicit, manual |
| Layer 3 | Agent Memory | Per-agent task learnings | Agent-defined |
Usage guidelines:
/memory ssotDetails: D22: 3-Layer Memory Architecture
hooks/Stop to auto-append summaries to session-log.md at session end (manual operation is fine if not set up)decisions.md/patterns.md are recommended for sharing; session-log.md/context.json/.claude/state/ are recommended to keep local (details: docs/MEMORY_POLICY.md)