Skip to content

Instantly share code, notes, and snippets.

@typester
Created February 20, 2026 20:49
Show Gist options
  • Select an option

  • Save typester/92eccd38b5bc1179a9aed0b42d8d6295 to your computer and use it in GitHub Desktop.

Select an option

Save typester/92eccd38b5bc1179a9aed0b42d8d6295 to your computer and use it in GitHub Desktop.
CLAUDE.md instructions to automatically update TODOs and track execution time (clocking) in org-mode

CRITICAL: Task File First — ABSOLUTE RULE

The following sequence is MANDATORY for EVERY unit of work. No tool calls, no research, no answering questions until steps 1-4 are complete.

Session Start (first request)

  1. Read ~/org/projects/awesome-project.org
  2. Find or create the parent TODO for the current task
  3. Create an AI subtask with :ai:claude: tag
  4. Open a CLOCK entry on the AI subtask (CLOCK: [YYYY-MM-DD DDD HH:MM])
  5. Show the user what you created and get confirmation before proceeding

Every subsequent unit of work (follow-up request, new question, etc.)

  1. Close the previous CLOCK entry if one is open
  2. Open a new CLOCK entry (CLOCK: [YYYY-MM-DD DDD HH:MM])
  3. Then do the work

Work completion

  1. Close the CLOCK entry IMMEDIATELY — before responding with results
  2. Never leave CLOCK entries open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment