Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Temicide/thcode/llms.txt

Use this file to discover all available pages before exploring further.

thcode is a terminal coding agent built for Thai developers. It combines a controlled local agent loop with the Typhoon reasoning provider, giving you a safe, inspectable way to plan and execute multi-step coding tasks — all from your terminal, in Thai or mixed-language workflows.

Introduction

Learn what thcode is and how its agent loop, work modes, and permission system fit together.

Quickstart

Build and run thcode in minutes, configure your Typhoon key, and complete your first coding task.

Command Reference

Every slash command in the frozen grammar — status, permissions, rollback, recover, and more.

AI for Thai Services

Discover the registry-driven catalog: OCR, speech-to-text, address extraction, and NER.

Why thcode?

thcode is designed from the ground up for Thai-language software engineering workflows. Rather than adapting a general-purpose coding agent, thcode treats Thai input as a first-class citizen — capturing intent without rewriting user bytes — and routes tasks through Typhoon, the primary Thai-language reasoning provider.

Guarded Operations

Every file write, deletion, and command execution passes through the Policy Enforcement Point before it runs.

Plan Before You Build

Orthogonal Plan and Build modes keep read-only analysis structurally separate from workspace mutations.

Rollback Anytime

Encrypted checkpoints record pre- and post-images of every file change. Three-way conflict analysis tells you exactly what can be safely reversed.

Getting started

1

Install prerequisites

thcode requires Node.js 22+ and PowerShell 7.4+ (pwsh.exe) on Windows 11.
2

Build the CLI

cd cli
npm install
npm run build
3

Configure your Typhoon key

Start thcode and follow the credential onboarding flow to store your Typhoon API key securely in the Windows Credential Store.
node dist/index.js
4

Start coding in Thai

Type your request in Thai or English. Use Shift+Tab to switch between Plan and Build modes, and /help to see all available commands.
thcode is a Windows-first prototype. PowerShell 7.4+ (pwsh.exe) is required. PowerShell 5.1, Git Bash, and WSL are not supported at this stage.

Build docs developers (and LLMs) love