DESIGN.md@docsA

DESIGN.md@docs from 1ay1/agentty is a DESIGN.md file: the design rules coding agents follow in that repo.

Install it, pinned
mdr add 1ay1/agentty/docs/DESIGN.md@git:20261010.227e92e

Pins git:20261010.227e92e in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
DESIGN.md file
Repository
1ay1/agentty
Path
docs/DESIGN.md
Versions recorded
5
Latest version
git:20261010.227e92e, committed Oct 10, 2026
First version recorded
Apr 23, 2026
Size
17,681 bytes
Repository stars
619
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# agentty — the one idea

agentty is a type-theoretic agent. Every value is typed, every state machine is
a sum type, every fallible operation is `std::expected<T, E>`, every
cross-cutting concern (effects, identity, capabilities) is a type-level
fact. The **dynamism boundary** — JSON, network, terminal IO — is one thin
layer at the edge; everything past it is fully typed.

This document is the contract you accept when contributing. If a change makes
the codebase look inconsistent — if it requires a reader to ask "wait, is
this *that* style or *this* style?" — it doesn't go in. There is one style.

---

## The seven rules

### 1. State machines are `std::variant`. Every alternative carries its own data.

A state with N possible shapes is a closed sum type — never an `enum + bool +
maybe_field` constellation. Each alternative owns the data that's only valid
in that state.

```cpp
// ✗ Bool encodes a state machine. `output` is meaningless when error=false?
struct ToolExecOutput { ToolCallId id; std::string output; bool error; };

// ✓ Sum type. Each arm owns exactly the data that's valid in it.
struct ToolExecOutput { ToolCallId id; std::expected<std::string, ToolError> result; };
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add 1ay1/agentty/docs/DESIGN.md@sha256:796df7580cbcc296

The line at the top of this page pins the label git:20261010.227e92e, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_e3l5zdud5mqmqexk.svg)](https://markdownregistry.com/a/art_e3l5zdud5mqmqexk)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 5 versions of this file, between Apr 23, 2026 and Oct 10, 2026, about one every 42 days.

versioncommittedcommitsizeaudit
git:20261010.227e92e latest2026-10-10 227e92e 17,681 BA view · diff
git:20260927.584ab542026-09-27 584ab54 17,186 BA view · diff
git:20260716.46a37fd2026-07-16 46a37fd 17,186 BA view · diff
git:20260510.7494ec02026-05-10 7494ec0 16,927 BA view · diff
git:20260423.0082b382026-04-23 0082b38 16,876 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (17681 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

1ay1/agentty · 619 stars · license MIT · pushed 2026-10-29 · branch master

API

GET https://markdownregistry.com/api/v1/artifacts/art_e3l5zdud5mqmqexk
GET https://markdownregistry.com/api/v1/resolve?ref=1ay1/agentty/docs/DESIGN.md
GET https://markdownregistry.com/api/v1/blob/796df7580cbcc2969bdc275a334db4f04b67f6cb083af6cf5a4a636edab00d95

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what DESIGN.md is and how agents use it · which agent file does what.

More from 1ay1/agentty

DESIGN.md@cmake DESIGN.md file
1ay1/agentty · cmake/DESIGN.md
git:20260927.584ab54 · audit A · 619 stars

Every file in 1ay1/agentty

Other files named DESIGN.md@docs

DESIGN.md@docs DESIGN.md file
mvschwarz/openrig · docs/DESIGN.md
git:20261005.f6358a2 · audit A · 8,501 stars
DESIGN.md@docs DESIGN.md file
geekjourneyx/md2wechat-skill · docs/DESIGN.md
git:20260319.1e4d509 · audit A · 3,774 stars
DESIGN.md@docs DESIGN.md file
keli-wen/agy-staff · docs/DESIGN.md
git:20261007.65a1ab4 · audit A · 802 stars
DESIGN.md@docs DESIGN.md file
vintlin/skill-flow · docs/DESIGN.md · A compact macOS operations workspace built from layered neutral surfaces, user-selectable accents, reusable group…
beta · audit A · 264 stars
DESIGN.md@docs DESIGN.md file
mobileaidev/ai-app-bridge · docs/DESIGN.md
git:20261012.3200529 · audit A · 226 stars
DESIGN.md@docs DESIGN.md file
shellishack/infinite-pokemon · docs/DESIGN.md
git:20260914.2f240d9 · audit A · 166 stars
DESIGN.md@docs DESIGN.md file
ghalebdweikat/winnow · docs/DESIGN.md
git:20261006.4547a81 · audit A · 115 stars
DESIGN.md@docs DESIGN.md file
viy1204/recruiting-copilot · docs/DESIGN.md
git:20261027.3ccc761 · audit A · 104 stars

Browse by kind, by grade A, or by owner.