Git stores what changed. The reasoning behind it is lost.
g4a captures it. No server, no database, everything in git.
That's it. Use your AI agent normally. Reasoning is captured on every commit.
git log vs g4a logSame commit. One tells you what changed. The other tells you why.
Pull the latest commits and you have the full reasoning history. No setup beyond git. Works through GitHub, GitLab, Bitbucket, or any internal git host.
g4a logFull reasoning chain for every commit. Every file read, every approach tried, every dead end, every decision. The complete story behind the code.
g4a why "auth"Search the decision trail by file, function, or keyword. Find why any decision was made, across any commit, by any agent.
g4a log --shortCompact summary when you just need the highlights. What changed, what the agent intended, which files were touched.
Any agent reads the reasoning before modifying shared code. No re-exploration. No accidentally reverting deliberate choices. The codebase compounds intelligence.
When the reasoning is visible, everything changes - for humans reviewing AI code and for AI agents building on each other's work.
Instead of reading 8 diffs and guessing why the auth middleware order changed, reviewers read the agent's actual reasoning: what it intended, what alternatives it rejected, and what it flagged as risky. Low-confidence changes get scrutiny. High-confidence changes flow faster.
When agent code breaks in production, there is no trail. The agent is gone. With g4a, g4a why settlement_job gives you every change, every agent's intent, every dead end it explored, every risk it flagged. No more reverse-engineering meaning from diffs at 2am.
46% of developers distrust AI code - not because it is bad, but because the reasoning is invisible. g4a makes every AI change carry a confidence score, full explanation, and list of alternatives considered. Trust becomes data-driven, not gut-feel.
Agent B reads Agent A's reasoning and immediately knows: this was changed to Decimal because of precision drift. Integer cents was rejected because it would touch 23 files. No re-exploration. No accidentally reverting a deliberate choice. Agents build on documented decisions instead of guessing.
New developer joins the team. Instead of spending weeks figuring out why the codebase looks this way, they run g4a why auth and read the decision history. "Why is this Decimal and not float?" - there is an answer. The codebase documents itself.
70% individual productivity gain, only 17% team gain. The gap exists because reasoning lives in private sessions and dies there. g4a makes every agent's exploration, every rejected alternative, every architectural decision visible to the entire team - forever.
Teams merge 98% more PRs that are 154% larger, but review time grew 91%. Reviewers reverse-engineer intent from diffs.
Not because the code is bad - because they can't see the reasoning. Only 3% highly trust it.
Debugging AI code is harder than writing it yourself - because the reasoning behind it is invisible.
70% say AI boosts personal productivity. Only 17% say it helps team collaboration. Reasoning dies in private sessions.
No external server. No database. No account. No hosting. Works through GitHub, GitLab, Bitbucket, or any internal git host at Google, Amazon, or anywhere else.
Reasoning travels with the code. Clone the repo on any machine, you get the full history. Fork it, reasoning forks too.
Credentials, API keys, passwords, and tokens are detected and masked before any data hits disk. Irreversible by design.
10-50 KB per commit. 1,000 commits = 10-50 MB. Within every hosting platform's limits.
The reasoning is still there. Delete .g4a/, still a valid git repo. Always additive, never destructive.
Self-describing format. Any future tool can parse every record without knowing g4a.
Claude Code (direct), Cursor, Copilot, Codex, Windsurf, Aider (git hook), and any custom agent.