RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/ghostty-org/ghostty

AGENTS.md

src/terminal/c/AGENTS.md
AGENTS.md

Quality

43/100

Scores the file, not the repository.

Length

170 words

2 headings · 0 code blocks

Repository

59k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
ghostty-org/ghostty/src/terminal/c/AGENTS.mdRawGitHub
1# libghostty-vt C API
2 
3- C API must be designed with ABI compatibility in mind
4- Zig tagged unions must be converted to C ABI compatible unions
5 via `lib.TaggedUnion`.
6- Any functions must be updated all the way through from here to
7 `src/terminal/c/main.zig` to `src/lib_vt.zig` and the headers
8 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 the
12 `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) functions
16 
17## ABI Compatibility
18 
19- Prefer opaque pointers for long-lived objects, such as
20 `GhosttyTerminal`.
21- Structs:
22 - May contain padding bytes if we're confident we'll never grow
23 beyond a certain size.
24 - May use the "sized struct" pattern: an `extern struct` with
25 `size: usize = @sizeOf(Self)` as the first field. In the C header,
26 callers use `GHOSTTY_INIT_SIZED` from `types.h` to zero-initialize and
27 set the size.
28 

Sections

  • libghostty-vt C API
  • ABI Compatibility

What it covers

code-styleapi

Stack — with the evidence

zig

(1.00)

swift

(0.60)

cpp

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
ghostty-org
Language
—
License
—
Archived
no

All configs in this repo

Also in ghostty-org/ghostty

Diff this repo’s formats

One 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?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
ghostty-org/ghosttymacos/AGENTS.md · 59kAGENTS.mdzigswift+2style51/1003 days ago
ghostty-org/ghosttysrc/benchmark/AGENTS.md · 59kAGENTS.mdzigswift+2buildstyledo-notagent-behaviour74/1003 days ago
ghostty-org/ghosttysrc/terminal/snapshot/AGENTS.md · 59kAGENTS.mdzigswift+2no sections16/1003 days ago
ghostty-org/ghosttytest/fuzz-libghostty/AGENTS.md · 59kAGENTS.mdzigswift+2style64/1003 days ago
ghostty-org/ghosttysrc/inspector/AGENTS.md · 59kAGENTS.mdzigswift+2no sections16/1003 days ago
ghostty-org/ghosttysrc/terminal/apc/glyph/AGENTS.md · 59kAGENTS.mdzigswift+2style20/1003 days ago
ghostty-org/ghosttyAGENTS.md · 59kAGENTS.mdzigswift+2lint-formatstylearchgit+176/1003 days ago
ghostty-org/ghosttysrc/terminal/compress/AGENTS.md · 59kAGENTS.mdzigswift+2teststyleperformance76/1003 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.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
vllm-project/vllmAGENTS.md · 88kAGENTS.mdpythonpytorch+3setuptestlint-formatstyle+5100/1003 days ago
netdata/netdatasrc/go/plugin/ibm.d/AGENTS.md · 80kAGENTS.mddockerinfrastructure+7buildtestlint-formatarch+399/1003 days ago
react/react-nativepackages/react-native-compatibility-check/AGENTS.md · 126kAGENTS.mdreactreact-native+11testlint-formatstylearch+499/1003 days ago
duckdb/duckdbAGENTS.md · 40kAGENTS.mdcppswift+1buildtestlint-formatstyle+896/100today
dragonflydb/dragonflyAGENTS.md · 31kAGENTS.mdcppredis+6setupbuildtestlint-format+1096/1002 days ago
steipete/CodexBarAGENTS.md · 20kAGENTS.mdswiftgithub-actionsbuildteststylearch+493/1003 days ago
buzz-language/buzzAGENTS.md · 1.5kAGENTS.mdzigjavascript+1styledo-not93/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack