thai-token-optimizer: Instructions file for Gemini CLI

GEMINI.md

thai-token-optimizer GEMINI.md is an instructions file for Gemini CLI from kittimasak/thai-token-optimizer. It costs 395 tokens per session, scanned C, original, MIT.

Project instructions for a tool that shortens Thai-language prompts and responses while preserving important technical details and safety steps.

In plain words
What is it for?
Use them when working on the Thai Token Optimizer, especially for command help, technical translations, code, configuration, and high-risk operations.
Why use it?
They help an AI avoid wasting Thai tokens and avoid guessing commands or changing critical details. They also require extra checks for risky work such as production changes, secrets, payments, backups, and rollbacks.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md.

This is kittimasak/thai-token-optimizer's own configuration. It tells Gemini CLI how to work on thai-token-optimizer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything thai-token-optimizer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to kittimasak/thai-token-optimizer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/kittimasak/thai-token-optimizer/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/kittimasak/thai-token-optimizer

Made for: Gemini CLI.

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 thai-token-optimizer GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kittimasak/thai-token-optimizer/gemini-md/github.svg)](https://agentmods.dev/instructions/kittimasak/thai-token-optimizer/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/kittimasak/thai-token-optimizer/gemini-md"><img src="https://agentmods.dev/badge/instructions/kittimasak/thai-token-optimizer/gemini-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.

agentmods 80×15 button for thai-token-optimizer GEMINI.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/kittimasak/thai-token-optimizer/gemini-md"><img src="https://agentmods.dev/badge/instructions/kittimasak/thai-token-optimizer/gemini-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 395 This file is loaded in full into every session.
When invoked 395 The same file — it is already loaded in full.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.00395 $0.00395
Opus 5.5 $0.00158 $0.00158
Sonnet 5.5 $0.00079 $0.00079
Haiku 4.5 $0.00040 $0.00040

Measured 2mo ago against content hash 0ff4c1febfe9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

thai-token-optimizer GEMINI.md scanned grade C with 1 finding 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 2mo 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- ============================================================================ Thai Token Optimizer v2.0 ============================================================================ Description : Gemini-facing project
GEMINI.md · 40 lines

What it actually says

TTO v2.0 (2.0.0)

[⚓] Scopes

[S] = Detail-Mode (destructive, prod, auth, secret, pay, backup, rollback) [A] = Mirror-Mode (code, paths, flags, versions, IDs, errors, regex, config) [T] = Senior+Compact (Thai: technical; English: precise) [P] = Rank: [S] > [A] > Save > Brief

[📝] Acts

  1. Res: TH? [T]+Thai : [T]+Eng. Mirror [A].
  2. Safe: If intent matches [S], apply [S]-Mode: (risk + backup + dry + check).
  3. [Lazy_Load]: For Cmd usage, flags, or help, read_file(MANUAL.md). NEVER guess Cmds.
  4. Style: (Code/Commands) then (Brief info).
  5. Flow: Aim -> Shrink -> Mirror_[A] -> Done.

[🚫] Strict

  • Mirror [A] 100%. Real tests only. [S] beats all saving.

Goal: Save Thai tokens while keeping [S] and [A] via [Lazy_Load] guidance.

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. 2mo ago First seen · 40 lines · 395 tokens per session scan C 0ff4c1febfe9

Subscribe to this mod's changes

thai-token-optimizer GEMINI.md is an instructions file published in the GitHub repository kittimasak/thai-token-optimizer (48 stars, last pushed 13d ago), licensed MIT. It adds 395 tokens to every session, about $0.0016 per session on Opus 5.5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

thai-token-optimizer GEMINI.md compared with instructions from other repositories

thai-token-optimizer GEMINI.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
thai-token-optimizer GEMINI.mdkittimasak/thai-token-optimizerInstructions file4813d agoMITC395Gemini CLI
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode