api-layer Cursor ruleA
api-layer from coddy-project/coddy-agent is a Cursor rule: instructions the Cursor agent follows in that repo.
mdr add coddy-project/coddy-agent/.cursor/rules/api-layer.mdc@git:20261007.7a61267Pins git:20261007.7a61267 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- Cursor rule
- Repository
- coddy-project/coddy-agent
- Path
.cursor/rules/api-layer.mdc- Versions recorded
- 6
- Latest version
- git:20261007.7a61267, committed Oct 7, 2026
- First version recorded
- May 7, 2026
- Size
- 3,109 bytes
- Repository stars
- 178
- License
- MIT
Optional HTTP gateway, OpenAPI spec source of truth.
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
# HTTP API layer (`external/httpserver`) - Built with **`-tags http`**. SPA root **`/`** (`go:embed` from **`external/ui`**) links only when you add **`tags=ui`** with **`go build -tags=http,ui`** (see **`mountEmbeddedSPARoot`** splits in **`spa_embed_ui.go`** / **`spa_no_ui.go`**). Handlers are registered in **`Server.New`** in **`server.go`**. - **`openapi.go`** builds the served OpenAPI 3 document (`openAPISpec`). It is the **programmatic** spec; it must describe the same paths, methods, parameters, schemas, and response shapes as the live handlers. - After any change to routes or externally visible request or response behavior, update **`openAPISpec`** and extend **`server_test.go`** (or add tests) under the **`http` build tag. - User-facing narrative lives in **`docs/reference/http-api.md`**; keep it aligned when endpoints or semantics change. …
Read the whole file at its exact version.
How to install
mdr add coddy-project/coddy-agent/.cursor/rules/api-layer.mdc@sha256:964b45d41b59c9a4The line at the top of this page pins the label git:20261007.7a61267, 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_qfla37xrizfyy4h3)
4 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between May 7, 2026 and Oct 7, 2026, about one every 31 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261007.7a61267 latest | 2026-10-07 | 7a61267 | 3,109 B | A | view · diff |
| git:20261003.6804b95 | 2026-10-03 | 6804b95 | 2,754 B | A | view · diff |
| git:20261003.1568dd5 | 2026-10-03 | 1568dd5 | 2,336 B | A | view · diff |
| git:20260912.c2d53a8 | 2026-09-12 | c2d53a8 | 1,111 B | A | view · diff |
| git:20260510.9ae35e3 | 2026-05-10 | 9ae35e3 | 1,091 B | A | view · diff |
| git:20260507.fc5df68 | 2026-05-07 | fc5df68 | 884 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (3109 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
coddy-project/coddy-agent · 178 stars · license MIT · pushed 2026-10-20 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_qfla37xrizfyy4h3 GET https://markdownregistry.com/api/v1/resolve?ref=coddy-project/coddy-agent/.cursor/rules/api-layer.mdc GET https://markdownregistry.com/api/v1/blob/964b45d41b59c9a4335e8526d4a5eba9eeb420924ce0a1990edf5bafaa30f405
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: Cursor rules vs AGENTS.md · which agent file does what.
More from coddy-project/coddy-agent
Every file in coddy-project/coddy-agent