Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By elasticv0.17.0Elastic-2.0In 1 marketplace
Collects Elastic Stack diagnostics and gets an analysis written by your own deployment's Agent Builder agent. Analysis runs on the cluster, not locally, and every thread is saved to Kibana conversation history. Needs an Elastic deployment with ESDiag assets and model access, plus a local esdiag setup.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
kibana, elastic-stack, diagnostics, logstash, troubleshooting, agent-builder, cluster-analysis, elastic ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Collect, process, and analyze Elastic Stack diagnostics from Claude Code, Codex, or OpenCode.
The analysis itself runs on your Elastic deployment, through the diagnostic skill that esdiag setup output installs into Agent Builder. Your local agent orchestrates and presents; the cluster reasons. Every analysis and follow-up is saved as a normal Kibana Agent Builder conversation, so you can continue the same thread from Kibana later.
That trade is a transfer, not a saving: cluster input tokens grow with each turn as the conversation replays.
/plugin marketplace add elastic/esdiag
/plugin install esdiag@esdiag
Claude Code discovers the skill through .claude-plugin/plugin.json. The explicit skill command is /esdiag:esdiag, or you can ask naturally.
The package also includes .codex-plugin/plugin.json, pointing at the same generated skills/ directory. Codex users working in this repository can invoke the canonical project skill as $esdiag without installing the package.
OpenCode discovers the same canonical skill directly at .agents/skills/esdiag/. No JavaScript or TypeScript OpenCode plugin is needed because this integration is an Agent Skill, not an OpenCode event hook.
Any installed esdiag binary can instead install its matching offline skill in a supported user scope:
esdiag setup skills
Name claude, codex, or opencode to pick specific agents, as in esdiag setup skills claude. Existing locally modified skills are protected unless the user explicitly chooses --force.
These are separate problems with separate prerequisites and separate failure modes. Most users only need the second.
An Elastic deployment with the ESDiag assets installed (esdiag setup output), a suitable subscription, and model access.
Model access is a deployment prerequisite that no esdiag command provisions. Satisfy it by activating the Elastic Inference Service through Cloud Connect with an Elastic Cloud account, or by configuring your own LLM provider and connector.
Run the terminal-native initializer to configure a diagnostic user, encrypted credentials, linked Elasticsearch/Kibana output deployment, collection host, and first saved job. Do not provide secrets to an agent conversation.
esdiag init
esdiag agent ask uses this same output deployment. It needs no analysis-specific URL, API-key, inference, job, freshness, or local conversation configuration.
| Host | Explicit invocation |
|---|---|
| Claude Code plugin | /esdiag:esdiag |
| Codex project skill | $esdiag |
| OpenCode project skill | Ask OpenCode to use the esdiag skill |
For every host, natural requests work too: "Check my ESDiag connection" or "How is my cluster looking today?"
Submit a finite question to the configured Agent Builder agent:
esdiag agent ask "Analyze diagnostic <diagnostic-id>"
The YAML outcome includes the answer, a conversation ID, and a Kibana handoff link. Use --conversation <id> for an explicit follow-up; omitting it starts a new Kibana conversation. An interrupted request that returns retry_safe: false must not be resent automatically: continue from the Kibana link instead.
The agent ID defaults to elastic-ai-agent and can be overridden with --agent. Inference routing and Agent Builder tooling belong to the deployment configuration, not local environment variables.
Collection issues API calls against a live production cluster, so it follows the request rather than a default:
ESDIAG_DIAGNOSTIC_MAX_AGE, and asks first when the latest is older or absentThe bundled skill under skills/ is generated from .agents/skills/esdiag/, including its references/ directory:
./bin/sync-plugin-skill.sh # regenerate
./bin/sync-plugin-skill.sh --check # fail on drift
./tests/plugin.sh # non-networked tests
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub elastic/esdiag --plugin esdiagPlugins from other owners that cover similar ground