Session Logs

개발

과거 대화 검색 및 토큰 비용 추적

할 수 있는 것

  • Search all sessions — Full-text search across all past conversation JSONL files
  • Query user messages — Find specific questions or requests you've made
  • Search assistant responses — Locate answers, code, or explanations
  • Cost calculation — Token usage and cost estimates per session
  • Daily cost summaries — Total spend by day, week, or month
  • Message and token counts — Analyze conversation length and API usage
  • Tool usage breakdown — See which tools were called and how often
  • Cross-session search — Find when a topic was discussed across all conversations
  • Session metadata — View timestamps, model versions, and configuration
  • 시도해볼 질문

  • "Search my session logs for conversations about React hooks"
  • "Show me total costs for all sessions this week"
  • "What tools did I use most in January?"
  • "Find sessions where I discussed the TypeScript migration"
  • "How many tokens did I use yesterday?"
  • "Show daily cost breakdown for this month"
  • 전문가 팁

  • Uses ripgrep for fast full-text search across large JSONL files
  • jq enables precise JSON filtering and aggregation
  • Tool usage stats reveal workflow patterns and optimization opportunities
  • Cost tracking helps budget API usage and identify expensive conversations
  • Cross-session search finds recurring themes across your entire history
  • Token counts separate input vs output for granular cost analysis