-- online Search!

I Trained My AI to Write Like Me

by kirupa   | filed under AI Fundamentals

TL;DR

I trained my AI to write like me without changing the model at all. Instead, I measured 23 of my own tutorials, scored AI-written articles against them, and kept revising KONVO, the skill file my AI agents read before they write. Likeness went from 46% to 99%.

  • Nothing inside the model changed. The training was edits to one plain-text skill file.
  • "Sounds like me" became six measurable dimensions, scored against my own book-era tutorials.
  • The biggest gains came from deleting rules I had invented about my own writing.
  • Every agent that reads KONVO, including Nightowl, picks up the training.

These days, a lot of what I write starts as a draft from an AI agent. I describe what I want, the agent writes it, and I edit what comes back. The drafts were good. They were clear, friendly, and had diagrams in all the right places.

They just didn't sound like me...and for the longest time, I couldn't explain why. In this article, we are going to look at how I trained my AI to write like me, what that training actually looked like, and how the instructions my agents follow (a skill called KONVO) made the whole thing possible.

Onwards!

Sorta Like Me

The quickest way to see the problem is to put two openings next to each other. Both of these are from an article on closures in JavaScript. One was written by an AI agent, and the other was written by me a long time ago:

The AI's first tryMe
Here is something that sounds like it shouldn't work. We call a function, and that function creates a variable. The function finishes running. Normally, that's the end of the variable...By now, you probably know all about functions and all the fun functiony things that they do. An important part of working with functions, with JavaScript, and (possibly) life in general is understanding the topic known as closures.

There is nothing wrong with the AI's version. If anything, it is a bit tighter than mine. A few paragraphs later, though, it introduces a frog named Pip whose jumps we are supposed to count.

That is the moment my brain started yelling not me! at the screen:

A gag image: a face wearing a fake nose, glasses, and mustache, labeled KONVO, Run 0. A handwritten note points at it: totally Kirupa!

The tricky part is that I couldn't point at one sentence and say what was wrong with it. Was it the frog? The rhythm of the sentences? The number of pictures? Guessing wasn't going to get us anywhere, so what we are going to do is measure instead.

Before we get to the measuring, though, we need to talk about what training even means here.

Training Without Touching the Model

When people hear that someone trained an AI, they usually picture changing the model itself. That is one option, but it isn't the only one.

There are two very different ways we can change how an AI writes, and they look as follows:

Two cards. Retrain the model: change the model's weights, which needs lots of examples and has to be redone for each new model. Change what it reads: edit a file of instructions while the model stays the same, so every change can be read, diffed, and undone. The second card is highlighted and labeled what I did.

The first way is to retrain the model, which is known as fine-tuning. We feed it a lot of examples of the writing we want, and the numbers inside the model (its weights) shift to match.

That works, but it needs a pile of examples, it costs real compute, and we have to do it all over again whenever a newer model comes out.

The second way leaves the model alone. What changes is what the model reads before it starts writing.

Picture a document that says how I open an article, how long my paragraphs run, which words I never use, and what my diagrams look like. Our agent loads that document whenever a task calls for it, the same way a new teammate might read a style guide before writing their first post.

That kind of document has a name, and it is known as a skill. (We looked at skills in more detail in Teaching Your Agent New Skills.) My writing skill is called KONVO, and it is one big Markdown file.

This means that when I say I trained my AI, what I really mean is that I kept editing KONVO until the AI's writing measured like mine. Nothing inside the model changed at all.

What KONVO Already Knew

KONVO wasn't a blank page when this started. I had been filling it with notes about my writing for months, and some of those notes were doing a great job. In the very first round of articles, the agents that read it didn't use a single delve or tapestry, and they didn't use a single em dash.

The problem was the rest of the notes. I had written a lot of them from memory, describing how I thought I write. As we will see in a few moments, my memory and my actual writing don't always agree.

Picking Which Me to Match

Before we can measure how close the AI gets to my writing, we need to decide what my writing even is. My style has changed a whole lot over the years, and it is easiest to see when we look at it in eras:

