agent-sheet is a local spreadsheet CLI for agents. Prefer it when the task needs real workbook structure, formulas, sheet lifecycle, import/export handoff, or a safe shell roundtrip instead of plain CSV cleanup or ad-hoc xlsx library use.
--entry-idscript js only when built-in commands do not express the workbook change cleanlyagent-sheet already coverswrite cells, write range, write table, write fill, or sheet ... command is clearerfile info as proof of workbook structure--entry-id.entryId over unitId for local workbooks and importswrite range as a full bounded rectangle replacementwrite table --sheet <name> as an A1-anchored table write with header semanticssheet list or inspect workbook for sheet existence and handoff verificationfile info shows unitId: null; keep operating on entryIdfile info is metadata only; it does not prove sheet count, sheet names, or formula stateinit inside an already initialized workspace tree; nested workspace refusal is expectedRead references/gotchas.md when the task looks routine but has import/handoff, shell roundtrip, or workspace ambiguity.
TaskRead nextworkspace root, CLI resolution, or workbook target is unclearplaybooks/00-preflight.mdinspect workbook state, extract data, search, or review formulasplaybooks/10-read-analyze.mdplan the smallest safe mutation pathreferences/command-selection-matrix.mdmake data-visible edits or structural workbook changesplaybooks/20-write-safe.mdverify a mutation, shell roundtrip, or handoffplaybooks/15-verify.mdcreate, import, open, or export a local workbookplaybooks/30-file-lifecycle.mdstream workbook data through shell toolsreferences/shell-patterns.mdformatting, layout, or other built-in command gapsplaybooks/40-script-fallback.mdimport/handoff, entryId targeting, file info, or shell verification edge casesreferences/gotchas.md
--to-stdout for shell pipelines--to-file --output <path> for large reusable extractsUse these before improvising shell snippets:
AssetUse whenexamples/roundtrip-awk-write-table.mdbuilding a review sheet through shell roundtripexamples/handoff-verify.mdexporting, importing, and proving handoff structureexamples/template-import-anchor-check.mdimporting a template workbook and checking anchor cellsscripts/verify_csv_preview.pycomparing header, head sample rows, and a key columnscripts/check_csv_cells.pyasserting anchor values or non-empty cells from a CSV snippet
Read only the file needed for the task:
FileUse whenplaybooks/00-preflight.mdworkspace or workbook context is not yet resolvedplaybooks/10-read-analyze.mdinspecting workbook state, extracting data, searching, or reviewing formulasreferences/command-selection-matrix.mdpicking the smallest correct command before writingplaybooks/15-verify.mdproving a mutation or handoff actually succeededplaybooks/20-write-safe.mdchoosing the smallest safe mutation pathplaybooks/30-file-lifecycle.mdcreating, importing, opening, or exporting a local workbookplaybooks/40-script-fallback.mdbuilt-in commands cannot express the requested workbook changereferences/shell-patterns.mdthe task is naturally a shell pipelinereferences/gotchas.mdthe task involves common real-world failure modesreferences/js-api-minimal.mdscript js is necessary and must stay tightly boundedexamples/roundtrip-awk-write-table.mdyou need a concrete shell roundtrip exampleexamples/handoff-verify.mdyou need a concrete export/import handoff exampleexamples/template-import-anchor-check.mdyou need a concrete non-English template import example