- Added git context loading to system prompt to provide AI with repository state awareness. - Implemented automatic detection of main/master branch to support varied repository conventions. - Included current branch, git status, and recent commits snapshot for contextual understanding.