cs run.
Basic workflow
Start a session
Work
Write code, run tests, make commits. File changes and git commits are tracked in the background — you do not need to do anything extra.
Optionally log AI usage manually
If you are not using the proxy, record AI calls directly with The
cs log-ai:-t flag sets total tokens and -c sets cost in USD. For models in CostHQ’s built-in pricing table, you can omit -c and the cost is calculated automatically.End the session
-n flag attaches a note to the session before it closes. Notes appear in cs show and the dashboard.Session summary
cs show outputs a formatted table for the most recent session (or a specific session by ID):
--files or --commits to include the full file change list or commit log in the output.
Combining the proxy with manual tracking
For the best of both worlds — manual session boundaries plus automatic API cost capture — start the proxy in a separate terminal while your session is active:cs log-ai by hand. See Local Proxy for proxy setup details.
Session annotations with cs note
Add timestamped notes within a session to mark transitions between sub-tasks or phases of work:cs show --json under the annotations array and in the session detail view in the dashboard. They are useful for reconstructing what happened during a long session.
For the complete flag reference for cs start, cs end, cs log-ai, and related commands, see Session Commands.