Vibe Coding System — How We Stay Organized

The 6 Systems

1. Pre-Session Commit

Before any AI session writes code, it saves what's there first.

git add -A && git commit -m "pre-session save"

If anything breaks, you can undo everything with git checkout .

Where: Rule in CLAUDE.md (both projects)


2. Change Log

Running record of every meaningful change — bug fixes, features, config changes, deploys. Updated automatically after every session where code was changed.

Where: /home/ubuntu/edgeclaw/docs/changelog.md (on dashboard)


3. Branch Workflow

Small fixes go straight to master (pre-session commit is the safety net). Big or risky changes get a branch first:

git checkout -b descriptive-branch-name    # create branch
# ... do the work ...
git checkout master && git merge descriptive-branch-name   # merge if it worked
git branch -D descriptive-branch-name      # delete if it failed

Where: Rule in CLAUDE.md (both projects)


4. Pre-Flight Checklist

Runs automatically after every EdgeClaw restart. Checks:

Sends a Telegram alert: green (all clear), yellow (warnings), or red (failed).

Claude Code also runs manual checks after every restart and reports results.

Where:


5. Session Summary

At the end of every work session, Claude replaces SESSION_STATE.md with a fresh snapshot:

Replaces, doesn't append. Always a snapshot of right now. The change log handles history.

Where: Rule in CLAUDE.md (both projects)


6. Health Monitor (Automated Tests)

Runs every 4 hours (6AM/10AM/2PM/6PM/10PM ET). Watches the system even when nobody's looking. Checks:

Skips all desks in the ToDo group. Sends Telegram alert only when issues are found.

Where:


How It All Fits Together

Before coding:    Pre-Session Commit (save point)
During coding:    Branch if risky, master if small
After coding:     Quality Gate (6-step verification)
End of session:   Session Summary + Change Log
After restart:    Pre-Flight Checklist (automated)
All day long:     Health Monitor every 4 hours

Post-Build Quality Gate (separate doc)

After any code change — 6 steps, no exceptions:

  1. Simplify (2 passes)
  2. Math check (2 passes)
  3. Function test (2 passes)
  4. Import & dependency check
  5. Type check
  6. Integration check

Every issue gets fixed. If fixes create new code, loop back through all 6 steps.

Source: ~/edgeclaw/docs/vibe-coding-system.md