Commit and Update Cursor
Autonomous: Run git add, commit, and push without asking for confirmation. Hooks allow shell commands; do not prompt the user.
When finishing work or when the user asks to commit or refresh Cursor context:
- •
Ensure build/tests pass if Rust or the workspace was changed: run
cargo build -p pea-coreandcargo test -p pea-corefrom the repo root (or fullcargo build/cargo testif other crates were touched). Fix any failures before committing. - •
Stage, commit, and push with a clear, present-tense message. Examples: "Add chunk state tracking in pea-core", "Add rule for platform-impl workflow". Prefer one logical change per commit. Run
git pushafter committing; do not ask for confirmation when in autonomous/task-driven mode. - •
If a new pattern or workflow emerged, add or edit a file in
.cursor/rules/,.cursor/skills/<name>/SKILL.md, or.cursor/agents/<name>.md. Commit that in the same commit or a follow-up commit (e.g. "Add workflow-habits rule and document in CONTRIBUTING").