Best of GitMarch 2026

  1. 1
    Article
    Avatar of hnHacker News·8w

    pgit: What If Your Git History Was a SQL Database?

    pgit is a Git-like CLI that stores repository history in PostgreSQL using delta compression via a custom Table Access Method (pg-xpatch). It lets you query your entire commit history with SQL and provides built-in analyses for churn, coupling, hotspots, bus factor, and activity. Benchmarked against 20 real repositories (273k commits), pgit outcompresses `git gc --aggressive` on 12 out of 20 repos. The tool also works well as an interface for AI agents: a Claude agent produced a full codebase health report on Neon's repo in under 10 minutes using a 4-sentence prompt. pgit is not meant to replace git for daily workflows but excels at programmatic codebase history analysis.

  2. 2
    Article
    Avatar of reidburkeReid Burke·9w

    Worktrunk — Git Worktree Manager for AI Agent Workflows

    Worktrunk is a CLI tool that simplifies Git worktree management, specifically designed for running multiple AI coding agents in parallel. It wraps Git's native worktree feature with three core commands (switch, list, merge/remove) to eliminate repetitive path and branch typing. Key features include hooks for automating setup tasks, LLM-generated commit messages, an interactive worktree picker with live diff previews, build cache sharing between worktrees, and direct integration with Claude Code and Codex. Installation is available via Homebrew, Cargo, Winget, or AUR.

  3. 3
    Video
    Avatar of devopstoolboxDevOps Toolbox·10w

    Stop Using Git Worktrees. Do THIS Instead.

    Git worktrees allow parallel development across multiple branches without stashing, but their CLI UX is notoriously painful. Work Trunk is a new CLI tool that wraps Git worktrees with a much smoother interface: it handles branch creation, switching, merging (including auto-staging, AI-generated commit messages via Claude, stash management, and cleanup) in single commands. Key features include hooks for automating tasks on worktree events (e.g., running npm install, renaming tmux windows), fuzzy-finding via jq/fzf integration, PR resolution via GitHub CLI, copying gitignored files across worktrees, and per-step merge control. The tool is positioned as especially useful for AI agent-based parallel development workflows.

  4. 4
    Article
    Avatar of jetbrainsJetBrains·8w

    How We Taught AI Agents to See the Bigger Picture

    AI agents writing code for large legacy codebases tend to repeat outdated patterns because they mistake frequency for correctness. The JetBrains TeamCity team tackled this by building CommitAtlas, an internal tool that mines Git history to extract accepted patterns, naming conventions, and migration examples. Before writing code, agents query CommitAtlas for task-specific guidance derived from real, reviewed commits rather than raw codebase frequency. This approach reduced pull request rejections and helped agents produce code that fits the project's evolving standards rather than its historical defaults. The core insight: repository history is implicit documentation, and giving agents access to it bridges the gap between technically correct and genuinely acceptable code.

  5. 5
    Article
    Avatar of planetpythonPlanet Python·7w

    Do you teach Python? Then check out course-setup

    A Python instructor shares course-setup, a PyPI utility suite built to automate the repetitive classroom prep work of creating Git repos, connecting them to GitHub, launching Jupyter/Marimo notebooks, and auto-pushing changes so students can follow along. Originally a manual 10-minute setup routine, it was significantly expanded using Claude Code with AI agents writing most of the code. Features include multi-day scheduling, Israeli weekend support, course retirement/unretirement, and daily zipfile archiving. Available on PyPI and GitHub.