AGENTS.md
AGENTS.mdAGENTS.mdroot
Quality
94/100
Scores the file, not the repository.Length
255 words
5 headings · 0 code blocksRepository
30
— · pushed 395 days agoLast changed
3 days ago
First indexed 3 days ago.1# Agent Guidelines for OpenSearch Project23## Build/Test Commands4- **Run dev**: `bun run dev` (watches src/index.ts)5- **Run CLI**: `bun run cli` (starts interactive CLI)6- **Run tests**: `bun test` (runs all tests)7- **Run single test**: `bun test <test-file>` (e.g., `bun test test/generate-query.test.ts`)8- **Format/Lint**: Use Biome via `bunx biome format .` and `bunx biome lint .`910## Code Style & Conventions11- **Runtime**: Use Bun instead of Node.js/npm/pnpm (see .cursor/rules)12- **Formatting**: Tabs for indentation, single quotes for strings (biome.json)13- **Imports**: Organize imports enabled, use path aliases `@/*` for src, `@baml-client` for BAML14- **Types**: Strict TypeScript, interfaces for data structures, explicit return types15- **Naming**: PascalCase for React components/BAML functions, camelCase for variables/functions16- **Files**: .tsx for React components, .ts for utilities, .baml for BAML functions1718## BAML Integration19- **Source files**: Only edit files in `baml_src/` directory (*.baml files)20- **Generated code**: `baml_client/` is auto-generated from `baml_src/` - never edit directly21- **Functions**: Import and call via `import { b } from '@baml-client'; await b.SomeFunction(...)`22- **Types**: All classes/enums exported from `@baml-client` (e.g., `import { SearchResult } from '@baml-client'`)23- **Naming**: BAML functions use PascalCase (e.g., `GenerateQuery`, `Reflect`)24- **Prompts**: Include `{{ ctx.output_format }}` and `{{ _.role("user") }}` for user inputs25- **Schema**: Prefer enums over confidence numbers, use classes for structured outputs2627## Error Handling & Testing28- Use Bun's built-in test framework with `import { test, expect } from "bun:test"`29- Async/await for BAML function calls and API interactions30- Type-safe error handling with proper TypeScript types
Also in K-Mistele/opensearch
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| K-Mistele/opensearch.cursor/rules/baml.mdc · 30 | Cursor rules | style | 44/100 | 3 days ago | |
| K-Mistele/opensearch.cursor/rules/default.mdc · 30 | Cursor rules | buildtestlint-formatstyle+2 | 94/100 | 3 days ago | |
| K-Mistele/opensearch.cursor/rules/opensearch-project-structure.mdc · 30 | Cursor rules | setupteststylearch+4 | 81/100 | 3 days ago | |
| K-Mistele/opensearch.cursor/rules/use-bun-instead-of-node-vite-npm-pnpm.mdc · 30 | Cursor rules | setupteststyle | 73/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| aaif-goose/gooseAGENTS.md · 52k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| code-yeongyu/oh-my-openagentpackages/web/AGENTS.md · 67k | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 2 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199k | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| mui/material-uiAGENTS.md · 99k | AGENTS.md | setupbuildtestlint-format+9 | 100/100 | 3 days ago | |
| TryGhost/Ghoste2e/AGENTS.md · 55k | AGENTS.md | setupteststylearch+2 | 100/100 | 3 days ago | |
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| trick77/agents-md-syncAGENTS.md · 2 | AGENTS.md | setupbuildteststyle+5 | 100/100 | 3 days ago | |
| elastic/elasticsearchx-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/AGENTS.md · 78k | AGENTS.md | buildtestlint-formatstyle+2 | 100/100 | 3 days ago |
