The Main Thread: Java, AI & Software Architecture

Markus Eisele

Practical lessons on enterprise Java, software architecture, and AI coding agents for experienced developers, architects, and technical leads. Drawing on more than two decades in the industry, Markus Eisele explores what works, where tools fall short, and how to make better decisions about the software you build and maintain. www.the-main-thread.com

  1. 14h ago

    Coding Agents and the Work After the First Prototype

    I enjoy the quiet hours before the rest of the house wakes up. These days, I often spend them working with a coding agent on an experiment I would not have attempted a year ago. The problem starts when it is time to close the laptop. My attention keeps returning to the next thing I could build. In this episode, I talk about what I call the creation high: the excitement of discovering that an idea has become possible. Quarkus Endive and PGlite are one example. That access to difficult problems is something I value, but every new prototype also creates something I need to test, review, and understand. I follow two examples where reaching a working implementation was only part of the task. Three approaches to Quarkus issue triage all ran, yet their results were not consistently useful enough for my goal. A text adventure demonstrated the decision mechanism I wanted to explore, but making it a convincing game would have become a much larger project. In both cases, another implementation step was easy to find. Taking time to understand what the experiment had taught me was harder. I also explain why I currently keep research and implementation in separate environments that do not share memory. Detailed project context helps an agent implement a solution, but it can carry old assumptions into a new investigation. Keeping the environments separate is an attempt to reduce that influence, with the transfer of useful lessons still an open problem. I consider three possible skills: closing an experiment, challenging the current approach, and preparing a fresh attempt from the lessons learned. These are ideas I want to explore. A workflow can make room for reflection and collect evidence, while I remain responsible for deciding whether a result is good enough and which direction deserves more time. And sometimes it is simply time for breakfast. The episode is narrated locally with Fish S2 Pro and my trained LoRA voice adapter. Chapters * 00:00 — Intro * 00:12 — Quiet mornings and the difficulty of stopping * 04:09 — Experiments I would not have attempted before * 06:44 — The creation high * 09:24 — More output means more work to review * 12:30 — Three Quarkus triage experiments that missed the goal * 16:14 — A working prototype and an unfinished experiment * 20:22 — Keeping research and implementation separate * 23:51 — Skills for closing and reconsidering experiments * 26:00 — Where workflow ends and judgment begins * 28:59 — Choosing what deserves my time * 30:38 — Sometimes it is time for breakfast * 32:50 — Outro Links and references * PGlite documentation — The project discussed in my experiment with Quarkus Endive. * Agent Skills specification — Background on the file format for reusable agent instructions; the reflection skills described in this episode are proposed ideas. Thanks for reading The Main Thread! Subscribe for free to receive new posts and support my work. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    Coding Agents and the Work After the First Prototype
  2. 6d ago

    The Future of Coding

    Some colleagues tell me the future of coding is already here. Others call every generated change slop. I use several models every day for The Main Thread, and I can see how much more I’m able to produce. I expect models to take over substantial parts of implementation, verification, and maintenance. In this episode, I explore how that changes the software we build, the jobs developers do, and the decisions we hand over to agents. Quarkus pull request growth and PhotoCraft’s Photoshop reconstruction lead into Hive, zeroshot, and automated acceptance. I also look at the idea of giving a smaller local model more time to find a solution, and at the cost of reaching a result we can accept. From tools for small audiences to interfaces assembled for one task, I see plenty of possibilities. For developers, that raises questions about jobs, context, technical understanding, and how newcomers learn. Medical software brings the discussion to patient consequences, traceability, and controlled releases. The episode is narrated locally with Fish S2 Pro and my trained LoRA voice adapter. Chapters * 00:00 — Intro * 00:13 — Three views of coding’s future * 02:11 — More pull requests and software reconstruction * 04:03 — Hive, zeroshot, and automated acceptance * 06:55 — Smaller local models and repeated attempts * 09:16 — Cheaper implementation and software for small audiences * 12:09 — Developer jobs, context, and learning * 15:27 — Medical software and controlled releases * 19:20 — How much development can we delegate? * 21:15 — Outro Links and references * Code Review After Code Gets Cheap — O’Reilly — My article on review evidence, intended behavior, and the blast radius of a change. * Quarkus pull requests — The main repository received 4,735 PRs in October 2025–September 2026, compared with 4,019 in October 2024–September 2025, an increase of 17.8%. * PhotoCraft — The project’s description of its clean-room Photoshop implementation in Rust, including layers and PSD support. * Hive — Agent coordination, repository maintenance, and selectable autonomy. * zeroshot — A coding-agent process with separate implementation and review agents and an enforced QA topology. * Large Language Monkeys: Scaling Inference Compute with Repeated Sampling — Research on generating more candidate solutions and the challenge of selecting a correct one. * MDCG 2019-11 rev.1: Qualification and classification of software — June 2025 European guidance on intended purpose and medical device software qualification and classification. * FDA: Content of Premarket Submissions for Device Software Functions — Guidance covering software documentation, requirements, risk management, verification, validation, and traceability. * FDA: Predetermined Change Control Plans for AI-Enabled Device Software Functions — Guidance on specified modifications and the methods for developing, validating, and implementing them under an authorised plan. Thanks for reading The Main Thread! Subscribe for free to receive new posts and support my work. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    The Future of Coding
  3. Nov 18

    Children and AI: What Schools and Families Should Teach

    Several international colleagues have asked whether I’m going to translate my German book, Hilfe, mein Kind hat KI!, into English. An English translation isn’t planned, so this episode takes some of its ideas into a wider conversation about children, AI, and what we should teach. I think creativity and critical thinking need to be taught differently when AI can suggest an answer or produce a polished first version. Children need practice developing an idea, choosing what to change, and explaining their decisions. With homework, we can look at the ability an exercise is meant to develop and choose help that leaves room for the child to practise it. A fractions question, feedback on a draft, and a poster about a local river give us concrete examples to discuss. I also explain what I mean by “trust but verify.” Checking should help children build confidence in information. We look at finding an original source, recognising when several websites repeat the same claim, and changing our minds when the evidence supports it. The amount of checking should fit the situation. Physical skills and the arts deserve time too. Drawing, making music, and building a cardboard bridge give children experience with materials, movement, choices, and other people. I share why I value those experiences alongside writing, mathematics, programming, and languages, then discuss family agreements, school expectations, privacy, and keeping a route open for children to ask for help. The episode is narrated locally with Fish S2 Pro and my trained LoRA voice adapter. Chapters * 00:00 — Intro * 00:13 — Why I wrote the book, and this English episode * 02:11 — Understanding AI and adapting the advice to your family * 04:15 — Homework and the ability a child needs to practise * 07:12 — Creativity: developing an idea and choosing what to change * 09:40 — Critical thinking and “trust but verify” * 13:07 — Physical skills, making, and the arts * 15:33 — Foundations, language, access, and school expectations * 17:40 — Family agreements, privacy, and asking for help * 20:12 — Gelassenheit and a conversation to start this week * 21:31 — Outro Links and references * Hilfe, mein Kind hat KI! — ELMAR Verlag — My German parenting book. The publisher’s page includes information about the book and a preview. The English title used in the episode is an informal translation. * UNESCO: Guidance for generative AI in education and research — Further reading on a human-centred, age-appropriate approach to AI in education, including privacy and equitable participation. * UNICEF: Guidance on AI and children, version 3.0 — Further reading on children’s rights, safety, privacy, inclusion, and the responsibilities of AI providers and public institutions. Thanks for reading The Main Thread! Subscribe for free to receive new posts and support my work. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    Children and AI: What Schools and Families Should Teach
  4. Nov 12

    Agent Skills: From Repeated Instructions to a Reusable Procedure

    I use agent skills throughout the production process behind The Main Thread, from tutorial structure and voice guidance to technical review and publication preparation. In this episode, I explain how those instructions developed from things I kept repeating to the model, and how I decide whether a skill helps me reach something I’m prepared to publish. We start with the open Agent Skills format: what belongs in SKILL.md, how the description helps the agent select a procedure, and how references and scripts become available when the task needs them. Then we follow a pull request summary through the inputs it needs: the right comparison base, the relevant diff, the requirements, and evidence for any claimed test result. The skill has to explain what happens when one of those is missing. Access and permissions also depend on the host running the agent. To create a skill, I start with a recurring task whose result I know how to assess. The examples and corrections help me separate this task’s facts from the procedure another task can reuse. Well, a clean file is only part of that. I discuss comparing the task with and without the skill, checking the agent’s actions, and counting the time someone spends reviewing and correcting the result. Sharing the skill adds another responsibility. A colleague needs to understand the inputs, environment assumptions, expected result, and version they are using. I draw on the team memory idea from the Book of Bob, my internal IBM guidance, and discuss repository ownership, skillsaw checks, and distributing skill files through versioned Maven artifacts with SkillsJars. I also talk openly about my use of AI across this production process. Drafting can become cheaper while checking the result takes time and understanding. I accept each reader and listener making their own judgment about that choice. The episode acknowledges the ethical and environmental implications and leaves them for a separate discussion. The episode is narrated locally with Fish S2 Pro and my trained LoRA voice adapter. Chapters * 00:00 — Intro * 00:12 — My publishing process and using AI openly * 02:55 — What an agent skill contains * 06:18 — Structure, voice, review, and publishing * 09:25 — Designing a pull request summary skill * 13:19 — Creating a skill from examples and corrections * 16:35 — Evaluating the result and the review effort * 19:27 — Sharing skills as team memory * 23:39 — Outro Links and references Format and evaluation * Agent Skills specification — The open folder format, SKILL.md metadata, optional files, and progressive disclosure. * Evaluating skill output quality — Designing realistic cases and comparing results with and without a skill. Related Main Thread articles * Agent Skills Need Guardrails, Not Just Prompts — Task procedures, supporting scripts, and checks around repeated agent work. * Use skillsaw to Lint Bob Skills Before They Drift — Structural checks, CI, and a separate local task to examine the skill’s behavior. * Stop Copying AI Skills: Version IBM Bob Instructions with Maven — The SkillsJars example discussed in the episode, packaging and consuming versioned skill files. Research * SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks — Version 4 of a benchmark studying skill effects across different tasks and agent configurations. * SWE-Skills-Bench: Do Agent Skills Actually Help in Real-World Software Engineering? — Version 1 of a study comparing software engineering tasks with and without skills. The studies use different tasks and setups. Their findings are a reason to evaluate a skill in your own process, rather than assume a reported gain will transfer. Thanks for reading The Main Thread! Subscribe for free to receive new posts and support my work. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    Agent Skills: From Repeated Instructions to a Reusable Procedure
  5. Nov 4

    Automatic Model Routing: What Your Coding Assistant Chooses for You

    When my coding assistant shows automatic in the model selector, my reaction is mixed. I want the convenience. I also want to see and influence the decision, especially when an investigation gets stuck or a new model gives me something else to try. In this episode, I explain what would make me comfortable handing over routine model selection. A cheaper model can leave more of my budget available for a difficult task. Repeated explanations and corrections can consume that saving, along with my time. I want to compare what it costs to reach a change I can accept. I use a hypothetical Java service that creates duplicate orders after a timeout to make the tradeoffs concrete. Finding the retry configuration may be straightforward. Establishing what happened after the receiving service saved an order needs more investigation. That gives a router more information to act on, while showing why a stronger model also needs the right code, context, and tools. I also question my own expectations about the latest models. Research on novelty and confidence gives me a reason to check whether a response handled the difficult constraint, even when I like the answer. Those studies have limits, which I discuss alongside what a developer can reasonably judge in a familiar service. Then I share experiments I’m driving at IBM to connect context information with recorded activity. I want to follow what the assistant read, which claims it checked, and where an assumption entered the conversation. Being able to inspect that history would help me decide whether to provide more information, request a more capable model, or accept the change. The episode is narrated locally with Fish S2 Pro and my trained LoRA voice adapter. Chapters * 00:00 — Intro * 00:12 — Why my reaction to automatic routing is mixed * 02:45 — More help from the same budget * 05:22 — Routing a Java duplicate-order investigation * 08:15 — Hidden choices and the control I want * 10:43 — What depends on the harness * 12:49 — New models, expectations, and judging quality * 15:39 — Making conversations easier to inspect * 18:28 — The controls that would make me comfortable * 20:47 — Outro Links and references * RouteLLM: Learning to Route LLMs with Preference Data — Research on choosing between stronger and cheaper models using preference data. Its reported cost savings describe the evaluated benchmarks, rather than a guaranteed saving on a development task or subscription. * SWE-Router: Routing in Multi-turn Agentic Software Engineering Tasks — A cheaper model takes exploratory turns before the router decides whether to continue or escalate. In this implementation, the stronger model restarts from the original prompt; the exploration counts toward the cost. * Quantifying the Novelty Bias when Evaluating Interactive Prototypes — A study of 48 participants using functionally identical technology pairs, including chatbots, presented as old and new. The brief interactions with general users do not establish an effect size for professional developers doing sustained coding tasks. Author-hosted paper. * Do Users Write More Insecure Code with AI Assistants? — An earlier security-task study in which assistant users produced less secure code overall while expressing greater confidence in its security. It used an older model and specific tasks; it is not a ranking of current assistants. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    Automatic Model Routing: What Your Coding Assistant Chooses for You
  6. Oct 28

    AI Context Windows: Comparing the Cost of an Accepted Coding Result

    I see two things coming up regularly in our internal IBM Bob Slack channel. People want a larger context window, and people are surprised how expensive their conversations become. Well, both make sense when you look at what the agent sends to the model with each request. In this episode, I explain what a context window contains and how IBM Bob, Codex, Claude Code, and Gemini CLI decide what goes into it. We follow twenty model requests, starting at 10,000 input tokens and adding another 10,000 each time. The last request contains 200,000 tokens, but the total across those requests is 2.1 million. At the standard GPT-6.1 Sol rate used in the episode, that is $4.20 for input alone, with caching excluded and output or tool charges added separately. Then we look at how caching and compaction change the calculation. I also share guidance from the Book of Bob, my collection of agentic development best practices on an internal IBM website. Unfortunately, I haven’t been able to open source it so far. We go through standing context, tool descriptions, focused task briefs, and short handover notes, using a Java email-validation example to make the advice concrete. And, of course, there is the business model. The labs sell tokens, but serving those tokens costs them money too. I consider those incentives alongside the cost of reaching a result I can accept, including retries and review time. A larger window can help with a change across several modules; the capacity number alone doesn’t tell us what the task will cost or how reliably the model will connect the details. Model limits and API prices are a snapshot from October 14, 2026. The Codex defaults mentioned came from my local installation and can differ across accounts and sessions. The episode is narrated locally with Fish S2 Pro and my trained LoRA voice adapter. Chapters * 00:00 — Intro * 00:12 — Wanting more context and wondering about the bill * 01:52 — What goes into a context window * 04:25 — Model limits and the applications around them * 06:57 — How 200,000 tokens become 2.1 million across a conversation * 09:45 — Caching, pricing tiers, and response time * 13:01 — Long-context reasoning and what compaction can lose * 15:11 — Context practices from the Book of Bob * 20:24 — Selling tokens and the cost of an accepted result * 22:52 — What to measure in your own coding sessions * 24:45 — Outro Links and references Context windows and coding tools * IBM Bob: Context window management — Public documentation for the context breakdown, task limit, and compaction threshold. * OpenAI: GPT-6 Astra and Codex configuration reference — Model limits and application settings. The configuration reference is separate from the local catalog observation discussed in the episode. * Claude model overview and Claude Code extended context — Model capacities and the conditions that apply inside Claude Code. * Gemini 3.1 Pro, Gemini 4 Argon, and Gemini CLI model selection — Check the selected model and whether its limit describes input or a shared input/output window. Conversation costs and caching * OpenAI API pricing — Source for the GPT-6.1 Sol example: $2 per million uncached input tokens at the standard short-context rate on the research date. * OpenAI conversation state — Continuing a conversation with a response ID, including how earlier input is billed. * OpenAI prompt caching — Prefix reuse and the conditions for cache hits. * Claude API pricing — Cache rates and model-specific long-context pricing. Context practices and research * Anthropic: Effective context engineering for AI agents — Retrieving information when needed, compaction, notes, and separate agent contexts. * Lost in the Middle: How Language Models Use Long Contexts — Research on how information placement affected the models tested. These results describe earlier models. * RULER: What’s the Real Context Size of Your Long-Context Language Models? — Evaluating long-context behavior beyond finding a single fact. Thanks for reading The Main Thread! Subscribe for free to receive new posts and support my work. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    AI Context Windows: Comparing the Cost of an Accepted Coding Result
  7. Oct 21

    Spec-Driven Development: Why Passing Tests Can Miss a Changed Requirement

    I want coding agents to take on more of the implementation. I also want to understand what I’m accepting when they come back with a result. Writing a spec gives those decisions somewhere to happen, but it gives me another set of files to keep current too. In this episode, I revisit the trade-offs around spec-driven development and the fear that the requirements, tests, and code start describing different behavior. In the cart-policy example with IBM Bob, changing the design from 30 to 90 days left the old tests green and every requirement ID connected. Well, the links were intact. The new decision hadn’t reached the assertions. Then I go through the Java inventory experiment with TLA+ and Lean. A model checker found the sequence that let two callers reserve the last item. A separate proof checked the arithmetic rule. Neither check proved that the Java implementation matched its formal definition, so the tests and the review of that connection stayed part of the process. I also consider how this changes as models become more capable. Needing fewer instructions about the implementation doesn’t settle the business rule or tell me which checks are enough to accept a change. The episode is narrated locally with Qwen3-TTS and my trained LoRA voice adapter. Chapters * 00:00 — Intro * 00:10 — What I want from specifications * 01:37 — The cost of vague specs and the maintenance of detailed ones * 04:05 — IBM Bob and the cart policy: 90 days in the design, 30 days in the code * 07:07 — How specifications and code drift apart * 09:31 — One item, two callers: trying TLA+ and Lean with Java * 13:23 — What the formal checks prove, and what they leave open * 15:46 — What better models could change * 19:02 — What I’d keep for the next Java change * 20:36 — Outro Related articles * Why AI Coding Agents Still Need Clear Specs — The correction effort that follows a vague request, and how acceptance criteria can make the intended behavior easier to check. * Spec-Driven Development Needs an Exit Strategy — Small change briefs, the cost of keeping design prose current, and where lasting constraints belong after implementation. * Formal Verification for AI-Generated Java — The inventory example with Java tests, a TLA+ model, and a Lean proof, including the limits of each check. Thanks for listening to The Main Thread podcast! Subscribe for free to receive new posts and support my work. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    Spec-Driven Development: Why Passing Tests Can Miss a Changed Requirement
  8. Oct 15

    Qwen3-TTS Voice Cloning: What I Learned Building a Local Podcast Voice

    I wanted to bring The Main Thread Podcast back, and recording the episodes myself has a few practical problems. I do my job from home, and I don’t have access to a quiet studio. The kids come in and out, there’s noise in the house, and getting a long, uninterrupted recording is a challenge. Reading a transcript also changes how I sound. It’s different from freely explaining something to another developer. So my main motivation was to put the time into writing a script and developing a narrative that’s easy to follow, then have a text-to-speech model read it in my voice. I didn’t want to go with a paid provider either. I had tried training my voice on a provider’s platform, and the samples sounded flat to me. So I started trying local models on my MacBook. Those experiments eventually led to training a local voice adapter of my own. The target was an article of around three thousand five hundred words, which should become roughly twenty to twenty-five minutes of audio. That’s a long time to listen to a voice that keeps stopping in strange places. It also means the model has to get through technical names, longer explanations, and changes between paragraphs without sounding like a different person halfway through. Thanks for listening to The Main Thread Podcast! Subscribe for free to receive new posts and support my work. This is a public episode. If you would like to discuss this with other subscribers or get access to bonus episodes, visit www.the-main-thread.com

    Qwen3-TTS Voice Cloning: What I Learned Building a Local Podcast Voice

About

Practical lessons on enterprise Java, software architecture, and AI coding agents for experienced developers, architects, and technical leads. Drawing on more than two decades in the industry, Markus Eisele explores what works, where tools fall short, and how to make better decisions about the software you build and maintain. www.the-main-thread.com

You Might Also Like