From 36% to 100%: How Self-Improving Agents Write Their Own Skills — Rafal Wilinski, Runlayer

AI Engineer · 18 min · 176 sentences · from YouTube's caption track

Each timecode opens YouTube at the start of that sentence. Line anchors (#s42) are the cue ids in the WebVTT, and every line carries its start and end seconds. All transcripts has every talk, and the whole corpus as one file.

  1. 00:12Hello everyone.
  2. 00:12I am Rafael.
  3. 00:14Today I want to talk about self-improving agents, but not in a single-player mode where only one agent gets smarter.
  4. 00:21I want to discuss how to apply this concept, combined with network effects, to create a company or even an enterprise that self-improves while you sleep.
  5. 00:34Imagine the best engineer you've ever worked with, or salesperson, or lawyer.
  6. 00:41The one who, every time he solved a really difficult problem, wrote down exactly how he did it and passed the instructions on to the team.
  7. 00:49So when they encounter a problem like this, they don't need to solve it from scratch, right?
  8. 00:56Now imagine this happening with every complex problem across your entire company, and automatically every time.
  9. 01:03This is a dream, right?
  10. 01:06But it almost never works that way.
  11. 01:11Even when you solve a very complex problem, often the knowledge, all the tuning, and all the reasoning just disappears.
  12. 01:19Oh, sorry.
  13. 01:22All of these considerations simply disappear when you move on to the next task or close the session.
  14. 01:29But I want to convince you that this is actually possible and we already have all the necessary elements for this.
  15. 01:37If this sounds interesting, let me introduce myself again.
  16. 01:40I am Rafael.
  17. 01:41I am a founding engineer at Runlayer.
  18. 01:43We create a "golden path" for implementing AI in your company.
  19. 01:47Before that, I managed Zapier agents and various AI teams, but in general, my previous work was about making agents not just flashy demos, but reliable tools in production.
  20. 02:00Before we get to the interesting parts, I want to break my topic into three separate parts and start simply with improving agents.
  21. 02:07There are many ways to do this.
  22. 02:09We can use better models, better tools for prompts, environments, etc., but today I want to focus only on skills because they are very accessible, right?
  23. 02:19At least in theory.
  24. 02:21To make sure we understand each other, for me a skill is an instruction that an agent can read when they feel that knowledge is relevant.
  25. 02:31Technically, this term is called progressive disclosure, and it means that at the very beginning, the system or client only sees a brief summary or description of the skill.
  26. 02:43But when an agent understands that the knowledge inside a skill can be useful, it can read it in its entirety, add it to the main context, and change the trajectory of its actions based on this knowledge.
  27. 02:55Why is this so important?
  28. 02:56Well, unless you've been living in isolation for the last 6–12 months, your workload has probably changed significantly, and that's because agents have gotten a lot better, or rather— models have gotten a lot better.
  29. 03:09And it's not just a feeling, it can be measured.
  30. 03:12Here you see a graph that you've probably seen too many times.
  31. 03:17For those who don't know, this is the MEETER benchmark.
  32. 03:20It measures how long agents can work independently while still maintaining a decent chance of completing the task.
  33. 03:27And the word "chance" is key here.
  34. 03:30We'll come back to this in a moment, but the trend is clear.
  35. 03:34Advanced capabilities, advanced intelligence are getting better and better.
  36. 03:38They do better with multi-step deep work.
  37. 03:41There is only one caveat: unless this advanced intelligence is taken away from you.
  38. 03:45And I am as prone to mistakes as you probably are.
  39. 03:49But there is a nuance.
  40. 03:51With great power or long-term tasks comes great responsibility.
  41. 03:56If an agent can reason for much longer, it also means that it can go down a very, very deep rabbit hole.
  42. 04:04He can spend hundreds of tool calls trying to defend a false thesis, argue for hours, and the next agent will do exactly the same thing, or perhaps even worse.
  43. 04:16Therefore, the initial trajectory is of great importance.
  44. 04:18And that's why skills are so important, because they direct the agent to the right goal.
  45. 04:24Otherwise, you will waste time, waste tokens, and most importantly, waste money.
  46. 04:31Valuable skills are those rituals that no one wants to rediscover.
  47. 04:35This knowledge is often not something exciting.
  48. 04:37They are probably deeply ingrained in your company.
  49. 04:41And what if agents were trying to discover this knowledge from scratch—for example, the sequence of scripts and function switches to create a good roadmap, or the exact wording to communicate with that picky
  50. 04:53corporate client who is about to leave you.
  51. 04:58Yes, if agents tried to figure this out from scratch, they would most likely fail.
  52. 05:03And often this failure can be very costly.
  53. 05:06This is why I believe so many AI implementations or pilots fail: you don't provide agents with the appropriate context and instructions on how to act within your company.
  54. 05:17So, skills are great, but I think they're not without their problems.
  55. 05:21There are three major issues, and the first one is that they are local and developer-centric.
  56. 05:28What I mean is: when you look at the skills ecosystem, you'll find markdown files, JSON files, CLI commands, and Git repositories.
  57. 05:38And if you're a developer, that's great.
  58. 05:41But if you’re a VP of AI or an AI implementation lead, you need to be more empathetic about how to roll out an AI strategy across the company, including non-technical
  59. 05:53people, right?
  60. 05:56And the main challenge here is how non-technical people can create and distribute these skills.
  61. 06:01Oh, I love this meme.
  62. 06:04This is a junior developer or non-technical professional who discovers the NPX skills command— the most important and popular command for installing them.
  63. 06:14This is the only command I know that installs not just a skill, but also free prompt injections, a wild script with root privileges, and someone else's API key—all in one run.
  64. 06:27Believe me, at RunLayer we scan thousands of skills every day, and some really weird things happen there.
  65. 06:35Okay, the second problem: I think we all like the situation when we are faced with a difficult problem and we already have a ready-made plan of action on how to solve it, right?
  66. 06:45But often there is simply no such plan.
  67. 06:49Because it takes time, effort, and energy to understand the problem and leave something useful for posterity.
  68. 06:59And the third problem is that not every LLM client supports the skills, right?
  69. 07:04If you're in the cloud ecosystem, then everything is probably great.
  70. 07:07If you're a developer, you'll likely be fine, even if the skills support is weird, depending on which client you're using.
  71. 07:14And again, if you think about marketing, HR, legal, finance —these departments are probably still using ChatGPT or some other LLM client where the skills may not be supported.
  72. 07:25There was a big heated discussion a while ago when these skills first emerged.
  73. 07:32Some have proclaimed: thank god MCP is finally dead, because I don't want to mess with OAuth.
  74. 07:38Now I can "hardcode " a bunch of CLI commands, write my API key right into a markdown file, and call it progress, right?
  75. 07:45But, in my opinion, everyone missed the point.
  76. 07:48Skills can convey knowledge about how to do something , while tools give us capabilities.
  77. 07:54The tools with MCP the ability to do these things, but MCP can also be used as a protocol for transferring knowledge, for transferring skills.
  78. 08:03We can use MCP as a distribution layer.
  79. 08:08So, instead of installing skills locally, you can create a remote MCP server that will become the source of truth for your entire company.
  80. 08:16Clients can connect to it and search for the skills they need.
  81. 08:20The server can enforce policies and ensure that everyone gets the best version of the skill based on the request and , for example, the assigned role.
  82. 08:29We've been doing this internally at Run:ai for the last 6 months and it's working pretty well.
  83. 08:34But this is no longer just an internal matter.
  84. 08:37We see the broader MCP ecosystem moving in this direction as well.
  85. 08:42There is a working group called “Skills over MCP,” and while the exact API is not yet final, the direction is clear.
  86. 08:49MCP can be used to provide skills and spread knowledge throughout your company.
  87. 08:57Yes, and although the official specification leans towards using MCP resources, resource support is still patchy.
  88. 09:04Therefore, we focused on tools.
  89. 09:10And if you remember the first and third problems I mentioned— developer focus and lack of customer support— then MCP as a distribution layer solves that because it is unified and works in almost every client, not just development ones.
  90. 09:28So the problem of skills dissemination among non-technical professionals is essentially solved, right?
  91. 09:33Additionally, you now have a centralized API.
  92. 09:36So as a VP of AI or AI implementation leader, you have a single place to manage and control what knowledge is shared across your company.
  93. 09:47Okay, now we know how to improve agents because we have the skills.
  94. 09:51We know we can use MCP to spread these skills to all clients and agents, but let’s talk about something more interesting: how agents can improve themselves.
  95. 10:02And every time I see a new article or framework on the topic, I always go back to the work on Voyager.
  96. 10:12Unfortunately, you can't see the video, but there is a Minecraft game playing in the background .
  97. 10:15In 2023, right after the release of GPT-4, that is, a long time ago, the question arose: how long can multiple agents or systems explore the Minecraft space?
  98. 10:28They placed the agent in Minecraft without any instructions.
  99. 10:31He set goals for himself .
  100. 10:33It just kept getting better without even changing the model weights or prompts.
  101. 10:38And in 2023, I think it was a real breakthrough.
  102. 10:42How did they do it?
  103. 10:45The main thing to pay attention to here is the skills library.
  104. 10:49So Voyager didn't just thoroughly explore Minecraft space and then discard the data it received.
  105. 10:56When an agent discovered something new, it stored a recipe in the form of code consisting of calls to the tools that led it to the discovery.
  106. 11:06So later, when the agent decided, "Hey, I need to create a workbench or a diamond pickaxe."
  107. 11:12He didn't have to invent all this knowledge from scratch.
  108. 11:16He could simply go to the skill library and get it as code —as a recipe that could be reused.
  109. 11:23And this is actually very important.
  110. 11:25The main idea I want to convey is that research should be transformed into reusable procedural knowledge.
  111. 11:35And we started doing something very similar in Run Layer.
  112. 11:40We let the agents do the real work, and when the run is successful, or when there's something interesting in it— like a few tool calls—we just take that trace and ask Frontier LLM to highlight a skill.
  113. 11:57While it's extremely easy to isolate a skill from a single run , I believe that we, like agents, learn from mistakes.
  114. 12:05True improvement occurs precisely when an agent fails.
  115. 12:09So, a launch that didn't go as planned is actually the richest source of information, because it reveals missing fuses, libraries, or some edge cases that you didn't think about beforehand.
  116. 12:21And each launch, successful or not, fuels our distillation mechanism, constantly refining our skills.
  117. 12:30Successes make skills more reliable, because if the agent achieved the goal , it means "Hey, this skill works."
  118. 12:38And if not, it makes the skill more sustainable, because now we know what exactly was missing here.
  119. 12:43And all this happens completely autonomously and asynchronously, without human intervention.
  120. 12:48The initial results were excellent.
  121. 12:52We were tasked with running a Chromium fork inside AWS Lambda using Sonnet 4.6 .
  122. 13:00It's not the most intelligent model, but it has sometimes succeeded.
  123. 13:05However, the 36% success rate was not ready for industrial use.
  124. 13:11So we enabled the agent self-improvement feature , and during one of the runs, the agent found a solution, and our skill distiller created a reusable algorithm.
  125. 13:23It was included in all future launches, and the success rate increased to 100%.
  126. 13:29So yeah, that's great.
  127. 13:31It's like a developer being more concerned with documentation.
  128. 13:36Um, success rate is the easiest to show, but a good skill is narrowing the search space.
  129. 13:42This forces the agent to Gm, it narrows the search space, and the agent stops making tool calls, exploring fewer branches.
  130. 13:53This saves tokens and reduces costs.
  131. 14:00But, putting aside economy and precision, I think there's a deeper reason why skills are worth singling out .
  132. 14:06Um, the problem is that advanced intelligence is a rented or borrowed resource.
  133. 14:11He may disappear.
  134. 14:13I think, yes, we all miss Fable.
  135. 14:15It was a great model, wasn't it?
  136. 14:17It may become outdated or it may become stupider.
  137. 14:19We complain every day on Twitter or Slack that Opus is really stupid these days, right?
  138. 14:25So while we have access to the best version of this intelligence, we should use it to discover and preserve useful routines.
  139. 14:33We should create a catalog of how work is done in our company, as a collective subconscious.
  140. 14:39And how do we do it?
  141. 14:44Well, I believe we already have all the pieces of the puzzle.
  142. 14:49Um, we have skills as a way to preserve procedures, improve agents, and manage models.
  143. 14:54We have MCP as the only distribution level for these skills.
  144. 14:59And we also have a central repository, a knowledge base for all these skills, which is constantly updated and supplemented with new data.
  145. 15:07Um, yes, we also have a continuous learning flywheel for a single agent, but what's interesting is what I promised you at the very beginning—the network effect.
  146. 15:17Um, so what happens if you multiply that by every agent and every customer in the entire company.
  147. 15:23At Runway AI, we call this the organizational flywheel of self-improvement.
  148. 15:29Um, we're grouping a number of similar launches and trying to isolate the skill.
  149. 15:34It goes through our numerous checks, like whether it contains any prompt injections or PII, um, and a lot of other things.
  150. 15:42When it's ready, it goes into our skills library and, through our MCD gateway, is made available to every customer and agent in the company.
  151. 15:51As a result, we have a knowledge base that is constantly evolving, always relevant, and continuously updated with new information and new edge cases.
  152. 16:01So once one agent solves a very complex problem, it becomes a skill that is stored in the shared organizational library.
  153. 16:13So when someone else encounters the same problem in the future, they won't have to find a solution from scratch.
  154. 16:19They don't necessarily need to know, uh , the exact sequence of those magic commands that will restart the database or roll back production.
  155. 16:27They can just, um, refer to the playbook they have.
  156. 16:32And why is this so important?
  157. 16:36Because I think 50% of us have probably already had an existential crisis because of these models, and the thoughts boil down to , uh, models becoming a commodity .
  158. 16:48Everyone here has access to them .
  159. 16:50Um, the cost of software is approaching zero.
  160. 16:55Anyone can replicate my product, um, at least on the surface.
  161. 16:59In fact, so many people work at the show today and think, " Hey, everyone's building the same thing , right?"
  162. 17:06So, what is my "moat"?
  163. 17:09Um, and I believe that this " moat" could be about creating this kind of flywheel and accumulating knowledge through it, because it's like your own hard-earned lessons, systematized and aligned with how your company works, you
  164. 17:23know?
  165. 17:24It's captured, it's accumulated, raising the bar for everyone in the company, giving them access to the best knowledge available.
  166. 17:34Um, it's also a way to become resistant to model intelligence obsolescence, and it's a great way to reduce costs without even changing the model.
  167. 17:42So, yes.
  168. 17:44This is perhaps the only thing a competitor will not be able to copy—your internal culture and identity.
  169. 17:54And yes, that's practically all.
  170. 17:56Um, thanks for coming.
  171. 17:58If this resonated with you, I am Raphael.
  172. 18:01I work at Front Layer.
  173. 18:02We are developing for you the " golden path" of using AI.
  174. 18:06I'm open to talking about skills, MCP agents, and more.
  175. 18:09And that's exactly what you build in Front Layer.
  176. 18:12Thank you.