pordee  by kerlos

Optimizing Thai AI responses for brevity and clarity

Created 1 month ago
299 stars

Top 88.9% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

Pordee is a Thai language optimization plugin for Claude Code, designed to drastically reduce LLM response token counts by intelligently removing non-essential words while preserving technical accuracy. It targets users interacting with LLMs in Thai, offering significant cost and efficiency benefits through concise, yet complete, communication.

How It Works

Pordee operates as a Claude Code plugin, intercepting and rephrasing Thai language outputs. It employs two main levels: 'Lite' removes polite particles (ครับ/ค่ะ) and hesitation fillers, while 'Full' (default) further strips redundant particles, nominalizers, and simplifies vocabulary for maximum brevity. This approach preserves crucial English technical terms, ensuring that core information remains intact. The plugin injects rules into the LLM's context for each session, with state persisted across sessions.

Quick Start & Requirements

Installation is straightforward via the Claude Code plugin marketplace:

  1. claude plugin marketplace add kerlos/pordee
  2. claude plugin install pordee@pordee Hooks register automatically upon installation. New sessions can immediately use the /pordee slash command or trigger keywords like "พอดี" to activate.

Highlighted Details

  • Achieves 60-75% token savings on Thai language responses, with specific examples showing up to 84% reduction.
  • Offers 'Lite' mode (44-60% saved) and 'Full' mode (73-84% saved), with performance metrics available via /pordee-stats.
  • Automatically deactivates in potentially risky situations, such as when security warnings appear or irreversible commands are detected (e.g., DROP TABLE, rm -rf).
  • Provides a /pordee-stats command to monitor current session and lifetime token usage and estimated cost savings.

Maintenance & Community

This README does not detail specific contributors, sponsorships, or community channels like Discord or Slack.

Licensing & Compatibility

Licensed under MIT, permitting broad commercial use. Currently, Pordee is exclusively compatible with Claude Code (v1), with plans to support other programs in the future.

Limitations & Caveats

The plugin's current scope is limited to Claude Code (v1). It includes automatic safety deactivations for certain command types and multi-step processes where conciseness could lead to misinterpretation or errors.

Health Check
Last Commit

1 month ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
51 stars in the last 30 days

Explore Similar Projects

Starred by Omar Sanseviero Omar Sanseviero(DevRel at Google DeepMind), Binyuan Hui Binyuan Hui(Research Scientist at Alibaba Qwen), and
3 more.

Lemur by OpenLemur

0%
556
Open language model for language agents
Created 2 years ago
Updated 2 years ago
Feedback? Help us improve.