AGENTS.mdA
AGENTS.md from xiaoconstantine/sgrep is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add xiaoconstantine/sgrep/AGENTS.md@git:20260821.8fc348aPins 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
mdr add xiaoconstantine/sgrep/AGENTS.md@sha256:f9b125abe5ae06dcThe 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20260821.8fc348a latest | 2026-08-21 | 8fc348a | 2,052 B | A | view · diff |
| git:20251125.80a9e70 | 2025-11-25 | 80a9e70 | 1,998 B | A | view · diff |
| git:20251125.343d47b | 2025-11-25 | 343d47b | 1,555 B | A | view |
Audit of the latest version
- 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
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
Every file in xiaoconstantine/sgrep