← The journal
Philosophy / Deep Tech

Beyond the Wrapper: First-Principles AI Engineering

Everyone is wrapping OpenAI and calling it a startup. True value comes from owning the physics of your software universe. A manifesto on deep tech.

Browse Product Hunt today.

  • "Chat with PDF"
  • "Chat with CSV"
  • "Chat with..."

These aren't products. They are features of OpenAI. And when OpenAI releases that feature next week, those startups die.

I call myself the "Architect of My Universe" because I refuse to build on quicksand.

What is a Wrapper? A wrapper is a thin UI layer over a third-party API (like GPT-4) adding minimal proprietary value. It is vulnerable to platform risk.

What is Deep Tech? Deep Tech solves fundamental engineering problems—rendering, latency, connectivity, proprietary algorithms—that cannot be easily replicated by a simple API call.

First Principles Engineering in Action

When I built QuantumSketch (my latex editor), I didn't just wrap an existing editor. I spent weeks understanding how a browser renders vector graphics. I looked at the DOM and realized it was too slow for 60fps rendering of 10,000 nodes.

So I went deeper. I used Canvas. Then WebGL.

If I had just used a library, I would have hit a ceiling I couldn't break. By building from first principles, I own the physics of my application.

The "Black Box" Problem

As AI engineers, we are increasingly relying on black boxes.

  • Input: Prompt.
  • Output: Magic.

But what happens when the magic fails? What happens when the model refuses to answer?

If you don't understand how the transformer works—how attention mechanisms attended to the wrong token—you are helpless. You are not an engineer; you are a user.

I spend 20% of my time reading papers, not documentation. I want to know why Gemini 1.5 prefers certain context structures. I want to know the math behind the embeddings I'm storing in my vector database.

Conclusion: Own Your Stack

This doesn't mean "write your own database". It means "understand your database so well you could rewrite it if you had to".

The world belongs to the curious. The builders. The architects. Not the consumers. Be the Architect of your Universe.

FAQ

Q: Should I never use APIs? A: Use APIs for commodities (Email, Auth). Do not use APIs for your core value proposition.

Q: Is QuantumSketch a wrapper? A: No. It uses AI, but the core rendering engine is a proprietary neuro-symbolic system built in-house.

Q: How do I learn First Principles? A: Stop reading tutorials. Read documentation. Read source code. Break things.

Q: Is Deep Tech investable? A: Yes, investors prefer moats. A wrapper has no moat. Deep tech has a technology moat.

Q: How does Shahriar Labs approach this? A: We build "vertical" solutions where we control the data, the rendering, and the logic. We only outsource the raw intelligence (LLM).

Keep reading
Shihab portraying Goku in an anime-inspired costume, keeping his own facial identity
The other lives of Shihab

01/ 08

The pursuit of better.

Goku — Dragon Ball

A training arc never really ends.

Personal cosplay artwork. Same face. A different world.Enter the six-form training arc ↗
A little energy from the whole world.
1 of 8