π fls
Structured directory listing with recon mode
Section titled βStructured directory listing with recon modeβfls is part of the fsuite toolkit β a set of fourteen CLI tools built for AI coding agents.
fls
Structured directory listing Β· ls replacement with recon mode
fls is the surgical version of ftree β one directory, one level deep (configurable), with structured metadata: type, size, language hints. When ftree would be too noisy and cat-ing a path tells you nothing, fls shows you exactly whatβs in this folder and nothing else.
--recon mode adds per-entry sizes and counts in a clean column layout. JSON mode lets agents make programmatic decisions on what to read next.
Canonical chains
Section titled βCanonical chainsβ# Structured listing β type, size, language hintsfls /project/src
# Recon mode β sizes + counts, scannable column layoutfls /project/src/telegram --recon
# JSON for agentsfls /project -o json
# Limit depth (default 1, often plenty)fls /project --depth 1Terminal sample
Section titled βTerminal sampleβfls("/home/user/Projects/nightfox/src/telegram" | mode: "recon") ββ Recon(/home/user/Projects/nightfox/src/telegram, depth=1) 7 entries (7 visible, 0 default-excluded) Β· message-sender.ts β 17.9K telegraph.ts β 12K terminal-renderer.ts β 10.3K markdown.ts β 6.7K terminal-settings.ts β 2.8K session-lane.ts β 1.2K deduplication.ts β 1005 Β·
Help output
Section titled βHelp outputβThe content below is the live --help output of fls, captured at build time from the tool binary itself. It cannot drift from the source β regenerating the docs regenerates this section.
fls β list directory contents (thin ftree router)
USAGE fls [options] [path]
MODES (default) List direct children β ftree -L 1 -t, --tree Little tree, shallow structure β ftree -L 2 -r, --recon Recon with sizes and counts β ftree --recon -L 1
OPTIONS -o, --output <fmt> pretty (default) or json -h, --help Show this help --version Show version
HEADLESS / AI AGENT USAGE fls -o json /path Structured JSON β inherits ftree's JSON contract. fls -t -o json /path Shallow tree as JSON. fls -r -o json /path Recon metadata as JSON.
Output IS ftree output. Parse the same fields: tool, mode, depth, total_dirs, total_files, entries (recon), tree output (tree mode).
EXAMPLES fls List cwd fls src/ List src/ fls -t src/ Shallow tree of src/ fls -r . Recon: sizes and item counts fls -o json src/ JSON for agentsSee also
Section titled βSee alsoβ- fsuite mental model β how fls fits into the toolchain
- Cheat sheet β one-line recipes for every tool
- View source on GitHub