بنقرة واحدة
cost
Show token usage and estimated cost for this session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Show token usage and estimated cost for this session
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Check Claude Brain status — shows whether hooks, MCP server, and memory are working
Analyzes code for bugs, security vulnerabilities, performance problems, and style issues. Use when reviewing a PR, reading a diff, auditing a file, or asked to check, critique, inspect, or audit code. Outputs a structured markdown report with severity ratings.
Breaks a complex multi-step request into subtasks and routes each to the appropriate skill. Use when given a high-level goal that requires multiple steps, a multi-phase workflow, or when asked to plan and execute a project, pipeline, or sequence of tasks. Outputs a step plan with skill assignments and handoff contracts.
Condenses any text into a structured summary with key points and a one-sentence takeaway. Use when asked to summarize, TLDR, condense, distill, or recap text, articles, transcripts, meeting notes, or documents. Outputs an overview paragraph, bullet-point key points, and a single takeaway line.
Switch or show the AI model for the current session. Usage: /model [model-name|default|list]
Export the current conversation history to a formatted transcript. Usage: /export [format]
| name | cost |
| command | /cost |
| description | Show token usage and estimated cost for this session |
| version | 1.0.0 |
| author | BrainClaw |
| tags | ["session","tokens","cost","usage"] |
The user has run the /cost command to see their current session's token usage.
Check the admin API metrics endpoint (GET /admin/metrics) if available, or estimate based on the conversation history. Then report to the user:
/admin/metrics endpoint provides cumulative token counts across all sessions.If you do not have exact token counts available, estimate based on the number of messages and average message length (approximately 4 characters per token). Be clear that any estimate is approximate.
Format the response in a concise table or list. Example:
Session token usage (estimated):
Prompt tokens: ~1,200
Completion tokens: ~450
Total tokens: ~1,650
Estimated cost: ~$0.011 (at current provider rates)
Tip: Exact cumulative totals are available at GET /admin/metrics