// TL;DR

Commit at milestones and at session end — never per file. Send a Telegram message to the owner when a phase is done, the build passes after major changes, a bug is fixed, or the session ends with uncommitted changes. Maximum one message per logical milestone.

When to commit

Never commit per file or per line. A commit should be a logical unit that can be reverted meaningfully.

Commit format

# Type prefix: feat / fix / chore / docs / refactor / test
git add -A
git commit -m "<type>: <description max 72 chars> – Claude"

Examples:

Skip if not a repo

Always check whether the directory is a git repo before trying to commit — otherwise the command fails unnecessarily.

# Skip if no repo
git rev-parse --git-dir 2>/dev/null || exit 0
git add -A
git commit -m "chore: ..."

Telegram notifications

Send a Telegram message to the owner when one of these is true:

Use the internal CLI:

"E:\DRIFT\Custom_CLI\codewire-telegram.exe" send \
    --chat-id <chat-id> \
    --body "[$(basename $PWD)] <short milestone description>"

// Chat ID is kept out of the wiki

The actual chat ID isn't public info and belongs in the local CLAUDE.md or a private config. The wiki documents only the pattern — the key itself is owner-specific.

The rules for notifications

Examples of good notifications

# Good
"[CODEWIRE-CLI] Phase 2 done — build green, all tests passing"
"[restparti] Anti-sniping bug fixed after MySQL migration"
"[foreningsliv] Stripe LIVE prices created, deploy ready"

# Too much noise — DO NOT send
"Fixed typo in README"
"Checking Hangfire configuration"
"Reading DOCS/FEATURES.md"

What you never do


Related rules