more instructions for agents

This commit is contained in:
2026-02-11 20:05:33 +00:00
parent 85e7abd0b7
commit b5300c4d9b
2 changed files with 11 additions and 2 deletions

View File

@@ -1,2 +0,0 @@
1. See README.md for useful information about working on this.
2. **Never ever** remove zig-cache, nether local nor global.

11
CLAUDE.md Normal file
View File

@@ -0,0 +1,11 @@
- when porting features from upstream Zig, it should be a mechanical copy.
Don't invent. Most of what you are doing is invented, but needs to be re-done
in C. Keep the structure in place, name functions and types the same way (or
within reason equivalently if there are namespacing constraints). It should
be easy to reference one from the other; and, if there are semantic
differences, they *must* be because Zig or C does not support certain
features (like errdefer).
- See README.md for useful information about working on this.
- **Never ever** remove zig-cache, nether local nor global.
- Zig code is in ~/code/zig, don't look at /nix/...
- remember: **mechanical copy** when porting existing stuff, no new creativity.