AGENTS.md@frontendA

AGENTS.md@frontend from gosuda/portal-tunnel is an AGENTS.md file: the standing instructions coding agents read in that repo.

Install it, pinned
mdr add gosuda/portal-tunnel/frontend/AGENTS.md@git:20261107.870adda

Pins 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

The exact contents, by fingerprint
mdr add gosuda/portal-tunnel/frontend/AGENTS.md@sha256:9e6ea1d65086ac38

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_4w7xsxecjb3fqtfq.svg)](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.

versioncommittedcommitsizeaudit
git:20261107.870adda latest2026-11-07 870adda 1,103 BA view · diff
git:20260804.df9da5d2026-08-04 df9da5d 1,205 BA view · diff
git:20260601.8db18fc2026-06-01 8db18fc 4,895 BA view · diff
git:20260601.a7669b72026-06-01 a7669b7 4,807 BA view · diff
git:20260529.893ca3a2026-05-29 893ca3a 4,527 BA view · diff
git:20260529.a3e0e1b2026-05-29 a3e0e1b 4,516 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 (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

GitHub

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

AGENTS.md AGENTS.md file
gosuda/portal-tunnel · AGENTS.md
git:20261004.21b5eda · audit A · 301 stars
CLAUDE.md@frontend CLAUDE.md file
gosuda/portal-tunnel · frontend/CLAUDE.md
git:20260304.96dd745 · audit B · 301 stars
llms.txt llms.txt file
gosuda/portal-tunnel · llms.txt
git:20261108.f9aaa73 · audit B · 301 stars
portal-connect SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-connect/SKILL.md · Deprecated alias of the portal-connect skill, which moved to the portal-tunnel plugin. Use when the user asks to reach…
git:20261108.f9aaa73 · audit A · 301 stars
portal-expose SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-expose/SKILL.md · Deprecated alias of the portal-expose skill, which moved to the portal-tunnel plugin. Use when the user asks to expose…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay SKILL.md skill
gosuda/portal-tunnel · plugins/portal-deploy/skills/portal-relay/SKILL.md · Deprecated alias of the portal-relay skill, which moved to the portal-relay plugin. Use when the user asks to run…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-admin SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-admin/SKILL.md · Operate a running Portal relay through its admin and policy API - sign in with the relay ADMIN_TOKEN without exposing…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-aws SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-aws/SKILL.md · Create an AWS host for a Portal relay - an EC2 instance with a security group and an Elastic IP, or a Lightsail…
git:20261108.f9aaa73 · audit B · 301 stars
portal-relay-cloudflare SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-cloudflare/SKILL.md · Configure a Cloudflare-hosted parent zone for a Portal relay - the NS delegation of the relay subdomain to the relay's…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-diagnose SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-diagnose/SKILL.md · Find which layer of a self-hosted Portal relay is failing - container and process, open ports, embedded DNS and NS/glue…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-hetzner SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-hetzner/SKILL.md · Create a Hetzner Cloud server for a Portal relay with the hcloud CLI, attach a Hetzner Cloud Firewall that opens only…
git:20261108.f9aaa73 · audit A · 301 stars
portal-relay-oracle SKILL.md skill
gosuda/portal-tunnel · plugins/portal-relay/skills/portal-relay-oracle/SKILL.md · Create an Oracle Cloud Infrastructure (OCI) compute instance for a Portal relay, including Always Free Ampere A1…
git:20261108.f9aaa73 · audit A · 301 stars

Every file in gosuda/portal-tunnel

Other files named AGENTS.md@frontend

AGENTS.md@frontend AGENTS.md file
bytedance/deer-flow · frontend/AGENTS.md
git:20261102.7c3d255 · audit A · 85,141 stars
AGENTS.md@frontend AGENTS.md file
volcengine/openviking · frontend/AGENTS.md
git:20261105.2fc2f72 · audit A · 41,589 stars
AGENTS.md@frontend AGENTS.md file
agentrq/agentrq · frontend/AGENTS.md
git:20261006.4681b9d · audit A · 1,177 stars
AGENTS.md@frontend AGENTS.md file
fergana-labs/stash · frontend/AGENTS.md
git:20261022.7c80ddf · audit A · 342 stars
AGENTS.md@frontend AGENTS.md file
tam159/next-role · frontend/AGENTS.md
git:20261103.f346e96 · audit A · 65 stars
AGENTS.md@frontend AGENTS.md file
valaris-studio/backplane · frontend/AGENTS.md
git:20260916.fb4d7ad · audit A · 26 stars
AGENTS.md@frontend AGENTS.md file
stoyan-stoyanov/wavefunction · frontend/AGENTS.md
git:20261027.de86d54 · audit A · 20 stars

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