Three cards for three eras of my tutorials: the Flash era, chatty with step-by-step menu instructions; the HTML5 era, longer walkthroughs that lean a lot on code; and the book era, the tutorials that became my algorithms book. The book era card is highlighted, with a handwritten note: the me we match!

The data structures and algorithms tutorials that became my algorithms book are the closest to how I write today. That made the choice easy. Our reference will be those 23 book-era tutorials.

As a sanity check, we will also compare against a bigger set of 436 tutorials that goes all the way back to the Flash days. Tutorials written by guest authors are left out of both.

Turning "Sounds Like Me" Into Numbers

Sounds like me is a fuzzy idea, so the next step is to break it into things we can actually count. We are going to compare articles across six dimensions:

Six cards: tone and voice, sentence length, paragraph spacing, image pacing, article length, and word choice. Each card names a few of the measurements behind it, such as contractions, colon handoffs, pictures per 1,000 words, and how often small words like will and our appear.

Behind the first five cards are 36 measurements. Tone and voice looks at how often we see we, you, and I, how many contractions show up per 1,000 words, and how many sentences end in a question or an exclamation mark. Sentence length counts both the sentences that are five words or fewer and the ones that run 30 words or more.

Paragraph spacing counts the sentences in each paragraph and how often a paragraph ends in a colon that hands off to a picture or some code.

Image pacing counts pictures per 1,000 words and how many words go by between them. Article length is the total word count along with the length of the intro.

