context-xray
Fungsinya
Skill ini menunjukkan bagian-bagian konteks obrolan saat ini milik agent, beserta ukuran ruang yang dipakai masing-masing. Anda atau agent bisa menyimpan bagian yang penting dan menyembunyikan bagian yang sudah usang. Skill ini untuk orang yang obrolan panjangnya mulai lambat atau membingungkan.
Kapan dipakai
- βSaat obrolan panjang mulai besar dan Anda ingin melihat apa yang memakan ruang.
- βKetika hasil alat atau berkas lama sudah tidak relevan dan sebaiknya dikeluarkan.
- βSaat spesifikasi tugas atau batasan penting perlu dipertahankan sepanjang obrolan.
Link skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βObrolan ini sudah sangat panjang. Bisakah Anda menunjukkan apa yang paling banyak memakan ruang, dan tetap menyimpan persyaratan proyek saya?β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent menampilkan bagian-bagian obrolan beserta ukurannya. Anda atau agent bisa menyematkan bagian agar tetap disimpan, atau menyembunyikannya dari balasan berikutnya. Menyembunyikan tidak pernah menghapus riwayat obrolan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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.
Pertanyaan umum
Apakah menyembunyikan bagian berarti menghapus obrolan?
Tidak. Menyembunyikan bisa dibatalkan, dan riwayat obrolan tidak pernah dihapus.
Apa yang dilakukan penyematan?
Penyematan menjaga bagian konteks tetap ada di balasan berikutnya, sehingga tidak ikut terbuang saat obrolan dipadatkan.
Bisakah saya membatalkan perubahan?
Bisa. Memulihkan segmen akan membatalkan penyematan, penyembunyian, atau perubahan ringkasan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 7.6k
- Peringkat
- #13149
- Lisensi
- MIT
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
design-exploration
7.6kMembantu agent Anda mengeksplorasi beberapa arah desain UI secara berdampingan, membiarkan Anda memilih satu, lalu menyempurnakan desain yang dipilih.
visual-edit
7.6kMembantu agent Anda membuka aplikasi lokal yang sedang berjalan di editor visual agar Anda dapat meninjau dan mengedit layar aslinya bersama-sama.
turn-into-app
7.6kMengubah alur kerja, spreadsheet, atau proyek menjadi aplikasi visual yang rapi, dengan layar yang terisi dan agent yang bekerja di balik kontrol.
visual-plan
7.6kMengubah rencana teks biasa menjadi rencana visual interaktif dengan diagram, peta file, cuplikan kode, dan pertanyaan terbuka.
Skill serupa
add-model-provider
394kMemungkinkan agent Anda menghubungkan penyedia model AI baru ke OpenClaw dengan perintah pengaturan yang aman, menjaga kunci API tetap di luar teks biasa, dan menjalankan uji langsung.
acp-router
394kMembantu agent Anda mengirim tugas ke asisten pemrograman seperti Claude Code atau Cursor lewat OpenClaw, sehingga pekerjaan dijalankan di alat tersebut.
browser-automation
394kMengajari agent Anda mengendalikan halaman web langkah demi langkah, termasuk login, tab, dan pemulihan saat halaman berhenti merespons.