Add history tracking hooks and project structure
- Add docs/history/ directory for work history files - Add PROGRESS.md for project status tracking - Add .claude/settings.json with Gitea MCP permissions - Gitea issue #1: 히스토리 및 AI 사용량 추적 시스템 설정 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
25
historyhooks/session-start.sh
Normal file
25
historyhooks/session-start.sh
Normal file
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
# session-start.sh
|
||||
# SessionStart 훅: 세션 시작 시 프로젝트 상태를 컨텍스트에 주입
|
||||
#
|
||||
# PROGRESS.md의 현재 상태 요약을 읽어서 에이전트에게 전달
|
||||
|
||||
PROGRESS_FILE="$CLAUDE_PROJECT_DIR/PROGRESS.md"
|
||||
|
||||
if [ -f "$PROGRESS_FILE" ]; then
|
||||
# PROGRESS.md에서 "현재 상태 요약" 섹션 추출 (첫 20줄)
|
||||
STATUS=$(head -20 "$PROGRESS_FILE")
|
||||
|
||||
cat <<EOF
|
||||
{
|
||||
"hookSpecificOutput": {
|
||||
"hookEventName": "SessionStart",
|
||||
"additionalContext": "=== 프로젝트 진행 상태 ===\n${STATUS}\n=== 상세 내용은 PROGRESS.md 참조 ==="
|
||||
}
|
||||
}
|
||||
EOF
|
||||
else
|
||||
echo '{"hookSpecificOutput":{"hookEventName":"SessionStart","additionalContext":"PROGRESS.md가 아직 없습니다. /status로 확인하세요."}}'
|
||||
fi
|
||||
|
||||
exit 0
|
||||
Reference in New Issue
Block a user