कंटेंट पर जाएँ
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 या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक