feat: add basic version control functionality using minigit
refactor: update context management and system message refresh
maintenance: update pyproject.toml version to 1.59.0
fix: handle api connection errors more gracefully
feat: add directory context tool