본문으로 건너뛰기
Skillpedia
에이전트7.6k · #13149

context-xray

하는 일

이 스킬은 에이전트의 현재 채팅 문맥이 어떤 부분으로 이루어졌는지, 각 부분이 얼마나 공간을 쓰는지 보여 줍니다. 사용자나 에이전트가 중요한 부분은 유지하고 오래된 부분은 숨길 수 있습니다. 긴 채팅이 느려지거나 혼란스러워지는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓긴 채팅이 커져서 무엇이 공간을 차지하는지 보고 싶을 때.
  • ✓오래된 도구 결과나 파일이 더 이상 관련 없어서 빼야 할 때.
  • ✓중요한 작업 명세나 제약을 채팅 전체에 걸쳐 유지해야 할 때.

스킬 링크

https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/context-xray/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 채팅이 너무 길어졌습니다. 가장 많은 공간을 차지하는 것이 무엇인지 보여 주고, 제 프로젝트 요구 사항은 유지해 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 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

  1. Call context-manifest-get with the active threadId.
  2. Sort segments by tokenCount and inspect large stale Tool results or Files read entries.
  3. Call context-pin for essential specs or user instructions.
  4. Call context-evict for large irrelevant segments.
  5. Offer context-restore if the user wants undo.
자주 묻는 질문

부분을 숨기면 채팅이 삭제되나요?

아니요. 숨기기는 되돌릴 수 있으며, 채팅 기록은 절대 삭제되지 않습니다.

고정은 무엇을 하나요?

나중 응답에서도 문맥의 부분을 유지해, 채팅이 압축될 때 버려지지 않게 합니다.

변경을 되돌릴 수 있나요?

네. 구간을 복원하면 고정, 숨기기 또는 요약 변경이 취소됩니다.

상세 정보

작성자의 원본 설명

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
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