An AI-native terminal spreadsheet. Open a CSV or workbook, navigate and edit like a spreadsheet, write formulas, or just tell Claude what to change. A small, fast, single binary — part of the Fe2O3 Rust terminal suite.
A spreadsheet that stays out of your way and lets the AI do the tedious parts.
Type values and formulas directly, or hit I and say "add a Total row that
sums each column" — grid hands the sheet to Claude and applies what comes back.
No menus, no ribbons: keyboard-driven, instant, scriptable.
- Formats — reads/writes CSV, reads xlsx/ods (via calamine) and writes xlsx (via rust_xlsxwriter), preserving formulas and their computed values.
- Formula engine — hand-rolled, no spreadsheet runtime: arithmetic, ranges
(
A1:B3), comparisons,&concatenation, and ~25 functions (SUM, AVERAGE, MIN/MAX, COUNT, IF, AND/OR, ROUND, CONCAT, VLOOKUP, …). Whole-sheet recalc with cycle detection (#CYCLE). - AI editing —
I→ describe a change in plain English; Claude rewrites the sheet, formulas included. - Range selection —
vstarts a rectangular selection; colouring, clearing colour (D) and clearing content all apply to the whole block. - Cell colours — true-colour (24-bit) foreground/background (
C) via the prism picker (or a#rrggbb/name prompt); persists to xlsx natively and to CSV via a.gcolorssidecar. - Copy and paste:
ycopies the cell or the selection,ppastes it at the cursor. A formula follows its new place, and a$pins a column or a row ($B$1). One copied cell fills a whole selection. - The system clipboard:
yalso copies what the cells show, for other programs. Text pasted from another program lands in the cells from the cursor on, a tab between cells. - Sort:
osorts the rows by the column the cursor is in,Othe other way round. Row 1 stays as the header. With a selection, only its rows are sorted. - Rows and columns:
+inserts and-deletes, thenrfor rows orcfor columns. Formulas follow the cells they point at. - Charts:
Pdraws the selection as bars or lines. Text beside the numbers names the bars, and text above them names each line. - Undo — every edit, clear, colour and AI change is undoable (
u). - Multi-sheet —
Tabcycles sheets in a workbook. - Dates — Excel date serials shown as readable
YYYY-MM-DD. - Tiny binary, blocking input — zero idle CPU.
# From a release (Linux/macOS, x86_64/aarch64)
chmod +x grid-* && sudo cp grid-linux-x86_64 /usr/local/bin/grid
# Or build from source (needs the sibling crust and plot crates alongside)
git clone https://github.com/isene/crust
git clone https://github.com/isene/plot
git clone https://github.com/isene/grid
cd grid && cargo build --releasegrid budget.csv # open a file
grid sheet.xlsx # open a workbook (Tab cycles sheets)
grid new.csv # start a fresh sheet
grid # a blank sheet, named when you first save| Key | Action |
|---|---|
h j k l / arrows |
move |
g G |
first / last row |
0 $ |
first / last column |
PgUp PgDn |
page |
Enter i |
edit cell |
= |
start a formula |
I |
AI edit (Claude) |
Ctrl+A |
a full Claude session about the sheet, as in every Fe₂O₃ app |
v |
start / stop rectangular selection |
y p |
copy the cell or selection / paste it at the cursor |
o O |
sort the rows by this column / the other way round |
+ - |
insert / delete, then r for rows or c for columns |
P |
chart the selection, or the column the cursor is in |
C |
set cell / selection colour (prism) |
D |
clear cell / selection colour |
u |
undo |
d Del |
clear cell / selection content |
Tab S-Tab |
next / previous sheet |
s |
save |
? |
help |
q / Q |
quit / quit without saving |
=A1+B2*2, ranges =SUM(A1:A10), text =A1&" "&B1, logic
=IF(C1>0,"ok","no"), and: SUM AVERAGE MIN MAX COUNT COUNTA PRODUCT IF AND OR
NOT ROUND ABS INT SQRT MOD POWER CONCAT LEN LEFT RIGHT MID UPPER LOWER TRIM
VLOOKUP.
A pasted formula points the same way from its new cell: =B2+C2 copied one row
down reads =B3+C3. A $ keeps a column or a row where it is: =B2*$F$1.
A formula that pointed at a deleted row or column shows #REF.
grid is one tool in the Fe2O3 suite of fast Rust terminal apps. It builds on crust (the TUI foundation), draws its charts with plot, and pairs with viewer, which launches grid for spreadsheet files.
Public domain (Unlicense).
