C.W.K.
Stream
Lesson 03 of 07 · published

ContextEngine — Vault → System Prompt

~11 min · context-engine, system-prompt

Level 0호기심
0 XP0/65 lessons0/17 achievements
0/100 XP to next level100 XP to go0% complete

load 순서 중요

backend/context/engine.py 가 vault 를 fixed sequence 로 load: Pippa.mdinstructions.mdcore/*index/*. 순서가 중요한 건 identity priority 가 순서 따라. index/ 아래 10KB 넘는 file 은 on-demand pointer 로 대체 — 매 system prompt 부풀림 대신 필요할 때 Read tool 통해 피파가 읽음.

RAG 주입

system prompt 가 RAG context (다음 lesson) 도 포함. RAG 가 system prompt finalize 전에 실행 — retrieved chunk 가 system prompt 의 section, user message 아님.

Cache 힌트

vault content 가 거대. Claude SDK 가 prefix caching 사용 — session 간 같은 vault content, 같은 prefix, cached. token 한 번 청구, 모든 session 시작에 reuse. cache 힌트가 implicit; 동작하게 만드는 게 구조.

Progress

Progress is local-only — sign in to sync across devices.
이 페이지에서 버그를 발견하셨거나 피드백이 있으세요?문제 신고
💛 by 똘이warm💛 by 피파warm

댓글 0

🔔 답글 알림 (로그인 필요)
로그인댓글을 남기려면 로그인해 주세요.

아직 댓글이 없어요. 첫 댓글을 남겨보세요.