AGENTS.md@frontendA
AGENTS.md@frontend from gosuda/portal-tunnel is an AGENTS.md file: the standing instructions coding agents read in that repo.
mdr add gosuda/portal-tunnel/frontend/AGENTS.md@git:20261107.870addaPins git:20261107.870adda in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 14 of 14 checks passed
- Kind
- AGENTS.md file
- Repository
- gosuda/portal-tunnel
- Path
frontend/AGENTS.md- Versions recorded
- 6
- Latest version
- git:20261107.870adda, committed Nov 7, 2026
- First version recorded
- May 29, 2026
- Size
- 1,103 bytes
- Repository stars
- 301
- License
- MIT
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
# Frontend AGENTS.md
## Frontend-Backend Contracts
1. Browser requests use the Go relay API directly through same-origin `/api/*`, `/sdk/*`, and `/discovery*` paths.
2. Relay path constants are owned by `../types/paths.go` and mirrored in `src/lib/apiPaths.ts`.
3. JSON control-plane responses use the `{ ok, data?, error?: { code, message } }` envelope.
4. Admin auth uses bearer tokens returned by `/api/admin/auth/login`; `src/lib/apiClient.ts` attaches them to admin and policy requests.
5. `VITE_PORTAL_API_BASE_URL` is the only built-in API origin setting. Leave it empty for same-origin deployment.
6. Lease and policy wire fields use snake_case. Go types in `../types/` own the contract mirrored by `src/types/api.ts`.
7. Lease metadata parsing and UI defaults are owned by `src/lib/metadata.ts`.
## Frontend Conventions
1. Do not add `useCallback`; React Compiler handles memoization.
2. Feature state lives in page-level hooks and is prop-drilled. Theme is the exception.
3. Only `handleBPSChange` uses optimistic update with rollback. Other admin actions await the API and refresh state.Read the whole file at its exact version.
How to install
mdr add gosuda/portal-tunnel/frontend/AGENTS.md@sha256:9e6ea1d65086ac38The line at the top of this page pins the label git:20261107.870adda, 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_4w7xsxecjb3fqtfq)
5 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 6 versions of this file, between May 29, 2026 and Nov 7, 2026, about one every 32 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261107.870adda latest | 2026-11-07 | 870adda | 1,103 B | A | view · diff |
| git:20260804.df9da5d | 2026-08-04 | df9da5d | 1,205 B | A | view · diff |
| git:20260601.8db18fc | 2026-06-01 | 8db18fc | 4,895 B | A | view · diff |
| git:20260601.a7669b7 | 2026-06-01 | a7669b7 | 4,807 B | A | view · diff |
| git:20260529.893ca3a | 2026-05-29 | 893ca3a | 4,527 B | A | view · diff |
| git:20260529.a3e0e1b | 2026-05-29 | a3e0e1b | 4,516 B | A | view |
Audit of the latest version
- pass: Size between 200 bytes and 200 KB (1103 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
gosuda/portal-tunnel · 301 stars · license MIT · pushed 2026-11-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_4w7xsxecjb3fqtfq GET https://markdownregistry.com/api/v1/resolve?ref=gosuda/portal-tunnel/frontend/AGENTS.md GET https://markdownregistry.com/api/v1/blob/9e6ea1d65086ac38cd9017627c42f46eca08720f8851b55b831d1a833b8408a8
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 gosuda/portal-tunnel
Every file in gosuda/portal-tunnel