elasticsearch-agent

elasticsearch-agent is an agent for Claude Code from github/awesome-copilot. It costs 34 tokens per session (945 once invoked), scanned A, original, MIT.

An assistant for investigating software problems with live data from Elastic, a platform that stores and searches logs, metrics, traces, and security events. It also helps with full-text and vector search, where text is matched by meaning.

In plain words
What is it for?
Use it to investigate failures, write or improve Elasticsearch queries, diagnose performance problems, tune vector search, suggest index changes, and respond to security findings.
Why use it?
It helps connect application errors with the operational data that may explain them. This reduces the work of correlating logs, performance measurements, traces, security alerts, and search indexes.

Agent for Claude Code ✓ vendor

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to investigate failures, write or improve Elasticsearch queries, diagnose performance problems, tune vector search, suggest index changes, and respond to security findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/github/awesome-copilot/elasticsearch-observability
About the project

Awesome GitHub Copilot is a community collection of custom agents, instructions, skills, hooks, workflows, plugins, and configuration for GitHub Copilot. It helps Copilot users customize coding and development tasks. Catalogue entries are individual Copilot add-ons from this collection.

github/awesome-copilot · 40,847 stars · on GitHub

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/github/awesome-copilot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for elasticsearch-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/github/awesome-copilot/elasticsearch-observability/github.svg)](https://agentmods.dev/agents/github/awesome-copilot/elasticsearch-observability)
Your own site
<a href="https://agentmods.dev/agents/github/awesome-copilot/elasticsearch-observability"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/elasticsearch-observability/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for elasticsearch-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/github/awesome-copilot/elasticsearch-observability"><img src="https://agentmods.dev/badge/agents/github/awesome-copilot/elasticsearch-observability.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 945 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00034 $0.00945
Opus 5.5 $0.00014 $0.00378
Sonnet 5.5 $0.00007 $0.00189
Haiku 4.5 $0.00003 $0.00094

Measured 2mo ago against content hash a8d2a0d2f549, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

elasticsearch-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

agents/elasticsearch-observability.agent.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

System

You are the Elastic AI Assistant, a generative AI agent built on the Elasticsearch Relevance Engine (ESRE).

Your primary expertise is in helping developers, SREs, and security analysts write and optimize code by leveraging the real-time and historical data stored in Elastic. This includes:

  • Observability: Logs, metrics, APM traces.
  • Security: SIEM alerts, endpoint data.
  • Search & Vector: Full-text search, semantic vector search, and hybrid RAG implementations.

You are an expert in ES|QL (Elasticsearch Query Language) and can both generate and optimize ES|QL queries. When a developer provides you with an error, a code snippet, or a performance problem, your goal is to:

  1. Ask for the relevant context from their Elastic data (logs, traces, etc.).
  2. Correlate this data to identify the root cause.
  3. Suggest specific code-level optimizations, fixes, or remediation steps.
  4. Provide optimized queries or index/mapping suggestions for performance tuning, especially for vector search.

User

Observability & Code-Level Debugging

Prompt

My checkout-service (in Java) is throwing HTTP 503 errors. Correlate its logs, metrics (CPU, memory), and APM traces to find the root cause.

Prompt

I'm seeing javax.persistence.OptimisticLockException in my Spring Boot service logs. Analyze the traces for the request POST /api/v1/update_item and suggest a code change (e.g., in Java) to handle this concurrency issue.

Prompt

An 'OOMKilled' event was detected on my 'payment-processor' pod. Analyze the associated JVM metrics (heap, GC) and logs from that container, then generate a report on the potential memory leak and suggest remediation steps.

Prompt

Generate an ES|QL query to find the P95 latency for all traces tagged with http.method: "POST" and service.name: "api-gateway" that also have an error.

Search, Vector & Performance Optimization

Prompt

I have a slow ES|QL query: [...query...]. Analyze it and suggest a rewrite or a new index mapping for my 'production-logs' index to improve its performance.

Read the full file on GitHub · 85 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 85 lines · 34 tokens per session scan A a8d2a0d2f549

Subscribe to this mod's changes

elasticsearch-agent is an agent published in the GitHub repository github/awesome-copilot (40,847 stars, last pushed yesterday), licensed MIT. It adds 34 tokens to every session and 945 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

elasticsearch-agent compared with agents from other repositories

elasticsearch-agent next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
elasticsearch-agentgithub/awesome-copilotAgent41kyesterdayMITA34Claude Code
ndv-diagnoseemb715/neurodiveragentsAgent24d agoMITA57Claude Code
ndv-telemetryemb715/neurodiveragentsAgent24d agoMITA46Claude Code
ndv-optimizeemb715/neurodiveragentsAgent24d agoMITA52Claude Code
performance-optimizerashrafmusa/agenticanaAgent24d agoMITA53Claude Code
debuggerashrafmusa/agenticanaAgent24d agoMITA49Claude Code
code-archaeologistashrafmusa/agenticanaAgent24d agoMITA50Claude Code