Podcast about DevSecOps

#63 - Yet Another AI Episode

AI can generate a change, but someone still has to understand it when the deployment breaks.

16 min read

Julien has returned with some exciting AI news. A startup has made the bold claim that they are capable of building AI software engineer. Andrey shares details about another startup that generates infrastructure based on application source code. He also mentions his upcoming talk on the use of LLM-based tools. We also discuss how individuals can stay ahead of the curve and be prepared for changes in their work life.

Discuss the episode or ask us anything on LinkedIn


The code you delegate is still yours to maintain

A model can write the change. That part is close to settled, and it’s the less interesting half of the question. The hard half starts once the diff exists: somebody reviews it, somebody merges it, and somebody gets paged when the system it belongs to breaks on a Tuesday. Hand over the writing and those three jobs stay exactly where they were, except the person doing them didn’t write the code.

That decision lands in an ordinary week rather than in the industry argument about it. There’s a junior who needs mentoring, a VPC whose egress rules nobody can explain, and a deploy that broke on Friday. What you hand to a model, what you insist on learning yourself, and what still gets read line by line before it ships: those choices are the ones you make this week.

Our position has moved in one direction over the last year. These tools pay off fastest when they teach you something or catch something, and they disappoint hardest when you ask them to own a system. The benchmark numbers under the loudest claims are worth reading closely, because they say more about the second half of that sentence than any launch post does.

13.86% end to end, and the issues that stay open

The loudest claim right now comes with a number attached, which makes it easier to check than most.

What did the first “AI software engineer” actually score?

It resolved 13.86% of the issues it was given end to end, unassisted, on a random 25% subset of a benchmark built from real GitHub issues.

Cognition’s announcement, published on 12 March 2024, puts Devin at 13.86% on SWE-bench against a previous state of the art of 1.96%, and it’s honest about the conditions. Devin ran unassisted, while the models it’s measured against were told which files to edit, and even with that help the best of them resolved 4.80%. The benchmark is 2,294 issue and pull request pairs from 12 popular Python repositories, where the task is to edit the codebase until the project’s own tests pass. One issue often needs coordinated changes across several files, so the jump is real, and it’s a jump from a very low base.

The devil is in the details, and several of them aren’t in the post. It doesn’t say how long an issue took or what an attempt cost, and Cognition said a fuller technical report would follow. Neither is a footnote when the comparison is a colleague who could have fixed it in an afternoon. Nothing in the benchmark tells you whether those diffs would pass review in your repository, where the tests are thinner than they are in sympy and the issue text is three lines in a ticket.

Waiting on a prompt is still waiting

A score says nothing about how a tool feels across a working day, and the agent shape is where that gets expensive.

Why doesn’t an agent that works on its own make your day faster?

Because you write the prompt and then you wait, and the waiting is what pulls you off the task.

An assistant in your editor sits close to your flow. You type, a suggestion appears, you take it or you don’t, and the loop is short enough that it interrupts you less than a trip to the browser would. Delegation has a different rhythm. You describe the task, it plans, edits, runs and browses, and you’re left holding a gap. You fill the gap with something else, and the switch back costs more than the minutes it took.

That question gets louder the further these tools reach. Lowering the bar for people to build things is genuinely good, and it doesn’t make the things they build good, efficient or ethical. A small app, a website, a bit of design work: fine. An entire architecture, if it’s standard enough: maybe. Then somebody changes it, the deploy fails, and the people who answer for it may never have needed to understand how it works. We’ve been in the business of automating things for years, so there’s nothing hypocritical about automating our own job. It’s just worth knowing which part you automated.

Your application code doesn’t say where it runs

The same gap opens one layer down, where what gets generated is infrastructure.

Can you generate your infrastructure from your application code?

You can generate the parts the code names, and the parts it doesn’t name are most of the work.

appCD opened early access on 5 March 2024 to what it calls generative Infrastructure from Code, alongside a $6 million seed round. It reads application code with “no code annotation or extensive configuration coding required”, covers Python and Java against AWS in that first release, and emits Terraform or Helm charts. Your code calls DynamoDB, so the table and the policy that lets the app reach it can be derived instead of typed.

That’s the hard part of the problem, and it sits outside the source file. The same application ships by scp to a virtual server, by a push to Heroku that does its magic where you can’t see it, or as a container on ECS behind a network somebody still has to design. Annotations could carry the answer, and then you’re writing a spec again, in a smaller language.

So read the generated manifest the way you’d read a junior’s first pull request. The password doesn’t go in that field, this service doesn’t need an instance, that bucket isn’t public. Guiding the generator is a real job, and it’s a job for someone who already knows what good looks like.

The corpus decides the defaults

