Skip to content

internal: Materialize skills during agent run#215

Merged
timflannagan merged 2 commits intomainfrom
feat/skill-runtime
Feb 26, 2026
Merged

internal: Materialize skills during agent run#215
timflannagan merged 2 commits intomainfrom
feat/skill-runtime

Conversation

@timflannagan
Copy link
Copy Markdown
Collaborator

@timflannagan timflannagan commented Feb 25, 2026

Description

Follow-up to #198 that added support for adding metadata to the agent.yaml. This commit adds runtime skill resolution and materialization for agent run workflows. When skills have been configured for an agent, we resolve those [ image, registryURL ] input sources to images, and then leverage docker create/cp/etc. to fetch those contents and extract directly to disk.

We leverage existing kagent-adk functionality here where it supports reading skills from an envvar so I only had to extend the docker compose template to mount that directory correctly.

Change Type

/kind feature

Changelog

NONE

Comment on lines +73 to +76
// Note: The below implementation may be redundant in most cases.
// It allows for registry-type MCP server resolution at run-time, but in doing so, it regenerates folders for servers which were already accounted for (i.e. command-type get generated during their `add-cmd` command)
// It allows for registry-type MCP server resolution at run-time, but in doing so, it
// regenerates folders for servers which were already accounted for (i.e. command-type get
// generated during their `add-cmd` command).
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: I think this comment is potentially stale?

This adds runtime skill resolution and extraction for agent runs, including
registry-backed skill references, so local and registry runs can mount usable
skill content consistently.

Previously, agent run only handled MCP runtime artifacts. Now we resolve skill
image references, enforce strict image-versus-registry input validation at
runtime, materialize skill files into the runtime config path, and cover the
behavior with focused tests.

Follow-up to #198.
Signed-off-by: timflannagan <[email protected]>
@timflannagan timflannagan merged commit edb6d19 into main Feb 26, 2026
5 checks passed
@timflannagan timflannagan deleted the feat/skill-runtime branch February 26, 2026 16:30
christian-posta pushed a commit to christian-posta/agentregistry that referenced this pull request Mar 9, 2026
# Description

Follow-up to agentregistry-dev#198 that added support for adding metadata to the
agent.yaml. This commit adds runtime skill resolution and
materialization for `agent run` workflows. When skills have been
configured for an agent, we resolve those [ image, registryURL ] input
sources to images, and then leverage docker create/cp/etc. to fetch
those contents and extract directly to disk.

We leverage existing kagent-adk functionality here where it supports
reading skills from an envvar so I only had to extend the docker compose
template to mount that directory correctly.

# Change Type

/kind feature

# Changelog

```release-note
NONE
```

---------

Signed-off-by: timflannagan <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants