agentleFS
mixcodemixcode/binarystruct/llms.txt

binarystruct

llms.txt5 starsChanged 6 months agoBSD-3-ClauseView on GitHub

An automatic type-converting binary data marshaller/unmarshaller for Go structs and single values. Optimized for high-performance binary coding and decoding like network protocol packet handling. This repo is a Go workspace of two independently-published modules — consumers go get/go install the one they need (each resolves on its own go.mod). This module (.) is the primary one; the entry above is its manual. The map: Working in this workspace - Workspace manager: go.work (root module . + ./binarystruct-codegen). - Test one…

  • Installs packages

The file

We split this llms.txt into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Test one module: go test ./...

    line 28

≈ “Common” is an estimate: at least 1 in 5 of the 4,067 llms.txt files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
llms.txt
# binarystruct

An automatic type-converting binary data marshaller/unmarshaller for Go structs and single values. Optimized for high-performance binary coding and decoding like network protocol packet handling.

## Core APIs
- [Marshal](marshal.go) — Encodes a struct or value into a binary stream.
- [Unmarshal](unmarshal.go) — Decodes a binary stream back into Go variables.
- [Inspect](struct.go) — Inspects structural byte offsets, sizes, and formats.

## Documentation Index
- [Full LLM Integration Guide](llms-full.txt) — Comprehensive coding rules, dynamic sizing, multidimensional arrays, computed/derived fields (lengths, counts, and custom checksums/CRCs via `valueof`), custom codecs, text encodings, and validation instructions.
- [Struct Tag Reference](STRUCT_TAGS.md) — Detailed guide on binary struct tag syntax, options, and endianness overrides.
- [Technical Specification](SPECIFICATION.md) — Ground-truth specification for runtime interpreter mechanics and compiler behavior.
- [Static Code Generator (binarystruct-codegen)](binarystruct-codegen/README.md) — Standalone CLI tool details to compile tags into static, zero-allocation Go methods.
- [Migration Guide (→ v0.3.0)](MIGRATION.md) — Upgrade path from 0.2.x: the Marshaler/Codec renames, struct-declared byte order, and the order-free API.

## Workspace (modules)

This repo is a Go workspace of **two independently-published modules** — consumers `go get`/`go install` the one they need (each resolves on its own `go.mod`). This module (`.`) is the primary one; the entry above is its manual. The map:

| Module | Path | Type | Manual | Agent-ready |
| :-- | :-- | :-- | :-- | :-- |
| `github.com/mixcode/binarystruct` | [`.`](.) | library (primary) | this file + [llms-full.txt](llms-full.txt) | ✅ ready |
| `github.com/mixcode/binarystruct/binarystruct-codegen` | [`binarystruct-codegen/`](binarystruct-codegen/) | CLI (code generator) | [llms.txt](binarystruct-codegen/llms.txt) + [llms-full.txt](binarystruct-codegen/llms-full.txt) | ✅ ready |

**Working in this workspace**
- Workspace manager: `go.work` (root module `.` + `./binarystruct-codegen`).
- Test one module: `go test ./...` (root) / `cd binarystruct-codegen && go test ./...`. Full matrix incl. the safe path + codegen module: `make test`.
- Install the codegen CLI: `go install github.com/mixcode/binarystruct/binarystruct-codegen@latest` (pin a release with the path-prefixed tag `@binarystruct-codegen/vX.Y.Z`).
- Ground truth / repo-wide rules: [SPECIFICATION.md](SPECIFICATION.md) and [AGENTS.txt](AGENTS.txt) (the "three parallel paths must stay byte-identical" invariant + extension checklist).
- Build-from-root trap: none — each module builds standalone; `binarystruct-codegen` is a separate `go.mod` (not covered by the root module, no `replace`), so pin **its own** tag when installing a release.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.