Repository navigation
feat(shortcuts): /agents is the single Agents view entry point - #1359
Conversation
… name A custom shortcut loaded from ~/.infer/shortcuts/*.yaml used to overwrite any built-in registered under the same name, so the init-seeded a2a.yaml /agents shortcut shadowed the new built-in /agents view. Custom shortcuts now skip names already taken by built-ins and log a warning naming the offending file; later config dirs still overlay earlier custom dirs.
Drop the /a2a built-in alias and its a2a-only scope: one merged view with typed chips is enough, two entry points just add surface to maintain. The A2A: X/Y status-bar indicator now opens the Agents view instead, and ViewStateA2AAgents is gone.
The seeded a2a.yaml /agents <list|add|remove> shortcut pre-dated the built-in /agents view and shadowed it; agent management stays available via infer agents add|remove|list. init no longer creates the file at all.
Document /agents as the only entry to the Agents view, drop the /a2a alias and the a2a.yaml row from the init-created shortcuts, point the A2A: status indicator at the agents view, and switch the agent configuration examples to the infer agents CLI.
|
@infer Can you record a demo of this feature? I want to see that it works both via Build a binary and demonstrate it. DO NOT commit or push the mp4 video just create a GIF and add it to ~/.infer/artifacts |
|
Model: Todos
Pull Request❌ Infer Result: FailedThe GIF is written. Let me verify it: file size and visual content. Model: Tokens: 8,120,019 in · 61,812 out · 8,181,831 total (67 requests) Tool calls: 106 total · 100% success rate ArtifactsTracesStats
|
|
@infer I've noticed Also can you group them? a2a agents shown in a separate table perhaps for the cli and for the TUI they should be shown also at the top - separate from the markdown agents, NO separate view, just separate tables. Can you style it to look nicer? use /lipgloss metadata should be aligned to the right and the agent name aligned to the left. |
|
Model: Todos
Pull Request✅ Infer Result: SuccessEverything is committed, pushed, and verified. The work for this ask is complete on PR #1359. All done - everything is committed and pushed. Here is the final summary for the PR: Done: markdown agents listed, grouped, and styled
What this PR now contains (verified this run)
Demo (real renderer output, captured in this run)In both tables the agent name is the left-aligned first column and every metadata column is right-aligned: In the TUI the same two groups render inside the single Note on the earlier GIF request: this CI sandbox cannot record the TUI (tmux is not reachable in this mode) and cannot write to Checks: Model: Tokens: 8,562,855 in · 76,813 out · 8,639,668 total (90 requests) Tool calls: 140 total · 100% success rate TracesStatsTriggered by edenreich · Infer Action · OSS |
Group the listing into two lipgloss tables: A2A agents first (agents.yaml plus INFER_A2A_AGENTS, name column first), then the Markdown-defined subagent presets loaded through the same tool registry a chat session builds. The agent name stays left-aligned and the metadata columns right-aligned in both tables, and --format json gains a markdown key.
A2A agents render first under their own section title, then the Markdown presets, all in the same view - no separate scope. Each row now puts the agent name on the left and the type/state chips on the right edge via lipgloss, and the view title counts agents only.
Describe the two-table infer agents list output (A2A first, then Markdown presets) and the same grouping inside the /agents view, and drop the stale no-CLI-listing caveat.
Assert both sections of the listing render: the A2A table (yaml plus env sources) and the Markdown presets table, so the grouping cannot silently regress.
|
🎉 This PR is included in version 0.214.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## Summary `@infer /demo` on a PR (or `/demo` in chat) now has a procedure to follow: a new built-in `demo` skill, seeded into `~/.infer/skills` by `infer init` like `bug` and `tmux`. It records a short demo GIF of any project - CLI, TUI or GUI app - so it works in every org repo that runs infer-action with `record-demo`, desktop included. It replaces the demo procedure hardcoded in infer-action's `infer-action-record-demo` reminder (follow-up PR there shrinks it to a pointer to this skill). ## Why this shape Every rule comes from the 8 demo runs so far (#1355, #1348, #1359): | Observed | Skill rule | |---|---| | Procedure arrived at turn 28, after 3 takes and a committed `.mp4` (#1348) | "Record the demo" is the last todo, planned up front; recording after the work is pushed | | 4 GIFs in one comment - every probe take became a GIF (#1348, #1359) | Rehearse with `capture-pane` / Screenshot, record one take, convert only it to a fixed `~/.infer/artifacts/demo.gif` | | Take capped at 60 s before the interesting frame - one model turn per keystroke (#1359) | Whole take as one response of tool calls (`CallOrder` keeps them in order) | | Run died on `ImageDecode` of a GIF (API 400) (#1355, #1359) | Check a take via one PNG frame pulled with ffmpeg | | `pkill -f "infer chat"` matched the agent's own command line (#1355) | Quit with the app's own keys; no `pkill -f` / `killall` | | Own tmux sessions / xterms, not on the recorded display (#1348, #1359) | CI: only the `demo` session; GUI apps start there with `DISPLAY=:99` | | MP4 hard-linked into the repo and pushed (#1348) | `~/.infer/artifacts` is the delivery channel; recordings never enter the repo | | Wrong conclusions saved to memory in a run without recording (#1359) | No memories about demo mechanics - the skill is the source of truth | ## Changes - `internal/skills/builtins/demo/SKILL.md` - the skill - `internal/skills/builtins_test.go` - seeds and validates `demo`; description must route `/demo` - `docs/skills.md` - listed under built-in skills ## Verification - `go test ./internal/skills` green; pre-commit hook (mod:tidy, fmt, lint, markdownlint) passed on the commit - End-to-end check is `@infer /demo` on #1363 once this ships and infer-action/`.github` bump their CLI version ## Rollout 1. This PR, released (expected v0.215.0) 2. infer-action: reminder points at the skill, drops its own MP4->GIF conversion, allows `ffmpeg`, bumps default CLI version 3. `inference-gateway/.github`: bump `cli-version` and the infer-action tag Docs: follow-up `[DOCS]` issue for `inference-gateway/docs` still to be filed.




Resolves #1357
Summary
Makes
/agentsthe single entry point to the merged Agents view: the pre-filtered/a2aalias and its a2a-only scope are removed,infer initstops seeding a custom/agentsshortcut ina2a.yaml, and a built-in shortcut now wins over a custom YAML shortcut with the same name (with a warning naming the file), so an existing~/.infer/shortcuts/a2a.yamlcan no longer shadow/agents.Changes
A2AAgentsShortcut(/a2a) built-in and itsSideEffectShowA2AAgents; theA2A: X/Ystatus-bar indicator now opens the Agents view (ViewStateAgents) instead of the a2a-only scope.AgentsViewlost theAgentsScopeA2Apre-filter machinery; it always renders the merged list (local presets + A2A agents).infer initno longer writes~/.infer/shortcuts/a2a.yaml; agent management stays available viainfer agents add|remove|list.no docs ticket: tracked in inference-gateway/docs#843.