ts-sdks AGENTS.md

ts-sdks AGENTS.md is an instructions file for Codex, OpenCode from Suigar-Gaming/ts-sdks. It costs 3,970 tokens per session, scanned A, original, Apache-2.0.

Repository-specific instructions for AI agents working on the Suigar TypeScript SDK workspace, a collection of related packages managed together.

In plain words
What is it for?
Use them when setting up the workspace, generating Move contract bindings, building the SDK or MCP package, running tests, or checking types.
Why use it?
They explain the repository’s setup, build, code-generation, testing, and type-checking commands so work follows the project’s expected process.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

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/suigar-gaming/ts-sdks/agents-md
Clone the repo
git clone --depth 1 https://github.com/Suigar-Gaming/ts-sdks

Made for: Codex, OpenCode.

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

agentmods badge for ts-sdks AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/suigar-gaming/ts-sdks/agents-md.svg)](https://agentmods.dev/instructions/suigar-gaming/ts-sdks/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/suigar-gaming/ts-sdks/agents-md"><img src="https://agentmods.dev/badge/instructions/suigar-gaming/ts-sdks/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,970 This file is loaded in full into every session.
When invoked 3,970 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.1 $0.03970 $0.03970
Opus 5 $0.01985 $0.01985
Sonnet 5 $0.00794 $0.00794
Haiku 4.5 $0.00397 $0.00397

Measured 5d ago against content hash b158238919d2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ts-sdks 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 5d 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 · 293 lines

How it starts

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

AGENTS.md

This file provides guidance to AI agents working with code in this repository.

Overview

This repository contains the TypeScript SDK workspace for Suigar v2 on Sui. The current publishable packages are @suigar/sdk under packages/sdk and @suigar/mcp under packages/mcp. Both packages are ESM-only. The main public SDK integration surface is the suigar() client extension, which is used to build and serialize game transactions on top of @mysten/sui.

Common Commands

Setup and Build

# Initial setup
pnpm install

# Generate bindings and build the package
pnpm --dir packages/sdk run build

# Build without regenerating contract bindings
pnpm --dir packages/sdk run build:ci

# Build the MCP package and bundled MCP App
pnpm turbo run build --filter=@suigar/mcp

# Build and run the local stdio MCP server for manual client testing
pnpm turbo run build --filter=@suigar/mcp
node packages/mcp/dist/bin.mjs

# Regenerate Move contract bindings only
pnpm --dir packages/sdk run codegen

Testing

# Run the full test suite
pnpm --dir packages/sdk run test

# Run type checking
pnpm --dir packages/sdk run typecheck
pnpm --dir packages/mcp run typecheck

# Run a specific vitest file
pnpm --dir packages/sdk exec vitest run test/unit/transactions.test.ts

# Run a specific test name
pnpm --dir packages/sdk exec vitest run -t "builds a coinflip transaction with the configured package id"

Linting and Formatting

# Check lint and formatting
pnpm run lint

# Auto-fix lint and formatting issues
pnpm run lint:fix

Package Management

# Create a changeset
pnpm run changeset

# Apply version updates from changesets
pnpm run changeset:version

# Publish release changes
pnpm run release

Architecture

Repository Structure

  • packages/sdk/ - @suigar/sdk package root
    • src/ - SDK source code
    • client.ts - suigar() extension registration and extension client implementation
    • transactions/ - transaction builders for standard and PvP games
    • contracts/ - generated Move bindings and BCS helpers
    • types/ - public option and config types
    • utils/ - public parser, constants, and numeric helpers exposed through @suigar/sdk/utils
    • helpers/ - internal config resolution, metadata encoding, and transaction support helpers
    • configs/ - network-scoped package ids, supported coin types, and price info object ids
  • packages/sdk/test/unit/ - Vitest coverage for config resolution, cache helpers, and transaction builders
  • packages/mcp/ - @suigar/mcp stdio MCP server and MCP App
    • src/server.ts - MCP server, tool registration, and app resource registration
    • src/tools.ts - SDK-backed tool handlers for config, metadata, and unsigned transaction building
    • src/app/ - Vite-built single-file MCP App UI
    • test/ - Vitest coverage for tools and app resource behavior
  • packages/sdk/dist/ - generated build output
  • tsconfig.shared.json - shared TypeScript compiler options for workspace packages
  • playground/ - workspace-local Next.js integration playground

Read the full file on GitHub · 293 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. 5d ago First seen · 293 lines · 3,970 tokens per session scan A b158238919d2

Subscribe to this mod's changes

ts-sdks AGENTS.md is an instructions file published in the GitHub repository Suigar-Gaming/ts-sdks (0 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,970 tokens to every session, about $0.0198 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.