Repository navigation
Conversation
Runs as an agent's session start hook: updates installed AWS skills, installs new aws-core skills into agents that already have AWS skills, prints what the agent expects, records the run and always succeeds. Hook runs take turns and skip a run right after another for the same agent. Installing the hooks into agent configs comes separately.
luigi617
added this pull request to stack #10785
October 22, 2026 04:44
added 2 commits
October 22, 2026 04:49
Record hook runs by agent id instead of the path of the agent's hook file, so this command does not need to know where hooks are installed. Removes hook_config_path and is_hook_supported from hooks.py, leaving the agent ids and the output formatting the hook run uses.
Reverts 00c606b. last_hook_run stays keyed by the path of the agent's hook config, as defined in automatic-skill-update-safe-update, so separate config directories of one agent keep separate records. hook_config_path only locates that file; it does not install or manage hooks.
luigi617
force-pushed
the
automatic-skill-update-command
branch
from
October 22, 2026 14:40
602b142 to
9edc7b9
Compare
added 2 commits
October 22, 2026 13:10
luigi617
force-pushed
the
automatic-skill-update-command
branch
from
October 22, 2026 17:20
76ca45c to
e3e93d0
Compare
luigi617
marked this pull request as ready for review
October 22, 2026 17:50
This branch has not been deployed
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.
Issue #, if available:
Description of changes:
Adds
aws agent-toolkit update-skill --hook <agent>, the command an agent's session start hook runs to keep AWS skills up to date automatically. Installing the hooks into agent configs comes in a follow-up PR.When automatic updates are turned on, a hook run:
aws-coreskills into skills directories that already have toolkit-installed skills. Directories the toolkit didn't create are left alone.state.jsonby real path for project-level skill.Other changes:
GEMINI_CLI_HOMEwhen it's set.aws-coreskills is moved into a sharedlist_core_skillshelper, also used byconfigure agent-toolkit.Intentional design:
remove-skillis installed again at the next check.Testing:
GEMINI_CLI_HOMEpaths.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.