Log an activity
log_activityFinish a coding session and receive a Strava-style achievement card that maps line churn to distance, files and errors to elevation, and tracks badges and personal records.
Instructions
Finish a coding session and get a Strava-style achievement card back as an image. Report the session honestly — line churn becomes distance, files and recovered errors become elevation, and the card awards badges and personal records against your own history. Call this when the user asks you to brag, or at the end of a session worth remembering.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | ISO timestamp. Defaults to now. | |
| repo | No | Repo or project name. | |
| type | No | What kind of session this was. Defaults to "feature". | |
| photo | No | Card background, with the route drawn over it — Strava-style. A local image path (jpg/png/gif/webp, under 8 MB), or "chat" to use the image the user most recently pasted into this conversation. Ask the user for one; do not invent a path. | |
| title | No | Optional. Left blank, it is auto-named Strava-style from the clock and type — "Morning Refactor", "Late Night Debug". | |
| tokens | No | Tokens burned, if you know it. | |
| athlete | No | Who did the work. Defaults to "Claude". | |
| summary | No | One line on what you actually did. Shown under the title. | |
| languages | No | Languages touched. | |
| tool_calls | No | How many tool calls you made. | |
| lines_added | No | Lines added. | |
| tests_failed | No | Tests that failed. | |
| tests_passed | No | Tests that passed. | |
| files_changed | No | Distinct files created or edited. | |
| lines_removed | No | Lines removed. | |
| duration_seconds | No | Wall-clock length of the session. | |
| errors_recovered | No | Times you hit an error and worked past it. These draw as loops on the route map — be honest, they are the best part. |