Blog

Skills Your Agent Writes for Itself: How Long Do They Actually Last?

Self-improving agents are genuinely good at writing skills from experience. Nobody's asking the follow-up question about how long those skills stay correct.

EngineeringNov 20, 2026

Key takeaways

  • -A self-written skill's lifespan is bounded by the lifespan of the one API contract it happened to observe, not by how well the agent wrote it
  • -Hermes grades and prunes its own generic skills on a schedule, which catches some rot after the fact, not before a bad call goes out
  • -The more specific and literal a self-written skill is, the faster it tends to break, and specificity is exactly what makes /learn-style skills useful in the first place
  • -The question worth asking isn't "did the agent write a good skill," it's "what happens the day the thing it learned from changes"

A skill Hermes writes itself through /learn is judged almost entirely on whether it captured the task correctly, but the question that decides whether it's still worth anything in a month is different: how long does it stay correct. A self-written skill comes from a single observed trajectory, with no reason to generalize beyond what it saw, so it's immediately useful and fragile at the same time, breaking the moment the API it describes moves even slightly.

A question nobody asks at write time

Hermes Agent's self-improving loop, and /learn specifically, get judged on one axis almost exclusively: did the agent correctly capture the task. Fair enough, that's the headline feature, and it genuinely works. The question we don't see asked nearly as often is the one that determines whether that skill is still worth anything in a month: how long does it stay correct.

That's a different property from "was it written correctly." A skill can be a perfect transcript of exactly what happened, and still have a short shelf life, because what happened was specific to one moment in one API's existence.

Why self-written skills rot faster, structurally

A skill written by a developer who's maintaining the integration tends to account for variation on purpose: optional fields, different response shapes for different account tiers, documented edge cases. That knowledge comes from reading docs and thinking about what might change, not just what did happen once.

A skill written by /learn, or by Hermes's own generic-skill distillation after a task, comes from a single observed trajectory. It has no reason to generalize beyond what it saw, because generalizing beyond the evidence in front of it is exactly the kind of overreach you'd want an agent not to do. So it writes down the specific fields, the specific request shape, the specific values it watched go by. That specificity is why the skill is immediately useful. It's also exactly what makes it fragile the moment the API moves even slightly.

What Hermes already does about this

Nous Research's own documentation describes a feedback loop: Hermes evaluates its performance on a schedule, roughly every 15 tasks per the project's own description, and can rewrite or retire skills based on how they performed. This is a real mitigation, and it's worth taking seriously, because it means a skill that keeps failing doesn't necessarily stay in rotation forever unexamined.

What it doesn't do is catch a failure before it happens. The evaluation is retrospective: it looks at how recent tasks went and adjusts going forward. A skill that silently returns a plausible-looking wrong answer, the way a renamed response field does, doesn't necessarily register as a "failure" to grade against at all, because nothing told the agent the answer was wrong. Self-grading on outcomes you can see is real signal. It isn't the same as validating a response against a schema at the moment the call returns.

The variables that actually determine lifespan

A few things predict how long a self-written skill survives, more reliably than how carefully it was written:

How often the underlying API changes. A stable, versioned API with a long deprecation window gives a learned skill a long life. An API that iterates quickly, or doesn't version at all, gives it a short one. · How literal the learned skill is. A skill that hardcodes a field name is more brittle than one that references a schema and looks the field up at call time. /learn-style skills default to the former, because that's what a single transcript gives you. · Whether anything checks the call before trusting the result. This is the one actually within your control. A skill that calls an API directly has no safety net. A skill that calls through something validating requests and responses against the real schema turns a silent rot into a visible, immediate error.

What to actually do with this

Not "stop using /learn." The feature is good at what it's for: capturing a real, working procedure fast, from something you just did, without hand-authoring a SKILL.md. What's worth adding is a second layer underneath it that doesn't depend on the skill itself staying perfectly accurate forever: route what it learned through an execution path that checks the request and response shapes against the provider's actual, current schema, so a skill that's three months old and slightly out of date gets caught with a clear error instead of producing a confident wrong answer nobody notices until a customer does.

FAQ

Does this mean Hermes's self-improvement feature doesn't work?

It works for what it's designed to do, which is distill a working procedure from a real trajectory fast. It isn't designed to anticipate changes to systems outside the agent's control, and judging it against that bar is a category error, not a fair test of the feature.

How would I even notice a self-written skill had quietly gone stale?

Mostly you wouldn't, from the chat transcript alone, which is the actual problem. An audit log of what was really called and what came back is what turns "I'm not sure this still works" into something you can check directly instead of inferring from downstream symptoms.

Is there a way to make /learn write more defensive skills from the start?

Partially, by having it generalize against a known schema rather than purely the one transcript it watched, which is what pointing it at a tool like swytchcode_info for the relevant method gives it: the full input and output contract, not just the one example that happened to come through.

Give this prompt to your agent and get started.

More from the blog

Ready to make your agent's tool calls reliable?

Give this prompt to your agent and get started.