Trident.Net AGENTS.md

Repository instructions for Trident.Net, a .NET toolchain and command-line program for managing Minecraft installations, modpacks, package sources, and accounts.

In plain words
What is it for?
Use them when changing the Trident.Net library, command-line program, or its AI-agent integration.
Why use it?
They give a coding agent the project’s structure, terminology, and dependency rules so it can work in the repository consistently.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/tridentcore/trident.net/agents-md
Clone the repo
git clone --depth 1 https://github.com/TridentCore/Trident.Net

Made for: Codex, OpenCode.

Per session 592 This file is loaded in full into every session.
When invoked 592 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5 $0.00592 $0.00592
Opus 5 $0.00296 $0.00296
Sonnet 5 $0.00118 $0.00118
Haiku 4.5 $0.00059 $0.00059

Measured 2d ago against content hash 87d7559b307d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Trident.Net 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 2d ago.

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.

AGENTS.md · 44 lines

How it starts

The opening of the file, as written. The whole thing — 44 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Trident.Net — Agent Guide

Project Overview

Trident.Net is a .NET 10 toolchain for managing Minecraft instances, modpacks, package repositories, and accounts. Instances are declarative (driven by profile.json), rebuildable, importable, exportable, and friendly to automation.

The repository provides both a library surface (for embedding in launchers or tools) and a CLI product (trident) installable as a .NET global tool. The CLI also ships an MCP server mode (--mcp) for AI agent integration.

Repository Layout

src/TridentCore.Abstractions/   Pure models, interfaces, enums, extension methods
src/TridentCore.Pref/           Package Reference (Pref) parsing and formatting library
src/TridentCore.Core/           Business logic, engines, API clients, services
src/TridentCore.Cli/            The `trident` CLI product (Commands + MCP Tools)

Layering: Abstractions ← Pref ← Core ← Cli. Dependencies flow downward only.

Core Concepts

  • Profile (profile.json) — Declarative description of a Minecraft instance: game version, loader, packages, rules, and runtime overrides. Managed by ProfileManager.
  • Pref (Package Reference) — Identifier format pref://repository/projectId or pref://repository/projectId@versionId, e.g. pref://modrinth/aC3cM3Vq@9I21YYxf. Parsed by TridentCore.Pref.
  • Instance — A concrete deployment of a profile on disk, built by the staged DeployEngine pipeline.
  • Repository — Package source abstraction (Modrinth, CurseForge, user-configured). Queried through RepositoryAgent.
  • Loader — Mod loader (Forge, NeoForge, Fabric, Quilt). Metadata via PrismLauncher API.
  • Lock Data (data.lock.json) — Snapshotted deployment state for rebuild and diff.

CLI Project

The CLI layer follows a strict Commands → Operations → Tools pattern — Commands and Tools must NOT contain business logic; they delegate to Operations/ static methods. For full details see AGENTS.CLI.md (architecture, entry point flow, MCP conventions, coverage table).

Read the full file on GitHub · 44 lines

Changes

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.

  1. 2d ago First seen · 44 lines · 592 tokens per session scan A 87d7559b307d

Subscribe to this mod's changes

Trident.Net AGENTS.md is an instructions file published in the GitHub repository TridentCore/Trident.Net (5 stars, last pushed 2d ago), licensed MIT. It adds 592 tokens to every session, about $0.0030 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-08-31.