Ctx – Claude 코드, 커서 및 AI 코딩 도구를 위한 영구 메모리
hackernews
|
|
📦 오픈소스
#claude
#오픈소스
원문 출처: hackernews · Genesis Park에서 요약 및 분석
요약
ctx는 AI 코딩 도구가 세션 간에 프로젝트 문맥을 저장하고 구조화하며 복원할 수 있도록 지원하는 가벼운 파일 기반 시스템입니다. 이 도구는 모델이나 벤더 종속성 없이 파일을 읽을 수 있는 모든 AI와 호환되며, 지속 가능한 문맥을 통해 인간과 AI의 인지 과정에서 의도를 보존하는 것을 목표로 합니다.
본문
ctx is a system, not a prompt. A lightweight, file-based system that enables AI coding assistants to persist, structure, and rehydrate project context across sessions. ctx works with any AI tool that can read files; no model or vendor lock-in. Full documentation: ctx.ist Creation, not code. Context, not prompts. Verification, not vibes. ctx is infrastructure for preserving intent under scale. Without durable context, intelligence resets. With ctx , creation compounds. Read the full Manifesto | ctx.ist/manifesto Context as State: A Persistence Layer for Human-AI Cognition AI-assisted development systems assemble context at prompt time using heuristic retrieval from mutable sources. These approaches optimize relevance at the moment of generation but provide no mechanism for persistence, verification, or accumulated learning across sessions. ctx treats context as deterministic state. Read the full Thesis | Document | Context | |---|---| | Manifesto | Philosophy: creation, context, verification | | The Thesis | Whitepaper: context as deterministic state | | Design Invariants | System properties that must always hold | | Tool Comparison | How ctx differs from .cursorrules, Aider, Copilot | ctx Blog | Deep dives, architecture notes, learnings | Most LLM-driven development fails not because models are weak: They fail because context is ephemeral. Every new session starts near zero: - You re-explain architecture - The AI repeats past mistakes - Decisions get rediscovered instead of remembered ctx treats context as infrastructure: - Persist: Tasks, decisions, learnings survive session boundaries - Reuse: Decisions don't get rediscovered; lessons stay learned - Align: Context structure mirrors how engineers actually think - Integrate: Works with any AI tool that can read files Here's what that looks like in practice: ❯ "Do you remember?" ● Yes. The PreToolUse hook runs ctx agent, and CLAUDE.md tells me to read the context files. I have context. ❯ "What have we been working on recently?" ● Yes. I can run ctx journal source and review recent activity: - 2025-01-20: The meta-experiment that started it all - 2025-01-21: The ctx rename + Claude hooks session That's the whole point: Temporal continuity across sessions. Download pre-built binaries from the releases page, or build from source: git clone https://github.com/ActiveMemory/ctx.git cd ctx CGO_ENABLED=0 go build -o ctx ./cmd/ctx sudo mv ctx /usr/local/bin/ See installation docs for platform-specific instructions. # Initialize context directory in your project ctx init # Activate it for the current shell (binds CTX_DIR). Required # before every other command: ctx no longer walks up the # filesystem looking for .context/. eval "$(ctx activate)" # Check context status ctx status # Get an AI-ready context packet ctx agent --budget 4000 # Add tasks, decisions, learnings ctx task add "Implement user authentication" ctx decision add "Use PostgreSQL for primary database" \ --context "Need a reliable database for production workloads" \ --rationale "PostgreSQL offers ACID compliance, JSON support, and team familiarity" \ --consequence "Team needs PostgreSQL training; must set up replication" ctx learning add "Mock functions must be hoisted in Jest" ctx activate emits export CTX_DIR=... for your shell; one-shot callers can prefix the binding inline as CTX_DIR= ctx ... . The value must be an absolute path with .context as its basename; relative paths and other names are rejected on first use. A small allowlist (init , activate , deactivate , version , help , system bootstrap , doctor , guide , why , config switch/status , hub * ) runs without CTX_DIR declared; every other command exits with a next-step hint when it is unset. This README is a map, not the territory. The full documentation lives at ctx.ist and carries the recipes, runbooks, threat model, and design rationale that this file intentionally doesn't try to fit. If you're past install and wondering "how do I actually use this in a real session," the recipes are the right next stop. | Guide | Description | |---|---| | Getting Started | Installation, quick start, first steps | | Recipes | Practical workflow guides | | CLI Reference | All commands and options | | Context Files | File formats and structure | | Integrations | Claude Code, Cursor, Aider setup | | Operations | Runbooks, day-to-day, hub deployment | | Security | Trust model, audit trail, permissions | Contributions welcome. See CONTRIBUTING.md for guidelines. All commits must be signed off (git commit -s ) to certify the DCO. Open source is better together. Join the community to ask questions, share feedback, and connect with other users:
Genesis Park 편집팀이 AI를 활용하여 작성한 분석입니다. 원문은 출처 링크를 통해 확인할 수 있습니다.
공유