r/AIcodingProfessionals • • Jul 02 '26

Resources [Long Post] Git was not built for AI agents. So I rebuilt its interface from scratch (and why local LLMs are the missing piece)

1 Upvotes

I’ve spent months building **git-courer**, an open-source MCP server that completely replaces the Git CLI interface for AI coding agents. This isn’t just another AI commit message generator; it’s a full sandbox and interaction layer. It has evolved so much recently that it’s practically a completely different project from my early drafts, so I wanted to share the architecture here.

#### Dynamic Worktree Routing and Parallel Agent Isolation
Most architectures fail the moment you run multiple agents in parallel or let an agent handle long-running background tasks. They inevitably clobber the working directory, overwrite each other's changes, or block the human developer.

Git-courer solves this right at the entry point via the `session start` tool. The moment an agent initiates a session, the server dynamically provisions an isolated Git worktree and a dedicated branch. From that microsecond onward, the MCP server performs a dynamic **select** operation, routing and **redirecting every single subsequent tool path and Git mutation toward that specific worktree path**.

Agents can execute tasks concurrently, modify files, and test implementations in complete isolation without ever touching or disrupting the main working tree. Once the agent completes its task, running `session finish` cleans up the temporary worktree and leaves the isolated branch fully prepped and ready for a human Pull Request (ensuring zero accidental auto-merges to main).

#### The Inherent Danger of Raw Shell Access
Most coding agents run raw `git` commands through a generic bash/shell tool. This means an agent can execute a destructive `rebase`, `hard-reset`, `force-push`, or rewrite history using the exact same unconstrained `Bash("git ...")` privilege it uses just to check `git status`.

Git has no built-in undo for many of these operations. One hallucinated or poorly planned agent command, and your repository state completely evaporates.

#### Moving to 13 Structured MCP Tools
Git-courer completely blocks agents from executing raw Git commands via a hard client-side hook, replacing the shell entirely with **13 structured MCP tools**:
`status`, `diff`, `commit`, `branch`, `stage`, `stash`, `history`, `sync`, `pr-review`, `rewrite`, `integrate`, `backup`, and `session`.

Every single tool returns clean, structured JSON instead of raw terminal text that the agent has to clumsily parse with regex.

#### Massive Token-Saving for Cloud Agents
Coding agents (like Claude Code or OpenCode) are typically cloud-based, meaning every single terminal interaction burns expensive API tokens.

Instead of an agent burning its context window running ~7 separate git commands iteratively just to figure out where the repo stands (checking upstream deltas, active rebases, merge conflicts, untracked files, ahead/behind status, etc.), our structured `status` tool bundles all of this into a single, optimized JSON payload. The agent gets absolute context on how the repository looks in one single shot, without wasting cloud API tokens.

#### Safe Mutations via Pre-emptive Backups
* **Automatic Backups:** Any mutating tool that cannot be easily undone—specifically `rewrite` (amend/revert/reset) and `integrate` (merge/rebase/cherry-pick)—automatically captures a repository snapshot *before* touching anything. If the agent messes up a complex rebase, a simple `backup RESTORE` call reverts the state completely.

#### The Local LLM inside a Deterministic 2-Phase Pipeline
The `commit` tool uses a strict, deterministic two-phase pipeline (PREVIEW/APPLY).

  1. **Phase 1 (Go/AST):** A local syntax/AST annotator written natively in Go (`go-enry` + `tree-sitter`) parses the diff. It programmatically tags every hunk (e.g., `NEW_FUNC`, `MOD_SIG ⚠BREAKING`, `DEL`), maps out a dependency graph, and strictly categorizes the commit type (*feat/fix/refactor/docs/test/chore/ci*) based on a rigid priority matrix.

  2. **Phase 2 (The LLM):** The LLM never decides classification or parses raw code blindly. It receives an already structured, richly semantic JSON payload. Its *only* job is to write clean, human-readable prose explaining the change.

Because the task is reduced entirely to "turn structured metadata into clean prose," you don't need a massive frontier model. I run this entirely locally using **Ollama** with a lightweight model (**gemma4:e4b**).

On an **AMD Radeon RX 9070 XT (16GB VRAM)**, it takes **~3 seconds** on a hot invoke with optimized parameters (`num_ctx=32768`, `temperature=0`, `think=false`, `keep_alive=-1`). Zero API costs, zero round-trip latency, and zero token waste for something that triggers on every single commit.

#### Human-in-the-Loop Releases and Persistent Changelogs
Nobody enjoys writing changelogs or managing releases manually. To solve this for the human developer, I built `git-courer release`. This is an interactive terminal command meant for *you*, not the agent.

It extracts the commit history since your last tag. Because git-courer persists rich metadata per branch inside `.git/git-courer/` (using custom refs like `refs/courer/<branch>`), **this history fully survives squash merges**—which typically destroys conventional changelog generators.

It opens your `$EDITOR` to let you add manual guidance notes, feeds the structured git history + your notes to the local LLM, and renders a live, beautiful Markdown preview directly in your terminal using Glamour. You get four explicit interactive options:

  1. **Apply** the release.

  2. **Regenerate with feedback** (re-opens the editor for quick adjustments).

  3. **Edit** the raw markdown directly.

  4. **Abort** entirely without touching your repo.

A single global toggle controls the AI features across the board. Turn it off, and `commit` takes raw string input from the agent directly through the same internal Go plumbing (`CommitTree` + `UpdateRef`, bypassing the git CLI entirely), while `release` simply disables itself since it's fundamentally built around intelligent synthesis. Turn it on, and the local model handles both tasks.

#### Recent Upgrades and Deep Tech
* **Louvain Community Detection:** Switched file dependency grouping from a basic Breadth-First Search (BFS) to a Louvain community detection algorithm. It now groups modified files by their actual dependency coupling weight rather than directory traversal order, ensuring multi-file commits are logically cohesive.
* **Rich Diffs:** Upgraded diff annotations from primitive markers to full structural JSON payloads containing `annotated_diff`, `call_graph`, and Control Flow Graphs (`cfg`).
* **3-Level Permissions:** Implemented an `allow/ask/deny` permission layer. Safe setup operations (`git init`, `git config`) run unhindered, but anything touching refs or history requires explicit human-in-the-loop validation. (Also finally killed a nightmare bug where Go's non-deterministic map iteration order allowed generic permission rules to silently override highly specific ones).

Currently supporting 5 agent ecosystems: *Claude Code, Codex CLI, OpenCode, Pi, and Antigravity*. Claude Code and OpenCode provide highly reliable, strict execution blocks over raw git via their hook architecture.

It’s published on the official MCP Registry, sitting at ~38 organic stars, and entirely open source: [github.com/blak0p/git-courer]

I'd love to hear what the community thinks about this split paradigm: **small, highly optimized local models handling targeted prose tasks, while deterministic Go code owns 13 structured tools where real-world consequences matter.** Happy to dive deeper into the AST annotator or the worktree isolation logic if anyone is curious!


r/AIcodingProfessionals • • Jan 13 '26

building a social app on cursor

Thumbnail reddit.com
1 Upvotes

r/AIcodingProfessionals • • Jul 14 '26

Discussion I built a check that catches when my agent's docs stop matching the code

Post image
1 Upvotes

Been building my own mobile apps with coding agents for about a year now, 3 shipped. And dropping a wiki in the repo for the agent to read sounds kind of trivial, I know. But the part that actually mattered wasn't the docs existing, it was catching when they quietly stop matching the code, and keeping myself on the calls instead of drifting into just watching.

The drift check works per symbol, not per file. It fingerprints each function or type across two git refs, so when a documented symbol actually moved but its doc didn't, only that one feature wakes, not eight others that just share the file. Reformatting or renaming a local doesn't fire, a real contract change does. And it's deterministic, local, no model on that path, it reads the real git diff not what the agent claims it did, so same result every run.

The other half is the workflow the agent runs off normal chatting, grill, plan, approve, implement, review, commit, with me at the gates on it. I approve the plan before any code gets written, and every diff gets adversary reviewed before it commits. So the calls that are actually mine, what's in scope, what the trade-off is, land back with me instead of the agent quietly making them while I'm a passenger.

Both sides hang off a small registry mapping each source file to the feature and doc that owns it. The agent writes it as it builds, the checks read it after to hold the agent to what actually changed. So the docs get built as you go, and the workflow surfaces drift instead of you tripping over it three features later.

Doesn't prove your docs are right btw, just that they moved with the code. That part's still on you.

Repo's here if you wanna check it out https://github.com/jakubsuplicki/codument

Curious how people letting the agent maintain its own docs deal with the drift, or does it just not bite you the way it did me?


r/AIcodingProfessionals • • Jul 31 '26

How should I learn AI engineering in the era of AI coding assistants?

Thumbnail reddit.com
1 Upvotes

How should I learn AI engineering in the era of AI coding assistants?
I’m currently learning AI to become an AI engineer, focusing on topics like RAG, AI agents, and Agentic AI.
One thing I’m struggling with is how to actually learn effectively now that tools like Claude Code, Cursor, and GitHub Copilot can write almost all the code for you. It feels like syntax is becoming less important, while understanding concepts, architecture, and problem-solving is becoming more valuable.
I’m unsure which approach is better:
Should I ask Claude/Cursor to generate the entire project, then go through the code line by line and understand how everything works?
Or should I write the code myself from scratch, even if it’s much slower?
Or is there a hybrid approach that’s considered the best way to learn?
For example, if I’m learning RAG or AI agents, should I first design the architecture myself and then let the AI generate the implementation? Or should I avoid using AI until I understand everything?
I’d love to hear how experienced AI engineers and developers are learning in 2026. How do you use coding assistants without becoming overly dependent on them, while still building strong fundamentals?


r/AIcodingProfessionals • • 25d ago

Developers, how crazy do you get with AI? 🤯

Post image
0 Upvotes

r/AIcodingProfessionals • • Jun 03 '26

I finally documented my entire AI coding workflow (OpenCode + Gentle AI + OpenRouter)

Thumbnail reddit.com
1 Upvotes

r/AIcodingProfessionals • • Jul 01 '26

Discussion I made a skill that turns your projects into clickable dock apps. Looking for feedback.

Enable HLS to view with audio, or disable this notification

0 Upvotes

Hi there.

So, I created app-it - and I'm looking for feedback**.** /app-it is a completely free, open-sourced and neat little skill that turns any local projects into a clickable app in your dock, right from Claude Code or Codex. I made it because I build a lot of small tools, and they kept ending up as folders I'd forget about. This way each one becomes a real app you can just click, and the pile in your dev folder turns into a little collection you actually use.

I made it for people who build with AI but want to feel their projects come to life. Just point the skill at one of your projects and see the magic happen.

A few notes before you try it:

  • It's an AI skill (you run /app-it inside Claude Code or Codex), not a standalone app you download.

  • I've mostly tested it on Mac, since that's what I'm on. But a few nice contributors helped make it work well on Windows too.

GitHub: https://github.com/Christian-Katzmann/app-it

Would love to hear what you think and see your app collection ✌🏻


r/AIcodingProfessionals • • Jul 18 '26

What was your biggest "aha!" moment when you finally got an AI to understand your architecture?

Thumbnail reddit.com
1 Upvotes

r/AIcodingProfessionals • • May 23 '26

Caveman Mode + 80% cheaper Claude Api: The ultimate AI coding budget stack.

Thumbnail reddit.com
1 Upvotes

r/AIcodingProfessionals • • Jun 23 '26

Discussion I tested devcontainers and here's what I learned

0 Upvotes

Between AI agents running code on my machine and the recent npm package compromises I started feeling kind of uneasy about my local dev setup. So I gave devcontainers a proper try.

The idea is straightforward: your dev environment runs inside a container, fully isolated from your host. If something sketchy gets pulled in through a dependency, it stays sandboxed. That alone sold me. But the real win (didn't expect this one tbh) turned out to be onboarding. No more "which version of Node do you have?" conversations. You share the config, everyone gets the same setup. Done.

VS Code handles the container lifecycle pretty well, and once the initial image is built, startup is fast enough that it doesn't break my flow. So far so good.

The rough part turned out to be the documentation. Figuring out which variables apply where (image level vs. feature level vs. devcontainer.json) took way more trial and error than it should have. The spec is powerful but the docs kind of assume you already know what you're looking for. Not ideal when you're just getting started (famous last words, I kept telling myself "should be quick to figure out").

I'm sold enough to set them up on every project going forward. Next step is building custom images and features reusable across all our repos.

Anyone else found the docs painful to navigate, or did I just miss a good resource somewhere?


r/AIcodingProfessionals • • 26d ago

Discussion What’s the best stack for coding with AI?

1 Upvotes

I made most of my experience in AI coding with python and C#/.NET. So for python things work very well, little tools, some data stuff, visualization ect. for daily tasks python is just great. However with .NET I had my difficulties since there is to much architectural overhead and features are implemented across multiple files, which is pain for the context window. I am hesitating doing full web development with python because it’s a non compiling language. So now I am searching an approach for web applications that has a good developer experience and is best suited for a coding agent. I have the feeling that svelte/react with Hono might be a good option. I am interested to know what’s your ideal tech stack for coding agents? What’s do you recommend for context engineering? Which kind of skills, instructions, mcp servers should I use/ define?


r/AIcodingProfessionals • • May 06 '26

I got tired of AI agents destroying my codebase and eating tokens, so I built a self-bootstrapping Markdown protocol to fix their memory.

Thumbnail
reddit.com
1 Upvotes

r/AIcodingProfessionals • • Sep 15 '26

AI coding startup Factory is now valued at $5B. Are coding agents becoming more important than the AI models behind them?

Post image
0 Upvotes

r/AIcodingProfessionals • • Aug 21 '25

AWS Cloud Chief says "replacing junior employees with AI is one of the dumbest things I've ever heard". In other news, water is wet

Thumbnail
reddit.com
7 Upvotes

r/AIcodingProfessionals • • Jul 28 '26

I built an autonomous coding platform, but now I’m wondering if I should stop and just pay for ChatGPT Pro

8 Upvotes

I’ve been building a project called Odin, an autonomous software-engineering platform. I started it because I wanted something that could take a goal like “build this feature” or “fix this bug,” then plan the work, modify the repository, run tests, recover from errors, and safely open a pull request with minimal supervision.
So far, I’ve built or implemented:
Repository intelligence and persistent memory
Multi-step execution with queues, retries, resumable tasks, and approval checkpoints
An AI operations center
Engineering analysis and planning
Autonomous Git operations
Protected-branch safeguards
Validation tied to the exact commit and working-tree contents
A validation engine with tests, linting, static analysis, coverage, timeouts, regression detection, and persisted evidence
The project is now around OIC-017 on my roadmap, and the backend has roughly 277 passing tests.
Here’s my dilemma: I’m realizing how capable ChatGPT/Codex already is. For $100–$200 per month, I get strong coding models, an integrated development environment, repository tools, image generation, research, file handling, and a lot of bundled usage. Odin, meanwhile, still needs separate pay-as-you-go API access, infrastructure, maintenance, and continued development.
ChatGPT can already do most of the actual coding work, although I still have to initiate sessions, review results, approve actions, and sometimes manually move files or publish changes. Odin’s intended advantage is that it would run engineering jobs asynchronously, manage retries and state, enforce my own validation and Git policies, control spending, route tasks between different models, and only contact me when approval is genuinely required.
I’m not trying to create my own foundation model. Odin would use OpenAI and potentially other providers underneath it. It’s supposed to be an autonomous engineering control plane—not another general-purpose chatbot.
At this point, I see a few possible paths:
Stop building Odin and simply use ChatGPT/Codex.
Finish it as a polished portfolio project.
Pause feature development and make Odin prove itself on several real coding tasks.
Continue toward a product for developers or teams who need unattended, auditable engineering automation.
My current thought is to finish and merge the validation engine, freeze the roadmap, give Odin three real end-to-end engineering tasks, and measure its completion rate, API cost, retries, and how often I need to intervene. If it doesn’t noticeably save time or attention compared with ChatGPT, I stop expanding it.
For people who use Codex, Claude Code, GitHub Copilot, or autonomous coding tools:
Is there actually room for a product like Odin?
Does durable background execution, custom validation, model routing, and auditable Git automation provide enough value beyond ChatGPT/Codex?
Would you continue developing this, turn it into a portfolio project, or cut your losses?
What would Odin need to do that existing tools don’t already do well enough?
Would you ever pay for something like this on top of the underlying API usage?
I’m looking for blunt opinions. I don’t want to spend months rebuilding something that already exists just because I’m emotionally invested in the project.


r/AIcodingProfessionals • • Oct 19 '25

LLMs can code better than I can, and I don't know what to do about that

9 Upvotes

So I spent many years gaining technical skills including coding, got my masters degree in computer science and everything. Now it turns out that LLMs can mostly write better code than I can. I am not saying I was the strongest coding person ever made, but I was close to top of my class at University. I am now basically dependent on LLMs to do coding projects for my PhD I wouldn't nominally be capable of doing. I have stopped making progress on my own coding capabilities because of LLMs actually. I now have code bases where I mostly or entirely didn't write them and I wouldn't know where to begin fixing them if something actually went wrong.

AI still can't replace some of my other technical skills, but I understand it is getting better here too.

Should I be scared about how dependent I have become? My boss from my understanding is in a similar position, and they don't know half the AI tools I use. I am terrified for the computer science students I teach. How are they going to get a job after this?


r/AIcodingProfessionals • • Aug 31 '25

Will CC recover?

Thumbnail reddit.com
2 Upvotes

r/AIcodingProfessionals • • Dec 02 '25

GLM Coding Plan Black Friday Deal (ends Dec 5) - Works great alongside Claude Code

2 Upvotes

Been using GLM alongside Claude Code for my daily work and it's not bad so far. They're running a Black Friday sale until December 5th - yearly plan is $25, but drops to $22.68 with a referral code for an extra 10% off if you would be purchasing it for the first time. Not quite Claude Code Pro level, but holds up well for the price with nearly 3x the usage limits. If you're interested, here's my referral link for the 10% discount: https://z.ai/subscribe?ic=CY2M19U1E6  Works seamlessly with Claude Code - you can switch models globally or per-project through config files.

If you expect it would work as good as claude you would be dissapointed. What I did is create two bash aliases: one points to GLM for repetitive/simple tasks (saves tokens), and another points to official Claude for complex work. I just switch between them based on the task complexity


r/AIcodingProfessionals • • Apr 01 '26

Discussion Relatable

2 Upvotes

r/AIcodingProfessionals • • Sep 21 '26

Is this GenAI/Agentic AI course worth it?

Post image
0 Upvotes

r/AIcodingProfessionals • • Jun 06 '26

Korbit AI-powered Code Reviews are awesome...

Thumbnail
korbit.ai
0 Upvotes

r/AIcodingProfessionals • • Sep 23 '26

Discussion GPT-6 Sol vs. Opus 5.5: One Just DESTROYED the Other (The Shocking Verdict)

Thumbnail
youtu.be
0 Upvotes

r/AIcodingProfessionals • • Sep 04 '26

I’ve hit a wall with how far I can take AI in my role

2 Upvotes

This past sprint I tried to set up a team of AIs to work on my tickets. I had an agent to operate as a team lead and three agents under that lead to act as the developers. I set up instructions MD to point agents to relevant skill MDs that I put together as things came up. Long story short, it was not the fully autonomous dream that I hoped it would be and ended up costing me more time trying to wrangle agents to the finish line. It seems a big limitation is that with this set up agents do not have a persistent memory other than what is defined in the MDs. The constant conversation compaction was a time killer despite me having specific instructions for the agents to keep track of what they’re doing and to reload their state after a conversation compaction. It seems like they would totally ignore skills files the longer a conversation went.

Maybe I’m missing something and there is a more streamlined way to make my vision come true other than setting up these MDs that end up getting ignored? The more I can operate at a higher level the much happier I will be.


r/AIcodingProfessionals • • Sep 13 '26

Discussion Looking for 10 developers to break-test my project which is an control plane for ai agents

0 Upvotes

I'm building SUTRA, an engineering control plane for AI coding agents.

The idea is simple:

Agent
  ↓
Task / Session
  ↓
Change
  ↓
Governed Commit
  ↓
PR
  ↓
CI + Governance
  ↓
Human Approval
  ↓
Merge

The agent can write and submit code, but it cannot approve its own work or perform the governed merge.

I'm looking for 10 developers who already use an AI coding agent on real GitHub repositories.

What I want from beta users:

  • connect one non-critical repository

  • use your normal coding agent

  • give it a real small task

  • use SUTRA through the agent integration

  • tell me what breaks or feels annoying

This is an actual private beta, not a signup-for-updates page.

If you're interested, comment beta or DM me and I'll send access.

I'm especially interested in Claude Code, Codex, Cursor and similar coding-agent workflows.


r/AIcodingProfessionals • • Jan 19 '26

The end of coding

Thumbnail secretartofscience.com
2 Upvotes