Skip to content

feat(agent-studio): add Agent Studio commands (agents, providers, secret keys)#265

Closed
Nagriar wants to merge 2 commits into
mainfrom
feat/agent-studio-commands
Closed

feat(agent-studio): add Agent Studio commands (agents, providers, secret keys)#265
Nagriar wants to merge 2 commits into
mainfrom
feat/agent-studio-commands

Conversation

@Nagriar

@Nagriar Nagriar commented Jul 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds a full command surface for Algolia Agent Studio, nested under a new top-level algolia agent-studio command:
    • agent-studio agentslist, get, create, update, delete, publish, unpublish, invalidate-cache, completions, plus domains (list/get/add/delete/bulk-add/bulk-delete) and conversations (list/get/delete/export) subgroups
    • agent-studio providerslist, get, create, update, delete, models
    • agent-studio secret-keyslist, get, create, update, delete
  • Wires a new AgentStudioClient into cmdutil.Factory, backed by the algoliasearch-client-go agent-studio SDK package.
  • ACL annotations on each command are taken directly from the SDK's per-endpoint doc comments (settings/editSettings/admin/logs/search), matching the existing auth-check convention.
  • Commands follow existing patterns in the codebase (compositions, crawler): JSON-first output, --confirm on deletes, file-based JSON body input for create/update of complex resources.

Test plan

  • go build ./...
  • go vet ./...
  • go test ./... (all packages pass, including new httpmock-based tests for every command)
  • gofmt -l clean
  • Manually exercised algolia agent-studio --help, agent-studio agents get --help, agent-studio providers list --help and confirmed the old flat agents/providers/secret-keys top-level commands no longer exist

🤖 Generated with Claude Code

Xavier Grand and others added 2 commits July 11, 2026 11:59
…cret keys

Adds `algolia agents` (with `domains` and `conversations` subgroups),
`algolia providers`, and `algolia secret-keys` command groups backed by
the algoliasearch-client-go agent-studio SDK, wiring a new
AgentStudioClient into the command factory.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…a top-level agent-studio command

Groups the previously flat `agents`, `providers`, and `secret-keys`
commands under `algolia agent-studio` so the Agent Studio surface reads
as one cohesive product area instead of three unrelated top-level verbs.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 255 complexity · 340 duplication

Metric Results
Complexity 255
Duplication 340

View in Codacy

TIP This summary will be updated as you push new changes.

@Nagriar Nagriar closed this Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant