DEV Community

Cover image for Git Knows Who. AI Knows What. Nobody Knows Why.
Siddharth Pandey
Siddharth Pandey

Posted on

Git Knows Who. AI Knows What. Nobody Knows Why.

Modern software development has achieved incredible things.

AI can generate entire features.

Editors can autocomplete your thoughts before you've finished having them.

Agents can open PRs while you're still reading the ticket.

And yet, despite all this progress, there is still one question capable of ruining a senior engineer's afternoon:

Why the hell does this code exist?

Consider this innocent little gem:

if (distance < 50) {
  return;
}
Enter fullscreen mode Exit fullscreen mode

Looks simple.

AI can explain it.

Git can tell you who wrote it.

The PR can tell you when it was merged.

But nobody can tell you why it was added in the first place.

Was it reducing GPS noise?

Was it preventing duplicate events?

Was it added because thousands of devices were rapidly entering and exiting the same geofence?

Was it a workaround for a production incident that woke up three engineers on a Sunday morning?

We may never know.

The Archaeology Phase of Software Engineering

Every mature codebase eventually turns developers into archaeologists.

You discover a mysterious piece of code and begin the sacred ritual:

  1. Check Git blame.
  2. Open commit.
  3. Open PR.
  4. Open linked ticket.
  5. Ticket references a Slack discussion.
  6. Slack link is dead.
  7. Original author left the company.
  8. Team lead moved to another startup.
  9. Nobody remembers anything.

Congratulations.

You have reached the end of the knowledge graph.

The only remaining documentation is a comment that says:

// Don't remove this
Enter fullscreen mode Exit fullscreen mode

Thank you, mysterious engineer from 2023.

Very helpful.

AI Is About To Make This Much Worse

The old workflow looked like this:

Human thinks
    ↓
Human writes code
    ↓
Human forgets why
Enter fullscreen mode Exit fullscreen mode

The new workflow looks like this:

Human writes ticket
    ↓
AI writes code
    ↓
Human edits code
    ↓
Another AI refactors code
    ↓
Reviewer requests changes
    ↓
Code reaches production
    ↓
Everyone forgets why
Enter fullscreen mode Exit fullscreen mode

We have successfully automated everything except remembering our decisions.

We Have Documentation Everywhere

The funny thing is that companies already have mountains of documentation.

The requirement is in Linear.

The discussion is in Slack.

The design is in Notion.

The implementation is in GitHub.

The AI conversation is in Cursor.

The meeting notes are somewhere in a folder named:

Final_v2_Updated_Final_Real_Final
Enter fullscreen mode Exit fullscreen mode

The problem isn't missing information.

The problem is that all the information lives in different universes.

Git Answers The Wrong Question

Git is fantastic.

Ask Git:

Who changed this?

Git:

Bob.

Ask Git:

When?

Git:

February 14th, 2026.

Ask Git:

Why?

Git:

Commit message: "fix stuff"

Fantastic.

Outstanding.

Truly the pinnacle of human knowledge preservation.

The Shortcut We Actually Need

We already have:

  • Go To Definition
  • Find References
  • Rename Symbol

What we don't have is:

Ctrl + Y
Enter fullscreen mode Exit fullscreen mode

Which means:

Why is this here?

Imagine clicking a line of code and seeing:

Reason:
Ignore GPS drift within 50 meters.

Requirement:
TRACKING-123

Discussion:
Customers reported phantom arrivals and departures.

Implementation:
PR #482

Generated by:
Cursor

Reviewer:
Sarah

Business Assumption:
Location updates within 50 meters are considered noise.
Enter fullscreen mode Exit fullscreen mode

Now that's useful.

Because most bugs aren't caused by developers not understanding code.

They're caused by developers not understanding decisions.

The Missing Layer

For decades we've been obsessed with source code.

Then we became obsessed with documentation.

Now we're obsessed with AI code generation.

Meanwhile the most valuable thing keeps disappearing:

The reasoning.

The chain actually looks like this:

Requirement
    ↓
Discussion
    ↓
Decision
    ↓
AI Generation
    ↓
Code Review
    ↓
  Code
Enter fullscreen mode Exit fullscreen mode

Today we only preserve the last two steps.

Then six months later we hold a meeting to rediscover the first four.

Maybe This Is the Next Developer Tool

What if a VS Code extension could answer:

Why does this code exist?

Not by hallucinating.

Not by guessing.

But by building a traceable chain:

Requirement
    ↓
Discussion
    ↓
AI Session
    ↓
Code Review
    ↓
  Code
Enter fullscreen mode Exit fullscreen mode

Click a line.

Press Ctrl+Y.

Get the story.

Not just the syntax.

Future Technical Debt

People think AI-generated code is the next challenge.

I disagree.

The next challenge is AI-generated code with missing context.

Code can be read.

Logic can be reverse-engineered.

Intent is much harder.

And every year we're generating more code while preserving less reasoning.

That's a dangerous trade.

Final Thought

Git knows who.

AI knows what.

Nobody knows why.

And somewhere inside your production codebase is a line that nobody dares delete because the original author left three companies ago and the only documentation says:

// Trust me
Enter fullscreen mode Exit fullscreen mode

Which, historically, has never caused any problems.

Top comments (0)