context-mode
यह क्या करती है
यह स्किल AI एजेंट को बताती है कि कोड खोजते, फ़ाइलें पढ़ते और भारी कमांड चलाते समय context-mode टूल कैसे इस्तेमाल करें। यह उन लोगों के लिए है जो Antigravity CLI में context-mode टूल इंस्टॉल करके उपयोग करते हैं।
कब इस्तेमाल करें
- ✓जब एजेंट विश्लेषण के लिए किसी कोडबेस की खोज या बहुत सारी फ़ाइलें पढ़ रहा हो।
- ✓जब काम में बड़ी मात्रा के डेटा की गिनती, तुलना या पार्सिंग हो।
- ✓जब किसी वेब कंटेंट को बिना बातचीत भरे लाकर खोजना हो।
Skill का लिंक
https://github.com/mksglu/context-mode/blob/main/configs/antigravity-cli/skills/context-mode/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस कोडबेस की खोज कीजिए और TODO कमेंट गिनिए, बिना हमारी बातचीत को भरे।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
स्किल एजेंट को context-mode टूल की ओर भेजती है, जैसे कोड चलाने के लिए sandbox और बड़े कंटेंट के लिए लोकल सर्च इंडेक्स। एजेंट सब कुछ बातचीत में पढ़ने के बजाय इन्हें सीधे इस्तेमाल करता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
context-mode for Antigravity CLI
context-mode MCP tools are available in agy as context-mode/<tool>.
Use these tools directly. Do not inspect cached schema files under
~/.gemini/antigravity-cli/mcp/context-mode/*.json, and do not run
ctx_execute just to discover tool names or schemas.
If agy uses the generic MCP wrapper, call call_mcp_tool with:
ServerName:"context-mode"ToolName: one of the tool names belowArguments: the JSON arguments for that tool
Tool List
context-mode/ctx_execute: run JavaScript, TypeScript, Python, shell, or other code in a sandbox. Print only the final answer.context-mode/ctx_execute_file: read one file intoFILE_CONTENTinside the sandbox and run code over it. This is the context-mode file-read surface.context-mode/ctx_batch_execute: run multiple repository commands in one batch, index large output, and answer follow-up queries.context-mode/ctx_index: store a file, directory, or content in the local FTS5 knowledge base for later search.context-mode/ctx_search: search indexed content and captured session memory. Batch related questions inqueries.context-mode/ctx_fetch_and_index: fetch web content, store it, then query withctx_search.context-mode/ctx_stats: show context savings and current-session stats.context-mode/ctx_doctor: diagnose context-mode runtime and hook health.context-mode/ctx_upgrade: provide upgrade or repair guidance.context-mode/ctx_purge: purge stored context-mode knowledge after confirmation.context-mode/ctx_insight: launch or report the Insight analytics app.
When the user asks "what context-mode tools are available", answer from this
list. Do not list ~/.gemini/antigravity-cli/mcp/context-mode and do not read
the JSON schema files.
File Reading
There is no separate ctx_read tool. Use context-mode/ctx_execute_file for
file reads that analyze, summarize, extract, count, filter, or compare.
Native Read / view_file is only right when editing needs exact bytes in the
conversation, or when the user explicitly asks to view a small known range.
Use JavaScript by default for lightweight file analysis:
{
"path": "README.md",
"language": "javascript",
"code": "const lines = FILE_CONTENT.split(/\\r?\\n/); console.log(lines.slice(0, 20).join('\\n'));"
}
Never print FILE_CONTENT wholesale unless the user explicitly asks for a full
file dump. Print selected lines, counts, matches, summaries, or structured
results.
Codebase Exploration
For repository exploration, prefer one context-mode/ctx_batch_execute call
instead of many native ListDir, Read, Grep, or shell calls.
For one-off computed answers, use context-mode/ctx_execute.
For one-file analysis, use context-mode/ctx_execute_file.
For durable recall across follow-up questions, use context-mode/ctx_index
with a descriptive source, then context-mode/ctx_search.
Return concise derived answers. Do not paste raw command dumps, full files, large search results, cached schemas, or raw HTML into the conversation.
अक्सर पूछे जाने वाले सवाल
यह कौन-से टूल इस्तेमाल करती है?
यह sandbox में कोड चलाने, फ़ाइल इंडेक्सिंग, खोज और वेब फ़ेच के लिए context-mode टूल इस्तेमाल करती है।
क्या इसके लिए खास सेटअप चाहिए?
हाँ। context-mode टूल इंस्टॉल होने चाहिए और Antigravity CLI में उपलब्ध होने चाहिए।
आउटपुट छोटा क्यों रखें?
केवल अंतिम जवाब छापने से बातचीत केंद्रित रहती है और बड़े कच्चे आउटपुट से बचा जाता है।
जानकारी
लेखक का मूल विवरण
Mandatory routing rules for Antigravity CLI. Invoke when exploring a codebase, reading files for analysis, listing context-mode tools, searching, parsing, counting, comparing, summarizing, fetching web content, or running data-heavy commands.
repo: mksglu/context-mode
लोकप्रियता
- GitHub स्टार
- 33k
- रैंकिंग में स्थान
- #8508
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
context-mode
33kआपके एजेंट को डेटा-भारी काम sandbox में चलाकर केवल जवाब छापना सिखाती है, ताकि कच्ची फ़ाइलें और वेब पेज बातचीत न भरें।
context-mode
33kआपके एजेंट को बड़े आउटपुट वाले कामों, जैसे लॉग, JSON या बिल्ड के नतीजे, के लिए सादे शेल कमांड की जगह context-mode टूल इस्तेमाल करना सिखाती है।
ctx-doctor
33kcontext-mode के डायग्नोस्टिक चलाती है, जो रनटाइम, हुक, सर्च स्टोरेज, प्लगइन सेटअप और वर्शन जाँचती है, फिर साफ़ पास या फ़ेल रिपोर्ट दिखाती है।
ctx-index
33kआपके एजेंट को किसी लोकल प्रोजेक्ट या फ़ोल्डर को खोजने योग्य स्टोर में इंडेक्स करने देती है, ताकि बाद के सवालों के लिए हर फ़ाइल दोबारा न पढ़नी पड़े।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।