Proposal: Setup for Antigravity #233
thomasgiroire
started this conversation in
Ideas
Replies: 1 comment
-
|
I just found this PR, I think my idea is no longer useful 😅 ... |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've been using RTK to optimize my sessions with Antigravity, trying to extending context window longevity.
However, I encountered a major friction point: even with strict instructions, LLMs often "drift" and default to raw commands (like git status or npm test) instead of prefixing them with rtk.
To solve this, I create (using the agent itself!) a script that makes RTK the standard for the agent , on MacOS.
🚀 Technical Breakdown:
Isolated Shims:
#!/bin/zsh# RTK Shim for gitexport PATH=$(echo "$PATH" | /usr/bin/sed -E "s|:[^:]*/rtk-shims/bin:?|:|g; s|^[^:]*/rtk-shims/bin:?||")exec rtk git "$@"Context-Aware PATH:
Bypassing:
Global Agent "Brain" Config:
Infinite Loop Prevention:
✨ The Result:
rtk-for-antigravity.zip
Thomas
Beta Was this translation helpful? Give feedback.
All reactions