AGENTS.md
src/terminal/c/AGENTS.mdAGENTS.md
Quality
43/100
Scores the file, not the repository.Length
170 words
2 headings · 0 code blocksRepository
59k
— · pushed 0 days agoLast changed
3 days ago
First indexed 3 days ago.1# libghostty-vt C API23- C API must be designed with ABI compatibility in mind4- Zig tagged unions must be converted to C ABI compatible unions5 via `lib.TaggedUnion`.6- Any functions must be updated all the way through from here to7 `src/terminal/c/main.zig` to `src/lib_vt.zig` and the headers8 in `include/ghostty/vt.h`. Specifically:9 1. Define the function in `src/terminal/c/<module>.zig`.10 2. Re-export it via a `pub const` in `src/terminal/c/main.zig`.11 3. Add an `@export` call in `src/lib_vt.zig` with the12 `ghostty_` prefixed symbol name.13 4. Declare it in the corresponding header under `include/ghostty/vt/`.14- In `include/ghostty/vt.h`, always sort the header contents by:15 (1) macros, (2) forward declarations, (3) types, (4) functions1617## ABI Compatibility1819- Prefer opaque pointers for long-lived objects, such as20 `GhosttyTerminal`.21- Structs:22 - May contain padding bytes if we're confident we'll never grow23 beyond a certain size.24 - May use the "sized struct" pattern: an `extern struct` with25 `size: usize = @sizeOf(Self)` as the first field. In the C header,26 callers use `GHOSTTY_INIT_SIZED` from `types.h` to zero-initialize and27 set the size.28
Also in ghostty-org/ghostty
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| ghostty-org/ghosttymacos/AGENTS.md · 59k | AGENTS.md | style | 51/100 | 3 days ago | |
| ghostty-org/ghosttysrc/benchmark/AGENTS.md · 59k | AGENTS.md | buildstyledo-notagent-behaviour | 74/100 | 3 days ago | |
| ghostty-org/ghosttysrc/terminal/snapshot/AGENTS.md · 59k | AGENTS.md | no sections | 16/100 | 3 days ago | |
| ghostty-org/ghosttytest/fuzz-libghostty/AGENTS.md · 59k | AGENTS.md | style | 64/100 | 3 days ago | |
| ghostty-org/ghosttysrc/inspector/AGENTS.md · 59k | AGENTS.md | no sections | 16/100 | 3 days ago | |
| ghostty-org/ghosttysrc/terminal/apc/glyph/AGENTS.md · 59k | AGENTS.md | style | 20/100 | 3 days ago | |
| ghostty-org/ghosttyAGENTS.md · 59k | AGENTS.md | lint-formatstylearchgit+1 | 76/100 | 3 days ago | |
| ghostty-org/ghosttysrc/terminal/compress/AGENTS.md · 59k | AGENTS.md | teststyleperformance | 76/100 | 3 days ago |
Diff against macos/AGENTS.md Diff against src/benchmark/AGENTS.md Diff against src/terminal/snapshot/AGENTS.md Diff against test/fuzz-libghostty/AGENTS.md Diff against src/inspector/AGENTS.md Diff against src/terminal/apc/glyph/AGENTS.md Diff against AGENTS.md Diff against src/terminal/compress/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70 | AGENTS.md | buildteststylearch+3 | 100/100 | 3 days ago | |
| vllm-project/vllmAGENTS.md · 88k | AGENTS.md | setuptestlint-formatstyle+5 | 100/100 | 3 days ago | |
| netdata/netdatasrc/go/plugin/ibm.d/AGENTS.md · 80k | AGENTS.md | buildtestlint-formatarch+3 | 99/100 | 3 days ago | |
| react/react-nativepackages/react-native-compatibility-check/AGENTS.md · 126k | AGENTS.md | testlint-formatstylearch+4 | 99/100 | 3 days ago | |
| duckdb/duckdbAGENTS.md · 40k | AGENTS.md | buildtestlint-formatstyle+8 | 96/100 | today | |
| dragonflydb/dragonflyAGENTS.md · 31k | AGENTS.md | setupbuildtestlint-format+10 | 96/100 | 2 days ago | |
| steipete/CodexBarAGENTS.md · 20k | AGENTS.md | buildteststylearch+4 | 93/100 | 3 days ago | |
| buzz-language/buzzAGENTS.md · 1.5k | AGENTS.md | styledo-not | 93/100 | 3 days ago |
