Skip to content

AGENTS.md: number rules, errors as feedback, and the working method - #417

Merged
tobert merged 4 commits into
mainfrom
docs/agents-md-numbers-and-errors
Aug 27, 2026
Merged

AGENTS.md: number rules, errors as feedback, and the working method#417
tobert merged 4 commits into
mainfrom
docs/agents-md-numbers-and-errors

Conversation

@tobert

@tobert tobert commented Aug 27, 2026

Copy link
Copy Markdown
Owner

Three rules from the number-parsing work, stated where every session loads them.

Number rules: $(( )) owns bases and checked 64-bit arithmetic with bash's spellings only (0xff, base#digits); a leading zero is text, and every number position refuses it naming the fix; fromjson is JSON-only. The error-handling section gains the no-silent-fallback rule, with this as the shape to refuse:

printf '%d' 0xff    # prints 0 today — a parse that yields a default is a bug

Writing style states the stance behind it: an error is feedback for the next turn, so refusing with the fix named beats degrading quietly.

A short section, "Test a theory before building it", says a claim about what models or users will write is measurable: hand cheap kaibo casts or subagents the proposed help text and a task list, count, and keep one syntax until the count says otherwise.

Commit messages are a clinical engineering narrative; design stories and plans live outside the repo and are never referenced from a commit.

🤖 Generated with Claude Code

tobert and others added 4 commits August 27, 2026 08:40
Three rules from the number-parsing work are stated where every session
loads them. Number rules: $(( )) owns bases and checked arithmetic with
bash's spellings only; a leading zero is text and every number position
refuses it naming the fix; fromjson is JSON-only and no cast builtin or
--base flag exists. The error-handling section gains the no-silent-
fallback rule, with printf '%d' 0xff printing 0 as the shape to refuse.

The writing-style section states the stance behind it: an error is
feedback for the next turn, so refusing with the fix named beats
degrading quietly.

Version control gains the working method: one medium PR per hunk,
coding delegated against a written spec with tests that fail first,
gates and kaibo review run by the orchestrator, and review claims
verified against a built binary. A claim that models habitually write
some spelling is a measurable thing: give cheap casts the help text and
count before adding syntax.

Commit messages: a clinical engineering narrative; design stories and
plans live in exomemory and are never referenced from a commit.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
A rule names what kaish does. The sentence listing the builtin and flag
that were not built dragged discarded ideas into a file every session
loads; it is gone.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The two bullets under version control described how one session ran
its work, which does not belong in a file every session loads. The
measurable half survives as its own short section: a claim about what
models or users will write is tested by handing cheap casts or
subagents the proposed help text and counting, and one syntax stands
until the count says otherwise.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
"exomemory" is the name of one maintainer's memory store; the rule is
about where design stories live, so it names agent memory outside the
repo instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tobert
tobert merged commit 02976eb into main Aug 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant