Skip to main content

Loading…

Skip to main content
HomeProjectsPostsContact
Justin Tsugranes LogoJustin Tsugranes Logo

Justin Tsugranes

HomeProjectsPostsContact

Stay in the loop

Occasional notes on what I'm building, lessons earned, and the studio behind it.

By subscribing, you agree to receive No spam. Unsubscribe in one click anytime. from Justin Tsugranes. No spam. Unsubscribe anytime. Privacy Policy

© 2026 Total Ventures LLC. All rights reserved.

Privacy PolicyTerms of ServiceCookie Policy
Building an AI Story App: Architecture and Lessons from Inky | Justin Tsugranes | Justin Tsugranes
Xinf
Building an AI Story App: Architecture and Lessons from Inky
←Posts

Building & Operating

Building an AI Story App: Architecture and Lessons from Inky

A look at the systems architecture behind Inky. I’m sharing how I’m building an AI story app using agentic engineering and a multi-product studio model.

Justin Tsugranes·May 20, 2026·4 min read
On this page
  1. Architecture Over Autocomplete
  2. The Stack: Choosing Instruments
  3. Lessons Learned the Hard Way
  4. Context Poisoning
  5. The Illusion of Creativity
  6. Agentic Engineering in the Studio
  7. Shipping Today

I am currently building Inky, an AI-driven storytelling platform. Most people think building an ai story app is a matter of finding the right prompt and wrapping it in a UI. I have learned the hard way that this approach fails as soon as the narrative gains any real complexity.

In my studio, I don't treat AI as a better version of autocomplete. I treat it as the operating layer of the team. When you are building an ai story app, you aren't just managing text generation; you are architecting a system that manages state, context, and narrative logic across multiple agents. This is agentic engineering in practice.

Architecture Over Autocomplete

The core challenge of building an ai story app is consistency. A standard LLM call is stateless. If you ask it to write chapter four, it has no inherent memory of the character's eye color in chapter one unless you provide that context. But context windows are expensive and noisy. If you dump 50,000 words into a prompt every time a user clicks 'next,' the model loses the thread.

To solve this, I built a system I call VERA—my custom agent orchestration layer. Instead of one giant prompt, Inky uses a network of specialized agents:

  1. The Librarian: Manages the vector database where world-building facts and character arcs are stored.
  1. The Architect: Outlines the narrative structure and ensures the pacing follows established literary frameworks.
  1. The Weaver: Handles the actual prose generation, pulling only the necessary context from the Librarian and the Architect.

By decoupling these concerns, the system remains stable. This isn't about being a prompt engineer; it's about being a systems architect.

The Stack: Choosing Instruments

I don't believe in being a partisan for a specific stack. I pick the instruments that allow me to ship today. For Inky, that means a monorepo structure that allows me to move fast as a solo operator supported by AI agents.

  • Next.js & TypeScript: The frontend and API layer. TypeScript is essential here—not because I am an expert in it, but because it provides the guardrails necessary when agents are contributing to the codebase.
  • Supabase: Handles the heavy lifting for the database, authentication, and edge functions.
  • Pinecone: Used for vector embeddings. This is how the 'Librarian' agent remembers that a character is allergic to peanuts three chapters later.
  • Claude API & Gemini: I use different models for different tasks. Claude excels at nuanced prose; Gemini is useful for processing massive amounts of research data due to its larger context window.

Working in public means admitting that this stack will likely evolve. But for now, it is the most efficient way to maintain a multi-product studio without a bloated headcount.

Keep reading

Related posts

All posts→
Building an AI Story App: The Architecture of Inky
May 29, 2026

Building an AI Story App: The Architecture of Inky

A deep dive into the systems and agentic engineering required for building an AI story app that actually ships. No hype, just the architecture and lessons learned the hard way.

aiarchitectureinkysystems-design

Lessons Learned the Hard Way

Building an ai story app has surfaced several technical hurdles that the hype-cycles don't mention.

Context Poisoning

One of the biggest issues I encountered was 'context poisoning.' This happens when the agent receives too much irrelevant information and starts hallucinating details to fill the gaps. I learned the hard way that more data isn't always better. I had to implement a ranking system for context retrieval—only the top three most relevant 'memories' are sent to the prose agent at any given time. This keeps the output sharp and the costs down.

The Illusion of Creativity

AI doesn't have 'ideas.' It has patterns. If you don't provide a rigid structural framework, the stories become repetitive. I had to build a narrative engine that enforces 'beats'—inciting incidents, rising action, and climaxes. The AI fills the beats, but the system dictates the rhythm.

Agentic Engineering in the Studio

In my studio, I am the architect, and AI is the team. This isn't a future-tense ambition; it is how I am shipping today. While building an ai story app like Inky, I use agents to handle the unit testing, the initial documentation, and the monitoring of API latency.

This allows me to focus on the high-level system design. I am not interested in the 'AI will replace' narrative. I am interested in what a single builder can accomplish when they stop writing code line-by-line and start orchestrating systems.

Shipping Today

Inky is currently in active development. The goal isn't to build a 'game-changer'—it's to build a durable, well-run product that solves a specific problem for writers. The lessons I'm learning here are being folded back into the Studio Launch Checklist and the broader operating system of my business.

Building an ai story app is a marathon of edge cases. Every time I think the logic is sound, a new narrative branch reveals a flaw in the agentic flow. But that is the work. I am happy to talk about the specifics of this architecture with anyone else building in this space.

If you want to see the exact framework I use to manage these builds, you should look at the resources I've put together for other builders.

Full implementation in The Builder's Playbook — totalventures.io/resources/builders-playbook

Recommended$79

The Builder’s Playbook

How I run a multi-brand studio with AI agents — the systems, not the hype.

  • •The agent-augmented operating model
  • •Real workflows you can copy
  • •From idea to shipped, repeatably
Get the playbook →
If this resonated

The studio is where the rest of it lives.

Total Ventures is the umbrella — the products, the resources, the strategy session.

totalventures.io
  • Resources

    Launch Checklist + the Builder’s Playbook bundle.

  • Strategy session

    A focused hour on your repo, stack, and monetization.

  • The brands

    The portfolio of products I’m building, end to end.

Studio Notes

How I’m building the studio.

The operator’s log — systems, decisions, and what’s working.

JT

Written by

Justin Tsugranes

Founder, Total Ventures

Solo-founder building a multi-brand product studio with AI agents. Writing about building, operating, and shipping.

ShareXLinkedInFacebook
#ai#architecture#inky#systems-design

On this page

  1. Architecture Over Autocomplete
  2. The Stack: Choosing Instruments
  3. Lessons Learned the Hard Way
  4. Context Poisoning
  5. The Illusion of Creativity
  6. Agentic Engineering in the Studio
  7. Shipping Today
Building an AI Story App: Lessons from Shipping Inky
Jun 7, 2026

Building an AI Story App: Lessons from Shipping Inky

I am building Inky, an AI storytelling app. Here is the architecture, the failures, and the systems required to ship a generative product that actually works.

aiarchitectureinkyshipping
Building an AI Story App: Lessons from the Studio Floor
Jun 6, 2026

Building an AI Story App: Lessons from the Studio Floor

Inside the architecture of Inky. A look at agentic engineering, narrative coherence, and the lessons learned the hard way while building an ai story app.

aiarchitectureagentic-engineeringinky