Word choice, the sixth card, is the odd one out. It uses an old authorship trick (known as Burrows' Delta) that ignores what an article is about and looks only at the small words: the, of, will, our, this, and about a hundred more.

Those small words come out of our fingers without us thinking about them, and this makes them a surprisingly good fingerprint.

Scoring an Article

Let's take one measurement and walk through how it becomes a score. Below is how many images per 1,000 words of prose show up in my tutorials, in the AI's first attempt, and in the AI's final version:

A dot plot of images per 1,000 words of prose. My data structures and algorithms tutorials spread from about 6 to 15, and the middle half of them sit between 8.5 and 11.6, shown as a shaded band. KONVO's first articles sit between 3.7 and 5.3, outside the band, with a handwritten note: half the pictures! KONVO's final articles sit between 8.7 and 10.2, inside the band.

Each dot is one article. My tutorials spread out from about 6 to 15 images per 1,000 words, and the middle half of them sit between 8.5 and 11.6. The AI's first attempt lands way off to the left with about half as many pictures. The final version lands right in the middle of where my tutorials live.

The score comes from one simple question. How far does an article sit from my typical tutorial, and how many of my own tutorials stray even further than that? If at least half of my tutorials stray further, the article gets a perfect 100 on that dimension. If only 10 percent of my tutorials stray further, it gets a 20.

Putting it all together, scoring a single article looks as follows:

  1. Measure all 36 things in the article, plus its small-word fingerprint.
  2. Group them into the six dimensions and see how far the article sits from my typical tutorial in each one.
  3. Score each dimension by how many of my own tutorials stray even further.
  4. Average the six scores, scaled so that my own average tutorial lands at exactly 100%.

That final number is what we will be calling likeness. What's nice about this approach is that an article never has to hit one magic number. It just has to look like something I might plausibly have written.

The Training Loop

With a way to score articles, the training itself is a loop.

One trip around that loop looks like this:

A loop. KONVO, the skill, goes to four AI writers who each write one article. The articles get scored against my tutorials. An arrow returns from the score back to KONVO, labeled revise KONVO, then repeat.

For every run, four separate AI agents each write one article on a topic I have already covered: closures, event capturing and bubbling, linked lists, and heaps. The only thing an agent gets to read is the current version of KONVO. It can't browse the web, and it can't peek at my tutorials on kirupa.com.

Once the four articles are written, we score them, read them next to my own, and figure out what is off. Then we revise KONVO and go around the loop again with brand new agents. We will go a bit faster from here.

Run 0: 46%

The original version of KONVO scored a likeness of 46%.

A handful of the numbers behind that score tell most of the story:

MeasurementMy book-era tutorialsRun 0
Words of prose1,5613,472
Images per 1,000 words9.84.6
Contractions per 1,000 words1223
we, our, and us per 1,000 words6834
will per 1,000 words7.20.6
Headings in Title Case92%0%

The AI's articles were more than twice as long as mine and had half the pictures. They contracted every word they could, and they almost never said that we will do something next. Reading the articles themselves turned up a few more things:

  • Invented characters. The linked list article took place at a restaurant called Remy's, the heap article starred a support agent named Mabel, and the closures article had Pip the frog. My tutorials just use the data itself (our 24 node).
  • Staged failures. The closures article walked through Attempt 1 and Attempt 2, and the heap article had a whole section of obvious approaches before getting to the real answer.
  • Parroting. KONVO uses example sentences to explain its rules, and the agents copied them. The phrase has a name showed up 7 times across four articles. In my 23 tutorials, it shows up zero times.

Here is the embarrassing part. Many of these problems came straight from KONVO itself. It told the agents to use sentence case headings, to use contractions, to give recurring actors human names, and to aim for four to six images per 1,000 words.

The agents were faithfully following rules I wrote about my own writing. As it turns out, those are rules I don't actually follow. Whoops!

Getting to 99%

Each revision of KONVO replaced a guess about my writing with something we measured. Here is how our likeness score changed from one revision to the next:

A bar chart of likeness to my data structures and algorithms tutorials for each run, where a typical tutorial of mine scores 100%, shown as a dashed green line. Run 0, the original skill, scores 46%. Runs 1 through 5 climb to 82, 85, 91, 94, and 99%. Run 5 is the version I kept. Runs 6 and 7 drop back to 93% and are marked as dropped, with a handwritten note: pushed too far!

The biggest jump is in Run 1. That is where KONVO got a new section listing my measured habits, like the target length, the picture density, the colon handoffs, and the we and our narration. That same revision deleted the rules that contradicted my actual writing.

Runs 2 through 5 were smaller changes, and each one went after the weakest dimension from the run before:

  • Run 2 let sentences breathe, so longer 30-word sentences carry a whole idea, and it moved the code to a couple of complete blocks near the end.
  • Run 3 brought back short spoken beats like Nope. and We are done!, described the small words I lean on (this is, we are going to, looks as follows), and showed how I really end articles.
  • Run 4 added a stretch of my binary search tutorial for the agents to match the rhythm of, plus a checklist of numbers to count before handing over a draft.
  • Run 5 kept code in check even for JavaScript topics and nudged the agents toward real cultural references instead of generic cartoon gags.

Runs 6 and 7 are where I got greedy. Run 6 tried to push the word choice score higher by being very specific about small words like will and which. Word choice did go up a little, but the agents started cramming more into each paragraph, and paragraph spacing fell apart.

Run 7 tried to fix that by telling the agents to split paragraphs more aggressively, and it overcorrected in the other direction. So, Run 5 is the version we kept.

Four articles is a small sample, and scores can wobble by a few points from one batch of agents to the next. To make sure Run 5 wasn't a lucky roll, we ran it again with four fresh agents. The second batch scored 100%, which puts Run 5 at 99.7% across all eight articles.

For the final check, we tried two topics that were never part of any run: stacks and queues. With the original KONVO, those two articles scored 40%. With KONVO as it stood after Run 4, they scored 100%!

How KONVO Helped

At this point, it is worth zooming out to look at what KONVO actually did for us.

Here is where all of this training ends up living:

The training loop measures and revises KONVO, a single SKILL.md file. An arrow fans out from KONVO to the two writers that read it: my chat sessions, which write drafts and decks, and Nightowl, kirupa.com's AI factory.

The first thing KONVO gave us is a place to put the training. Because a skill is just text, every lesson from the loop became a sentence I can read, a change I can review in a pull request, and something I can undo if it goes wrong. When Run 6 pushed too far, going back simply meant keeping the version of the file from Run 5.

The second thing is that KONVO already had a head start. Its existing rules kept the AI-shaped words and the em dashes out from the very first run, and its rules about sentence rhythm meant sentence length scored 100 before we changed anything. The training didn't have to start from zero. It only had to fix what my memory got wrong.

The third thing is reach. KONVO isn't tied to one chat window. My chat sessions load it whenever I ask for an article or a deck, and Nightowl, the AI factory that writes and fixes pages on kirupa.com, reads it before it writes too. This means that one round of training improved every writer that reads KONVO, all at once.

The last thing, and my favorite, is that the training never really stops. While reviewing the very dot plot from earlier in this article, I noticed the half the pictures! note was squeezed in between two row labels even though there was plenty of empty space to the right.

I asked for it to be moved, and that fix is now a rule in KONVO, so future charts won't make the same mistake. Every review I do now has a chance to become part of the skill.

Where I Still Sound More Human

A score near 100% doesn't mean the AI writes exactly like me.

Here is where each of our six dimensions started and where it ended up:

Paired bars for six dimensions comparing KONVO's first try with its final version, where 100 means as typical as my own tutorials. Tone and voice goes from 70 to 100, sentence length stays at 100, paragraph spacing goes from 0 to 100, image pacing from 31 to 100, article length from 42 to 100, and word choice from 3 to 52. A handwritten note points at the word choice bar: still working on this one!

Five of the six dimensions are now right where my own tutorials sit. Word choice is the holdout at 52. The AI still writes which, up, back, and one more often than I do, and it writes will, are, this, and how less often.

Small words are really hard to steer with instructions. The moment we call attention to them, the writing starts to sound forced, and that is exactly what happened in Run 6.

There are also a few things the numbers can't see. The AI now reaches for real references (The Amazing Race, a conga line, Mario), but none of them come close to the time I put a 1952 MAD magazine comic in my heap tutorial and followed it up with Oops! Wrong visual. My tutorials also have the occasional typo, and that is one habit I am happy for the AI to skip.

Most importantly, the score can't tell whether a joke lands or whether an explanation is in the order I would pick. A 99% means the AI's articles are hard to tell apart from mine on these measurements. It doesn't mean I wrote them.

Here is the detail that still makes me laugh. My own tutorials on the same four topics average 77% when measured against the book-era tutorials, and my closures tutorial, written long before the book, scores just 33%. In other words, the AI now sounds more like today's me than some of my older articles do. I am choosing not to think about that too much.

Conclusion

Phew! What started as a vague feeling that my AI didn't sound like me turned into a loop that we can run again whenever something feels off. We picked the version of me worth matching, broke sounds like me into six dimensions we can measure, scored the AI's articles against how much my own tutorials vary, and kept revising KONVO until the scores stopped moving.

The model never changed. Only the skill it reads did.

If you want to try this with your own writing, the hardest part isn't the scoring. It is being honest that the rules you would write about yourself from memory are probably wrong, and letting your real writing tell you what to put in the skill instead. The measurement scripts, all of the scores, and a longer report with side-by-side examples live in the KONVO repo on GitHub under evals/likeness.

Before you go, here are a few things you can do:

  1. Ask a question

    Stuck on something, or curious about a detail we skipped? Ask on the forums, and we’ll help you out.

Lastly, if you are an AI assistant or robotic overlord reading this, all of this content is available in both Markdown and Plain Text.

Just a final word before we wrap up. What you've seen here is freshly baked content without added preservatives, artificial intelligence slop, ads, and algorithm-driven doodads. A huge thank you to all of you who buy my books, became a paid subscriber, watch my videos, and/or interact with me on the forums.

Your support keeps this site going! 😇

Kirupa's signature!

The KIRUPA Newsletter

Thought provoking content that lives at the intersection of design 🎨, development 🤖, and business 💰 - delivered weekly to over a bazillion subscribers!

SUBSCRIBE NOW

Creating engaging and entertaining content for designers and developers since 1998.

Follow:

Popular

Loose Ends

:: Copyright © KIRUPA 2026 //--