ctx outline
함수·타입 시그니처만 줄번호와 함께. 본문은 줄번호 점프로 생략 구간을 드러냅니다.Signatures only, with line numbers. Bodies are elided.
대체replaces · cat -n
ctx 는 AI 코딩 에이전트가 cat, grep, find, git log 대신 쓰는 CLI 입니다. 구조와 위치만 남기고 나머지를 접어 컨텍스트 창을 아낍니다.ctx is a CLI that AI coding agents use instead of cat, grep, find and git log. It keeps structure and locations and folds the rest.
curl -fsSL https://ctx.ferrorium.com/install.sh | sh
brew install iamhuman-cheolheelee/tap/ctx
cargo install --git https://github.com/iamhuman-cheolheelee/ctx
공개 저장소 rtk-ai/rtk · 적을수록 좋음Public repo rtk-ai/rtk · lower is better
grepvs grep -rnoutlinevs cat -nmapvs findbriefvs git아래는 실제 명령을 실행해 얻은 출력입니다. 왼쪽이 기존 명령, 오른쪽이 ctx 입니다. 바이트 수는 전체 출력 기준입니다.Actual output from real commands. Left: the standard command. Right: ctx. Byte counts are for the full output.
grep·map 은 rtk-ai/rtk, outline 은 ctx 저장소의 src/re.rs 에서 실행했습니다. 화면에는 앞부분만 보입니다.grep/map ran on rtk-ai/rtk, outline on src/re.rs in the ctx repo. Only the first lines are shown.
ctx outline함수·타입 시그니처만 줄번호와 함께. 본문은 줄번호 점프로 생략 구간을 드러냅니다.Signatures only, with line numbers. Bodies are elided.
대체replaces · cat -n
ctx grep파일별 그룹, 같은 줄 접기, 파일당 상한. -E -i -w -C -l -e 지원, 기본은 리터럴.Grouped by file, duplicate lines folded, per-file cap.
대체replaces · grep -rn · rg
ctx read여러 파일의 줄 범위를 한 번의 호출로 읽습니다.Read ranges from many files in one call.
대체replaces · sed -n A,Bp
ctx def심볼 정의부터 블록 끝까지 한 번에 꺼냅니다.A symbol's definition through the end of its block.
대체replaces · grep + read
ctx map확장자 분포와 용량 상위 디렉터리. 여러 루트를 한 번에.Extension histogram and largest directories.
대체replaces · find · ls -R
ctx brief세션 시작용 저장소 요약: 브랜치, 변경, 최근 커밋, 파일 분포.Repo snapshot for the start of a session.
대체replaces · git status + log + ls
ctx wrap빌드·테스트를 직접 실행하고 출력만 압축합니다. 종료 코드는 그대로.Runs a command, compresses output, keeps the exit code.
대체replaces · cmd | tail
ctx web · fetchBrave·Bing 결과를 융합하는 메타서치, 본문만 마크다운으로. API 키 불필요.Metasearch and readable page bodies. No API key.
대체replaces · 웹 검색 · 페이지 읽기
curl 한 줄 또는 Homebrew. 기본 경로는 ~/.local/bin/ctx 입니다.One curl line or Homebrew. Installs to ~/.local/bin/ctx.
CLAUDE.md 나 AGENTS.md 에 대체 규칙을 적습니다. 오른쪽 예시를 그대로 붙여도 됩니다.Put the mapping in CLAUDE.md or AGENTS.md. The snippet on the right works as is.
에이전트가 탐색할 때 ctx 를 부르고, 빌드·테스트는 ctx wrap 으로 실행합니다.The agent calls ctx while exploring and runs builds through ctx wrap.
셸 명령을 실행하는 에이전트라면 모두 됩니다. Claude Code, Codex CLI, Gemini CLI 등에서 CLAUDE.md·AGENTS.md 같은 지침 파일에 ctx 사용 규칙을 적어 두면 에이전트가 기존 명령 대신 ctx 를 부릅니다.Any agent that runs shell commands. Put the ctx rules in your CLAUDE.md or AGENTS.md.
outline 과 grep 은 생략한 구간을 줄번호와 '+N more' 로 표시합니다. 에이전트는 필요한 부분만 ctx read 로 다시 읽습니다. 캡이 필요 없으면 grep -n N 으로 늘릴 수 있습니다.Elided ranges are always marked with line numbers or '+N more', so the agent can read exactly what it needs next.
공개 저장소 rtk-ai/rtk (커밋 323b797) 에서 같은 작업의 표준 출력 바이트 수를 wc -c 로 비교했습니다(2026-09-25). 저장소의 bench.sh 로 누구나 재현할 수 있고, 결과는 코드베이스에 따라 달라집니다.Stdout byte counts on rtk-ai/rtk @323b797 via wc -c. Reproduce with bench.sh; results vary by codebase.
macOS(Apple Silicon·Intel) 또는 Linux(x86_64·arm64). 단일 정적 바이너리이고 외부 크레이트 의존성이 없습니다. web·fetch 는 시스템 curl 을 씁니다.macOS or Linux. A single binary with zero crate dependencies; web/fetch use system curl.
무료, MIT 라이선스 오픈소스입니다.Free and open source under MIT.
curl -fsSL https://ctx.ferrorium.com/install.sh | sh