elasticsearch-agent

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

An AI assistant for Elasticsearch, a search and data platform, using live observability, security, and vector-search data.

In plain words
What is it for?
It is for debugging services, writing and optimizing Elasticsearch Query Language (ES|QL) queries, improving vector search and retrieval-augmented generation (RAG), and responding to security threats.
Why use it?
It helps developers and security teams connect application errors with logs, metrics, traces, alerts, and search data to find causes and improvements.

Agent for Claude Code

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

Good fit It is for debugging services, writing and optimizing Elasticsearch Query Language (ES|QL) queries, improving vector search and retrieval-augmented generation (RAG), and responding to security threats.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kimiski33/awesome-copilot/elasticsearch-observability
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/KIMISKI33/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/kimiski33/awesome-copilot/elasticsearch-observability.svg)](https://agentmods.dev/agents/kimiski33/awesome-copilot/elasticsearch-observability)
Your own site
<a href="https://agentmods.dev/agents/kimiski33/awesome-copilot/elasticsearch-observability"><img src="https://agentmods.dev/badge/agents/kimiski33/awesome-copilot/elasticsearch-observability.svg" alt="Measured on agentmods" 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 100% copy Near-identical to another mod 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 $0.00017 $0.00473
Sonnet 5 $0.00007 $0.00189
Haiku 4.5 $0.00003 $0.00094

Measured 4d ago against content hash a8d2a0d2f549, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, 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 4d 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

This is a copy

100% identical to elasticsearch-agent — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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. 4d 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 KIMISKI33/awesome-copilot (1 stars, last pushed 2d ago), licensed MIT. It adds 34 tokens to every session and 945 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to elasticsearch-agent, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

elasticsearch-agent

Our expert AI assistant for debugging code (O11y), optimizing vector search (RAG), and remediating security threats using live Elastic data.

archubbuck/workspace-architect · 34 tokens

elasticsearch-observability

Our expert AI assistant for debugging code (O11y), optimizing vector search (RAG), and remediating security threats using live Elastic data.

asleekgeek/claude-multiagent-catalogue · 36 tokens

wiki-qa-probe

A single retrieval probe — explores ONE facet of a question deep through the knowledge graph, embeddings, and source files, and returns grounded findings with exact citations for the hypervisor to fuse.

bearlike/Assistant · 43 tokens

qdrant-expert

Configure and operate the vector store in production. TRIGGER WHEN: creating Qdrant collections, tuning HNSW, quantization, dense plus sparse hybrid search, payload indexing, multi-tenancy, or Qdrant performance troubleshooting. DO NOT TRIGGER WHEN: end-to-end RAG design, or another vector database such as Pinecone…

acaprino/daodan · 91 tokens

FAI LangChain Expert

LangChain framework specialist — LCEL expression language, chains, agents with tool use, retrievers, memory, callbacks, LangSmith tracing, and production RAG pipeline patterns.

frootai/frootai · 41 tokens

rag-evaluator

Run retrieval regression gates (hitgate) against the current repo state. Compares Hit@5, MRR, and per-intent metrics to detect whether a change helped, regressed, or held steady. Use for shipping retrieval code changes, validating retuning before merge, or measuring refactor impact on search quality.

LucasSantana-Dev/sharekit · 68 tokens