Tool · opencode · anomalyco

read

opencode/readRead · primarysourcechecked 2026-09-02
How this differs from most implementations
  • Output wrapper<path>/<type>/<content>vs plain in 6 of 8

Derived by comparing every recorded value against the other implementations of the same capability. Differing is not a defect unless the row is marked an invariant.

Observed · Read

compare all →
Output shape
Dedicated read toolreadsrc
Line numberingN: src
Output wrapper<path>/<type>/<content>src
Limits
Default line cap2000src
Byte / char cap50 KBsrc
Per-line cap2000 charssrc
Whichever hits firstlines or bytessrc
Pagination
Offset base1-indexedsrc
Announces truncationinvariantholdssrc
(Showing X-Y of N. Use offset=Z)
Continuation hint(Showing X-Y of N. Use offset=Z)src
Reports total linesyes (End of file - total N)src
Out-of-range offsetexplicit error w/ line countsrc
Non-text
Binary content never enters context silentlyinvariantholdssrc
Explicit error: Cannot read binary file.
Binary fileserror: Cannot read binary filesrc
Imagesattachment (jpeg/png/gif/webp)src
PDFsattachmentsrc
Notebooks?
Giant single lineper-line capsrc
Errors
Missing pathDid you mean one of these?src
Path is a directorylists entriessrc
Empty file?
Non-vision model?
Correctness
Mixed line endings?
Staleness check before writeinvariantfailssrc
Side effects
Warms LSP on readyessrc
Injects nearby instruction filesAGENTS.md as system-remindersrc

Other tools in opencode