commit 2af3ca869a8dc2a5a771f0724d250465e01a1263 (tree)
parent 5dcdcbaa13fee9b1e8ac1a4bb9aaf28958687f80
Author: Motiejus Jakštys <motiejus.jakstys@chronosphere.io>
Date: Wed, 11 Feb 2026 20:05:33 +0000
more instructions for agents
Diffstat:
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/AGENTS.md b/AGENTS.md
@@ -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.
diff --git a/CLAUDE.md b/CLAUDE.md
@@ -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.