$ npx @ppwnr88/noyap init --all --mode balanced

Noyap

Less yap. More code.

กฎการสื่อสารหลายภาษาสำหรับ AI coding agents.

AI coding agents มักพูดเยอะเกินไป. Noyap ทำให้คำตอบสั้นขึ้น, code-first, รองรับภาษาไทย/อังกฤษ และปลอดภัยขึ้นสำหรับงาน dev จริง.

iterm - noyap init

npx @ppwnr88/noyap init

Generated AGENTS.md

Thai-native mode enabled

Safe merge strategy enabled

before

Certainly! The issue appears to be that your object is recreated...

after

Object recreated every render. Wrap it with useMemo.

install

ติดตั้งแบบ CLI-first

shell
npx @ppwnr88/noyap init --interactive
npx @ppwnr88/noyap init --all
npx @ppwnr88/noyap init --detected

before / after

สั้นลง แต่ยังเก็บ fix ที่สำคัญ

English

before

Sure! The problem is most likely caused by the fact that your options object is recreated every time the component renders. React compares object props by reference, so this can trigger unnecessary child renders. You should use useMemo to memoize it.

after

options is recreated every render. React compares by reference. Wrap it with useMemo.

Thai

before

ปัญหานี้น่าจะเกิดจาก request ที่ส่งไปยัง API ไม่มี Authorization header หรือ token หมดอายุแล้วครับ ลองตรวจสอบก่อนว่า frontend แนบ Bearer token ไปกับทุก request หรือไม่

after

น่าจะขาด Authorization header หรือ token หมดอายุ. เช็คว่า frontend ส่ง Bearer token.

Mixed Thai/English

before

ปัญหานี้อาจเกิดจาก cache ของ Next.js หรือ CDN ยังถือ response เก่าอยู่หลัง deploy ครับ คุณควรตรวจสอบ revalidate setting, cache-control header และ purge CDN cache หลัง deploy

after

น่าจะ cache ค้างหลัง deploy. เช็ค revalidate, cache-control, แล้ว purge CDN.

agents

สร้าง rule files ให้ coding agents ยอดนิยม

$Claude Code

CLAUDE.md

Append Noyap section

$Codex

AGENTS.md, .noyap/AGENTS.noyap.md

Merge or separate safe rules

$OpenCode

AGENTS.md, .noyap/AGENTS.noyap.md

Merge or separate safe rules

$Cursor

.cursor/rules/noyap.mdc

Create always-on rule

$Windsurf

.windsurf/rules/noyap.md

Create always-on rule

$GitHub Copilot

.github/copilot-instructions.md

Append Noyap section

$Cline

.clinerules/noyap.md

Create project rule

$Continue

.continue/rules/noyap.md

Create project rule

$Gemini CLI

GEMINI.md

Append Noyap section

$Roo Code

.roo/rules/noyap.md

Create project rule

$Aider

CONVENTIONS.md

Append convention rules

$JetBrains Junie

.junie/AGENTS.md

Append project guidelines

$Amazon Kiro

.kiro/steering/noyap.md

Create steering file

$Zed AI

.rules

Append project rules

$Kilo Code

.kilocode/rules/noyap.md

Create project rule

$Tabnine Agent

.tabnine/guidelines/noyap.md

Create guideline file

$Amazon Q Developer

.amazonq/rules/noyap.md

Create project rule

$Devin

.devin/AGENTS.md

Append scoped instructions

$Void

.voidrules

Append project rules

thai-native

ไม่ใช่แค่แปลภาษา แต่เป็นภาษา dev ไทยที่เป็นธรรมชาติ

auto language detection
Noyap ตรวจจับ English, Thai และ mixed Thai/English แล้วตอบตามภาษา และสไตล์ที่ user ใช้จริง.
thai dev phrasing
หลีกเลี่ยงภาษาไทยทางการแบบแปลตรง ๆ และเก็บ code, CLI output, stack trace, env vars, raw errors และศัพท์ dev ภาษาอังกฤษไว้เมื่อเป็นธรรมชาติ.
APIendpointcache ค้างbuild failquery ช้าnginx rewrite ไม่ทำงานtoken หมด

safe merge

เคารพ AGENTS.md เดิมของโปรเจกต์

AGENTS.md strategy
Codex และ OpenCode ใช้ merge, separate, overwrite หรือ cancel ได้. Noyap เก็บ project rules เดิม, กัน section ซ้ำ และให้คำเตือนเสี่ยง ๆ ของโปรเจกต์ยังสำคัญที่สุด.
codex
npx @ppwnr88/noyap init --agent codex --agents-md-strategy merge
npx @ppwnr88/noyap init --agent opencode --agents-md-strategy separate

safe by default

คำตอบสั้น แต่ไม่ตัด warning สำคัญ

! data loss
! security risks
! production deploy risks
! database migration risks
! billing or cost risks
! destructive commands
! secret exposure
! credential exposure

modes + presets

ปรับความสั้นและบทบาทตาม workflow

modes
minimalbalancedseniorthai-devbilingualhardcorehardcore-th
presets
defaultbackendfrontenddevopssqlsecurityreviewer

benchmarks

มี benchmark และลิงก์ไปยังข้อมูลจริง

Token reduction

54.12%

balanced mode, benchmark suite

Character reduction

58.23%

balanced mode, benchmark suite

Line reduction

66.67%

fixed benchmark fixtures

Warning preservation

100%

heuristic checks; review critical output

ตัวเลขมาจาก fixture suite ใน repository และไม่ใช่การรับประกันผลลัพธ์ทุกโปรเจกต์. ดู benchmark report.

ready

noyap init

ติดตั้งกฎให้ agent ตอบสั้นลงได้ในคำสั่งเดียว.

เริ่มด้วยค่า default ที่ปลอดภัย, ติดตั้งเฉพาะ agent ที่ตรวจเจอ, หรือปรับภาษา mode preset และ AGENTS.md merge strategy ได้ตาม workflow.

shell
npx @ppwnr88/noyap init --all --mode balanced
npx @ppwnr88/noyap doctor --all