AGENTS.mdA

AGENTS.md from xiaoconstantine/sgrep is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add xiaoconstantine/sgrep/AGENTS.md@git:20260821.8fc348a

Pins git:20260821.8fc348a in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
AGENTS.md file
Repository
xiaoconstantine/sgrep
Path
AGENTS.md
Versions recorded
3
Latest version
git:20260821.8fc348a, committed Aug 21, 2026
First version recorded
Nov 25, 2025
Size
2,052 bytes
Repository stars
21
License
Apache-2.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# sgrep - Agent Integration Guide

## Build & Test

```bash
# Build
go build -o sgrep ./cmd/sgrep

# Test
go test ./...

# Lint (installs the pinned golangci-lint with this module's Go toolchain)
make lint

# Install
go install ./cmd/sgrep
```

## Setup

```bash
# Install llama.cpp (macOS)
brew install llama.cpp

# Download embedding model and verify installation
sgrep setup
```

The embedding server auto-starts when needed. No manual server management required.

## Usage for Coding Agents

sgrep is designed to complement `ripgrep` and `ast-grep`:

| Tool | Use Case | Example |
|------|----------|---------|
| sgrep | Find by intent | `sgrep "authentication logic"` |
| ast-grep | Structural patterns | `sg -p '$fn($ctx, $err)'` |
| ripgrep | Exact strings | `rg "JWT_SECRET"` |

### Recommended Workflow

1. **Semantic discovery** → Find relevant files/functions
2. **Structural search** → Match patterns in those files
3. **Exact search** → Find specific symbols

### Output Modes

```bash
# Minimal (for token efficiency)
sgrep -q "error handling"
# → auth/handler.go:45-67

# With context
sgrep -c "error handling"
# → auth/handler.go:45-67
#     func handleError(err error) {
#       ...
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add xiaoconstantine/sgrep/AGENTS.md@sha256:f9b125abe5ae06dc

The line at the top of this page pins the label git:20260821.8fc348a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_ctuzqu7hywu5dwiu.svg)](https://markdownregistry.com/a/art_ctuzqu7hywu5dwiu)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 3 versions of this file, between Nov 25, 2025 and Aug 21, 2026, about one every 135 days.

versioncommittedcommitsizeaudit
git:20260821.8fc348a latest2026-08-21 8fc348a 2,052 BA view · diff
git:20251125.80a9e702025-11-25 80a9e70 1,998 BA view · diff
git:20251125.343d47b2025-11-25 343d47b 1,555 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2052 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

xiaoconstantine/sgrep · 21 stars · license Apache-2.0 · pushed 2026-09-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_ctuzqu7hywu5dwiu
GET https://markdownregistry.com/api/v1/resolve?ref=xiaoconstantine/sgrep/AGENTS.md
GET https://markdownregistry.com/api/v1/blob/f9b125abe5ae06dc04367ad2d3955b068a0e29092977357683b00a86359c9e69

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: how to write a good AGENTS.md · AGENTS.md vs CLAUDE.md · which agent file does what.

More from xiaoconstantine/sgrep

sgrep SKILL.md skill
xiaoconstantine/sgrep · SKILL.md · Semantic and hybrid code and conversation search for intent-based queries. Use when exploring unfamiliar codebases…
git:20260821.03b1355 · audit A · 21 stars
sgrep SKILL.md skill
xiaoconstantine/sgrep · plugins/sgrep/skills/sgrep/SKILL.md · Semantic and hybrid code and conversation search for intent-based queries. Use when exploring unfamiliar codebases…
git:20260821.03b1355 · audit A · 21 stars

Every file in xiaoconstantine/sgrep

Other files named AGENTS.md

AGENTS.md AGENTS.md file
morluto/rea · AGENTS.md
git:20261102.920d634 · audit A · 433,876 stars
AGENTS.md AGENTS.md file
obra/superpowers · AGENTS.md
git:20261020.b739a8a · audit A · 314,583 stars
AGENTS.md AGENTS.md file
affaan-m/ecc · AGENTS.md
git:20261030.f29e332 · audit A · 299,696 stars
AGENTS.md AGENTS.md file
firecrawl/firecrawl · AGENTS.md
git:20261008.5a75dca · audit A · 199,595 stars
AGENTS.md AGENTS.md file
dietrichgebert/ponytail · AGENTS.md
git:20261008.2a1fe84 · audit A · 185,249 stars
AGENTS.md AGENTS.md file
graphify-labs/graphify · AGENTS.md
git:20260926.98d73fe · audit A · 144,492 stars
AGENTS.md AGENTS.md file
garrytan/gstack · AGENTS.md
git:20261107.ef99eb5 · audit A · 140,694 stars
AGENTS.md AGENTS.md file
juliusbrussee/caveman · AGENTS.md
git:20261106.e45976c · audit A · 118,366 stars

Browse by kind, by grade A, or by owner.