project-context

project-context is a cursor rule for Cursor from one3qualsone/elastic-security-agent-mesh. It costs 752 tokens per session, scanned A, original, Apache-2.0.

A repository rules file describing the design of an autonomous security operations platform built with Elastic tools. It documents the agents, workflows, shared investigation data, and risk controls.

In plain words
What is it for?
Use it when modifying security agents, workflow definitions, knowledge indexes, investigation state, or governance rules.
Why use it?
It gives coding agents the project context and conventions needed before making structural changes.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/one3qualsone/elastic-security-agent-mesh/project-context
Clone the repo
git clone --depth 1 https://github.com/one3qualsone/elastic-security-agent-mesh

Made for: Cursor.

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 project-context

README.md
[![agentmods](https://agentmods.dev/badge/rules/one3qualsone/elastic-security-agent-mesh/project-context.svg)](https://agentmods.dev/rules/one3qualsone/elastic-security-agent-mesh/project-context)
Your own site
<a href="https://agentmods.dev/rules/one3qualsone/elastic-security-agent-mesh/project-context"><img src="https://agentmods.dev/badge/rules/one3qualsone/elastic-security-agent-mesh/project-context.svg" alt="Measured on agentmods" height="20"></a>
Per session 752 This file is loaded in full into every session.
When invoked 752 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.00752 $0.00752
Opus 5 $0.00376 $0.00376
Sonnet 5 $0.00150 $0.00150
Haiku 4.5 $0.00075 $0.00075

Measured 4d ago against content hash 0b401993c470, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

project-context 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.

.cursor/rules/project-context.mdc · 71 lines

How it starts

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

Elastic Security Agent Mesh

Multi-agent autonomous SOC built natively on Elastic (Agent Builder + Workflows + Elasticsearch). Agents are domain specialists that discover each other via a shared agent-registry index and collaborate through investigation-contexts.

Architecture (4 + 2 Layers)

  1. Orchestrator — routes user/alert requests to specialists via semantic search on agent-registry
  2. Specialist Agents — Detection Engineering, Threat Intelligence, L1 Triage Analyst, L2 Investigation Analyst, Forensics, Compliance, SOC Operations (each in agents/definitions/)
  3. Shared Tool Workflows — reusable YAML workflows in workflows/ (enrichment, search, cases, alerts, endpoint, VirusTotal)
  4. Knowledge Managementkb-* indices with semantic_text fields; CRUD via workflows/knowledge/
  5. Investigation Contextinvestigation-contexts index tracks shared state across multi-agent investigations (workflows/investigation/)
  6. Governanceaction-policies index with tiered risk controls; checked before high-impact actions (workflows/governance/)

Read ROADMAP.md before making structural changes.

File Conventions

  • Agent definitions: agents/definitions/{name}.yaml (reference configs, not executable workflows)
  • Setup workflows: agents/setup/ (index creation, agent registration)
  • Tool workflows: workflows/{category}/{name}.yaml
  • Mesh-only: workflows/mesh/, workflows/investigation/, workflows/governance/, agents/
  • Open-sourceable: everything in workflows/ except mesh/, investigation/, governance/

Workflow YAML Patterns

  • Required fields: name, steps; optional: description, tags, triggers, consts, inputs, outputs
  • Step types: console, http, elasticsearch.search, elasticsearch.index, elasticsearch.request, kibana.request, kibana.cases, kibana.post_agent_builder_converse, foreach, parallel, wait, if
  • Variables: {{ consts.x }}, {{ inputs.x }}, {{ steps.step_name.output.x }}, Liquid templating
  • Secrets go in consts with placeholder values; real values in environment variables (never committed)

Read the full file on GitHub · 71 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 · 71 lines · 752 tokens per session scan A 0b401993c470

Subscribe to this mod's changes

project-context is a cursor rule published in the GitHub repository one3qualsone/elastic-security-agent-mesh (12 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 752 tokens to every session, about $0.0038 per session on Opus 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-08-30.