GCSA
Integrates with Google Antigravity agents through Desktop or CLI, enabling task delegation, automatic model selection and fallback, swarm runs, result retrieval, and usage/quota tracking.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
GCSA — Claude Sync Antigravity
Version 4.0.0 (GCSA V4)
Unofficial tool, developed by Eslam Elgindy. Not affiliated with, endorsed by or sponsored by Anthropic or Google. Claude is a trademark of Anthropic; Antigravity is a trademark of Google.
What it does
GCSA (Claude Sync Antigravity) connects Claude and Google Antigravity in both directions. Claude is the brain: it plans the work and reviews the results. Antigravity agents are the muscle: they carry out the tasks. Sending the heavy execution work to Antigravity saves Claude tokens, and the tool picks a suitable model for each task.
The bridge works in both directions:
Claude to Antigravity: Claude Code and Claude Desktop send tasks to Antigravity through the
csa-claudeMCP server.Antigravity to Claude: Antigravity asks Claude to review a result or take over a task through the
csa-antigravityMCP server.
Related MCP server: Nexus MCP
Features
Delegation with automatic model choice. The model is chosen by task size and type. If the preferred model is low on quota, the tool falls back to the next one.
Choice of any available model. You can name a model yourself instead of using the automatic choice.
Desktop-first
autotarget with safe CLI fallback (v3).agy_taskdefaults totarget="auto"(default_target: "auto"). It checks whether the Antigravity Desktop app is running and reachable (agy_desktop_statuscheck) and uses Desktop first (subject toallow_desktop_auto_exec,allow_desktop_edit, and fail-closed safety checks); otherwise it falls back toagyCLI (agy_pathinconfig.json,%LOCALAPPDATA%\agy\bin\agy.exe, orPATH). Explicittarget="cli"ortarget="desktop"still works.Automatic runtime fallback for non-security failures (
v3). If Desktop fails or rejects execution for a non-security reason (for example, the app becomes suddenly unavailable or hits a connection timeout),automode falls back automatically to CLI withtransportandtransport_reasonrecorded. Refusals caused by theauto-runsecurity gate never fall back automatically to CLI.Bilingual no-transport diagnostic error (
v3). When neither Desktop nor CLI is available, CSA returns a structured Arabic + English diagnostic error detailing what was checked for Desktop and CLI, plus ordered remediation steps (agy_pathinconfig.json,agy --version, login check, andagy_desktop_status), and displays it in the dashboard.Desktop Project & Folder Binding Guard (
v3). Becauseagentapi new-conversationdoes not accept a--workspaceflag and otherwise drops new conversations intoNon-Projectwithout a bound workspace folder, CSA guards desktop tasks (agy_desktop_taskoragy_taskchoosing desktop viaauto) that target a folder (cwd). It checks saved workspace bindings (workspace-bindings.json) and auto-discovers recent Antigravity Desktop project conversations (get-conversation-metadata) matchingcwd. If the project/folder (cwd) is not registered or bound in Antigravity yet, CSA stops the task and returns a bilingual question (PROJECT_BINDING_REQUIRED) asking Claude/the user which Antigravity project/conversation and folder (cwd) to bind to—offering three options: passconversation_id, open the folder as a project in Antigravity Desktop, or passallow_non_project: true. All Desktop tasks also inject an explicitWORKSPACE CONTEXTheader (Working Directory (cwd)andAdded Directories) so the Antigravity agent always knows the exact target folder immediately.Desktop mode & read-only protection. Tasks appear inside the Antigravity app so you can watch them live. Because Desktop mode does not enforce CLI plan mode,
kind="read"desktop jobs inject an explicit no-modification warning and inspectfiles_changedafterward, flagging any unexpected file changes (read_only_violation,read_only_warning).Live space-bridge dashboard, GCSA brand icon/favicon & automatic usage bar (
v2+v3+V4). Opens automatically on the first delegated task (dashboard_auto_open), displays the GCSA brand icon beside the header title and as the browser favicon (/logo/gcsa,/favicon.ico), shows every agent and job on one board (csa_board+csa_dashboard), logstransport/transport_reason, displays an 8-language auto-exec warning banner when active, and includes a bottom quota & usage bar for Claude Code and Antigravity models with automatic Claude usage refresh (refreshClaudeUsage, throttled to once per 20 s) on every job start, job finish/state change, message in either direction, and dashboard startup.Proactive completion & approval/permission notifications (
V4). Every completed job stamps an exact ISO-8601completed_attimestamp inresult.json,agy_wait/agy_result,agy_list,messages.jsonl, and<CSA_HOME>/notifications.jsonl. Whenever a permission or command approval is needed (needs_approval,commands_requested,blocked) or a task completes, GCSA records a structured notification (approval_needed/task_completed) and desktop instructions direct Antigravity to immediately notify the delegating Claude session (optionalnotify_session) so Claude can grant approval (agy_approveor reply) and know the exact moment execution finished.Usage report. Shows the tokens used, the remaining quota for each model and when each quota resets (
usage.by_model).Swarm mode. Runs several agents in parallel (split mode), or runs the same prompt on 2 to 3 models and compares the answers (compare mode).
Reverse direction. Antigravity can ask Claude to review or take over a task. A hop limit (default 3) stops endless back-and-forth.
Message log. Every message in both directions (along with
transportandtransport_reason) is recorded and shown in the dashboard.
Tools
csa-claude (used by Claude Code and Claude Desktop)
Tool | Purpose |
| Start a task on Antigravity (read or edit). Defaults to |
| Wait for a running task to finish, up to 50 seconds per call. |
| Read the result of a finished task (includes |
| Run commands that Antigravity requested, by |
| Cancel a running task. |
| List recent tasks. |
| List the available models, their remaining quota and their tier. |
| Show the usage report and quota ( |
| Show the message log (including |
| Start a task directly inside the Antigravity desktop app. |
| Check Antigravity desktop app availability, safety gate status, or a desktop task. |
| Start a parallel run (split or compare). |
| Check a swarm run. |
| Open or reopen the live project dashboard in the browser. |
| Update the live dashboard board for Claude-side agents ( |
csa-antigravity (used by Antigravity)
Tool | Purpose |
| Ask Claude to review what Antigravity did (optional |
| Hand a task over to Claude (optional |
| Wait for a Claude job to finish. |
| Read the result of a Claude job. |
Live Dashboard & Usage Bar (v2 + v3 + v3.5.0)
Auto-open & reopen: The dashboard opens automatically on
http://localhost:4317(dashboard_port) the first time a project delegates work (dashboard_auto_open: true). Callcsa_dashboardanytime to reopen it.Space bridge & unified board: Uses the real Claude and Antigravity icons read from the installed apps (not bundled), with fiber lines that light up on every message in either direction. Gindy (
id: "gindy") is the manager/supervisor alongside Claude-side subagents registered viacsa_board, Antigravity jobs, and Claude review jobs. Idle or finished agents turn grey and stop moving.Personalization: Supports three avatar styles (cartoon robots, pixel characters, simple), dark/light themes, and 8 languages.
Transport visibility & diagnostics: Every task result, message entry, and dashboard job/message row records
transport(desktoporcli) andtransport_reason(such as whyautochose or fell back to CLI). If neither transport is available, the structured Arabic + English no-transport diagnostic and remediation steps appear in the dashboard.Auto-exec warning banner (8 languages): Whenever
allow_desktop_auto_execistrueor the Antigravity app's auto-run policy is active, the dashboard displays a prominent warning banner in all 8 supported languages.Bottom usage bar & automatic Claude usage refresh (
v3+v3.5.0):Claude Code overall quota (
v3.5.0automatic refresh):refreshClaudeUsage({reason})insrc/lib/claude-usage.mjsruns automatically (fire-and-forget, never throws, throttled to once per 20 s) on job start, job finish/state change, every logged message in either direction, and dashboard server startup. It checks three sources in priority order (first valid wins):Snapshot file
<CSA_HOME>/claude-usage.json({five_hour_remaining_pct, weekly_remaining_pct, resets_at, note, updated_at}) if fresh withinclaude_usage_max_age_s(default600seconds). Written atomically bycsa_boardset_usageand bynode scripts/push-claude-usage.mjs --five-hour <pct> --weekly <pct> --resets-at "<time>".Optional
claude_usage_commandinconfig.json(an array[executable, ...args], never a shell string, 5 s timeout, prints the same JSON, validated and clamped0-100).Last value from
csa_boardset_usage, markedstale. If none is available, the dashboard showsUnavailable: <reason>with a short setup hint. Freshness text (updated N min ago/stale/unavailable: reason) appears directly under the Claude icon in all 8 languages, both themes, RTL, and mobile, and/api/statusexposesclaude_usagewithupdated_atandstale. Quota numbers are never fabricated, and credentials/OAuth tokens/cookies/.credentials.jsonare never read or stored (see docs/CLAUDE-USAGE.md).
Antigravity per-model dropdown: The collapsed summary line highlights the highest-consumption model. Expanding the dropdown shows remaining quota %, reset time, and today/total tokens & jobs from
usage.by_modelfor each model. Models that do not report quota percentages (such as Gemini 4 Carbon) displayUnavailable(غير متاح).
Safety
Read-only by default & Desktop read-only protection. CLI read tasks run in plan mode and cannot change files. Because Desktop mode does not enforce CLI plan mode,
kind="read"desktop jobs inject an explicit no-modification warning and inspectfiles_changedafterward, flagging unexpected changes (read_only_violation,read_only_warning).No skip-permissions. The tool never uses
--dangerously-skip-permissionsfor Claude or Antigravity.Command approval. Commands that Antigravity wants to run are listed first. They run only when you approve them by index through
agy_approve.Secret files are blocked. Files such as
config.php,.env*,*.pem,*.key,id_rsa*,credentials*,secrets*,*.kdbxand anything under.git/are refused.CSRF token is never stored. The Antigravity token is passed only to a child process or an HTTP header. It is never written to a file, a log or a result.
No fabricated quotas or stored Claude credentials. Claude Code quota shows
Unavailable(غير متاح) until pushed viacsa_boardset_usage; the tool never fabricates quota data or stores Claude tokens/secrets.Output is redacted. Error text that may contain a command line or a token is cleaned before it is shown or logged.
Hop limit. A task chain can cross between Claude and Antigravity at most 3 times by default.
Desktop mode warning. Desktop mode runs with the Antigravity app's own permission settings. The app may run commands without asking you. Check those settings before you use desktop mode.
Desktop auto-run is refused (no CLI fallback bypass). Desktop mode is refused while the Antigravity app is set to auto-run commands. Switch the app to "Request review", or set
allow_desktop_auto_exectotruein your ownconfig.jsonto accept the risk (which also enables the 8-language dashboard warning banner). Refusals caused by theauto-runsecurity gate never fall back automatically to CLI inautomode.Desktop edit jobs are off by default.
allow_desktop_editdefaults tofalseinconfig.default.json. Turn it on only in your userconfig.json.Fail closed. If the app's settings cannot be read, the tool treats them as auto-run and refuses desktop mode.
Reverse-direction Claude runs are restricted. They use
--setting-sources user, deny Bash and PowerShell, and load no MCP servers.Blocked locations. The
.claude,.gemini,.ssh,.awsand.gitfolders, credential files, drive roots and the user profile folder are refused.Server-issued chain ids. Chain ids are created by the server, not by the caller. Daily job and Claude-cost caps apply.
Local dashboard. The dashboard answers only requests from localhost.
Requirements
Windows
Node.js 20 or newer
The Antigravity desktop app and/or the
agyCLI (installed and signed in);automode tries Desktop first and falls back toagyCLIClaude Code (and/or Claude Desktop)
Installation
Short version: install dependencies, then register the two MCP servers with Claude and with Antigravity. The Claude Code server name is csa.
cd "<path>\Claude-Sync-Antigravity"
npm install
npm run dashboardThe full steps, including the Claude Desktop extension and the Antigravity configuration, are in docs/INSTALL.md.
Configuration
Default settings are in config.default.json in the project folder. To change them, create %LOCALAPPDATA%\claude-sync-antigravity\config.json. Keys in that file override the defaults. You only need to write the keys you want to change.
Key | Default | What it does |
| fast, balanced and deep model lists | Which models belong to each tier, in order of preference. |
|
| Tier used when a task does not name one. |
|
| Default target for |
|
| Optional explicit path to the |
|
| Requires desktop tasks targeting |
|
| Maximum age in seconds (10 minutes) for |
|
| Optional array |
|
| A model whose remaining quota is below this fraction (10%) is skipped. |
|
| Time limit in seconds for a task when none is given. |
|
| Longest time limit in seconds a task may request. |
|
| How many times a task chain may cross between Claude and Antigravity. |
|
| Opens the live dashboard automatically the first time a project delegates work. |
|
| Localhost port for the live dashboard HTTP/SSE server. |
|
| Claude model used for reverse-direction review and task jobs. |
|
| Maximum Claude cost in USD for one reverse-direction job. |
|
| How many reverse-direction Claude jobs may run at once. |
|
| Daily cap in USD on Claude cost for reverse-direction jobs. |
|
| Daily cap on the number of jobs. |
|
| How many swarm parts may run at once. |
| fast: flash, balanced: flash, deep: pro | Which app model each tier uses in desktop mode. |
|
| Folders where tasks may run. Recommended: set this, for example |
|
| Remains |
|
| Remains |
|
| Time limit in seconds for each command you approve with |
Security default note:
allow_desktop_auto_execandallow_desktop_editstayfalseinconfig.default.jsonand are enabled only if you explicitly set them in your own%LOCALAPPDATA%\claude-sync-antigravity\config.json.
Keep the JSON valid (double quotes, no trailing commas, double backslashes in Windows paths).
Limitations
The tool relies on undocumented Antigravity internals. These may change in a future Antigravity update, and the tool may then stop working until it is updated.
Reading desktop replies relies on a result file that the agent is asked to write. If the agent does not write it, the reply cannot be read.
Quota information needs the Antigravity app to be running. Models that do not report quota percentages (such as Gemini 4 Carbon) show
Unavailable.Because Claude Code CLI does not expose a local unauthenticated quota endpoint and GCSA never reads credentials/OAuth tokens/cookies, Claude Code quota in the dashboard bottom bar refreshes automatically from
<CSA_HOME>/claude-usage.json(written bycsa_boardset_usageorscripts/push-claude-usage.mjs), an optionalclaude_usage_command, or the lastset_usagevalue (markedstale); otherwise it showsUnavailablewith a reason and setup hint (see docs/CLAUDE-USAGE.md).Windows only in this version.
Security
See docs/SECURITY.md for the full safety rules.
License
PolyForm Noncommercial License 1.0.0: source-available, free for non-commercial use. Commercial use requires written permission from the author. Copyright (c) 2026 Eslam Elgindy. See LICENSE.
Author: Eslam Elgindy
العربية — GCSA (Claude Sync Antigravity)
الإصدار 3.5.0 (GCSA v3.5.0)
ملاحظة مهمة: هذه أداة غير رسمية من تطوير Eslam Elgindy. ليست تابعة لشركة Anthropic أو Google، ولا معتمدة منهما أو مدعومة منهما. Claude علامة تجارية مسجلة لشركة Anthropic، وAntigravity علامة تجارية مسجلة لشركة Google.
ما الذي تفعله الأداة؟
يربط GCSA (Claude Sync Antigravity) بين Claude وGoogle Antigravity في الاتجاهين. Claude هو العقل: يخطط للعمل ويراجع النتائج. وكلاء Antigravity هم العضلات: ينفذون المهام. إرسال التنفيذ الثقيل إلى Antigravity يوفّر tokens من Claude، وتختار الأداة النموذج المناسب لكل مهمة.
الجسر يعمل في الاتجاهين:
من Claude إلى Antigravity: يرسل Claude Code وClaude Desktop المهام إلى Antigravity عبر خادم MCP اسمه
csa-claude.من Antigravity إلى Claude: يطلب Antigravity من Claude مراجعة نتيجة أو تولّي مهمة، عبر خادم MCP اسمه
csa-antigravity.
المميزات
تفويض المهام مع اختيار النموذج تلقائياً. يُختار النموذج حسب حجم المهمة ونوعها. إذا كانت حصة النموذج المختار قليلة، تنتقل الأداة إلى النموذج التالي.
اختيار أي نموذج متاح. يمكنك تحديد النموذج بنفسك بدلاً من الاختيار التلقائي.
الهدف الافتراضي
auto(تفضيل Desktop ثم CLI احتياطياً) (v3). تستخدم أداةagy_taskالوضعtarget="auto"افتراضياً (default_target: "auto"). تفحص الأداة أولاً هل تطبيق Antigravity Desktop يعمل ويمكن الوصول إليه (agy_desktop_status) وتستخدم Desktop أولاً (وفق قيودallow_desktop_auto_execوallow_desktop_editوالإغلاق عند الخطأ)، وإلا تنتقل احتياطياً إلىagyCLI (عبرagy_pathفيconfig.json، أو%LOCALAPPDATA%\agy\bin\agy.exe، أوPATH). كما يظل تحديدtarget="cli"أوtarget="desktop"صراحةً متاحاً.الانتقال التلقائي وقت التشغيل عند الأعطال غير الأمنية فقط (
v3). إذا فشل وضع Desktop أو رفض التنفيذ لسبب غير أمني (مثل تعذّر الوصول للتطبيق فجأة أو انتهاء مهلة الاتصال)، ينتقل وضعautoتلقائياً إلى CLI مع تسجيل السبب (transportوtransport_reason). أما الرفض الناتج عن بوابة الأمانauto-runفلا ينتقل تلقائياً إلى CLI أبداً.رسالة إرشاد ثنائية اللغة عند عدم توفر أي مسار نقل (
v3). عندما لا يتوفر لا Desktop ولا CLI، تُرجع الأداة خطأً تشخيصياً منظماً بالعربية والإنجليزية يوضح ما تم فحصه لكلٍ من Desktop وCLI، وخطوات الإصلاح المرتبة (بما فيهاagy_pathفيconfig.json، وagy --version، وفحص تسجيل الدخول، وagy_desktop_status)، وتعرضه أيضاً في لوحة المتابعة.حارس ربط المشروع والمجلد في وضع Desktop (
v3). لأن الأمرagentapi new-conversationلا يقبل الخيار--workspaceويضع المحادثات الجديدة في قسمNon-Projectدون ربطها بمجلد مساحة عمل، تحمي الأداة مهام Desktop (agy_desktop_taskأوagy_taskعند اختيار Desktop عبرauto) التي تستهدف مجلداً (cwd). تفحص الأداة ارتباطات مساحة العمل المحفوظة (workspace-bindings.json) وتكتشف تلقائياً محادثات مشاريع Antigravity Desktop الأخيرة (get-conversation-metadata) المطابقة للمجلدcwd. وإذا لم يكن المشروع/المجلد (cwd) مسجلاً أو مربوطاً في Antigravity بعد، توقف الأداة المهمة وتُرجع سؤالاً ثنائي اللغة (PROJECT_BINDING_REQUIRED) يسأل Claude/المستخدم عن مشروع/محادثة Antigravity والمجلد (cwd) المطلوب الربط بهما—مع ثلاثة خيارات: تمريرconversation_id، أو فتح المجلد كمشروع في Antigravity Desktop، أو تمريرallow_non_project: true. كما تحقن جميع مهام Desktop ترويسةWORKSPACE CONTEXTصريحة (Working Directory (cwd)وAdded Directories) ليعرف وكيل Antigravity المجلد المستهدف بدقة فوراً.وضع Desktop وحماية القراءة فقط. تظهر المهام داخل تطبيق Antigravity لمتابعتها مباشرة. ولأن وضع Desktop لا يفرض وضع
planالخاص بـ CLI، تحقن مهام Desktop من نوعkind="read"تحذيراً صريحاً بعدم تعديل أي ملف، ثم تفحصfiles_changedبعد الانتهاء وتُعلِم عن أي تعديل غير متوقع (read_only_violationوread_only_warning).لوحة المتابعة المباشرة وشريط الاستخدام مع التحديث التلقائي (
v2+v3+v3.5.0). تُفتح تلقائياً عند أول تفويض للمشروع (dashboard_auto_open)، وتعرض كل الوكلاء والمهام على لوحة واحدة (csa_boardوcsa_dashboard)، وتسجّلtransportوtransport_reason، وتعرض شريط تحذير بارزاً للتنفيذ التلقائي بجميع اللغات الـ 8 عند تفعيله، وتضم شريط استخدام سفلياً لحصص Claude Code ونماذج Antigravity مع تحديث تلقائي لاستهلاك Claude Code (refreshClaudeUsageبمعدّل مرة كل 20 ثانية كحد أقصى) عند بدء أي مهمة، أو انتهائها/تغيّر حالتها، أو تسجيل أي رسالة في أي اتجاه، وعند بدء تشغيل خادم اللوحة.تقرير الاستخدام. يعرض عدد الـ tokens المستخدمة، والحصة المتبقية لكل نموذج، ووقت تجديد كل حصة (
usage.by_model).وضع Swarm. يشغّل عدة وكلاء بالتوازي (وضع split)، أو يشغّل الطلب نفسه على 2 إلى 3 نماذج ويقارن الإجابات (وضع compare).
الاتجاه العكسي. يمكن لـ Antigravity أن يطلب من Claude المراجعة أو تولّي المهمة. حد عدد التحويلات (الافتراضي 3) يمنع الدوران بلا نهاية.
سجل الرسائل. تُسجَّل كل الرسائل في الاتجاهين (مع
transportوtransport_reason) وتظهر في لوحة المتابعة.
الأدوات
csa-claude (يستخدمه Claude Code وClaude Desktop)
الأداة | الوظيفة |
| بدء مهمة على Antigravity (قراءة أو تعديل). الافتراضي |
| الانتظار حتى تنتهي مهمة تعمل، حتى 50 ثانية في كل مرة. |
| قراءة نتيجة مهمة انتهت (وتشمل |
| تنفيذ الأوامر التي طلبها Antigravity، حسب |
| إلغاء مهمة تعمل. |
| عرض المهام الأخيرة. |
| عرض النماذج المتاحة، والحصة المتبقية لكل نموذج، وفئته. |
| عرض تقرير الاستخدام والحصة ( |
| عرض سجل الرسائل (بما في ذلك |
| بدء مهمة مباشرة داخل تطبيق Antigravity على الكمبيوتر. |
| فحص جاهزية تطبيق Antigravity Desktop وبوابة الأمان أو متابعة مهمة Desktop. |
| بدء تشغيل متوازٍ (split أو compare). |
| متابعة تشغيل Swarm. |
| فتح أو إعادة فتح لوحة المتابعة المباشرة للمشروع في المتصفح. |
| تحديث لوحة المتابعة بوكلاء Claude والخطة ( |
csa-antigravity (يستخدمه Antigravity)
الأداة | الوظيفة |
| طلب مراجعة من Claude لما نفّذه Antigravity (خيار |
| تسليم مهمة إلى Claude (خيار |
| الانتظار حتى تنتهي مهمة Claude. |
| قراءة نتيجة مهمة Claude. |
لوحة المتابعة المباشرة وشريط الاستخدام (v2 + v3 + v3.5.0)
الفتح التلقائي وإعادة الفتح: تُفتح اللوحة تلقائياً على
http://localhost:4317(dashboard_port) عند أول تفويض عمل في المشروع (dashboard_auto_open: true). ويمكن إعادة فتحها في أي وقت عبرcsa_dashboard.جسر الفضاء واللوحة الموحدة: تستخدم أيقونات Claude وAntigravity الحقيقية (تُقرأ من التطبيقات المثبتة وليست مضمّنة)، مع خطوط ألياف تضيء مع كل رسالة في الاتجاهين. يظهر
Gindy(id: "gindy") كمدير ومشرف إلى جانب وكلاء Claude المسجّلين عبرcsa_boardومهام Antigravity ومهام مراجعة Claude. يتحول لون الوكلاء الخاملين أو المنتهين إلى الرمادي وتتوقف حركتهم.التخصيص: ثلاثة أنماط للشخصيات (روبوتات كرتونية، شخصيات بكسل، بسيط)، ومظهر داكن/فاتح، و8 لغات.
ظهور مسار النقل والتشخيص: تُسجَّل قيم
transport(desktopأوcli) وtransport_reasonفي نتائج المهام وسجل الرسائل ولوحة المتابعة. وعند غياب كلا المسارين، تظهر رسالة التشخيص الثنائية اللغة (العربية + الإنجليزية) وخطوات الإصلاح المرتبة داخل اللوحة أيضاً.شريط تحذير التنفيذ التلقائي (بـ 8 لغات): يظهر شريط تحذير بارز بجميع اللغات الـ 8 كلما كان
allow_desktop_auto_execمفعّلاً أو كانت سياسة التشغيل التلقائي (auto-run) نشطة في تطبيق Antigravity.شريط الاستخدام السفلي والتحديث التلقائي لاستهلاك Claude (
v3+v3.5.0):حصة Claude Code الإجمالية (
v3.5.0تحديث تلقائي): تعمل الدالةrefreshClaudeUsage({reason})فيsrc/lib/claude-usage.mjsتلقائياً (دون إيقاف التنفيذ أو رمي استثناءات، وبمعدّل مرة كل 20 ثانية كحد أقصى) عند بدء أي مهمة، أو انتهائها/تغيّر حالتها، أو تسجيل أي رسالة في الاتجاهين، وعند بدء تشغيل خادم اللوحة. وتفحص ثلاثة مصادر بالترتيب (أول مصدر صالح يفوز):ملف اللقطة
<CSA_HOME>/claude-usage.json({five_hour_remaining_pct, weekly_remaining_pct, resets_at, note, updated_at}) إذا كان حديثاً ضمنclaude_usage_max_age_s(الافتراضي600ثانية). يُكتب هذا الملف ذرياً عبرcsa_boardset_usageأو عبر الأداةnode scripts/push-claude-usage.mjs --five-hour <pct> --weekly <pct> --resets-at "<time>".الأمر الاختياري
claude_usage_commandفيconfig.json(مصفوفة[executable, ...args]وليس نص shell، بمهلة 5 ثوانٍ، يطبع نفس JSON مع التحقق وحصر القيم بين0و100).آخر قيمة دُفعت عبر
csa_boardset_usageمع وسمها كبيانات قديمة (stale: true). وإذا لم يتوفر أي مصدر، تعرض اللوحةغير متاح: <السبب>مع تلميحة إعداد قصيرة. كما يظهر نص الحداثة مباشرةً تحت أيقونة Claude (محدّث منذ N د/قديم/غير متاح: السبب) بجميع اللغات الـ 8، وفي الثيمين، ووضع RTL والموبايل، ويعرض/api/statusكائنclaude_usageبالحقلينupdated_atوstale. لا يتم أبداً قراءة ملفات الاعتماد أو رموز OAuth أو ملفات تعريف الارتباط أو.credentials.jsonأو تلفيق أرقام من السجلات (راجع docs/CLAUDE-USAGE.md).
القائمة المنسدلة لنماذج Antigravity: يعرض السطر المختصر المطوي النموذج الأعلى استهلاكاً، وعند فتح القائمة تظهر النسبة المتبقية للحصة ووقت التجديد وإجمالي tokens واليوم والمهام لكل نموذج من
usage.by_model. والنماذج التي لا توفر نسب حصة (مثلGemini 4 Carbon) تعرضغير متاح(Unavailable).
الأمان
القراءة فقط افتراضياً وحماية القراءة فقط في Desktop. مهام القراءة في CLI تعمل في وضع
planولا تغيّر الملفات. وبما أن وضع Desktop لا يفرض وضعplan، تحقن مهام Desktop من نوعkind="read"تحذيراً صريحاً بعدم التعديل وتفحصfiles_changedبعد الانتهاء للإبلاغ عن أي تغييرات غير متوقعة (read_only_violationوread_only_warning).لا يوجد تجاوز للصلاحيات. لا تستخدم الأداة الخيار
--dangerously-skip-permissionsمع Claude أو Antigravity أبداً.موافقة على الأوامر. الأوامر التي يطلب Antigravity تنفيذها تُعرض أولاً، ولا تُنفَّذ إلا إذا وافقت عليها برقمها عبر
agy_approve.حجب الملفات السرية. ترفض الأداة ملفات مثل
config.phpو.env*و*.pemو*.keyوid_rsa*وcredentials*وsecrets*و*.kdbxوأي شيء داخل.git/.رمز CSRF لا يُحفظ أبداً. يُمرَّر رمز Antigravity فقط إلى عملية فرعية أو إلى ترويسة HTTP. لا يُكتب في ملف أو سجل أو نتيجة.
لا تلفيق للحصص ولا حفظ لبيانات اعتماد Claude. تعرض حصة Claude Code
غير متاح(Unavailable) حتى تُرسل عبرcsa_boardset_usage، دون تخمين أرقام أو حفظ tokens أو أسرار.تنظيف المخرجات. يُزال أي رمز أو سطر أوامر قد يظهر في رسائل الخطأ قبل عرضها أو تسجيلها.
حد التحويلات. لا تتجاوز سلسلة المهمة التنقل بين Claude وAntigravity أكثر من 3 مرات افتراضياً.
تحذير وضع Desktop. يعمل وضع Desktop بإعدادات الصلاحيات الخاصة بتطبيق Antigravity نفسه، وقد ينفّذ التطبيق الأوامر دون أن يسألك. راجع هذه الإعدادات قبل استخدام الوضع.
رفض التنفيذ التلقائي في Desktop (دون التفاف عبر CLI). يُرفض وضع Desktop إذا كان التطبيق مضبوطاً على تنفيذ الأوامر تلقائياً (
auto-run). غيّر إعداد التطبيق إلى "Request review"، أو ضعallow_desktop_auto_execعلىtrueفي ملفconfig.jsonالخاص بك لقبول المخاطرة (وهو ما يُظهر أيضاً شريط التحذير بـ 8 لغات في اللوحة). والرفض الصادر من بوابة أمانauto-runلا ينتقل تلقائياً إلى CLI أبداً في وضعauto.مهام تعديل Desktop مغلقة افتراضياً. تبقى
allow_desktop_editعلىfalseفيconfig.default.json، ولا تُفعَّل إلا في ملفconfig.jsonالخاص بالمستخدم.الإغلاق عند الخطأ. إذا تعذّرت قراءة إعدادات التطبيق، تُعامل الأداة الإعدادات على أنها تنفيذ تلقائي، فيُرفض وضع Desktop.
مهام Claude في الاتجاه العكسي مقيّدة. تستخدم
--setting-sources user، وتمنع Bash وPowerShell، ولا تحمّل أي خوادم MCP.مواقع محجوبة. المجلدات
.claudeو.geminiو.sshو.awsو.git، وملفات بيانات الاعتماد، وجذور الأقراص، ومجلد ملف المستخدم الشخصي، كلها مرفوضة.معرّفات السلاسل من الخادم. يُنشئ الخادم معرّفات السلاسل وليس المتصل. تنطبق حدود يومية على عدد المهام وتكلفة Claude.
لوحة المتابعة محلية. تجيب اللوحة فقط على الطلبات القادمة من localhost.
المتطلبات
نظام Windows
Node.js الإصدار 20 أو أحدث
تطبيق Antigravity على الكمبيوتر و/أو أداة
agyCLI (مثبتة ومسجَّل الدخول فيها)؛ يفضّل وضعautoتطبيق Desktop العامل ثم ينتقل احتياطياً إلىagyCLIClaude Code (و/أو Claude Desktop)
التثبيت
باختصار: ثبّت المكتبات، ثم سجّل خادمَي MCP لدى Claude ولدى Antigravity.
cd "<path>\Claude-Sync-Antigravity"
npm install
npm run dashboardاسم الخادم في Claude Code هو csa.
الخطوات الكاملة، بما فيها امتداد Claude Desktop وإعداد Antigravity، موجودة في docs/INSTALL.md.
الإعدادات
القيم الافتراضية موجودة في ملف config.default.json داخل مجلد المشروع. لتغييرها، أنشئ الملف %LOCALAPPDATA%\claude-sync-antigravity\config.json. المفاتيح الموجودة فيه تتجاوز القيم الافتراضية، ويكفي أن تكتب المفاتيح التي تريد تغييرها فقط.
المفتاح | القيمة الافتراضية | ماذا يفعل |
| قوائم النماذج fast وbalanced وdeep | النماذج التابعة لكل فئة، حسب ترتيب الأفضلية. |
|
| الفئة المستخدمة عندما لا تحدد المهمة فئة. |
|
| الهدف الافتراضي لأداة |
|
| مسار اختياري صريح للملف التنفيذي |
|
| يلزم مهام Desktop التي تستهدف |
|
| أقصى عمر بالثواني (10 دقائق) لاعتبار ملف اللقطة |
|
| مصفوفة اختيارية |
|
| النموذج الذي تكون حصته المتبقية أقل من هذه النسبة (10%) يُتجاوز. |
|
| الحد الزمني للمهمة بالثواني عندما لا يُحدد. |
|
| أطول حد زمني بالثواني تستطيع المهمة طلبه. |
|
| عدد مرات التنقل المسموح لسلسلة المهمة بين Claude وAntigravity. |
|
| يفتح لوحة المتابعة المباشرة تلقائياً عند أول تفويض عمل في المشروع. |
|
| منفذ localhost الذي يعمل عليه خادم لوحة المتابعة المباشرة. |
|
| نموذج Claude المستخدم في مهام المراجعة والمهام من الاتجاه العكسي. |
|
| أقصى تكلفة لـ Claude بالدولار لمهمة واحدة من الاتجاه العكسي. |
|
| عدد مهام Claude من الاتجاه العكسي التي تعمل في وقت واحد. |
|
| الحد اليومي لتكلفة Claude بالدولار لمهام الاتجاه العكسي. |
|
| الحد اليومي لعدد المهام. |
|
| عدد أجزاء Swarm التي تعمل في وقت واحد. |
| fast: flash، balanced: flash، deep: pro | النموذج الذي يستخدمه تطبيق Antigravity لكل فئة في وضع Desktop. |
|
| المجلدات التي يُسمح بتشغيل المهام فيها. موصى به: ضع قيمة له، مثل |
|
| يبقى |
|
| يبقى |
|
| الحد الزمني بالثواني لكل أمر توافق عليه عبر |
ملاحظة حول الإعدادات الافتراضية للأمان: تظل قيمتا
allow_desktop_auto_execوallow_desktop_editمضبوطتين علىfalseفيconfig.default.json، ولا تُفعَّلان إلا إذا ضبطتهما صراحةً في ملف%LOCALAPPDATA%\claude-sync-antigravity\config.jsonالخاص بك.
حافظ على صحة ملف JSON: علامات اقتباس مزدوجة، وبدون فاصلة زائدة بعد آخر عنصر، ومع شرطتين مائلتين للخلف في مسارات Windows.
القيود
تعتمد الأداة على تفاصيل داخلية غير موثقة في Antigravity. قد تتغير هذه التفاصيل في تحديث مستقبلي، فتتوقف الأداة حتى يتم تحديثها.
قراءة ردود وضع Desktop تعتمد على ملف نتيجة يُطلب من الوكيل كتابته. إذا لم يكتبه الوكيل، لا يمكن قراءة الرد.
معلومات الحصة تحتاج إلى أن يكون تطبيق Antigravity مفتوحاً. والنماذج التي لا توفر نسبة حصة (مثل
Gemini 4 Carbon) تعرضغير متاح.لأن Claude Code CLI لا يوفر نقطة نهاية محلية غير مصادق عليها لقراءة الحصة، ولأن GCSA لا يقرأ أبداً ملفات الاعتماد أو رموز OAuth أو ملفات تعريف الارتباط، يتم تحديث حصة Claude Code في الشريط السفلي للوحة تلقائياً من
<CSA_HOME>/claude-usage.json(المكتوب عبرcsa_boardset_usageأوscripts/push-claude-usage.mjs)، أو منclaude_usage_commandالاختياري، أو من آخر قيمةset_usage(موسومة كـstale)؛ وإلا تعرضغير متاحمع السبب وتلميحة إعداد قصيرة (راجع docs/CLAUDE-USAGE.md).الأداة تعمل على Windows فقط في هذا الإصدار.
قواعد الأمان كاملة
راجع docs/SECURITY.md لقائمة قواعد الأمان كاملة.
الرخصة
رخصة PolyForm Noncommercial 1.0.0: الكود ظاهر للجميع ومجاني للاستخدام غير التجاري، والاستخدام التجاري يتطلب إذنًا كتابيًا من المؤلف. Copyright (c) 2026 Eslam Elgindy. راجع LICENSE.
المؤلف: Eslam Elgindy
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Build agents to automate any background task. Works with your ChatGPT/Claude subscription.
Connect, monitor, and control AI agents — tasks, approvals, schedules, and governance.
AI routing, memory, guardrails, and governance. Routes across Claude, GPT, Gemini.
Build and manage AI-native customer support agents from Claude or any MCP client.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables Claude to coordinate multiple specialized AI agents by creating tasks, tracking their complete thought process and execution in real-time, and monitoring progress across parallel workflows with full transparency.1822 npm2MIT
- AlicenseAqualityDmaintenanceEnables Claude to orchestrate tasks across 27 AI providers, run multi-agent plans, and conduct multi-model councils for decision-making.15MIT
- AlicenseAqualityBmaintenanceEnables Claude Code and Claude Desktop to delegate token-heavy tasks to Antigravity headless subagents, offloading file edits, test runs, and exploration while preserving Claude's context window.121MIT
- AlicenseNot gradedqualityCmaintenanceEnables Claude Code to delegate tasks to Google Antigravity (Gemini) as an autonomous subagent, including codebase exploration, architecture analysis, multi-file code generation, and technical Q&A, without requiring external API keys.MIT