Add Claude Code session cost to YouTrack PR comment instructions#69
Add Claude Code session cost to YouTrack PR comment instructions#69SimonKaran13 wants to merge 1 commit intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates contributor workflow guidance so that YouTrack PR comments include the Claude Code session cost (retrieved via /cost), improving traceability of AI usage costs alongside PR links.
Changes:
- Update “YouTrack Ticket Workflow” instructions to include session cost in the PR-related YouTrack comment.
- Update “After Completing Work” step 8 to include running
/costand adding the cost to the YouTrack comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| 8. **Update YouTrack** — move the ticket to **Review** state and add | ||
| a comment with the PR URL. | ||
| a comment with the PR URL and the Claude Code session cost (run | ||
| `/cost` to obtain it). |
There was a problem hiding this comment.
I believe /cost command returns the amount of resources spent on the whole session, not the resources spent on the particular ticket, so the cost might be misleading in context of the ticket
There was a problem hiding this comment.
Good point. The intent is to practice session hygiene — one ticket per session — so the session cost closely reflects the cost of that ticket. For tickets that span multiple sessions, the reported cost should be treated as a lower bound. This keeps things simple while still providing useful cost visibility.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
f4c4a17 to
77ab039
Compare
Summary
/cost)🤖 Generated with Claude Code