Skip to main content

Explore, analyze, and structure codebases for humans & AI.

$
go install github.com/context3/ctx3@latest

Everything you need to understand a codebase

Six focused commands. One tool. Built for humans and LLMs alike.

🌲

File Tree

Print a beautiful, color-coded file hierarchy of your project with sizes and depth — perfect for understanding structure at a glance.

ctx3 print .
🔍

Project Context

Collect rich metadata: file types, sizes, line counts, dependencies, entry points, and README preview — output as human text, JSON, or TOON.

ctx3 context -j
📦

Pack for LLMs

Bundle your entire repo into a single XML artifact that any LLM can consume. Supports glob filters, binary handling, redaction, and size caps.

ctx3 pack . --compact
📊

Language Breakdown

See which languages dominate your codebase with a visual bar chart — great for auditing tech-debt or documenting a project.

ctx3 percentage
🔀

Code Flow

Trace call graphs across your Go packages. Export as a Mermaid flowchart to embed in docs or paste straight into an LLM conversation.

ctx3 flow . --mermaid
📚

Library Mode

Every package — filetree, analyzer, pack, flow — is designed to be imported directly into your own Go projects.

go get github.com/parsabordbar/ctx3

Up and running in 60 seconds

No configuration files. No setup. Just install and run.

01

Install

One command via go install — no binaries to manage.

go install github.com/parsabordbar/ctx3@latest
02

Navigate to your repo

Works with any Go project out of the box.

cd your-project
03

Run any command

Start with context, pack for LLMs, or explore the flow.

ctx3 context
ctx3 pack . -o context.xml
ctx3 flow . --mermaid

Built for real workflows

ctx3 fits naturally into the moments that matter most.

🤖

LLM-ready context

Use ctx3 pack to create a single file containing your entire codebase structure and content. Paste it into ChatGPT, Claude, or any LLM for instant project understanding.

📋

Code reviews

Share ctx3 print and ctx3 percentage output in PR descriptions so reviewers instantly understand the scope and shape of your changes.

🚀

Onboarding

New team member joining? Run ctx3 context and ctx3 flow and include the output in your project README — no more 'read the entire codebase' first days.

📖

Documentation

Embed ctx3 flow --mermaid output in your docs to keep architecture diagrams in sync with the actual code — generated, not hand-drawn.

Open source. Forever free.

ctx3 is MIT-licensed and welcomes contributions. Found a bug? Have a feature idea? Open an issue or a PR.