docs: Correct unsupported agent-management command examples - #1182
Merged
SamSaffron merged 1 commit intoSep 26, 2026
Merged
Conversation
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.
What was wrong
The agents guide advertised direct export, directory import, and a top-level
agents gistcommand that are not implemented. Its clear example supplied an unsupported second argument and implied a single-key reset. Exporting the untouched built-in reviewer is also rejected.What changed
agents export gist my-reviewer, using the filesystem copy already shown.agents import gist <gist-url-or-id>and remove the nonexistent top-level Gist example.agents clear reviewerand explicitly label it as clearing ALL preferences.ghprerequisite and authentication requirements.Only
docs-site/content/guides/agents.mdchanged.How it was verified
Inspected current command definitions and registrations in
cmd/agents.go:Their child signatures are
gist <agent-name>andgist <gist-url-or-id>; the parents have no execution handlers. The clear command declares:runAgentsPrefClearcallsconfig.ClearAgentPreferences(agentName), whose implementation ininternal/config/config.goremoves the entire agent entry withdelete(prefs, agentName).runAgentsExportGistrejectsagent.Source == agents.SourceBuiltinwith the messagecannot export built-in agent ... Copy it first. The Gist command descriptions document theghand authentication requirements.Also ran the installed CLI's
agents export --help,agents import --help, andagents clear --help: export/import each list onlygist, and clear reportsterm-llm agents clear <agent> [flags]and “Clear all preferences for an agent.” No Gists were published and no preferences were cleared.Validation passed:
cd docs-site && hugo --quiet --destination /tmp/docs-build-228c7211git diff --statandgit diff --checkgit diff --name-onlyconfirmed documentation only.No internal links were changed.