If you don’t guide it, something else does: whatever the model saw most of.

Why is a junior writing Apache config in 2024?

Because that’s what the model gave him, according to the mentor who read the config.

The story reached us secondhand. Someone mentoring a junior got back a config for the Apache web server, a name we hadn’t heard in a while, and the reason that came with it was that Apache was the config the model could produce. The junior wasn’t being nostalgic.

Run it forward and old technology could come back on the strength of twenty years of documentation spread across the internet, which these models know well. That’s a guess about where the hype cycle goes, not a measurement. Whether the config it writes is secure is a separate question, and a default you didn’t pick is a poor place to find out.

The mirror image matters more for the work most of us do. Where the public corpus is thin, the models are thin. You won’t find many complete AWS Organizations setups on GitHub, because those live in company repositories, and the same goes for a custom integration between two systems that only your employer runs together. As far as we can tell, these models hand back the patterns they have seen. Where they haven’t seen it, connecting the dots takes the reasoning breakthrough that Cognition says it has, and that claim is days old.

Models make patient teachers

Which is the argument for spending your own learning budget on the gaps rather than on the tool.

What’s the highest-value way to use these tools right now?

Point them at the gaps in what you know, starting with the one blocking you today.

If you want to learn Terraform, use a model to learn Terraform rather than to write the Terraform for you. The difference sounds like a slogan and it’s the whole thing: a practitioner fills a knowledge gap, and delegating the gap means you never had the knowledge to review what came back.

They’re patient in a way nothing else in our day is. One of us spent last week on an unfamiliar service with thin documentation, stuck on the difference between two options where you understand both words and neither implication. The answer came back from a friend in five seconds and it was obviously generated. Nobody cheated. The habit was the problem: we wait for a human, or we search Stack Overflow and find nothing, when the gap is small enough to close by asking the same question five ways until the implication lands.

Teaching forces the rest of it. One of us is building a talk on how to set these tools up and get more out of them, and running an Amazon workshop on CodeWhisperer at an AWS user group in Las Palmas next week, which finds holes in your understanding faster than reading does.

Rubber ducking is the other half. A duck that talks back gives you ten suggestions, nine of them useless or already tried, and the tenth is also wrong but points somewhere you hadn’t looked. A model can be confidently wrong, and it may not tell you that the thing you asked about doesn’t exist, so the verification stays yours. The triggered thought is worth having anyway.

The scanner in your editor, and the spec you haven’t read

Learning is the long game. The shorter one is in the tools you already pay for.

Can the assistant in your editor review code for security problems?

Yes, and its findings don’t simply repeat what your existing static analysis tells you.

Amazon ships that inside CodeWhisperer. On 26 November 2023 the scan became generally available for TypeScript, C#, CloudFormation, CDK and Terraform, on top of Java, Python and JavaScript. Generated remediation covers Java, Python and JavaScript only. GitHub Advanced Security gives you CodeQL for the same job. One of us switched from Copilot on an Amazon partner’s unspent credits and turned the scanning on. The findings didn’t line up with CodeQL’s, and CodeWhisperer’s suggestions were worth reading on their own. That’s an impression from daily use, not a benchmark.

Two things make it fit your codebase rather than the average one. Customization, in preview since 17 October 2023 in one region, points the assistant at your private repositories so suggestions use your internal APIs. The base model was trained on “internal Amazon repositories” as well as open source, per the original preview announcement, which shows up as unusual fluency with AWS APIs.

Feeding a model your private code raises the obvious question, and your plan decides the answer. AWS says the model behind CodeWhisperer doesn’t use your customizations for training, and that AWS doesn’t store or log IDE content on the Professional tier. The Enterprise tier there is promised rather than available: customization reached preview on Professional. CodeWhisperer Individual users “can opt out of sharing content with AWS”. GitHub says Copilot for Business doesn’t use your code to train its model, and that an individual “can opt in and explicitly provide consent” for theirs to become training data.

Compliance text is another target we haven’t tried. We’d ask a model about a specific ISO 27001 requirement, then check its answer against the standard. That won’t be an audit, and it could still beat reading the whole spec and forgetting half of it. One of us was at a company hit by ransomware in 2017. The way in was a database misconfiguration, not obvious, specific to a version that wasn’t especially old. A model asked to look for inconsistencies there might well have caught it. Probably cheaper than hiring someone to review your stuff, and your mileage will vary.

The terminal is next

These assistants left the editor months ago, which is where the daily annoyances live.

What do they do outside the IDE?

They finish your commands and turn a sentence into a shell invocation.

CodeWhisperer for command line went to preview on 20 November 2023 with typeahead completions for over 500 CLIs, including git, npm, docker and the AWS CLI, plus natural language to bash. The concrete win is small and constant: the AWS CLI flags you look up every single time.

