<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Igal Kraisler on Medium]]></title>
        <description><![CDATA[Stories by Igal Kraisler on Medium]]></description>
        <link>https://medium.com/@igalkrai?source=rss-19a7eaacf51e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*SjC8qdozdkie5HlAMnMCvw.jpeg</url>
            <title>Stories by Igal Kraisler on Medium</title>
            <link>https://medium.com/@igalkrai?source=rss-19a7eaacf51e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:15:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@igalkrai/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I Migrated 20+ Production Crons in a Day (Lived to Tell the Tale)]]></title>
            <link>https://medium.com/@igalkrai/how-i-migrated-20-production-crons-in-a-day-lived-to-tell-the-tale-8d3101742e95?source=rss-19a7eaacf51e------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d3101742e95</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[claude-code]]></category>
            <category><![CDATA[argo-workflows]]></category>
            <category><![CDATA[ai-coding]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Igal Kraisler]]></dc:creator>
            <pubDate>Sat, 14 Feb 2026 12:04:40 GMT</pubDate>
            <atom:updated>2026-02-14T12:04:40.530Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Real-World Guide to AI-Assisted Development That Actually Works</h3><p>It’s 9 AM on a Monday. My manager pings me: “Hey, we need to migrate all our crons from Jenkins to Argo Workflows. Infrastructure team deprecates the Jenkins crons by end of week. You’ve worked with both, right?”</p><p>“Sure,” I type back, confidently.</p><p>I have worked with both. By “worked with,” I mean I know Jenkins exists and I’ve seen Argo Workflows mentioned in Slack. My deep expertise? I’d deployed to both systems in production. And only broken things twice.</p><p><strong>Twenty-three production crons. Four days. Configuration files I’ll need to generate from scratch.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Oc1za6N3NYihYtIW" /><figcaption>This is fine</figcaption></figure><p>Normally, this would be a week of mind-numbing work. But I had a secret weapon: <strong>an AI agent as my pair programmer.</strong></p><h3>The Pain: A Pile of Repetitive Work</h3><p>If you’ve ever done a technology migration, you know the special kind of monotony I’m talking about. It’s not intellectually challenging — it’s just soul-crushingly repetitive.</p><p>Each cron was a unique snowflake of:</p><ul><li>Scheduling syntax</li><li>Custom environment variables</li><li>Container configurations</li><li>Optional parameters (documented… somewhere?)</li><li>Alert configurations</li><li>Command variations</li></ul><p>And I needed to translate all of this into a completely different format with completely different conventions.</p><p>Migrating one? Fine. Educational, even.</p><p><strong>Migrating twenty-three? That’s when you question your career choices.</strong></p><p>The worst part? Some were scheduled jobs (run daily, hourly), others were manual workflows (triggered on-demand). Different types, different syntax, same soul-crushing repetition.</p><h3>The “I Should Probably Have a Plan” Moment</h3><p>After a lot of caffeine and some serious thinking, I decided to take a different path.</p><p>Instead of diving into YAML hell alone, I opened <strong>Claude Code</strong> — an AI agent for coding. Think of it as pair programming with an a co-worker that never gets tired, has read every documentation page on the internet, and generates boilerplate faster than I can type.</p><p>But here’s the key: <strong>I didn’t just use it to write code. I used it to plan the entire migration.</strong></p><blockquote><strong><em>Me:</em></strong><em> “Help me plan a migration of 23 jobs from one system to another. What’s the best approach?”</em></blockquote><blockquote><strong><em>AI:</em></strong><em> “Let’s create a systematic approach: start with one simple example, learn the pattern, create reusable templates, document everything, then scale. Should we document this in a markdown file?”</em></blockquote><blockquote><strong><em>Me:</em></strong><em> “Yes. Call it </em>migration-plan.md<em>. We’ll update it as we go.”</em></blockquote><p>This was the game-changer. The AI and I co-created migration-plan.md—a <strong>living document</strong> that would evolve throughout the process.</p><h3>The Initial Plan (AI-Suggested, Human-Refined):</h3><ol><li>Pick the simplest scheduled job</li><li>AI migrates it, I review and validate</li><li>AI Summarizes insights back to the plan</li><li>Pick a different type of job (manual, non-scheduled)</li><li>Find common patterns with AI’s help</li><li>AI creates shared templates</li><li>I validate the template</li><li>AI refactor the two simple jobs</li><li>Apply to the rest at scale</li></ol><p>This wasn’t just a plan. This was the beginning of an <strong>iterative AI collaboration workflow</strong> where the AI helped with planning, implementation, and review, while I provided judgment, validation, and business context.</p><h3>First Two Jobs: AI-Assisted Pattern Discovery</h3><h3>Job #1 — Scheduled Job</h3><p>I started simple: a daily job at noon, no parameters, just executes a script.</p><p><strong>Me:</strong> “Here’s the source config. Migrate this to the new system.”</p><p><strong>AI:</strong> Generated the config, explained gotchas (use absolute paths, specify concurrency policy), and suggested naming conventions.</p><p><strong>Me:</strong> Tested it. Worked perfectly.</p><p>Then the crucial part of the <strong>feedback loop</strong>: I summarized insights back into migration-plan.md:</p><pre>## Insights from Job #1 (Scheduled)<br>✅ Use absolute paths, not relative<br>✅ Cron format syntax carries over<br>✅ Specify concurrency policy<br>✅ Naming convention: kebab-case</pre><p>This wasn’t just documentation — it was feeding knowledge back to the AI for the next iteration.</p><h3>Job #2 — Manual Job</h3><p><strong>Me:</strong> “This one is different. It’s manual-trigger with parameters. Update the migration plan to handle both types.”</p><p>The AI adapted, generated a different config structure, and I tested it.</p><p>Updated the plan again:</p><pre>## Insights from Job #2 (Manual)<br>✅ Different resource type for manual jobs<br>✅ Parameters need descriptions (visible in UI)<br>✅ Default values for optional params</pre><p>Now the <strong>AI had context for both types</strong>. Time to find the common pattern.</p><h3>The Breakthrough: AI-Powered Template Design</h3><p>With two working examples and updated documentation, I had what the AI needed.</p><p><strong>Me:</strong> “I have a scheduled job and a manual job. They share a lot of config. Help me create a shared template that works for both.”</p><p>This is where <strong>LLM pattern recognition</strong> really shines. The AI:</p><ul><li>Analyzed both configs</li><li>Identified common elements (environment, container, secrets)</li><li>Identified differences (scheduling, parameter handling)</li><li>Proposed a unified template structure</li></ul><p><strong>AI:</strong> “Here’s a template that handles both. The shared part provides environment and container config, while each job specifies its schedule and parameters. Should we test this by refactoring jobs 1–2?”</p><p><strong>Me:</strong> “Exactly. Let’s validate it.”</p><p>I refactored both jobs to use the AI-generated template. Tested them. They worked beautifully.</p><pre>## Template Design (Validated with AI assistance)<br>✅ Shared template covers: env vars, container, secrets, service account<br>✅ Scheduled jobs pass a schedule + command; manual jobs pass parameters + command<br>✅ Refactored jobs #1 and #2 to template. Both pass. Ready to scale.</pre><p><strong>Now I was ready.</strong></p><p>The AI understood:</p><ul><li>Both job types</li><li>The validated template pattern</li><li>Edge cases from the documentation</li><li>The entire migration context</li></ul><h3>The Production Line: AI Batch Processing</h3><p>Here’s where <strong>AI-assisted development</strong> really proved its value.</p><p>I didn’t migrate the remaining 21 jobs one by one. With the validated pattern documented, I could let the AI run.</p><p><strong>Me:</strong> “I have 21 more jobs. Here’s the migration plan with all validated patterns. Here are the source configs. Migrate all of them following the established template.”</p><p>The AI went <strong>autonomous</strong>:</p><ul><li>Read through all 21 source configs</li><li>Identified scheduled vs manual types</li><li>Applied the appropriate template pattern to each</li><li>Generated all 21 configs in minutes</li><li>Flagged unusual cases for human review</li></ul><p><strong>My role in the loop:</strong> Review flagged cases, spot-check random configs, run tests.</p><p><strong>The key difference</strong>: The AI wasn’t <em>learning</em> the pattern for each job — it was <em>applying</em> the already-validated pattern at scale. This is the power of <strong>iterative prompt engineering</strong>: build context, validate, then scale.</p><p>Even during batch processing, the <strong>feedback loop continued</strong>. As I tested, I updated migration-plan.md:</p><pre>## Batch Migration Insights<br>✅ Jobs with &gt;10 parameters need individual descriptions<br>✅ Edge case: one job needed custom config (different container)<br>✅ AI flagging works well for unusual patterns</pre><h3>The Unexpected Wins</h3><p>Around job #14, the AI flagged a script path that didn’t exist. I asked it scan the remaining jobs.</p><p><strong>Result: 5 zombie crons</strong> — scheduled, running, pointing at nothing.</p><p>The underlying code had been removed months ago. The AI’s pattern matching caught what manual review would have missed.</p><p>Accidental tech debt cleanup via code review.</p><h3>The AI Downside: No Automated Tests</h3><p>Here’s the uncomfortable truth: the process wasn’t as autonomous as I wanted.</p><p>Without automated end-to-end tests, human-in-the-loop became a bottleneck. The AI generated 21 configs in minutes. I spent hours manually triggering each one, checking logs, validating schedules.</p><p>The real unlock isn’t better AI — it’s better testing infrastructure. With a proper test suite, the AI could run fully autonomously and I’d only review failures.</p><p>Until then: AI makes me 10x faster at generation but only 2x faster at validation.</p><h3>Lessons Learned: The AI Collaboration Playbook</h3><h3>1. Plan WITH the AI, Not Just Use It</h3><p>Co-create the strategy. We built migration-plan.mdtogether — the AI suggested approaches, I refined based on our system, we updated it constantly.</p><p>The plan evolved from guesswork to validated knowledge.</p><h3>2. Start with Different Types, Not Just Simple Cases</h3><p>Migrate TWO different job types before scaling.</p><p>Job #1 taught the AI the basics, Job #2 taught it the variations.</p><p>Building the template <em>after</em> the AI understood both types meant it worked for everything.</p><p><strong>This is prompt engineering in practice</strong>: build context incrementally, validate, then scale.</p><h3>3. Maintain a Living Document for AI Context</h3><p>migration-plan.md was the AI’s <strong>growing memory</strong>. After every job I fed insights back into it; the AI used the updated plan for the next one.<br>By job #10 the AI was handling edge cases I hadn’t explicitly covered. Future teammates inherit a validated playbook, not tribal knowledge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n1NlymBOkhv0vc2VtQqeRQ.png" /></figure><h3>4. The AI Workflow: Validate, Then Scale</h3><p>The AI turned a week into a day. But it didn’t replace judgment.</p><p><strong>AI excelled at:</strong> planning, generating boilerplate, pattern recognition, flagging anomalies, batch processing, spotting zombie jobs in context.</p><p><strong>Human judgment was critical for:</strong> validating suggestions, deciding production-readiness, understanding business impact.</p><p>The sweet spot: <strong>Humans do the</strong> real engineering work; <strong>AI does</strong> the mechanics<strong>.<br></strong> This is the future — not AI replacing engineers, but engineers augmented by AI doing 10x the work.</p><h3>Final Thoughts: One Week Later</h3><p><strong>The Results:</strong></p><ul><li>✅ <strong>20 jobs migrated and running</strong> (5 zombie jobs killed)</li><li>✅ <strong>Zero incidents</strong></li><li>✅ <strong>One working day vs. one week manual work</strong></li><li>✅ <strong>Tech debt cleaned up</strong></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OsmE9oTpdHunYuIGHgJYCA.png" /></figure><p><strong>P.S.</strong> — A bit meta: This article wasn’t written by AI alone. It’s my experience, my insights, my voice. But the actual typing? That was AI-assisted, following the same iterative workflow.</p><p><em>Used AI for migrations? Found zombie jobs through AI review? Hit a testing bottleneck? Share your stories in the comments.</em></p><p><em>If you’ve faced a “migrate 20+ things by the EOW” deadline, you know. Hit that clap button.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d3101742e95" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>