You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE] Resolve bare agent names through the agents catalog in agents add #1332
infer agents add <name> accepts a bare name only for the five agents hardcoded in config/agent_defaults.go
(browser-agent, mock-agent, google-calendar-agent, documentation-agent, n8n-agent). Every other published agent - grafana-agent today, all third-party listings - fails with URL is required for unknown agent '<name>'.
infer skills install <name> already resolves a bare name through the skills catalog. Doing the same for agents
(fetch the inference-gateway/agents catalog.json, derive the URL from spec.server and the image from spec.deployment) would let any catalog agent be added by name, with the hardcoded defaults kept as an offline
fallback.
Context: the registry site rendered infer agents add <name> on every card, which was broken for anything outside
those five. Worked around registry-side in inference-gateway/registry#118 by rendering the full <name> <url> --oci <image> --run form for unknown agents; that workaround can be dropped once the CLI resolves
names itself.
Acceptance Criteria
infer agents add grafana-agent resolves the agent through the agents catalog and writes a working config entry
Hardcoded defaults still win (or remain a fallback) when the catalog is unreachable
The error for a name in neither place still names the URL argument
Verified - yes, it was a real gap, and it's now implemented. PR: #1333 (ready for review)
Verification results:
Confirmed: infer agents add <name> failed with URL is required for unknown agent for anything outside the five hardcoded defaults in config/agent_defaults.go.
Confirmed: the agents catalog (inference-gateway/agentscatalog.json) lists 6 agents including grafana-agent, with spec.server (http/8080) and spec.scm.url pointing at the org. One correction to the issue: spec.deployment is empty in all current entries, so the image actually comes from the registry's ghcr.io/inference-gateway/<name>:<version> fallback (same logic as its deriveImage helper) - I implemented both paths.
Confirmed: skills install already had this exact catalog-fallback pattern to mirror.
What changed (290 lines, 3 files):
cmd/agents/catalog.go (new): fetches the catalog best-effort and resolves an entry into config.AgentDefaults - URL from spec.server with a free port picked like the built-ins, OCI from spec.deployment else the ghcr fallback, run only when an image is derivable.
cmd/agents/agents.go: 3-line change - the catalog is consulted only when built-in defaults are nil and no URL was passed; the URL is required for unknown agent error is unchanged; help text updated.
All three acceptance criteria hold: infer agents add grafana-agent writes a working entry (ghcr.io/inference-gateway/grafana-agent:0.3.9, run: true); built-ins win and work offline (catalog fetch is nil-on-failure); the unknown-name error still names the URL argument. Skipped: a config knob for the catalog URL (nobody asked), and --tag re-tagging for catalog-derived images (the existing "use --oci" error covers it).
Checks pass (go build, tests, full pre-commit gate). Follow-ups filed: [DOCS] issue in inference-gateway/docs (#819) and registry#121 to drop the registry-side workaround from PR #118 once this ships.
Activity
edenreich commentedon Sep 26, 2026
@infer Can you verify this? Do we need to implement this? use /ponytail:ponytail
inference-gateway-maintainer commentedon Sep 26, 2026
Model:
ollama_cloud/glm-5.3-flash· View JobTodos
Pull Request
#1333
✅ Infer Result: Success
Verified - yes, it was a real gap, and it's now implemented. PR: #1333 (ready for review)
Verification results:
infer agents add <name>failed withURL is required for unknown agentfor anything outside the five hardcoded defaults inconfig/agent_defaults.go.inference-gateway/agentscatalog.json) lists 6 agents includinggrafana-agent, withspec.server(http/8080) andspec.scm.urlpointing at the org. One correction to the issue:spec.deploymentis empty in all current entries, so the image actually comes from the registry'sghcr.io/inference-gateway/<name>:<version>fallback (same logic as itsderiveImagehelper) - I implemented both paths.skills installalready had this exact catalog-fallback pattern to mirror.What changed (290 lines, 3 files):
cmd/agents/catalog.go(new): fetches the catalog best-effort and resolves an entry intoconfig.AgentDefaults- URL fromspec.serverwith a free port picked like the built-ins, OCI fromspec.deploymentelse the ghcr fallback,runonly when an image is derivable.cmd/agents/agents.go: 3-line change - the catalog is consulted only when built-in defaults are nil and no URL was passed; theURL is required for unknown agenterror is unchanged; help text updated.cmd/agents/catalog_test.go: httptest table tests (scm-derived image, deployment image wins, third-party URL-only, unknown name, unreachable catalog).All three acceptance criteria hold:
infer agents add grafana-agentwrites a working entry (ghcr.io/inference-gateway/grafana-agent:0.3.9,run: true); built-ins win and work offline (catalog fetch is nil-on-failure); the unknown-name error still names the URL argument. Skipped: a config knob for the catalog URL (nobody asked), and--tagre-tagging for catalog-derived images (the existing "use --oci" error covers it).Checks pass (
go build, tests, full pre-commit gate). Follow-ups filed: [DOCS] issue in inference-gateway/docs (#819) and registry#121 to drop the registry-side workaround from PR #118 once this ships.Model:
ollama_cloud/glm-5.3-flash· Exit Code:0· Duration: 7m 38sTokens: 3,379,510 in · 30,053 out · 3,409,563 total (42 requests)
Tool calls: 62 total · 100% success rate
Traces
Stats
Triggered by edenreich · Infer Action · OSS
inference-gateway-releaser commentedon Sep 26, 2026
🎉 This issue has been resolved in version 0.209.0 🎉
The release is available on:
Your semantic-release bot 📦🚀