CLI

larkx context

Print compact project map, paste into any AI.

Usage

bash
larkx context [options]

Options

FlagEffect
--level <n>Detail level: 1 (paths), 2 (symbols, default), 3 (signatures), 4 (summaries)
--folder <path>Restrict to files under a folder
--file <path>Output only one file's symbols

Examples

bash
# Cheap overview, all file paths only
larkx context --level 1

# Focused on auth, with full signatures
larkx context --level 3 --folder src/auth

# Single file
larkx context --file src/auth/login.ts

# Pipe into ChatGPT / Claude.ai
larkx context --level 2 | pbcopy   # macOS
larkx context --level 2 | clip     # Windows

Output format

level 2
# larkx context · level 2 · ~8.5K tokens · 342 files
src/auth/login.ts[ts]: validateJWT@6, hashPassword@10, LoginService@14 | +../utils/crypto,+../db/users
src/auth/middleware.ts[ts]: authMiddleware@11, rateLimiter@20 | +./login
src/utils/crypto.ts[ts]: sha256@3, generateToken@7, compareHash@11 |

The header line tells the AI the token cost up front so it can decide whether to fetch more.

See also: Levels explained