본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

codesession

brian-mwirigi 제작

Web & Frontend Development
2.4kclawskills.sh가 보고한 다운로드 수
3스타
0조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

Track agent session costs, file changes, and git commits with codesession-cli.

설명

이 스킬이 하는 일

codesession-cli tracks AI agent session costs, token usage, file changes, and git commits from a single CLI. Session data is stored locally with a web dashboard for cost breakdowns, budget alerts, and per-model analytics. Compatible with Claude Code, Codex, Cursor, Windsurf, Cline, and any agent using OpenAI or Anthropic-compatible APIs.

It works across Claude Code, Codex, Cursor, Windsurf, and Cline without requiring separate dashboards or vendor-specific integrations for each tool.

사용 시점

  • Checking how much a Claude Code session cost before closing it
  • Setting a daily spend alert to avoid unexpected API bills
  • Attributing token costs to specific agents in a multi-agent pipeline
  • Comparing costs across Claude, GPT-4o, and Gemini for the same task type
  • Exporting session history to CSV for client billing or project tracking

예시 워크플로

입력

User asks: Track costs for a bug-fix session using Claude

에이전트
  1. 1

    Runs cs start "Fix authentication bug" --json --close-stale to open a tracked session

  2. 2

    After each API call, runs cs log-ai -p anthropic -m claude-sonnet-4 --prompt-tokens 8000 --completion-tokens 2000 --json to record usage

  3. 3

    Runs cs status --json to check current spend before expensive operations

  4. 4

    Runs cs end -n "Fixed auth bug, added tests" --json to close the session and capture git changes

출력

Session summary with total AI cost, token counts, files changed, commits made, and access to the web dashboard for full analytics

설치

clawhub install brian-mwirigi/codesession

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크