Borrowing it
Nothing to install: this file belongs to TheNovaNodes/nextcloud-mcp-gateway. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/TheNovaNodes/nextcloud-mcp-gateway/main/AGENTS.mdgit clone --depth 1 https://github.com/TheNovaNodes/nextcloud-mcp-gatewayWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/thenovanodes/nextcloud-mcp-gateway/agents-md)<a href="https://agentmods.dev/instructions/thenovanodes/nextcloud-mcp-gateway/agents-md"><img src="https://agentmods.dev/badge/instructions/thenovanodes/nextcloud-mcp-gateway/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/thenovanodes/nextcloud-mcp-gateway/agents-md"><img src="https://agentmods.dev/badge/instructions/thenovanodes/nextcloud-mcp-gateway/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00661 | $0.00661 |
| Opus 5 | $0.00331 | $0.00331 |
| Sonnet 5 | $0.00132 | $0.00132 |
| Haiku 4.5 | $0.00066 | $0.00066 |
Grade A, and why
nextcloud-mcp-gateway AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Part 1: TheNovaNodes Core Invariants (Universal Standard)
- Strict Git Flow (ПРАВИЛА КРОВИ):
- NEVER push directly to main or master branches.
- All changes must go through dedicated branches (feat/..., fix/..., docs/..., ci/...) and Pull Requests.
- NEVER merge PRs without explicit approval from ЗавЛаб.
- No force-push on upstream branches.
- Security & Credential Hygiene:
- NEVER hardcode or log passwords, tokens, or credentials (especially NC_APP_PASSWORD, NC_USER).
- All credentials must be loaded dynamically from environment variables.
- Deadlock & Timeout Guardrails:
- All network calls (WebDAV, CalDAV, Deck, OCS) must have explicit timeouts (configured via config.Timeout).
- Auxiliary commands must use hard timeouts.
- MCP stdio servers must redirect stdin (< /dev/null) during smoke tests.
- Never loop endlessly without bounds.
- Continuous Verification:
- Never report a task complete without running local verification commands.
- Use native project tools directly (go vet, go test -v -race, make build).
Part 2: Repository Profile & Specific Directives (nextcloud-mcp-gateway)
- Project Overview & Tech Stack:
- Go 1.22+ / 1.25 compatible.
- Dependencies: github.com/mark3labs/mcp-go.
- Packages: internal/config, internal/hitl, internal/webdav, internal/caldav, internal/deck, internal/ocs, internal/server.
- Entry point: cmd/nextcloud-mcp-gateway/main.go (starts stdio MCP server via mcpserver.ServeStdio).
- The Golden Loop (Mandatory Verification Commands):
- go vet ./...
- go test -v -race ./...
- make build
- Architectural Invariants & Taboos:
- CRITICAL HITL (Human-in-the-Loop) INVARIANT: All destructive actions (write_file, delete_file, create_folder) are strictly guarded by internal/hitl.Manager. Agents are FORBIDDEN from bypassing or relaxing HITL token checks!
- WebDAV Memory Ceiling: ReadFile enforces a 10MB limit via io.LimitReader to prevent Out-Of-Memory crashes on large files.
- Connection / Socket Hygiene: HTTP response bodies must always be drained (e.g. io.CopyN(io.Discard, resp.Body, 512)) before Close() to preserve HTTP Keep-Alive connection pooling.
- Path Traversal Guard: internal/webdav/path.go strictly enforces path normalization and blocks directory traversal (..).
- Stdio Protocol Hygiene: os.Stdout is exclusively reserved for MCP JSON-RPC protocol. All application logs must go to os.Stderr.
- Non-destructive read tools (list_files, read_file, list_calendar_events, list_deck_boards, list_deck_stacks, nextcloud_health, get_user_info) execute directly without HITL tokens.
- PR & Commit Conventions:
- Conventional Commits (feat(...): ..., fix(...): ..., ci(...): ..., docs(...): ...).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 38 lines · 661 tokens per session scan A b64af0e7494d
nextcloud-mcp-gateway AGENTS.md is an instructions file published in the GitHub repository TheNovaNodes/nextcloud-mcp-gateway (1 stars, last pushed yesterday), licensed MIT. It adds 661 tokens to every session, about $0.0033 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-11.
Other instructions, from other repositories
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).