context-xray
यह क्या करती है
यह स्किल एजेंट की मौजूदा चैट संदर्भ के हिस्से दिखाती है, साथ में हर हिस्से की जगह का अनुमान। आप या एजेंट ज़रूरी हिस्से रख सकते हैं और पुराने हिस्से छिपा सकते हैं। यह उन लोगों के लिए है जिनकी लंबी चैट धीमी या भ्रमित होने लगती है।
कब इस्तेमाल करें
- ✓जब लंबी चैट बड़ी हो रही हो और आप देखना चाहते हैं कि कौन सी चीज़ जगह ले रही है।
- ✓जब कोई पुराना टूल परिणाम या फ़ाइल अब प्रासंगिक न हो और उसे छोड़ना हो।
- ✓जब कोई ज़रूरी कार्य विनिर्देश या बाधा पूरी चैट में बनाए रखनी हो।
Skill का लिंक
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“यह चैट बहुत लंबी हो गई है। क्या आप दिखा सकते हैं कि सबसे ज़्यादा जगह क्या ले रहा है, और मेरी प्रोजेक्ट आवश्यकताएं रख सकते हैं?”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट चैट के हिस्से उनके आकार के साथ सूचीबद्ध करता है। आप या एजेंट किसी हिस्से को रखने के लिए पिन कर सकते हैं, या भविष्य के जवाबों से छिपा सकते हैं। छिपाने से चैट इतिहास कभी नहीं मिटता।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Context X-Ray
Context X-Ray is the framework's context garbage-collection surface. It shows the current thread's model-bound context as content-derived segments with token counts, then lets the user or agent pin, evict, or restore individual segments.
Actions
| Action | When to use |
|---|---|
context-manifest-get |
Read the current manifest for a thread. Returns token totals, segment status, source, and whether changes are enforceable. |
context-preview-get |
Compose the would-be system context for the current user/org/app without a live thread. Returns labeled system sections with provenance, governance tier, token counts, and bounded previews. Backs the Agent page Context tab. |
context-pin |
Preserve a segment across future compaction/model calls. Use for task specs, acceptance criteria, user constraints, and other durable context. |
context-evict |
Exclude a stale or irrelevant segment from future model calls. Eviction is reversible and never deletes chat history. |
context-restore |
Undo a pin, evict, or summarize directive for a segment. |
context-report |
External hosts can report their visible context inventory. These manifests are advisory unless Agent-Native owns the emitted content. |
context-compact |
Compact the thread now: fold every not-yet-compacted message into observational memory instead of waiting for the post-turn threshold. Takes effect on the next model call; the transcript is unchanged. |
System Sections
Manifests now cover the system-prompt half of context, not just conversation
segments. Each system section carries a provenance label (framework-core,
actions-prompt, template, enterprise-workspace-core, sql-workspace,
legacy-app-default, organization, personal, memory, db-schema, tools,
model-overlay, runtime-context) and a governance tier:
required— framework/enterprise policy; can never be altered by the user.inherited— template/org/workspace instructions; managed elsewhere, visible here.user— personal instructions and memory; editable through Files.
System sections are display-only provenance: they cannot be pinned, evicted,
or summarized. The persisted manifest stores source refs, scope, content
hashes, token counts, and bounded previews (~200 chars) — never raw prompt
bodies; full content stays behind the resource/access model. The in-chat
X-Ray panel groups these under "System", and the Agent page Context tab
renders the full breakdown (via context-preview-get) with a
system-vs-conversation split meter. Manifests are the latest snapshot per
thread; there is no per-iteration history.
Rules
- Never evict or summarize protected segments. The manifest marks active-turn
user/tool/thinking context as
protected. - System sections are never evictable; required/inherited tiers are locked by design — do not present controls that imply otherwise.
- Prefer pinning the user's task, requirements, and decisions before evicting large stale tool results.
- Eviction excludes content from future model calls; it does not delete the canonical transcript or files.
- In external/advisory mode, be honest: recorded directives are intent for the host except for Agent-Native-originated content we can actually withhold.
- If token counts are estimated, describe reclaim as approximate.
Typical Flow
- Call
context-manifest-getwith the activethreadId. - Sort segments by
tokenCountand inspect large staleTool resultsorFiles readentries. - Call
context-pinfor essential specs or user instructions. - Call
context-evictfor large irrelevant segments. - Offer
context-restoreif the user wants undo.
अक्सर पूछे जाने वाले सवाल
क्या किसी हिस्से को छिपाने से चैट मिटती है?
नहीं। छिपाना उलटा जा सकता है, और चैट इतिहास कभी नहीं मिटाया जाता।
पिन करने से क्या होता है?
यह बाद के जवाबों में संदर्भ का वह हिस्सा रखता है, ताकि चैट संक्षिप्त होने पर वह हटे नहीं।
क्या आप बदलाव वापस ले सकते हैं?
हां। किसी segment को बहाल करने से पिन, छिपाने या सारांश का बदलाव पलट जाता है।
जानकारी
लेखक का मूल विवरण
Inspect and manage the live agent context window with Context X-Ray. Use when context is getting large, the user asks what is in context, or stale tool results/files should be pinned, evicted, restored, or reported by an external host.
repo: BuilderIO/agent-native
लोकप्रियता
- GitHub स्टार
- 7.6k
- रैंकिंग में स्थान
- #13149
- लाइसेंस
- MIT
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
design-exploration
7.6kयह आपके एजेंट को UI के कई डिज़ाइन विकल्प साथ-साथ दिखाने, आपकी पसंद चुनवाने और फिर चुने डिज़ाइन को सुधारने में मदद करती है।
visual-edit
7.6kयह आपके एजेंट को चल रहे लोकल ऐप को विज़ुअल एडिटर में खोलने देती है, ताकि आप उसकी असली स्क्रीन एक साथ देखकर संपादित कर सकें।
turn-into-app
7.6kयह किसी वर्कफ़्लो, स्प्रेडशीट या प्रोजेक्ट को भरी हुई स्क्रीन वाले विज़ुअल ऐप में बदलती है, जिसके कंट्रोल के पीछे एजेंट काम करता है।
visual-plan
7.6kयह सादे टेक्स्ट वाली योजना को डायग्राम, फ़ाइल नक्शों, कोड अंश और खुले सवालों वाली इंटरैक्टिव विज़ुअल योजना में बदलती है।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।