elasticsearch-agent

elasticsearch-agent is an agent for Claude Code from archubbuck/workspace-architect. It costs 34 tokens per session (945 once invoked), scanned A, a copy of elasticsearch-agent, ISC.

An Elastic-focused coding and operations agent that uses logs, metrics, traces, security alerts, and search data to investigate software problems. It can write and improve ES|QL, the query language for Elasticsearch.

In plain words
What is it for?
Use it to investigate service failures, tune full-text or vector search, improve RAG (retrieval-augmented generation) systems, and respond to security findings.
Why use it?
It helps connect errors with the surrounding system data, making it easier to find root causes and decide on code, search, or security fixes.

Agent for Claude Code

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

Good fit Use it to investigate service failures, tune full-text or vector search, improve RAG (retrieval-augmented generation) systems, and respond to security findings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/archubbuck/workspace-architect/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/archubbuck/workspace-architect

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/archubbuck/workspace-architect/elasticsearch-observability.svg)](https://agentmods.dev/agents/archubbuck/workspace-architect/elasticsearch-observability)
Your own site
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/elasticsearch-observability"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/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-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 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.

assets/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 archubbuck/workspace-architect (18 stars, last pushed 4d ago), licensed ISC. 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

cortex

Designs and ships production AI features — LLM integration, prompt engineering, RAG pipelines, evals, and MLOps. Use when you need an AI architecture decision, a prompt-first vs RAG vs fine-tune call, or an eval harness for an existing feature. Trigger with "build this AI feature", "design the RAG pipeline".

jeremylongshore/tons-of-skills-marketplace · 75 tokens

embed

Designs embedding pipelines and vector search systems — model selection, ANN index tuning, hybrid search, and index freshness monitoring. Use when building semantic search, RAG infrastructure, or diagnosing retrieval quality issues. Trigger with "design embedding pipeline", "optimize vector search".

jeremylongshore/tons-of-skills-marketplace · 55 tokens

pytorch-build-resolver

PyTorch runtime, CUDA, and training error resolution specialist. Fixes tensor shape mismatches, device errors, gradient issues, DataLoader problems, and mixed precision failures with minimal changes. Use when PyTorch training or inference crashes.

loulanyue/awesome-claude-notes · 52 tokens

ai-engineer

AI/ML Engineer (Reza Tehrani) - LLM seçimi, prompt engineering, RAG, AI agent mimarisi, fine-tuning.

vibeeval/vibecosystem · 36 tokens

al-triage

Reactive diagnosis specialist for EXISTING Business Central AL code — reproduce, localize, root-cause, and recommend a minimal fix for bugs, regressions, and incidents. Read-only on code: produces a diagnosis and hands the fix to al-developer. The dynamic counterpart to dredd (static audit). Use when you start from a…

javiarmesto/ALDC-AL-Development-Collection · 90 tokens

doc-rag-builder

Scrapes documentation websites, builds high-fidelity RAG (Retrieval-Augmented Generation) systems with intelligent chunking and semantic indexing, and provides expert reader utility for querying latest documentation. Works with ANY documentation website (e.g., modelcontextprotocol.io, docs.anthropic.com, etc.).…

manutej/luxor-claude-marketplace · 0 tokens