lth-reflect
Retroactively store session learnings to lth memory without manual store calls
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Retroactively store session learnings to lth memory without manual store calls
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Memory-driven team workflow with AST-aware code editing via grv — agents read and write Go code through the grv tool instead of raw file I/O. INIT → WORKTREE → BRAINSTORM → PLAN → EXECUTE → REVIEW → COMPLETE
Memory-driven team workflow — agents bootstrap their own guidance from lth before working. INIT → WORKTREE → BRAINSTORM → PLAN → EXECUTE → REVIEW → COMPLETE
Generate a structured task brief from lth memory before starting work
Session warmup — surface recent project context from lth memory
Bootstrap agent memory from lth — reconstruct context from stored memories before working, store findings after
| name | lth:reflect |
| description | Retroactively store session learnings to lth memory without manual store calls |
| user-invocable | true |
| category | memory |
After completing work, automatically extracts key decisions and learnings from git history and workflow artifacts, then stores them to lth memory. Closes the feedback loop without requiring manual lth store calls.
/lth:reflect
Run at the end of a session after committing code or finishing a workflow.
Gather raw material:
export PATH="$HOME/bin:$PATH"
CWD=$(pwd)
PROJECT=$(basename $CWD)
# Recent git activity
git log --oneline -5 2>/dev/null || echo "no git history"
git diff HEAD~1 --stat 2>/dev/null || git diff --cached --stat 2>/dev/null || echo "no diff"
git show HEAD --stat 2>/dev/null | head -20
Read workflow artifacts if present:
cat .bob/state/brainstorm.md 2>/dev/null | head -50
cat .bob/state/plan.md 2>/dev/null | head -30
cat .bob/state/review.md 2>/dev/null | head -30
Analyze and identify what's worth storing:
Do NOT store trivial observations — only hard-won findings.
Store each finding:
# For project-specific decisions:
~/bin/lth store --layer 4 --attr "project=$PROJECT" --attr "tags=session-reflect" "[finding]"
# For reusable techniques (only if clearly generalizable):
~/bin/lth store --layer 3 --attr "topic=[domain]" --attr "tags=[relevant,tags]" "[technique]"
Print summary:
Stored N memories to lth:
- [id1]: [preview of content]
- [id2]: [preview of content]
...
Good:
Not worth storing: