Loading views...

Claude Code Source Code

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2026 Mar 31 11:16
Editor
Edited
Edited
2026 Apr 2 15:35
Refs
Refs

claude  ode open source 로 뭘할수있을가 단순말고 일반인들 타겟

sociality
platform
두개가 핵심 그리고 전염성
  • UTF-8 safe parsing (byte-level seek)
  • server_tool_use/server_tool_result handling
  • redacted_thinking, citation block handling
  • is_error, stop_reason fields
  • Mixed content splitting (text + tool_use → separate messages)
  • Background task pill
  • Auto-dream memory consolidation
  • Streaming tool info display
  1. Hook exit code protocol — 0=success, 2=blocking (model에 보임), other=non-blocking. 우리 skill/workflow 시스템에 적용하면 agent가 hook 결과를 활용 가능
  1. Conditional skills with paths: frontmatter — 파일 터치할 때만 활성화되는 skill. 우리 SkillMatcher보다 더 깔끔한 패턴
  1. updatedInput in hooks — hook이 tool input을 in-flight로 수정 가능. 예: Read 호출 시 경로를 자동 보정
  1. Async hook self-declaration — {"async": true} 첫 줄로 hook이 스스로 비동기 선언. 런타임 결정
  1. once: true self-removing hooks — 한번 실행 후 자동 삭제. Skill 호출 시 init 작업에 유용
  1. Context collapse / autocompact — 대화가 길어지면 자동으로 이전 내용 요약. 우리도 agent에 긴 세션 보낼 때 필요
  1. Coordinator mode — 같은 binary, system prompt만 바꿔서 multi-agent orchestrator로 동작. Worker는 <task-notification> XML로 결과 전달
  1. Speculative permission classifier — tool 실행 전에 ML classifier를 미리 돌려서 permission dialog 없이 자동 승인
undercover mode
anti distillation mode
Claude Code는 LLM 자체를 classifier로 사용하고, 로컬 ML은 안 씀
Claude Code 자체 — YOLO Classifier: Claude API를 호출해서 permission 분류. 2단계 파이프라인:
- Stage 1: XML 기반 빠른 allow/block 결정 (max 64 tokens)
- Stage 2: chain-of-thought 사고 (block인 경우만, max 4096 tokens)
 
 
 
 
 

Recommendations