mmnaderi/antigravity-rtl
Sobre
Smart RTL (Right-to-Left) UI patcher for Antigravity & Antigravity IDE with Persian, Arabic, and Hebrew typography support.
Ferramentas de desenvolvimentoO que você pode fazer
- Supports Both Antigravity & Antigravity IDE: Smart auto-detection or interactive selection for both standalone Antigravity and the VS Code-based Antigravity IDE.
- Natural text direction: Chat, input fields, and agent views adapt dynamically. Use Force RTL when you want everything right-aligned.
- Code & Terminal stay LTR: Code blocks, Monaco editor, and terminal remain left-to-right with customizable code fonts.
- Typography your way: Choose separate fonts for Persian/Arabic, English, and Code. Vazirmatn is embedded offline; font size and line height can be adjusted live.
Crescimento medido de estrelas
- em 24 h
- +5
- em 7 dias
- +15
- em 15 dias
- +24
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalAntigravity Smart RTL Patcher
Read and write naturally in Persian, Arabic, and Hebrew, without disrupting English or code.
A right-to-left and typography patch for the Antigravity desktop app and Antigravity IDE (VS Code Edition).
Features · Install · CLI Options · Uninstall · How it works · Downloads & Stars · AI RTL Patches · Inspired by this Project · فارسی
https://github.com/user-attachments/assets/f2e8722d-3aeb-47d3-a37e-c33b6a89676e
Antigravity RTL adds seamless Right-to-Left (RTL) support and typography controls to Antigravity (Standalone App) and Antigravity IDE (VS Code Edition). It adjusts text direction naturally as you type and read, while keeping code blocks, terminal, and editors left-to-right.
Features
- Supports Both Antigravity & Antigravity IDE: Smart auto-detection or interactive selection for both standalone Antigravity and the VS Code-based Antigravity IDE.
- Natural text direction: Chat, input fields, and agent views adapt dynamically. Use Force RTL when you want everything right-aligned.
- Code & Terminal stay LTR: Code blocks, Monaco editor, and terminal remain left-to-right with customizable code fonts.
- Typography your way: Choose separate fonts for Persian/Arabic, English, and Code. Vazirmatn is embedded offline; font size and line height can be adjusted live.
- Quick controls: Title-bar menu in Standalone App and UI widget in IDE, toggleable via
⌥Ron macOS /Alt+Ron Windows and Linux.
Settings are saved in ~/.antigravity-rtl.json and restored when you reopen the app.
Install
Follow the steps for your operating system. Node.js 22.12 or newer is required; you don't need to clone this repository.
Before running the patch: Close Antigravity / Antigravity IDE if open.
Antigravity updates replace patched app files. After updating Antigravity, run npx antigravity-rtl --app again and restart the app.
macOS
Node.js must be installed (
brew install nodeor from nodejs.org).In Terminal, run:
npx antigravity-rtlIf you see Permission Denied, enable App Management for your terminal in System Settings → Privacy & Security → App Management, then run the command again.
Linux
Node.js must be installed (
sudo apt install nodejs npm).In a terminal, run:
sudo npx antigravity-rtl
(If your Antigravity IDE is in user directories like ~/Downloads, sudo is not needed: npx antigravity-rtl --ide)
Windows
In PowerShell (Run as Administrator), run:
npx antigravity-rtl
CLI Options & Flags
| Command | Description |
|---|---|
npx antigravity-rtl |
Auto-detect & patch: patches both Antigravity & Antigravity IDE if found, or the installed one |
npx antigravity-rtl --ide |
Directly patch Antigravity IDE only |
npx antigravity-rtl --app |
Directly patch Antigravity Standalone App only |
npx antigravity-rtl --install-watcher |
Enable background watcher to automatically re-patch after application updates |
npx antigravity-rtl --uninstall-watcher |
Disable background auto-repatch watcher |
npx antigravity-rtl --watch |
Run auto-repatch watcher in foreground |
npx antigravity-rtl --restore |
Revert changes and restore original backups for all detected apps |
npx antigravity-rtl --restore --ide |
Revert changes and restore Antigravity IDE only |
npx antigravity-rtl --restore --app |
Revert changes and restore Antigravity Standalone App only |
npx antigravity-rtl --path "/path/to/app" |
Specify a custom path: the IDE directory, or the Standalone App's app.asar file |
npx antigravity-rtl --browser |
Install the Remote Control extension folder (Chrome / Arc) |
Remote Control opens this UI in the browser, inside a cross-origin iframe. The desktop patch cannot reach it. --browser writes an unpacked Chrome/Arc extension that injects the same RTL engine into that iframe. Load the printed folder from the extensions page (Developer Mode → Load unpacked), then reload the remote tab.
🔄 Automatic Re-Patch on Updates (Background Watcher)
Antigravity automatically updates in the background, which replaces core files (app.asar or IDE workbench assets) with unpatched upstream builds.
Opt-in: every time you patch Antigravity, the CLI asks On or Off, starting from the current state. You can also turn it on any time:
npx antigravity-rtl --install-watcher
When Antigravity updates and replaces its files, the watcher notices the patch is gone and re-applies it. Restart Antigravity to see RTL again.
The background service always runs the latest antigravity-rtl from npm (npx antigravity-rtl@latest --watch), so it stays in sync with new releases. Without internet it runs the copy in your npm cache.
- Windows: hidden startup entry in the user registry (
HKCU\...\Run). - macOS: user LaunchAgent (
~/Library/LaunchAgents/com.mmnaderi.antigravity-rtl.plist). - Linux: systemd user service (
~/.config/systemd/user/antigravity-rtl.service).
Turn the watcher off
npx antigravity-rtl --uninstall-watcher
Restoring the original app with npx antigravity-rtl --restore also removes the watcher. Use --no-watcher to skip the question when patching.
Run Watcher in Foreground (Test / Debug):
npx antigravity-rtl --watch
Uninstall / Revert the patch
Quit the app(s) and run with --restore (or -r):
npx antigravity-rtl --restore
(Or specify --ide or --app to restore only one: npx antigravity-rtl --restore --ide)
How it works
- Detection: Automatically locates your Antigravity app (
app.asar) or Antigravity IDE (resources/app). - Safe Backup: Creates backups (
.bak/.rtl-bak) before any file modification. - Smart Injection:
- Antigravity App: Injects the RTL engine into core logic (
utils.js) and repacksapp.asar. - Antigravity IDE: Injects an isolated hook (
antigravity-rtl-main.js) intoout/main.jstargeting workbench and agent windows.
- Antigravity App: Injects the RTL engine into core logic (
- Offline Font: Embeds the beautiful Vazirmatn Variable font locally.
Downloads & Stars
npm downloads
Star history
AI Agents & Editors RTL Patches
A curated list of community and official RTL & typography patches for AI coding agents, assistants, and developer tools.
One command for several apps: npx antigravity-rtl also finds ChatGPT, OpenCode, Qoder, DeepSeek Harness and Pi on your machine and lists them in the picker (unticked). Pick one and it runs that app's own tool, made and kept by its author.
| Tool / App | Patch Repository | Author | Description |
|---|---|---|---|
| ChatGPT | chatgpt-rtl |
@mmnaderi | Smart RTL & typography patcher for ChatGPT desktop |
| Claude | claude-desktop-rtl |
@mmnaderi | RTL and Persian typography patch for Claude Desktop |
| Comet | comet-patch |
@mmnaderi | Language-specific prompts and typography patch for Comet (macOS) |
| Cursor | cursor-rtl |
@mmnaderi | Smart RTL and Persian font patch for Cursor AI editor |
| DeepSeek Harness | deepseek-rtl |
@ramin-mahmoodi | Persian & Arabic RTL plugin for the DeepSeek Harness Web UI |
| Hermes Agent | hermes-persian-rtl |
@mmnaderi | Typography & smart RTL plugin for Hermes Agent Desktop |
| OpenCode | opencode-rtl |
@SMhdAsadi | Smart RTL patcher for OpenCode desktop app |
| Pi | pi-rtl |
co-parsa | RTL shaping and bidi for the Pi terminal agent |
| Qoder | qoder-rtl |
@Pezhm4n | RTL patcher for Qoder desktop chat |
| ZCode | rtl-zcode |
@Morteza-NW | Persian & Arabic RTL support for ZCode Desktop |
| Zed | Zed-RTL |
@AmirAliManzar | RTL text rendering and caret movement for Zed editor |
Have you created or spotted an RTL patch for another AI agent or editor? Please open a pull request to add it here!
Projects Inspired by Antigravity RTL
Open-source tools and community projects inspired by or adapted from this project:
- qoder-rtl — Persian/Arabic RTL patcher for Qoder desktop chat, inspired by Antigravity RTL.
- MarkdownRTL — JetBrains IDE plugin for seamless Persian & Arabic Markdown preview, adopting this project's UI and floating controller concept.
فارسی
خواندن و نوشتن فارسی در Antigravity و Antigravity IDE، بدون بههمریختن متن انگلیسی و کد.
Antigravity RTL یک ابزار خط فرمان برای افزودن پشتیبانی راستبهچپ و تنظیمات تایپوگرافی به هر دو نسخهٔ Antigravity (اپلیکیشن مستقل) و Antigravity IDE (نسخه مبتنی بر VS Code) است.
امکانات
- پشتیبانی دوگانه (Antigravity و Antigravity IDE): شناسایی خودکار یا منوی تعاملی برای انتخاب بین نسخه مستقل و IDE.
- جهتدهی خودکار متن: چیدمان پیامهای چت، ورودیها و پرامپتها بر اساس زبان متن راستچین یا چپچین میشود.
- ایزولاسیون کد و ترمینال: بلوکهای کد، ادیتور Monaco و محیط ترمینال با پشتیبانی از انتخاب فونت کد کاملاً چپچین (LTR) باقی میمانند.
- تایپوگرافی دلخواه: تعیین فونت مجزا برای متون فارسی/عربی، انگلیسی و کد به همراه فونت توکار وزیرمتن (Vazirmatn Variable) بدون وابستگی به اینترنت.
- دسترسی سریع: پنل تنظیمات در برنامه و کلید میانبر
⌥Rدر مک یاAlt+Rدر ویندوز و لینوکس.
گزینهها و فلگهای خط فرمان
| دستور | توضیحات |
|---|---|
npx antigravity-rtl |
تشخیص و پچ خودکار: در صورت وجود هر دو برنامه، هر دو پچ میشوند؛ در غیر این صورت برنامهٔ موجود پچ میشود |
npx antigravity-rtl --ide |
فقط پچ مستقیم نسخهٔ Antigravity IDE |
npx antigravity-rtl --app |
فقط پچ مستقیم نسخهٔ مستقل Antigravity |
npx antigravity-rtl --install-watcher |
فعالسازی واچر پسزمینه برای اعمال خودکار مجدد پچ پس از هر آپدیت برنامه |
npx antigravity-rtl --uninstall-watcher |
غیرفعالسازی واچر خودکار |
npx antigravity-rtl --watch |
اجرای واچر در پیشزمینه |
npx antigravity-rtl --restore |
بازگردانی به نسخه اصلی برای تمام برنامههای شناساییشده |
npx antigravity-rtl --restore --ide |
فقط بازگردانی Antigravity IDE به نسخه اصلی |
npx antigravity-rtl --restore --app |
فقط بازگردانی نسخه مستقل Antigravity به نسخه اصلی |
npx antigravity-rtl --path "/path/to/app" |
مشخص کردن مسیر دلخواه: پوشهٔ IDE، یا فایل app.asar نسخهٔ مستقل |
npx antigravity-rtl --browser |
نصب پوشهٔ افزونهٔ Remote Control برای کروم و Arc |
Remote Control همان رابط را داخل یک iframe با دامنهٔ جدا در مرورگر باز میکند و پچ دسکتاپ به آن نمیرسد. --browser یک افزونهٔ unpacked میسازد؛ پوشهٔ چاپشده را از صفحهٔ افزونهها با Developer Mode بارگذاری کنید و تب ریموت را رفرش کنید.
نصب
مک (macOS):
npx antigravity-rtl(در صورت خطای دسترسی، تیک App Management را در تنظیمات حریم خصوصی مک برای ترمینال فعال کنید)
لینوکس (Linux):
sudo npx antigravity-rtlویندوز (Windows): PowerShell را با دسترسی Administrator باز کرده و اجرا کنید:
npx antigravity-rtl
بازگردانی به حالت اولیه (Uninstall)
برنامهها را ببندید و فلگ --restore (یا -r) را اجرا کنید:
npx antigravity-rtl --restore
(یا برای بازگردانی فقط یک برنامهٔ خاص: npx antigravity-rtl --restore --ide)
🔄 پچ خودکار پس از هر آپدیت (واچر پسزمینه)
Antigravity در پسزمینه خودش را آپدیت میکند و فایلهای پچشده را با نسخهٔ خام جایگزین میکند.
اختیاری: هر بار که Antigravity را پچ میکنید، برنامه میپرسد واچر روشن باشد یا خاموش (پیشفرض همان وضعیت فعلی است). هر وقت هم بخواهید میتوانید روشنش کنید:
npx antigravity-rtl --install-watcher
وقتی Antigravity آپدیت شود، واچر میفهمد که پچ رفته و دوباره اعمالش میکند. برای دیدن راستچین، Antigravity را دوباره باز کنید.
سرویس پسزمینه همیشه آخرین نسخهٔ antigravity-rtl را از npm اجرا میکند (npx antigravity-rtl@latest --watch)، پس با نسخههای جدید همگام میماند. بدون اینترنت، نسخهٔ موجود در کش npm اجرا میشود.
- ویندوز: ورودی مخفی در رجیستری کاربر (
HKCU\...\Run). - مک: LaunchAgent کاربر در
~/Library/LaunchAgents. - لینوکس: سرویس کاربر در
systemd --user.
خاموش کردن واچر
npx antigravity-rtl --uninstall-watcher
بازگردانی برنامه با npx antigravity-rtl --restore هم واچر را حذف میکند. با --no-watcher موقع پچ سؤالی پرسیده نمیشود.
اجرای زنده در ترمینال (برای تست و لاگ)
npx antigravity-rtl --watch
پچهای RTL برای سایر دستیارها و ویرایشگرهای هوش مصنوعی
فهرست ابزارها و پچهای جامعهٔ کاربری برای پشتیبانی از راستبهچپ و تایپوگرافی در دستیارها و ابزارهای هوش مصنوعی.
یک دستور برای چند برنامه: npx antigravity-rtl برنامههای ChatGPT، OpenCode، Qoder، DeepSeek Harness و Pi را هم روی سیستم شما پیدا میکند و در فهرست انتخاب نشان میدهد (بدون تیک). اگر انتخابشان کنید، ابزار خود همان برنامه را اجرا میکند که نویسندهاش آن را ساخته و نگه میدارد.
| ابزار / برنامه | ریپازیتوری پچ | توسعهدهنده | توضیحات |
|---|---|---|---|
| ChatGPT | chatgpt-rtl |
@mmnaderi | پچ هوشمند RTL و تایپوگرافی برای نسخه دسکتاپ ChatGPT |
| Claude | claude-desktop-rtl |
@mmnaderi | پشتیبانی از راستچین و فونت فارسی در Claude Desktop |
| Comet | comet-patch |
@mmnaderi | بهینهسازی پرامپتها و اصلاح تایپوگرافی Comet در مک |
| Cursor | cursor-rtl |
@mmnaderi | پچ هوشمند راستچین و فونت فارسی برای ویرایشگر Cursor AI |
| DeepSeek Harness | deepseek-rtl |
@ramin-mahmoodi | افزونهٔ راستچین فارسی و عربی برای رابط وب DeepSeek Harness |
| Hermes Agent | hermes-persian-rtl |
@mmnaderi | افزونهٔ تایپوگرافی و RTL برای نسخه دسکتاپ Hermes Agent |
| OpenCode | opencode-rtl |
@SMhdAsadi | پچ هوشمند RTL برای برنامه دسکتاپ OpenCode |
| Pi | pi-rtl |
co-parsa | شکلدهی حروف و راستچین برای عامل ترمینالی Pi |
| Qoder | qoder-rtl |
@Pezhm4n | پچ راستچینسازی محیط چت دسکتاپ Qoder |
| ZCode | rtl-zcode |
@Morteza-NW | پشتیبانی هوشمند از راستچین و فونت فارسی در برنامه دسکتاپ ZCode |
| Zed | Zed-RTL |
@AmirAliManzar | اصلاح رندر متن راستچین و حرکت نشانگر در ادیتور Zed |
اگر برای ابزار یا ادیتور هوش مصنوعی دیگری پچ راستچین ساختهاید، خوشحال میشویم با ارسال Pull Request آن را به این لیست اضافه کنید!
پروژههای الهامگرفته از این پروژه
ابزارها و افزونههای متنبازی که از ایده، کد یا رابط کاربری Antigravity RTL الهام گرفته و اقتباس کردهاند:
- qoder-rtl: ابزار راستچینسازی چت دسکتاپ Qoder با الهام از Antigravity RTL.
- MarkdownRTL: افزونهٔ محیطهای توسعه JetBrains برای پیشنمایش متون راستچین Markdown با اقتباس از کنترلر شناور و طراحی این پروژه.
برای گزارش مشکل یا پیشنهاد تغییر، Issue ثبت کنید یا Pull Request بفرستید.
Explore projetos relacionados
Carregando…