Skip to content

Instantly share code, notes, and snippets.

View peterhartree's full-sized avatar

Peter Hartree peterhartree

View GitHub Profile
@peterhartree
peterhartree / mundane-everyday-utility-redacted.md
Created June 15, 2026 14:25
Mundane everyday AI utility: damaged delivery replacement request
@peterhartree
peterhartree / blog-gist-adding-a-bag-transcript.md
Last active June 15, 2026 11:22
Adding a checked bag to a flight booking, by browser automation

User:

Please use browser automation to update Peter Hartree's Lufthansa return flight booking to add one checked/hold luggage bag.

Context:

  • Passenger: Peter Hartree
  • Return flight: Lufthansa LH****
  • Route: Munich (MUC) -> Marseille (MRS)
  • Date/time: [date redacted], departs 15:25, arrives 17:10
  • Booking code: ******
@peterhartree
peterhartree / c2.zsh
Created June 9, 2026 09:41
c2: send one prompt to both Claude Code and Codex in side-by-side Warp panes
# c2: pick a project (same switcher as cc/cx), then run Codex in THIS pane and
# Claude in a new split pane to the right - both seeded with the same prompt.
# Companion to https://wow.pjh.is/journal/claude-code-project-switcher
# Usage: c2 <prompt...> (interactive picker, then both agents)
# c2 3 <prompt...> (quick-select project/recent slot 3)
# c2 r2 <prompt...> (quick-select recent-dir slot 2)
# c2 (no prompt -> opens $EDITOR; or pipe via stdin)
c2() {
if [[ "$TERM_PROGRAM" != "WarpTerminal" ]]; then
echo "c2: built for Warp - the second pane is created with Warp's split shortcut." >&2

Find flights: earlier leg 1 to London (Montpellier → Reykjavík, July 2026)

Saved 8 June 2026. Generated with Claude Code.


User

/Users/ph/Documents/Projects/travel/work/flights/montpellier-reykjavik-via-london-july-2026.md we are researching this itinerary. plz could you look for a leg 1 option to london that'd arrive earlier in the day?

@peterhartree
peterhartree / accounts-preparation-plan-redacted.md
Created March 3, 2026 12:03
Claude Code's plan for preparing HartreeWorks Ltd annual accounts in Xero

HartreeWorks Limited — 2025/26 accounts preparation

Context

HartreeWorks Limited (company 10570654) has a financial year ending 31 January 2026. The accounts are due at Companies House by 31 October 2026. The accountant firm, [REDACTED], has already sent a 37-question Accounts Checklist via Xero on 4 February 2026 that needs to be completed. The company is not VAT-registered, turnover is in the [REDACTED] band, and the bank feed (Wise) is connected to Xero.

Goal: Prepare the accounts in Xero so the accountant can file statutory accounts and corporation tax return, then notify them we're done.

Key contacts

@peterhartree
peterhartree / format-calendar.py
Created February 2, 2026 08:48
Format Google Calendar API JSON into a day-grouped schedule (for use with Claude Code)
#!/usr/bin/env python3
"""Format Google Calendar API output into a day-grouped schedule.
Accepts JSON via stdin (the format returned by the Google Workspace MCP tool).
Parses event timestamps, converts to Europe/Paris timezone, groups by date,
and outputs a clean day-by-day schedule with verified day names.
Usage:
echo '<calendar JSON>' | python3 scripts/format-calendar.py
python3 scripts/format-calendar.py < calendar-data.json
@peterhartree
peterhartree / meeting-summary-prompt.md
Last active June 15, 2026 10:23
Prompt for creating comprehensive, chronological meeting summaries

Summary format

Create comprehensive, chronological summaries that help the user re-envision and remember the conversation. The chronological structure is key—it allows details not explicitly in the summary to be recalled by following the flow.

Document structure

# Meeting summary: [Title]

**Date:** YYYY-MM-DD
@peterhartree
peterhartree / tidy-transcript-prompt.md
Created January 21, 2026 15:35
Prompt for tidying raw meeting transcripts while preserving important nuances

Meeting transcript tidying prompt

Guidelines for cleaning up raw meeting transcripts while preserving important nuances.

Tidying guidelines

  • Remove filler words (um, uh, you know) and false starts
  • Fix obvious transcription errors and grammar
  • Keep speaker labels clear and consistent
  • Add section headings for major topic shifts
@peterhartree
peterhartree / blog-edit-skill.md
Created January 20, 2026 15:16
Blog editing skill for AI Wow posts - style and clarity guidelines
name blog-edit
description Review AI Wow blog posts for style and clarity improvements. Checks for brevity, directness, unnecessary hedging, and maintains the author's informal, punchy style.

Blog Editing Skill

This skill reviews AI Wow blog posts for style and clarity improvements.

How to Use

@peterhartree
peterhartree / coding_agent_launcher.py
Last active June 14, 2026 08:26
Coding agent project switcher - launch Claude or Codex in any project with single keypress
#!/usr/bin/env python3
"""Unified Claude Code launcher with project selection and recent directory tracking.
Displays:
- Current directory with Enter to continue
- Numbered/lettered list of projects from projects.yaml
- Numbered/lettered list of recent directories (excluding project dirs)
Options 1-9 use digits, options 10+ use letters (a-z).
All selections are instant (single keypress). Menu actions use Ctrl+key.