Agent Cost Report
하는 일
이 에이전트는 Claude Code 같은 AI 도구를 사용하는 비용에 관한 자세한 보고서를 만듭니다. 토큰 지출을 추정하고 낭비를 찾아냅니다.
사용하는 경우
- ✓AI 프로젝트의 비용을 관리자가 알아야 할 때.
- ✓집중적으로 사용한 뒤 투자 대비 효과를 알고 싶을 때.
- ✓반복이나 오류 같은 AI 작업의 낭비를 분석하고 싶을 때.
스킬 링크
https://github.com/thedotmack/claude-mem/blob/main/claude-mem-cursor/skills/agent-cost-report/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“지난주 비용 보고서를 만들어 주세요. 낭비에 초점을 맞춰 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 에이전트는 AI 사용 기록을 분석하고, 공개된 가격을 기준으로 비용을 계산한 뒤, 정보를 읽기 쉬운 보고서로 정리합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Agent Cost Report
Claude-Mem / Claude Code skill. Runtime is the scripts/ pipeline (transcripts → tokens → dollars → Timing-style report) plus a progressive Mem Search review pass that confirms the drafted labels. The Notion draft is SPEC history only — never the product, never the runtime, never the ship vehicle.
Resolve the absolute directory containing this SKILL.md; all helper paths are relative to that directory. ${CLAUDE_SKILL_DIR} is the shortcut: python3 "${CLAUDE_SKILL_DIR}/scripts/acr.py" …. Python 3.9+ standard library only, with IANA timezone data for America/Los_Angeles; no pip installs. tzdata is the only exception to the no-pip-installs rule, and only when acr.py exits saying that timezone data is unavailable (stock Windows Python ships none): show the user the lines it printed and ask (AskUserQuestion) before installing it. On a yes, run the line for your shell (the plain quoted line in Bash or cmd, the PowerShell: line in PowerShell), then rerun the failed command. Setting PYTHONTZPATH instead needs no install. The look lives in scripts/acr/render.py, never here.
Purpose
Turn Claude-Mem activity into a manager-readable cost and failure report.
Product idea: a reusable skill that searches Claude-Mem via Mem Search, reconstructs real units of work, assigns cost and failure categories, and renders a printable report.
Insight north star
The headline is dollars, to two decimals, labeled. The dollars come from Claude Code transcripts (exact per-reply token usage) priced at OpenRouter public list prices, so they are ESTIMATED. Measured provider spend appears only when a sanctioned source gives it. Directly under the dollars: what the mistakes cost, what shipped, and both on one time axis.
Questions the report must answer
- What work was completed?
- What did each outcome cost?
- What was wasted through looping, hedging, wrong turns, rework, or poor routing?
- Were any unauthorized actions attempted?
- What should the manager change next?
Primary unit = cost per completed outcome (not cost per observation).
When to use
- "Agent cost report" / "cost per outcome" / "failure economics" / "was this session worth it" / "what did the agents cost this week"
- After a real Mem session dig when leadership needs outcome economics
- Sample / ship packs that need self-contained HTML + JSON + CSV + evidence
Memory dig mechanics: the claude-mem mem-search skill (progressive recall).
Default scope (ALWAYS)
- Unless the user names a specific session / range / project, the window is the last 7 full days in PT, not counting today:
end= the PT midnight that started today (exclusive),start=end − 7 days. The default window never contains a partial day (G3, Alex 2026-09-25). - Explicit windows:
--start YYYY-MM-DD --end YYYY-MM-DD(PT calendar days, end exclusive). An explicit--endlater than today marks the last day "partial, generated HH:MM PT". - One session:
--session <content_session_id>. One project plus a period:--project <name> --start … --end …(worktrees of the project are included). - The report Scope strip shows the PT range, and Details list every session id in scope.
Progressive Mem Search (ALWAYS)
Follow the claude-mem mem-search three layers. Keep spend light.
- Search — get an index of IDs (titles, types, token hints).
- Timeline — only around anchors you care about.
- Observations —
get_observationsfor the filtered IDs you will cite as evidence.
Recipe:
- Resolve scope (default: the last 7 full PT days).
- Search → collect IDs.
- Timeline for thin context only.
- Observations for intended / actual / outcome / waste / rework / blocked / unauthorized / status.
- Group into named work items + failure events.
- Calculate line-item costs.
- Render HTML + optional PDF (+ json/csv/evidence).
- Keep evidence IDs in the appendix — do not dump entire timelines into the main report.
ADHD process bullets:
- Search first → pick IDs → timeline only if context is thin → fetch only needed obs.
- Work-item titles are invented for managers ("Restore search after Chroma crash-loop"); observation titles stay evidence-only.
- Evidence appendix lists obs IDs + short titles; main sections stay outcome-first.
…
자주 묻는 질문
'토큰'은 무엇인가요?
AI가 처리하는 작은 텍스트 조각입니다. 텍스트가 많을수록 토큰도 많아지고 비용도 올라갑니다.
비용은 정확한가요?
아닙니다. 비용은 OpenRouter 같은 서비스의 공개 가격을 바탕으로 추정합니다. 실제 비용은 다를 수 있습니다.
'실패 유형'은 무엇인가요?
무엇이 잘못되었는지 설명하는 범주입니다. 반복(무한 루프), 작업 다시 하기(재작업), 잘못된 방향 선택 등이 있습니다.
상세 정보
작성자의 원본 설명
Believable agent cost report for any period, default the last 7 full days PT, not counting today. Measured tokens from Claude Code transcripts priced at OpenRouter list prices (ESTIMATED), measured provider spend when a sanctioned source exists, note-taker cost separate, Timing-style HTML/PDF plus report.json, line-items.csv, evidence.json.
repo: thedotmack/claude-mem
인기도
- GitHub 스타
- 101k
- 순위
- #1260
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
claude-mem-install
101k여러 환경에서 Claude-Mem을 설정하도록 에이전트를 돕습니다. 로컬 또는 원격 워커를 고르고 관찰을 설정할 수 있습니다.
mem-search
101k에이전트가 과거의 기억을 검색하도록 합니다. 이전 해결책이나 오래된 세션의 작업을 떠올리는 데 유용합니다.
host-observer
101kClaude-Mem 관찰자 작업에 에이전트가 응답하도록 돕습니다. 'skip_summary' 또는 전체 XML 관찰 내용으로만 응답합니다.
mem-setup
101k사용자와 함께 Claude-Mem을 설정하도록 에이전트를 돕습니다. 사용자의 계정을 연결하고 클라우드 동기화를 설정합니다.
비슷한 스킬
technical-documentation
394k에이전트가 명확한 기술 문서와 에이전트 지침 파일을 작성하고 검토하도록 도와, 사람과 AI 도구가 쉽게 따를 수 있게 합니다.
architecture-decision-records
280k에이전트가 프로젝트 구조에 관한 중요한 결정을 기록하도록 합니다. 선택의 이유를 이해하고 변경 이력을 명확히 유지하는 데 도움이 됩니다.
code-tour
280k에이전트가 정확한 파일과 줄 번호를 참조하는 단계별 코드 안내를 만들도록 합니다. 소개, 설명, 리뷰에 유용합니다.