Skip to main content
subagent CX Codex

opensearch-expert — Claude Code subagent for OpenSearch

The opensearch-expert subagent helps configure OpenSearch clusters, indexes, and queries. Call on it when working through scaling, security, or performance issues.

MIT ★ 1,029 updated 2025-10-15

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/opensearch-expert.md
Open on GitHub

What opensearch-expert does

opensearch-expert covers cluster configuration, shard and replica choices, index design, and query tuning. It can produce setup documentation, query execution plans, health reports, and scripts for routine maintenance. Its guidance ties schema design to the ways an application reads data.

The subagent also handles full-text analyzers, ingestion pipelines, index retention, monitoring with OpenSearch Dashboards, and snapshot recovery plans. JVM tuning and node roles are among the configuration areas it considers. Shard counts should match node capacity, and query latency needs benchmarking; without those checks, a proposed configuration has not been validated under load.

What it helps with

  • Configure OpenSearch clusters and assign node roles
  • Choose shard and replica strategies for cluster capacity
  • Reduce query resource use through execution-plan changes
  • Plan snapshots and test data recovery
  • Set up cluster monitoring and alerts in OpenSearch Dashboards

Example prompts for the agent

  • Review this OpenSearch cluster configuration and recommend suitable node roles.
  • Tune this OpenSearch index query for its schema and access patterns.
  • Draft a snapshot backup plan and steps to test OpenSearch recovery.

How to install opensearch-expert

Manually: put the files in place

.claude/agents/opensearch-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean

Questions about opensearch-expert

How do I install opensearch-expert in Claude Code?

Add the subagent file at .claude/agents/opensearch-expert.md in your Claude Code project.

What does opensearch-expert do?

It assists with OpenSearch cluster setup and scaling, index strategies, query tuning, and troubleshooting performance issues.

What should I check when choosing OpenSearch shard counts?

Match the shard count to the cluster’s node capacity. The subagent also calls for benchmarking query latency.

Source text

opensearch-expert.md · MIT
---
name: opensearch-expert
description: Expert in OpenSearch cluster management, query optimization, indexing strategies, and performance tuning. Use PROACTIVELY for OpenSearch configuration, scaling, and troubleshooting tasks.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Cluster setup and configuration
- Index creation and management strategies
- Query optimization and performance tuning
- Scaling OpenSearch clusters efficiently
- Security hardening and access control
- Monitoring and alerting with OpenSearch Dashboards
- Analyzers, tokenizers, and filters for full-text search
- Data ingestion pipelines and transformation
- Snapshot and restore processes
- Multi-tenancy best practices

## Approach

- Prioritize alignment of schema design with access patterns
- Implement efficient shard and replica strategies
- Design queries to minimize resource consumption
- Utilize node roles to balance workload
- Configure index lifecycle management for data retention
- Use OpenSearch SQL plugin for complex queries
- Optimize resource allocation with JVM tuning
- Employ structured logging for visibility
- Integrate anomaly detection for predictive insights
- Regularly review and update cluster settings

## Quality Checklist

- Ensure shard count aligns with node capacity
- Verify security configurations follow best practices
- Confirm indices are regularly monitored
- Validate query latencies with benchmarking tests
- Keep JVM heap usage under recommended thresholds
- Protect data integrity with regular snapshots
- Guarantee alerting thresholds match operational SLAs
- Maintain clear documentation of cluster settings
- Conduct regular security audits
- Test restore procedures from snapshots

## Output

- Detailed cluster configuration setup documentation
- Indexed data structures optimized for performance
- Queries with improved execution plans
- Reports on system health and performance metrics
- Visualizations demonstrating data insights
- Automated scripts for routine maintenance tasks
- Comprehensive backup and recovery plans
- Security audits and compliance reports
- Performance tuning logs and findings
- Anomaly detection configurations and alerts

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Data and databases →

From the same set137

The whole set →
html-expert html-expert — a subagent that builds semantic, accessible markup aligned with WCAG rules. It cleans up document structure, meta tags, and form elements. CX Codex ★ 1,029repo stars actix-expert actix-expert — a Claude Code subagent for Actix and Rust web work, covering routes, middleware, errors, tests, and performance checks. CX Codex ★ 1,029repo stars elixir-expert elixir-expert — an Elixir-focused subagent for Claude: pattern matching, supervision trees, GenServers, Phoenix channels and ExUnit tests, with Dialyzer in the checklist. CX Codex ★ 1,029repo stars grafana-expert grafana-expert designs Grafana dashboards, configures alert rules, and optimizes queries for metrics backends. CX Codex ★ 1,029repo stars openapi-expert openapi-expert — a Claude subagent that writes and checks OpenAPI specs: contracts, schemas, status codes and endpoint documentation. CX Codex ★ 1,029repo stars kubernetes-expert kubernetes-expert designs Kubernetes manifests, configures cluster autoscaling, and troubleshoots workload issues. Helps prepare container deployments and RBAC policies. CX Codex ★ 1,029repo stars ocaml-expert ocaml-expert — an OCaml subagent for typed functional design, code review, testing, and performance work when a project needs deeper language-specific guidance. CX Codex ★ 1,029repo stars tauri-expert tauri-expert — a Claude subagent for Tauri desktop apps: config files, Rust commands, IPC and the frontend side, plus a checklist to run before release. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open