mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
feat: show activated skills before CLI banner
This commit is contained in:
parent
62f5965650
commit
b41de7ed7e
2 changed files with 77 additions and 3 deletions
11
cli.py
11
cli.py
|
|
@ -1344,6 +1344,7 @@ class HermesCLI:
|
|||
self._attached_images: list[Path] = []
|
||||
self._image_counter = 0
|
||||
self.preloaded_skills: list[str] = []
|
||||
self._startup_skills_line_shown = False
|
||||
|
||||
# Voice mode state (also reinitialized inside run() for interactive TUI).
|
||||
self._voice_lock = threading.Lock()
|
||||
|
|
@ -1630,6 +1631,13 @@ class HermesCLI:
|
|||
def show_banner(self):
|
||||
"""Display the welcome banner in Claude Code style."""
|
||||
self.console.clear()
|
||||
if self.preloaded_skills and not self._startup_skills_line_shown:
|
||||
skills_label = ", ".join(self.preloaded_skills)
|
||||
self.console.print(
|
||||
f"[bold {_accent_hex()}]Activated skills:[/] {skills_label}"
|
||||
)
|
||||
self.console.print()
|
||||
self._startup_skills_line_shown = True
|
||||
|
||||
# Auto-compact for narrow terminals — the full banner with caduceus
|
||||
# + tool list needs ~80 columns minimum to render without wrapping.
|
||||
|
|
@ -1664,9 +1672,6 @@ class HermesCLI:
|
|||
|
||||
# Show tool availability warnings if any tools are disabled
|
||||
self._show_tool_availability_warnings()
|
||||
if self.preloaded_skills:
|
||||
skills_label = ", ".join(self.preloaded_skills)
|
||||
self.console.print(f"[bold {_accent_hex()}]Skills:[/] {skills_label}")
|
||||
|
||||
self.console.print()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue