Local version control

From grandamenium/cortextos · View interactive version

Local version control is an AI agent skill from the GitHub repository grandamenium/cortextos. Daily git snapshots of agent workspace changes. Stages files with safety checks, reviews diff for PII, commits with descriptive message. Never pushes automatically.

How to use this skill

Skill file

Local Version Control

Daily snapshot of all agent workspace changes. Runs via auto-commit.sh with a two-layer safety review.

When to Run

Workflow

Step 1: Run auto-commit.sh

RESULT=$(cortextos bus auto-commit)

This stages files with safety checks:

Step 2: Review the staged diff

git diff --cached

Check for:

If anything looks sensitive, unstage it:

git reset HEAD <file>

Step 3: Commit

Generate a descriptive commit message summarizing what changed:

git commit -m "daily: <summary of changes>"

Step 4: Do NOT push

Auto-commit never pushes. The user or orchestrator decides when to push.

Config

Requires ecosystem.local_version_control.enabled: true in config.json.

Safety

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.