feature/agent skill staleness#181
Merged
Merged
Conversation
glenngillen
marked this pull request as ready for review
July 9, 2026 12:59
liamg
approved these changes
Jul 9, 2026
glenngillen
force-pushed
the
feature/agent-skill-staleness
branch
from
July 9, 2026 13:50
22dfa02 to
c1161ee
Compare
Add detection of stale Infracost agent skills across the AI agents the
CLI supports, so users (and the LLMs driving them) are told when an
agent is running an old skill version and auto-update hasn't kept up.
How it knows what's installed: each agent gains a version detector —
`plugin list` / `skills list` parsing for Claude, Copilot CLI and
Gemini; the VS Code clone's plugin.json for Copilot VS Code; a version
marker stamped into ~/.gitlab/duo/skills/ for GitLab Duo. "Latest" is
the `version` field of the plugin manifest on agent-skills' default
branch (the same field Claude's marketplace gates updates on), fetched
over HTTP.
Surfacing (all three, per design):
- End-of-run nag: main.go prints a caution when a configured agent is
behind, pointing at `infracost agent setup` to upgrade. This is
fully async and never blocks the command — the nag reads the last
on-disk cached result instantly, while a detached goroutine refreshes
the cache (probing agents + fetching latest) for the next run. A
cold-cache command returns in ~14ms. Suppressed on the
setup/remove/status/update commands.
- `infracost agent status`: a live, on-demand view of every installed,
detectable agent and whether it's up to date.
- `infracost doctor`: the AI Agents category now flags stale skills
(and correctly handles binary-less agents like Duo, which it
previously reported as "skipped").
The check is disk-cached for 24h (mirroring the self-update check),
skipped on test binaries and via INFRACOST_SKIP_AGENT_CHECK, and its
cache file is allowlisted from the cache prune sweep. `agent setup` and
`agent remove` clear the cache so a fix or removal isn't shadowed by a
stale warning.
glenngillen
force-pushed
the
feature/agent-skill-staleness
branch
from
July 9, 2026 14:14
c1161ee to
385d4bc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding feature to check currently installed agent skills and nudge people to upgrade to the latest if they've fallen behind.
(merge #179 first as this builds on it)