nx_fsops_outline.nx
buildroot/runtime/nx_fsops_outline.nx
about
nx_fsops_outline.nx -- OUTLINE verb for the consolidated fs tool (MCP name: nx_fs). Sibling of
nx_fsops_lib.nx / nx_fsops_write.nx. THE READ-DIGEST LEVER (measured 2026-07-21): file Reads are 47% of
all Claude context bytes and 57.6% of that comes from files >=50KB. `outline` returns a STRUCTURAL DIGEST
-- the leading comment block + every top-level declaration with its line number -- so a caller ORIENTS in
~2KB instead of dumping a 50KB file, then pulls the exact body with `nx_fs lines <path> <L> <count>`.
Scale-law envelope (shown/total/truncated ALWAYS declared); every refusal states WHY + a FIX command
(operator: refusal without feedback+recommendation is unacceptable). license_tier: ORIGINAL
dependencies 2 imports · 1 importers
imports: nx_fsops_lib.nxnx_syscalls.nx
imported by: nx_fsops.nx
structs
| none |
consts
| 11 | const FSX_OUTLINE_CAP: i64 = 400 |
| 12 | const FSX_OUTLINE_LINEMAX: i64 = 200 |
functions
| 14 | func fsx_starts(buf: *u8, i: i64, n: i64, p: *u8) -> i64 |
| 23 | func fsx_is_decl(buf: *u8, i: i64, n: i64) -> i64 calls 1: fsx_starts |
| 34 | func fsx_outline(path: *u8) -> i64 |