Skip to content

Latest commit

 

History

History
33 lines (22 loc) · 995 Bytes

File metadata and controls

33 lines (22 loc) · 995 Bytes

AGENTS

Project Purpose

leancommit is a small Go CLI that extracts the latest Codex <proposed_plan> title and uses it as a git commit message without making another model call.

Local Checks

Run the same checks used by CI:

go test ./...
go vet ./...
go build ./...

Build a local binary when needed:

go build -o leancommit .

Development Notes

  • Keep Codex session parsing logic in internal/codex covered by table-style unit tests or focused test cases.
  • Keep git command behavior in internal/gitx testable through dry-run and output assertions.
  • Prefer --print and --dry-run when manually validating behavior. Normal execution stages files, commits, and may push.
  • Do not commit generated local artifacts such as .cache/ or the leancommit binary.

Safety

  • Treat code paths that run git add, git commit, or git push as side-effectful.
  • Avoid tests that mutate the real working tree. Use temporary directories and dry-run runners.