code wiki / (root) / nx_fsops_outline.nx

nx_fsops_outline.nx

buildroot/runtime/nx_fsops_outline.nx

4572 B95 linesdepth 4pulls 7 transitivereach 1 importersview sourcekind librarytopic fsops
docsdependenciesstructsconstsfunctions

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

nx_fsops_lib.nx nx_syscalls.nx nx_fsops_outline.nx nx_fsops.nx

imports: nx_fsops_lib.nxnx_syscalls.nx

imported by: nx_fsops.nx

structs

none

consts

11const FSX_OUTLINE_CAP: i64 = 400
12const FSX_OUTLINE_LINEMAX: i64 = 200

functions

14func fsx_starts(buf: *u8, i: i64, n: i64, p: *u8) -> i64
23func fsx_is_decl(buf: *u8, i: i64, n: i64) -> i64
calls 1: fsx_starts
34func fsx_outline(path: *u8) -> i64