AGENTS.md¶
Instructions for AI agents working with this codebase.
Project¶
zig-notify provides portable desktop notifications in Zig. It abstracts macOS UNUserNotificationCenter and Linux libnotify behind a unified C FFI.
Build¶
Structure¶
include/zig_notify.h-- Public C API headersrc/ffi.zig-- C FFI export layersrc/notify.zig-- Platform dispatch (routes to macos/linux impl)src/notify_macos.zig-- macOS backend (UNUserNotificationCenter)src/notify_linux.zig-- Linux backend (libnotify)
Conventions¶
- C exports use
snake_casewithzig_notify_prefix - Zig internals use
camelCase - Platform-specific code in
_macos.zig/_linux.zigfiles - Return values: 0 = success, -1 = failure
- Linux requires init/deinit lifecycle; macOS does not