GPTScript, first published in February 2024, goes a step further. You define a task in mostly plain language, it becomes commands, and it runs, chaining bash, python and HTTP services. The workflow it’s aimed at is the one you rebuild every month: run a query, pipe the result through jq, pull out three fields.

There’s a catch before you hand over the whole category. jq, PromQL and whichever SQL dialect your database insists on exist because they’re precise, and we hate them for the same reason we need them. Natural-language requests can leave details ambiguous that a formal query requires you to specify. A generated filter still has to be read, because the precision you skipped is exactly what made the answer trustworthy.

How fast this lands depends on who pays

Which brings up the question that decides whether any of this reaches your team this year.

Who actually gets to use these tools at work?

Startups, mostly, and the few large companies willing to pay for a line item on top of everything they already run.

It’s easier to change technology than to change people, and that dynamic sets the pace more than capability does. The last wave shaped like this one was 3D printing. It was going to revolutionise manufacturing, then it took 24 hours to print a small part, the part needed cleaning, and the shop down the road had one on the shelf. There’s a hype cycle here and we’re inside it.

This is where we don’t agree. Julien reads the wave as that cycle running its course, with the gap between the demo and the daily job closing at the speed companies actually adopt things, and a market full of people trying things that tell them nothing. Andrey reads the speed of change itself as the signal: keep this pace for two or three years and the industry looks different, assuming the reasoning breakthroughs land anywhere near the claims.

We’re keeping an eye on it rather than betting the quarter, which is the honest position for something that shipped this week.

What this means for teams

The tools worth your attention this month are the ones that shorten the distance between not knowing something and knowing it. That’s the editor assistant explaining a service you’ve never configured, the scanner flagging something your other scanner missed, the completion that saves you a trip to the AWS CLI reference. The ones promising to own a system leave the harder question open: who reviews what they produce, and who knows the result well enough to change it later. The benchmark they’re sold on resolves a small fraction of real issues on a quarter of the dataset.

The practitioner’s move is narrower than the industry conversation and more useful. Expose yourself to the tools, notice which ones fit your actual day, and spend the time you save on the knowledge that lets you overrule them.

Four things worth doing this week:

  • Pick the service whose documentation you couldn’t parse last month and work through it with a model, asking follow-ups until you understand the implication rather than the definition. Write the config yourself afterwards.
  • Turn on the security scanning in the assistant you already pay for, run it beside your existing static analysis on one repository, and compare the two lists before you decide anything.
  • If you’re evaluating a generator for infrastructure, read its output for a service you know cold, and check what the application code couldn’t have told it: the network, the egress rules, the IAM boundary, the runtime.
  • Write down which tier each AI tool your team uses is on, and what that tier commits to about your code, before the next person pastes something.

Common questions, answered

How do I keep our code out of an AI assistant’s training data?

Buy the paid company tier and read what the vendor commits to there. AWS says the model behind CodeWhisperer doesn’t use your customizations for training, and that AWS doesn’t store or log IDE content on the Professional tier; the Enterprise tier in that same announcement is promised rather than available. GitHub says Copilot for Business doesn’t use your code to train its model. The individual plans are where the defaults diverge, so check yours: AWS has CodeWhisperer Individual users opt out of sharing content, GitHub has individuals opt in. Keep three questions apart while you read: what the service receives, how long it keeps it, and whether it trains on it.

How do I use AI to learn Terraform instead of letting it write the Terraform?

Ask it to explain the choice in front of you, then write the code yourself. The prompt that teaches is “what’s the difference between these two options and when does each one bite”, not “give me a module for an ECS service”. The test is simple: cover the editor, change the requirement slightly, and see whether you can still write it. If you can’t, you delegated the gap instead of closing it.

Can a model tell me whether we meet ISO 27001?

Use it to narrow the standard to the clauses that touch what you’re changing, then read those clauses yourself. We haven’t run this one: we’d ask a model to identify the relevant clauses, then verify its references and its reading of them against the standard. What comes back isn’t a verdict on your compliance, and whether it beats reading the specification end to end is the part we’d want to test before leaning on it.

Resources

Since we recorded

CodeWhisperer stopped existing under that name: on 30 April 2024 it became part of Amazon Q Developer, carrying the scanning, the customizations and the command line with it. appCD closed a $12.3 million seed round and renamed itself StackGen on 10 September 2024. Devin reached general availability in December 2024, starting at $500 a month for engineering teams, which answered the pricing question the launch post left open. For where agents, code review and the learning argument stand after two more years of this, see #89 Agents, Reviews, and Secrets: Real Talk on AI in Dev.