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