Directories
¶
| Path | Synopsis |
|---|---|
|
accelerate
|
|
|
bnns-amx-draft
command
Command bnns-amx-draft builds a batch=1 residual MLP draft block in pure Go via x/coremlcompiler, compiles and runs it on Apple Silicon CPU/AMX via x/bnnsgraph with a preallocated workspace (zero heap allocations per step), and compares numerical parity and per-step latency against a Metal GPU compute shader and a float64 CPU reference.
|
Command bnns-amx-draft builds a batch=1 residual MLP draft block in pure Go via x/coremlcompiler, compiles and runs it on Apple Silicon CPU/AMX via x/bnnsgraph with a preallocated workspace (zero heap allocations per step), and compares numerical parity and per-step latency against a Metal GPU compute shader and a float64 CPU reference. |
|
matmul
command
Command matmul benchmarks matrix multiplication using Apple Accelerate BLAS (cblas_sgemm) versus a naive pure-Go implementation.
|
Command matmul benchmarks matrix multiplication using Apple Accelerate BLAS (cblas_sgemm) versus a naive pure-Go implementation. |
|
vdsp-blas-reduce
command
Command vdsp-blas-reduce benchmarks and verifies Apple Accelerate vDSP and BLAS elementwise vector reductions (Sum, Min, Max) for float32 and float16 against scalar Go loops matching x/jaccl/reduce.go semantics.
|
Command vdsp-blas-reduce benchmarks and verifies Apple Accelerate vDSP and BLAS elementwise vector reductions (Sum, Min, Max) for float32 and float16 against scalar Go loops matching x/jaccl/reduce.go semantics. |
|
ane
|
|
|
blockrace
command
Command blockrace runs the same feed forward network on the Neural Engine and on the GPU, first one at a time and then both at once, to measure whether the two engines contend when one process drives them together.
|
Command blockrace runs the same feed forward network on the Neural Engine and on the GPU, first one at a time and then both at once, to measure whether the two engines contend when one process drives them together. |
|
bundlereuse
command
Command bundlereuse compiles a MIL program to a Neural Engine bundle once, then reopens that bundle — in this process and in a second process, with the source MIL and its weights deleted — and checks that every arm computes the same answer as a float64 CPU reference.
|
Command bundlereuse compiles a MIL program to a Neural Engine bundle once, then reopens that bundle — in this process and in a second process, with the source MIL and its weights deleted — and checks that every arm computes the same answer as a float64 CPU reference. |
|
e5rtblock
command
Command e5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block.
|
Command e5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block. |
|
e5rtdispatch
command
Command e5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer.
|
Command e5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer. |
|
e5rtprobe
command
Command e5rtprobe reports what the x/ane/e5rt binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else.
|
Command e5rtprobe reports what the x/ane/e5rt binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else. |
|
e5rtstack
command
Command e5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack.
|
Command e5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack. |
|
espressoe5rtblock
command
Command espressoe5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block.
|
Command espressoe5rtblock runs a transformer block on the Neural Engine through the private e5rt direct-dispatch route, and checks what comes back against a float64 CPU reference of the whole block. |
|
espressoe5rtdispatch
command
Command espressoe5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer.
|
Command espressoe5rtdispatch runs a MIL program on the Apple Neural Engine through Espresso's private e5rt_* direct dispatch route, and checks the answer. |
|
espressoe5rtprobe
command
Command espressoe5rtprobe reports what the generated private/espresso binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else.
|
Command espressoe5rtprobe reports what the generated private/espresso binding of Espresso's e5rt_* direct-dispatch route can be shown to do, and refuses to report anything else. |
|
espressoe5rtstack
command
Command espressoe5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack.
|
Command espressoe5rtstack runs a stack of transformer blocks on the Neural Engine through the private e5rt direct-dispatch route, in one dispatch, and checks what comes back against a float64 CPU reference of the whole stack. |
|
internal/anedrestart
command
Command anedrestart reopens an E5RT bundle compiled under a previous aned instance and checks the answer, to measure whether bundle reuse survives a restart of the daemon.
|
Command anedrestart reopens an E5RT bundle compiled under a previous aned instance and checks the answer, to measure whether bundle reuse survives a restart of the daemon. |
|
internal/espressoe5rt
Package espressoe5rt adapts Espresso's generated e5rt bindings for examples.
|
Package espressoe5rt adapts Espresso's generated e5rt bindings for examples. |
|
linkedstate
command
Command linkedstate measures what happens when retained E5RT state flows through a pipeline-style link: two separately compiled functions encoded in one stream whose state inout ports share one buffer object.
|
Command linkedstate measures what happens when retained E5RT state flows through a pipeline-style link: two separately compiled functions encoded in one stream whose state inout ports share one buffer object. |
|
modelchain
command
Command modelchain runs a transformer block on the Neural Engine through the public x/ane API, chaining two compiled models by sharing an IOSurface, and checks the result against a float64 CPU reference.
|
Command modelchain runs a transformer block on the Neural Engine through the public x/ane API, chaining two compiled models by sharing an IOSurface, and checks the result against a float64 CPU reference. |
|
pipelinelogits
command
Command pipelinelogits runs a language model's logits tail — final RMSNorm, classifier projection, softmax — as one linked e5rt.Pipeline on the Neural Engine, and checks every probability against a float64 CPU reference.
|
Command pipelinelogits runs a language model's logits tail — final RMSNorm, classifier projection, softmax — as one linked e5rt.Pipeline on the Neural Engine, and checks every probability against a float64 CPU reference. |
|
portlayout
command
Command portlayout sweeps ordinary input and output E5RT ports across tensor shapes with the same self-indexing technique that mapped the state buffer layout, and checks the claim that only the state carries padding.
|
Command portlayout sweeps ordinary input and output E5RT ports across tensor shapes with the same self-indexing technique that mapped the state buffer layout, and checks the claim that only the state carries padding. |
|
slotgauge
command
Command slotgauge measures how many distinct compiled ANE functions one process can keep encoded in a stream, and whether another process holding that resource moves the number — the occupancy signal any scheduler around the function ceiling has to consult.
|
Command slotgauge measures how many distinct compiled ANE functions one process can keep encoded in a stream, and whether another process holding that resource moves the number — the occupancy signal any scheduler around the function ceiling has to consult. |
|
statecache
command
Command statecache keeps mutable state resident on the Neural Engine across executions, and across two separately compiled programs, through one retained E5RT inout port.
|
Command statecache keeps mutable state resident on the Neural Engine across executions, and across two separately compiled programs, through one retained E5RT inout port. |
|
surfaceffn
command
Command surfaceffn runs an Apple Neural Engine matmul over IOSurface pages that another Go process wrote — the ANE arm of the surfacecompute family (examples/iosurface/tensorshare, examples/metal/surfacecompute).
|
Command surfaceffn runs an Apple Neural Engine matmul over IOSurface pages that another Go process wrote — the ANE arm of the surfacecompute family (examples/iosurface/tensorshare, examples/metal/surfacecompute). |
|
appkit
|
|
|
alert
command
Alert shows a native macOS alert dialog from the command line.
|
Alert shows a native macOS alert dialog from the command line. |
|
alert-dialog
command
Command alert-dialog shows the smallest NSAlert example in this tree.
|
Command alert-dialog shows the smallest NSAlert example in this tree. |
|
counter
command
Command counter displays a small AppKit window with a label and two buttons.
|
Command counter displays a small AppKit window with a label and two buttons. |
|
file-picker
command
Command file-picker opens an NSOpenPanel and prints the selected paths.
|
Command file-picker opens an NSOpenPanel and prints the selected paths. |
|
hello-window
command
Command hello-window opens a macOS window with one centered label.
|
Command hello-window opens a macOS window with one centered label. |
|
menubar-clock
command
Command menubar-clock shows the current time in the macOS menu bar.
|
Command menubar-clock shows the current time in the macOS menu bar. |
|
pbd
command
Pbd is a pasteboard tool, an improvement over pbcopy/pbpaste.
|
Pbd is a pasteboard tool, an improvement over pbcopy/pbpaste. |
|
sf-symbols
command
Command sf-symbols shows a small grid of SF Symbols in an AppKit window.
|
Command sf-symbols shows a small grid of SF Symbols in an AppKit window. |
|
swiftui-audio-meter
command
Command swiftui-audio-meter demonstrates x/duplexaudio host probing, full-duplex RMS metering, and instant barge-in flush-to-silence inside an AppKit window (optionally hosting a SwiftUI view via x/swiftui) or headless.
|
Command swiftui-audio-meter demonstrates x/duplexaudio host probing, full-duplex RMS metering, and instant barge-in flush-to-silence inside an AppKit window (optionally hosting a SwiftUI view via x/swiftui) or headless. |
|
swiftui-host
command
|
|
|
todo-app
command
Command todo-app builds a small multi-window todo list in AppKit.
|
Command todo-app builds a small multi-window todo list in AppKit. |
|
audiotoolbox
|
|
|
opus-aac-stream
command
Command opus-aac-stream benchmarks and verifies offline Opus and AAC encode -> packetize -> decode round-trips using AudioToolbox AudioConverter via x/audiocodec.
|
Command opus-aac-stream benchmarks and verifies offline Opus and AAC encode -> packetize -> decode round-trips using AudioToolbox AudioConverter via x/audiocodec. |
|
rtsynth
command
Command rtsynth renders audio from a Go thread promoted to the real-time scheduling class and joined to the audio device's workgroup.
|
Command rtsynth renders audio from a Go thread promoted to the real-time scheduling class and joined to the audio device's workgroup. |
|
avfaudio
|
|
|
audiosay
command
Command audiosay speaks text using Apple's speech synthesis APIs.
|
Command audiosay speaks text using Apple's speech synthesis APIs. |
|
escaping-tap-regression
command
escaping-tap-regression demonstrates the original use-after-free that motivated applegen's escaping-block classifier (appledocs c09228c541).
|
escaping-tap-regression demonstrates the original use-after-free that motivated applegen's escaping-block classifier (appledocs c09228c541). |
|
inputtap
command
Command inputtap captures audio from the default microphone via AVAudioEngine + tap, resamples it to PCM16 mono at 24 kHz with AVAudioConverter, and prints frame counts and peak amplitude every second.
|
Command inputtap captures audio from the default microphone via AVAudioEngine + tap, resamples it to PCM16 mono at 24 kHz with AVAudioConverter, and prints frame counts and peak amplitude every second. |
|
speechbuffers
command
Command speechbuffers renders an utterance into AVAudioBuffer callbacks.
|
Command speechbuffers renders an utterance into AVAudioBuffer callbacks. |
|
avfoundation
|
|
|
audiomix
command
Command audiomix demonstrates editing audio with AVAudioMix.
|
Command audiomix demonstrates editing audio with AVAudioMix. |
|
capture
command
Command capture saves a camera frame as PNG and one second of microphone audio as WAV using AVFoundation capture outputs.
|
Command capture saves a camera frame as PNG and one second of microphone audio as WAV using AVFoundation capture outputs. |
|
compute
|
|
|
ane_fwtofw
command
Command ane_fwtofw demonstrates configuring firmware-to-firmware (FWToFW) signal options and hardware cross-synchronization options between ANE and GPU.
|
Command ane_fwtofw demonstrates configuring firmware-to-firmware (FWToFW) signal options and hardware cross-synchronization options between ANE and GPU. |
|
three-engine-specdec
command
Command three-engine-specdec demonstrates a zero-cgo, three-engine Apple Silicon speculative decoding pipeline composing:
|
Command three-engine-specdec demonstrates a zero-cgo, three-engine Apple Silicon speculative decoding pipeline composing: |
|
threeaccel
command
Command threeaccel runs the same matrix multiplication on all three of Apple silicon's matrix engines from one Go process: the AMX blocks (via Accelerate's cblas_sgemm), the GPU (three ways: a naive Metal kernel, a simdgroup-matrix tiled kernel, and MPSMatrixMultiplication — Apple's tuned GEMM), and the Apple Neural Engine (via x/ane/dynamicmatmul).
|
Command threeaccel runs the same matrix multiplication on all three of Apple silicon's matrix engines from one Go process: the AMX blocks (via Accelerate's cblas_sgemm), the GPU (three ways: a naive Metal kernel, a simdgroup-matrix tiled kernel, and MPSMatrixMultiplication — Apple's tuned GEMM), and the Apple Neural Engine (via x/ane/dynamicmatmul). |
|
zerocopy-handoff
command
Command zerocopy-handoff demonstrates zero-copy IOSurface <-> MTLBuffer page aliasing and bidirectional GPU <-> ANE Mach-port shared-event handoff using github.com/tmc/apple/x/zerocopy.
|
Command zerocopy-handoff demonstrates zero-copy IOSurface <-> MTLBuffer page aliasing and bidirectional GPU <-> ANE Mach-port shared-event handoff using github.com/tmc/apple/x/zerocopy. |
|
coreaudio
|
|
|
blackhole
command
Package main implements a virtual audio loopback driver equivalent to Existential Audio BlackHole.
|
Package main implements a virtual audio loopback driver equivalent to Existential Audio BlackHole. |
|
switchaudio
command
Command switchaudio lists and switches macOS audio input, output, and system devices.
|
Command switchaudio lists and switches macOS audio input, output, and system devices. |
|
systap
command
Command systap records macOS system or per-process audio output to a WAV file using Core Audio process taps.
|
Command systap records macOS system or per-process audio output to a WAV file using Core Audio process taps. |
|
voltap
command
Command voltap demonstrates per-process audio volume control and muting using Core Audio process taps.
|
Command voltap demonstrates per-process audio volume control and muting using Core Audio process taps. |
|
corebluetooth
|
|
|
blescan
command
Command blescan scans for nearby Bluetooth Low Energy peripherals and prints each advertisement as it arrives.
|
Command blescan scans for nearby Bluetooth Low Energy peripherals and prints each advertisement as it arrives. |
|
coregraphics
|
|
|
displays
command
Command displays lists the attached displays and their current configuration using the Core Graphics display services API.
|
Command displays lists the attached displays and their current configuration using the Core Graphics display services API. |
|
coreimage
|
|
|
imgfilter
command
Command imgfilter processes images using Apple's CoreImage framework.
|
Command imgfilter processes images using Apple's CoreImage framework. |
|
pdf-vlm-raster
command
Command pdf-vlm-raster demonstrates zero-cgo PDF rasterization into IOSurface-backed Metal textures via CoreGraphics, PDFKit, and Metal-backed CoreImage, feeding directly zero-copy into x/screentensor to produce [3, 384, 384] FP16 VLM tensors with GPU tile-diff duplicate-page skipping.
|
Command pdf-vlm-raster demonstrates zero-cgo PDF rasterization into IOSurface-backed Metal textures via CoreGraphics, PDFKit, and Metal-backed CoreImage, feeding directly zero-copy into x/screentensor to produce [3, 384, 384] FP16 VLM tensors with GPU tile-diff duplicate-page skipping. |
|
corelocation
|
|
|
whereami
command
Command whereami prints the device's current location using Core Location.
|
Command whereami prints the device's current location using Core Location. |
|
coremidi
|
|
|
coremidi-dls-synth
command
Command coremidi-dls-synth is a polyphonic General MIDI synthesizer backed by CoreMIDI and AVFAudio (AVAudioUnitSampler + AVAudioUnitReverb) using macOS's built-in gs_instruments.dls SoundBank.
|
Command coremidi-dls-synth is a polyphonic General MIDI synthesizer backed by CoreMIDI and AVFAudio (AVAudioUnitSampler + AVAudioUnitReverb) using macOS's built-in gs_instruments.dls SoundBank. |
|
midimon
command
Command midimon lists the MIDI sources on the system and prints the messages they send, decoding MIDI 1.0 channel voice messages.
|
Command midimon lists the MIDI sources on the system and prints the messages they send, decoding MIDI 1.0 channel voice messages. |
|
coreml
|
|
|
coreml-inspect
command
Command coreml-inspect loads a CoreML model and prints its description as JSON.
|
Command coreml-inspect loads a CoreML model and prints its description as JSON. |
|
gomodel
command
Command gomodel authors, packages, compiles, and runs a CoreML model entirely from Go — no Python, no coremltools, no Xcode.
|
Command gomodel authors, packages, compiles, and runs a CoreML model entirely from Go — no Python, no coremltools, no Xcode. |
|
multiarray-bytes
command
Command multiarray-bytes creates an MLMultiArray and reads its backing bytes.
|
Command multiarray-bytes creates an MLMultiArray and reads its backing bytes. |
|
coreservices
|
|
|
fsevents
command
Command fsevents watches a directory with Apple's journal-backed FSEvents service via x/fswatch and prints each file-level event as it arrives.
|
Command fsevents watches a directory with Apple's journal-backed FSEvents service via x/fswatch and prints each file-level event as it arrives. |
|
workspace-watch
command
Command workspace-watch demonstrates github.com/tmc/apple/x/fswatch for live workspace triggers (RAG re-indexing, coding-agent watches, Metal shader hot-reload).
|
Command workspace-watch demonstrates github.com/tmc/apple/x/fswatch for live workspace triggers (RAG re-indexing, coding-agent watches, Metal shader hot-reload). |
|
corespotlight
|
|
|
index
command
Command index indexes a few items into Spotlight with Core Spotlight and then deletes them again by unique identifier, leaving the index as it was.
|
Command index indexes a few items into Spotlight with Core Spotlight and then deletes them again by unique identifier, leaving the index as it was. |
|
semantic-index
command
Command semantic-index demonstrates local hybrid semantic + metadata search on macOS without cgo, combining CoreSpotlight (CSSearchableIndex, CSSearchableItem, CSSearchableItemAttributeSet) with NaturalLanguage (NLTokenizer, NLEmbedding) and fast pure-Go cosine similarity + Okapi BM25 fusion.
|
Command semantic-index demonstrates local hybrid semantic + metadata search on macOS without cgo, combining CoreSpotlight (CSSearchableIndex, CSSearchableItem, CSSearchableItemAttributeSet) with NaturalLanguage (NLTokenizer, NLEmbedding) and fast pure-Go cosine similarity + Okapi BM25 fusion. |
|
coretext
|
|
|
glyphruns
command
Command glyphruns lays out a string with Core Text and reports its glyph runs.
|
Command glyphruns lays out a string with Core Text and reports its glyph runs. |
|
corewlan
|
|
|
wifiinfo
command
Command wifiinfo reports the state of each Wi-Fi interface on the system: power, mode, SSID, BSSID, RSSI, noise, channel, and transmit rate.
|
Command wifiinfo reports the state of each Wi-Fi interface on the system: power, mode, SSID, BSSID, RSSI, noise, channel, and transmit rate. |
|
diskarbitration
|
|
|
lsdisks
command
Command lsdisks lists the mounted volumes and prints the Disk Arbitration description of each one.
|
Command lsdisks lists the mounted volumes and prints the Disk Arbitration description of each one. |
|
dispatch
|
|
|
memorysqueeze
command
Command memorysqueeze simulates an inference server holding a large cache and shows what DISPATCH_SOURCE_TYPE_MEMORYPRESSURE buys it.
|
Command memorysqueeze simulates an inference server holding a large cache and shows what DISPATCH_SOURCE_TYPE_MEMORYPRESSURE buys it. |
|
parallel-work
command
Parallel-work dispatches concurrent tasks using GCD groups and semaphores.
|
Parallel-work dispatches concurrent tasks using GCD groups and semaphores. |
|
queues
command
Command queues demonstrates a serial queue, a group, and a semaphore.
|
Command queues demonstrates a serial queue, a group, and a semaphore. |
|
espresso
|
|
|
espresso-infer
command
Command espresso-infer runs a minimal Espresso neural network using github.com/tmc/apple/x/espresso.
|
Command espresso-infer runs a minimal Espresso neural network using github.com/tmc/apple/x/espresso. |
|
foundation
|
|
|
appnap
command
Command appnap shows the effect of an NSProcessInfo activity on a timer.
|
Command appnap shows the effect of an NSProcessInfo activity on a timer. |
|
http-fetch
command
Command http-fetch downloads a URL with Foundation and prints a short preview.
|
Command http-fetch downloads a URL with Foundation and prints a short preview. |
|
nsdefaults
command
Command nsdefaults reads and writes NSUserDefaults values.
|
Command nsdefaults reads and writes NSUserDefaults values. |
|
process-info
command
Command process-info prints basic details about the current process.
|
Command process-info prints basic details about the current process. |
|
sysinfo
command
Command sysinfo prints system information and optionally lists running applications.
|
Command sysinfo prints system information and optionally lists running applications. |
|
user-defaults
command
Command user-defaults shows a small round-trip through NSUserDefaults.
|
Command user-defaults shows a small round-trip through NSUserDefaults. |
|
uuid-date
command
Command uuid-date prints the current NSDate and a freshly generated NSUUID.
|
Command uuid-date prints the current NSDate and a freshly generated NSUUID. |
|
gamecontroller
|
|
|
padstate
command
Command padstate prints the state of connected game controllers.
|
Command padstate prints the state of connected game controllers. |
|
gpu
|
|
|
iogpucensus
command
Command iogpucensus runs the Step 0 private/iogpu SPI census described in design/iogpu-spec.md.
|
Command iogpucensus runs the Step 0 private/iogpu SPI census described in design/iogpu-spec.md. |
|
unified-trace
command
Command unified-trace correlates Go runtime/trace (goroutines, GC STW pauses, lock waits, user regions), x/signpost intervals, and Metal GPU timestamps calibrated via MTLDevice.SampleTimestamps onto a single monotonic Mach clock using github.com/tmc/apple/x/unifiedtrace with zero cgo.
|
Command unified-trace correlates Go runtime/trace (goroutines, GC STW pauses, lock waits, user regions), x/signpost intervals, and Metal GPU timestamps calibrated via MTLDevice.SampleTimestamps onto a single monotonic Mach clock using github.com/tmc/apple/x/unifiedtrace with zero cgo. |
|
hypervisor
|
|
|
hvinfo
command
|
|
|
imageio
|
|
|
imgprops
command
Command imgprops prints the properties of an image file using the Image I/O framework.
|
Command imgprops prints the properties of an image file using the Image I/O framework. |
|
iosurface
|
|
|
ane-metal-pingpong
command
Command ane-metal-pingpong demonstrates zero-copy ANE <-> Metal GPU synchronization over shared IOSurface pages using MTLSharedEvent.
|
Command ane-metal-pingpong demonstrates zero-copy ANE <-> Metal GPU synchronization over shared IOSurface pages using MTLSharedEvent. |
|
tensorshare
command
Command tensorshare demonstrates zero-copy tensor handoff between two Go processes via IOSurface.
|
Command tensorshare demonstrates zero-copy tensor handoff between two Go processes via IOSurface. |
|
javascriptcore
|
|
|
jseval
command
Command jseval evaluates a JavaScript expression with JavaScriptCore and prints the result, reporting any uncaught JavaScript exception.
|
Command jseval evaluates a JavaScript expression with JavaScriptCore and prints the result, reporting any uncaught JavaScript exception. |
|
kernel
|
|
|
amfidont
command
Command amfidont relaxes one nominated code-signing verdict inside the running amfid daemon, for one binary, once, and then exits.
|
Command amfidont relaxes one nominated code-signing verdict inside the running amfid daemon, for one binary, once, and then exits. |
|
apfs-cow-sandbox
command
Command apfs-cow-sandbox demonstrates instant APFS copy-on-write directory tree sandboxes and a zero-copy content-addressed artifact store using x/apfs.
|
Command apfs-cow-sandbox demonstrates instant APFS copy-on-write directory tree sandboxes and a zero-copy content-addressed artifact store using x/apfs. |
|
apfs-cow-timemachine
command
Command apfs-cow-timemachine watches a directory with macOS FSEvents and captures instant APFS clonefile(2) Copy-on-Write snapshots, Apple LZFSE compressed diffs, and a binary-plist manifest without cgo or sudo.
|
Command apfs-cow-timemachine watches a directory with macOS FSEvents and captures instant APFS clonefile(2) Copy-on-Write snapshots, Apple LZFSE compressed diffs, and a binary-plist manifest without cgo or sudo. |
|
apfs-extent-xray
command
Command apfs-extent-xray demonstrates APFS physical extent inspection (F_LOG2PHYS_EXT), copy-on-write divergence after a single-page mutation, and sparse hole punching (F_PUNCHHOLE) using x/apfs with zero cgo.
|
Command apfs-extent-xray demonstrates APFS physical extent inspection (F_LOG2PHYS_EXT), copy-on-write divergence after a single-page mutation, and sparse hole punching (F_PUNCHHOLE) using x/apfs with zero cgo. |
|
apfs-sync-bench
command
Command apfs-sync-bench benchmarks macOS durability sync primitives (fsync vs F_BARRIERFSYNC vs F_FULLFSYNC) and inspects local APFS volume snapshots via fs_snapshot_list(2) using x/apfs with zero cgo.
|
Command apfs-sync-bench benchmarks macOS durability sync primitives (fsync vs F_BARRIERFSYNC vs F_FULLFSYNC) and inspects local APFS volume snapshots via fs_snapshot_list(2) using x/apfs with zero cgo. |
|
apfs-weight-checkpoint
command
Command apfs-weight-checkpoint demonstrates unified-memory weight streaming with madvise page reclamation and crash-safe APFS CoW atomic checkpointing.
|
Command apfs-weight-checkpoint demonstrates unified-memory weight streaming with madvise page reclamation and crash-safe APFS CoW atomic checkpointing. |
|
apfs-weight-clone
command
Command apfs-weight-clone demonstrates Darwin APFS copy-on-write cloning and controlled unified-memory weight streaming using x/apfs without cgo.
|
Command apfs-weight-clone demonstrates Darwin APFS copy-on-write cloning and controlled unified-memory weight streaming using x/apfs without cgo. |
|
git-cow
command
Command git-cow creates git worktrees backed by APFS copy-on-write clones using github.com/tmc/apple/x/apfs (zero-cgo clonefile(2) and F_LOG2PHYS_EXT).
|
Command git-cow creates git worktrees backed by APFS copy-on-write clones using github.com/tmc/apple/x/apfs (zero-cgo clonefile(2) and F_LOG2PHYS_EXT). |
|
kv-vm-snapshot
command
Command kv-vm-snapshot prototypes OS virtual-memory primitives for LLM KV-cache prefix sharing and memory-pressure shedding on macOS:
|
Command kv-vm-snapshot prototypes OS virtual-memory primitives for LLM KV-cache prefix sharing and memory-pressure shedding on macOS: |
|
machexc
command
Command machexc demonstrates a Mach-exception crash reporter: it catches EXC_BAD_ACCESS at the task level, prints the faulting thread's full register state with a symbolized fault PC, then lets the crash proceed to Go's normal signal handling.
|
Command machexc demonstrates a Mach-exception crash reporter: it catches EXC_BAD_ACCESS at the task level, prints the faulting thread's full register state with a symbolized fault PC, then lets the crash proceed to Go's normal signal handling. |
|
machportkevent
command
Command machportkevent demonstrates waiting on Mach ports with kqueue's EVFILT_MACHPORT filter.
|
Command machportkevent demonstrates waiting on Mach ports with kqueue's EVFILT_MACHPORT filter. |
|
purgeable-kv-pool
command
Command purgeable-kv-pool demonstrates kernel-synchronous volatile KV/prefix cache slabs backed by Darwin mach_vm_purgable_control via x/purgeable, paired with live process footprint accounting from x/mempressure.
|
Command purgeable-kv-pool demonstrates kernel-synchronous volatile KV/prefix cache slabs backed by Darwin mach_vm_purgable_control via x/purgeable, paired with live process footprint accounting from x/mempressure. |
|
searchfs
command
Command searchfs searches a volume catalog with searchfs(2).
|
Command searchfs searches a volume catalog with searchfs(2). |
|
vmremap
command
vmremap demonstrates a shared mapping within the current Mach task.
|
vmremap demonstrates a shared mapping within the current Mach task. |
|
localauthentication
|
|
|
authcheck
command
Command authcheck reports which local authentication policies this machine can evaluate, using the LocalAuthentication framework.
|
Command authcheck reports which local authentication policies this machine can evaluate, using the LocalAuthentication framework. |
|
mach
|
|
|
modelservice
command
Command modelservice demonstrates one resident copy of model weights serving many client processes — the shape of Apple's own on-device model daemon, built from this repo's mach and iosurface bindings.
|
Command modelservice demonstrates one resident copy of model weights serving many client processes — the shape of Apple's own on-device model daemon, built from this repo's mach and iosurface bindings. |
|
media
|
|
|
duplex-voice-loop
command
Command duplex-voice-loop benchmarks lock-free 24 kHz float32 full-duplex audio loopback, instant barge-in flush-to-silence latency under synthetic CPU load with x/workgroup thread pinning, ring-buffer throughput (0 allocs/op), and probes host VoiceProcessingIO, CoreAudio devices, and CATapDescription.
|
Command duplex-voice-loop benchmarks lock-free 24 kHz float32 full-duplex audio loopback, instant barge-in flush-to-silence latency under synthetic CPU load with x/workgroup thread pinning, ring-buffer throughput (0 allocs/op), and probes host VoiceProcessingIO, CoreAudio devices, and CATapDescription. |
|
screen-vlm-stream
command
Command screen-vlm-stream benchmarks and verifies a zero-cgo IOSurface -> Metal VLM preprocessing stream with GPU tile-diff change gating.
|
Command screen-vlm-stream benchmarks and verifies a zero-cgo IOSurface -> Metal VLM preprocessing stream with GPU tile-diff change gating. |
|
voice-agent-pipeline
command
Command voice-agent-pipeline demonstrates an end-to-end local macOS voice-agent audio front-end with zero cgo (CGO_ENABLED=0) and zero TCC permission prompts, composing:
|
Command voice-agent-pipeline demonstrates an end-to-end local macOS voice-agent audio front-end with zero cgo (CGO_ENABLED=0) and zero TCC permission prompts, composing: |
|
vt-metal-vlm
command
Command vt-metal-vlm demonstrates a zero-cgo hardware video decode to Metal VLM preprocessing pipeline on macOS:
|
Command vt-metal-vlm demonstrates a zero-cgo hardware video decode to Metal VLM preprocessing pipeline on macOS: |
|
metal
|
|
|
async-prefetch-ring
command
Command async-prefetch-ring demonstrates out-of-core SSD-to-GPU transformer layer streaming on Apple Silicon without cgo.
|
Command async-prefetch-ring demonstrates out-of-core SSD-to-GPU transformer layer streaming on Apple Silicon without cgo. |
|
compressed-weight-stream
command
Command compressed-weight-stream benchmarks Metal compressed weight loading (.mtlio LZ4 and LZFSE via x/metalio.OpenCompressedFile) against uncompressed x/metalio and CPU x/compression.Decode + copy, verifying CRC32 and exact byte-for-byte parity.
|
Command compressed-weight-stream benchmarks Metal compressed weight loading (.mtlio LZ4 and LZFSE via x/metalio.OpenCompressedFile) against uncompressed x/metalio and CPU x/compression.Decode + copy, verifying CRC32 and exact byte-for-byte parity. |
|
dispatch-profiler
command
Command dispatch-profiler benchmarks per-dispatch GPU timestamp sampling on a 32-dispatch synthetic transformer micro-layer using github.com/tmc/apple/x/metalcounters.
|
Command dispatch-profiler benchmarks per-dispatch GPU timestamp sampling on a 32-dispatch synthetic transformer micro-layer using github.com/tmc/apple/x/metalcounters. |
|
escaping-block-regression
command
escaping-block-regression demonstrates an ObjC API pattern that broke before applegen learned to skip `defer block.Release()` for escaping blocks.
|
escaping-block-regression demonstrates an ObjC API pattern that broke before applegen learned to skip `defer block.Release()` for escaping blocks. |
|
fast-weight-loader
command
Command fast-weight-loader benchmarks direct NVMe-to-MTLBuffer weight loading using x/metalio against POSIX os.ReadFile+copy and mmap+copy controls, verifies byte/CRC32 parity, and runs a Metal compute dot-product sanity check over the loaded weights.
|
Command fast-weight-loader benchmarks direct NVMe-to-MTLBuffer weight loading using x/metalio against POSIX os.ReadFile+copy and mmap+copy controls, verifies byte/CRC32 parity, and runs a Metal compute dot-product sanity check over the loaded weights. |
|
flighttrace
command
Command flighttrace demonstrates an always-on Go 1.27 runtime/trace FlightRecorder anomaly-triggered post-mortem bundle on Apple Silicon with zero cgo and zero TCC prompts.
|
Command flighttrace demonstrates an always-on Go 1.27 runtime/trace FlightRecorder anomaly-triggered post-mortem bundle on Apple Silicon with zero cgo and zero TCC prompts. |
|
heap-kv-allocator
command
Command heap-kv-allocator benchmarks paged KV-cache block allocation on a Metal placement heap (x/metalheap) against per-block MTLDevice buffer allocations, and verifies alignment, aliasing, purgeability, and residency set accounting.
|
Command heap-kv-allocator benchmarks paged KV-cache block allocation on a Metal placement heap (x/metalheap) against per-block MTLDevice buffer allocations, and verifies alignment, aliasing, purgeability, and residency set accounting. |
|
icb-decode-graph
command
Command icb-decode-graph benchmarks a synthetic N-layer transformer decode graph replayed via github.com/tmc/apple/x/metalicb (MTLIndirectCommandBuffer) against traditional per-dispatch CPU encoding.
|
Command icb-decode-graph benchmarks a synthetic N-layer transformer decode graph replayed via github.com/tmc/apple/x/metalicb (MTLIndirectCommandBuffer) against traditional per-dispatch CPU encoding. |
|
metal-energy-roofline
command
Command metal-energy-roofline sweeps inline MSL compute kernels from bandwidth-bound AXPY to compute-bound FMA chains on Apple Silicon, measuring GPU throughput (x/metalcounters), live IOReport GPU power (x/powersample), and thermal state (x/thermal).
|
Command metal-energy-roofline sweeps inline MSL compute kernels from bandwidth-bound AXPY to compute-bound FMA chains on Apple Silicon, measuring GPU throughput (x/metalcounters), live IOReport GPU power (x/powersample), and thermal state (x/thermal). |
|
metal4-ml-compute
command
Command metal4-ml-compute evaluates the Metal 4 compute/ML fast path (via github.com/tmc/apple/x/metal4) side-by-side against a Metal 3 MTLCommandBuffer baseline on a decode-loop RMSNorm + SiLU-gated residual micro-step.
|
Command metal4-ml-compute evaluates the Metal 4 compute/ML fast path (via github.com/tmc/apple/x/metal4) side-by-side against a Metal 3 MTLCommandBuffer baseline on a decode-loop RMSNorm + SiLU-gated residual micro-step. |
|
metal4-ml-network
command
Command metal4-ml-network compiles a 2-layer ReLU MLP in pure Go via x/coremlcompiler, converts it to a Metal 4 .mtlpackage, and executes it natively through x/metal4's MTL4MachineLearningCommandEncoder and MTLTensor APIs, verifying numerical parity against CPU and Metal 4 compute references and benchmarking p50/p95/p99 latency.
|
Command metal4-ml-network compiles a 2-layer ReLU MLP in pure Go via x/coremlcompiler, converts it to a Metal 4 .mtlpackage, and executes it natively through x/metal4's MTL4MachineLearningCommandEncoder and MTLTensor APIs, verifying numerical parity against CPU and Metal 4 compute references and benchmarking p50/p95/p99 latency. |
|
metal4-triangle
command
metal4-triangle renders a rotating triangle using the Metal 4 API.
|
metal4-triangle renders a rotating triangle using the Metal 4 API. |
|
pipeline-cache-bench
command
|
|
|
surfacecompute
command
Command surfacecompute demonstrates GPU compute over an IOSurface shared between two Go processes with zero copies.
|
Command surfacecompute demonstrates GPU compute over an IOSurface shared between two Go processes with zero copies. |
|
metalperformanceshaders
|
|
|
copyallocator
command
Command copyallocator is a failing regression gate for two applegen defects that together make the MPS fallback copy allocator unusable from Go.
|
Command copyallocator is a failing regression gate for two applegen defects that together make the MPS fallback copy allocator unusable from Go. |
|
imagefilter
command
Command imagefilter runs MPSImageGaussianBlur over a Metal texture.
|
Command imagefilter runs MPSImageGaussianBlur over a Metal texture. |
|
matrixmultiply
command
Command matrixmultiply multiplies two matrices with MPSMatrixMultiplication.
|
Command matrixmultiply multiplies two matrices with MPSMatrixMultiplication. |
|
metalperformanceshadersgraph
|
|
|
customfunction
command
Command customfunction adds a custom function to an MPSGraph.
|
Command customfunction adds a custom function to an MPSGraph. |
|
executable
command
Command executable demonstrates the MPSGraphExecutable deployment path: compile a graph once, ship the compiled package, load it later without rebuilding the graph.
|
Command executable demonstrates the MPSGraphExecutable deployment path: compile a graph once, ship the compiled package, load it later without rebuilding the graph. |
|
flash-sdpa-bench
command
Command flash-sdpa-bench is a zero-cgo Apple first-party numerical and speed oracle built on MPSGraphExecutable.
|
Command flash-sdpa-bench is a zero-cgo Apple first-party numerical and speed oracle built on MPSGraphExecutable. |
|
mnistdraw
command
Command mnistdraw is an interactive version of Apple's "Training a Neural Network using MPS Graph" sample: draw a digit with the mouse and watch the network classify it as you draw.
|
Command mnistdraw is an interactive version of Apple's "Training a Neural Network using MPS Graph" sample: draw a digit with the mouse and watch the network classify it as you draw. |
|
mnisttrain
command
Command mnisttrain trains a small MNIST digit classifier with MPSGraph.
|
Command mnisttrain trains a small MNIST digit classifier with MPSGraph. |
|
mpsgraph
command
Command mpsgraph runs a small MLP forward pass on the GPU with MPSGraph.
|
Command mpsgraph runs a small MLP forward pass on the GPU with MPSGraph. |
|
naturallanguage
|
|
|
embedding
command
Command embedding computes word distances and nearest neighbors using Apple's NaturalLanguage word embeddings.
|
Command embedding computes word distances and nearest neighbors using Apple's NaturalLanguage word embeddings. |
|
ngrep
command
Command ngrep searches lines for semantic similarity to a query using Apple's NaturalLanguage embeddings — a neural alternative to grep.
|
Command ngrep searches lines for semantic similarity to a query using Apple's NaturalLanguage embeddings — a neural alternative to grep. |
|
nlp
command
Command nlp provides Unix-native text analysis using Apple's NaturalLanguage framework.
|
Command nlp provides Unix-native text analysis using Apple's NaturalLanguage framework. |
|
nsort
command
Command nsort sorts lines by semantic similarity using Apple's NaturalLanguage sentence embeddings — a neural alternative to Unix sort.
|
Command nsort sorts lines by semantic similarity using Apple's NaturalLanguage sentence embeddings — a neural alternative to Unix sort. |
|
network
|
|
|
cluster-discovery
command
Command cluster-discovery demonstrates zero-configuration Bonjour peer discovery, local Thunderbolt/LAN interface inspection, and deterministic rendezvous planning using github.com/tmc/apple/x/meshdisc.
|
Command cluster-discovery demonstrates zero-configuration Bonjour peer discovery, local Thunderbolt/LAN interface inspection, and deterministic rendezvous planning using github.com/tmc/apple/x/meshdisc. |
|
netperfbench
command
Command netperfbench measures TCP echo latency and throughput over three transports so they can be compared on identical work:
|
Command netperfbench measures TCP echo latency and throughput over three transports so they can be compared on identical work: |
|
plaintcp
command
Command plaintcp configures cleartext TCP parameters from a block callback.
|
Command plaintcp configures cleartext TCP parameters from a block callback. |
|
quic-tensor-mesh
command
Command quic-tensor-mesh demonstrates headless PSK-authenticated multiplexed QUIC tensor shard transfer and RFC 9221 datagram round-trips over Apple's Network.framework using github.com/tmc/apple/x/nwquic.
|
Command quic-tensor-mesh demonstrates headless PSK-authenticated multiplexed QUIC tensor shard transfer and RFC 9221 datagram round-trips over Apple's Network.framework using github.com/tmc/apple/x/nwquic. |
|
txtrecord
command
Command txtrecord creates and reads a Network TXT record.
|
Command txtrecord creates and reads a Network TXT record. |
|
udpbatchbench
command
Command udpbatchbench measures the Darwin batched UDP datapath (sendmsg_x/recvmsg_x via x/udpbatch) against the one-syscall-per-datagram path every Go program uses today.
|
Command udpbatchbench measures the Darwin batched UDP datapath (sendmsg_x/recvmsg_x via x/udpbatch) against the one-syscall-per-datagram path every Go program uses today. |
|
zero-config-tensor-cluster
command
Command zero-config-tensor-cluster demonstrates a zero-configuration Bonjour + QUIC distributed Metal 4 tensor allreduce cluster with P-256 node identity attestation and zero macOS Keychain or GUI prompts (CGO_ENABLED=0).
|
Command zero-config-tensor-cluster demonstrates a zero-configuration Bonjour + QUIC distributed Metal 4 tensor allreduce cluster with P-256 node identity attestation and zero macOS Keychain or GUI prompts (CGO_ENABLED=0). |
|
networkextension
|
|
|
networkextension-filter-dns-provider-demo
command
Command networkextension-filter-dns-provider-demo exercises DNS proxy and content-filter provider callbacks without installing an extension.
|
Command networkextension-filter-dns-provider-demo exercises DNS proxy and content-filter provider callbacks without installing an extension. |
|
networkextension-flow-callback-demo
command
Command networkextension-flow-callback-demo exercises NetworkExtension flow/session callback block signatures without provider-owned flow objects.
|
Command networkextension-flow-callback-demo exercises NetworkExtension flow/session callback block signatures without provider-owned flow objects. |
|
networkextension-manager-config-demo
command
Command networkextension-manager-config-demo exercises local NetworkExtension manager objects without loading or saving preferences.
|
Command networkextension-manager-config-demo exercises local NetworkExtension manager objects without loading or saving preferences. |
|
networkextension-policy-config-demo
command
Command networkextension-policy-config-demo exercises local NetworkExtension policy/configuration objects without saving preferences.
|
Command networkextension-policy-config-demo exercises local NetworkExtension policy/configuration objects without saving preferences. |
|
networkextension-provider-callback-demo
command
Command networkextension-provider-callback-demo exercises provider-style NetworkExtension completion callbacks without installing an extension.
|
Command networkextension-provider-callback-demo exercises provider-style NetworkExtension completion callbacks without installing an extension. |
|
networkextension-provider-wrapper-demo
command
Command networkextension-provider-wrapper-demo exercises generated provider wrapper methods against local Objective-C callback objects.
|
Command networkextension-provider-wrapper-demo exercises generated provider wrapper methods against local Objective-C callback objects. |
|
networkextension-settings-demo
command
Command networkextension-settings-demo exercises local NetworkExtension settings objects without installing a Network Extension.
|
Command networkextension-settings-demo exercises local NetworkExtension settings objects without installing a Network Extension. |
|
networkextension-tcp-auth-demo
command
Command networkextension-tcp-auth-demo exercises NetworkExtension TCP authentication delegate callbacks without creating a connection.
|
Command networkextension-tcp-auth-demo exercises NetworkExtension TCP authentication delegate callbacks without creating a connection. |
|
networkextension-value-object-demo
command
Command networkextension-value-object-demo exercises local NetworkExtension value and state objects.
|
Command networkextension-value-object-demo exercises local NetworkExtension value and state objects. |
|
objc
|
|
|
exception-handler
command
Exception-handler demonstrates observing Objective-C exceptions from Go.
|
Exception-handler demonstrates observing Objective-C exceptions from Go. |
|
os
|
|
|
daemon-activity
command
Command daemon-activity demonstrates github.com/tmc/apple/x/daemon.
|
Command daemon-activity demonstrates github.com/tmc/apple/x/daemon. |
|
logdemo
command
Command logdemo exercises every capability of the x/oslog and x/signpost packages so the output can be inspected in Console.app or `log stream`.
|
Command logdemo exercises every capability of the x/oslog and x/signpost packages so the output can be inspected in Console.app or `log stream`. |
|
os-silicon-top
command
Command os-silicon-top streams live no-sudo Apple Silicon telemetry while pinning Go goroutines across P-cores, E-cores, and a Mach real-time thread.
|
Command os-silicon-top streams live no-sudo Apple Silicon telemetry while pinning Go goroutines across P-cores, E-cores, and a Mach real-time thread. |
|
osdemo
command
Command osdemo exercises the generated os and oslog bindings from Go:
|
Command osdemo exercises the generated os and oslog bindings from Go: |
|
shm-tensor-ring
command
Command shm-tensor-ring demonstrates cross-process tensor descriptor streaming and wake-latency benchmarking over a shared mmap region using Darwin's os_sync_wait_on_address (OS_SYNC_WAIT_ON_ADDRESS_SHARED) via x/ossync, compared against a POSIX pipe baseline.
|
Command shm-tensor-ring demonstrates cross-process tensor descriptor streaming and wake-latency benchmarking over a shared mmap region using Darwin's os_sync_wait_on_address (OS_SYNC_WAIT_ON_ADDRESS_SHARED) via x/ossync, compared against a POSIX pipe baseline. |
|
signpostweb
command
Command signpostweb serves HTTP and emits one os_signpost interval per request, making the Go server legible to Instruments.
|
Command signpostweb serves HTTP and emits one os_signpost interval per request, making the Go server legible to Instruments. |
|
thermal-governor
command
Command thermal-governor demonstrates github.com/tmc/apple/x/thermal.
|
Command thermal-governor demonstrates github.com/tmc/apple/x/thermal. |
|
workgroup-decode
command
Command workgroup-decode compares latency-critical decode steps pinned to Apple Silicon P-cores (UserInteractive QoS + os_workgroup) against E-core Background QoS execution under competing background CPU load.
|
Command workgroup-decode compares latency-critical decode steps pinned to Apple Silicon P-cores (UserInteractive QoS + os_workgroup) against E-core Background QoS execution under competing background CPU load. |
|
oslog
|
|
|
logread
command
Command logread emits log entries at several levels and reads them back from the unified logging store.
|
Command logread emits log entries at several levels and reads them back from the unified logging store. |
|
pdfkit
|
|
|
pdfinfo
command
Command pdfinfo reports document metadata and per-page information for a PDF file using the PDFKit framework.
|
Command pdfinfo reports document metadata and per-page information for a PDF file using the PDFKit framework. |
|
rdma
|
|
|
metal-rdma-allreduce
command
Command metal-rdma-allreduce demonstrates zero-copy Metal MTLBuffer <-> RDMA Memory Region registration and a 2-rank GPU-accelerated allreduce collective.
|
Command metal-rdma-allreduce demonstrates zero-copy Metal MTLBuffer <-> RDMA Memory Region registration and a 2-rank GPU-accelerated allreduce collective. |
|
rdmainfo
command
Command rdmainfo probes Apple's RDMA userspace bindings.
|
Command rdmainfo probes Apple's RDMA userspace bindings. |
|
rdmaperf
command
Command rdmaperf measures TCP and RDMA readiness paths.
|
Command rdmaperf measures TCP and RDMA readiness paths. |
|
screencapturekit
|
|
|
gpucompute
command
Command gpucompute applies a Metal luminance reduction to live ScreenCaptureKit frames.
|
Command gpucompute applies a Metal luminance reduction to live ScreenCaptureKit frames. |
|
screenshot
command
Command screenshot captures a screenshot of a display or window using the ScreenCaptureKit framework and saves it as a PNG file.
|
Command screenshot captures a screenshot of a display or window using the ScreenCaptureKit framework and saves it as a PNG file. |
|
streamframes
command
Command streamframes captures screen frames with SCStreamOutput.
|
Command streamframes captures screen frames with SCStreamOutput. |
|
windowlist
command
Command windowlist enumerates all windows, displays, and running applications using the ScreenCaptureKit framework and outputs the results as JSON.
|
Command windowlist enumerates all windows, displays, and running applications using the ScreenCaptureKit framework and outputs the results as JSON. |
|
security
|
|
|
auth-dialog
command
Command auth-dialog triggers the macOS authentication dialog using LocalAuthentication's LAContext.
|
Command auth-dialog triggers the macOS authentication dialog using LocalAuthentication's LAContext. |
|
enclave-model-seal
command
Command enclave-model-seal demonstrates hardware-backed P-256 node identity attestation and hybrid ECIES + AES-256-GCM sealing of 16 MiB model weight or KV-cache chunks using github.com/tmc/apple/x/enclave.
|
Command enclave-model-seal demonstrates hardware-backed P-256 node identity attestation and hybrid ECIES + AES-256-GCM sealing of 16 MiB model weight or KV-cache chunks using github.com/tmc/apple/x/enclave. |
|
keychain
command
Command keychain demonstrates macOS Security framework keychain operations using the generated security and corefoundation bindings.
|
Command keychain demonstrates macOS Security framework keychain operations using the generated security and corefoundation bindings. |
|
security-gpu-attest
command
Command security-gpu-attest executes an inline Metal compute kernel, attests real Apple Silicon GPU execution via x/engineattest, signs the attestation receipt with a Secure Enclave P-256 key (x/enclave), verifies it with stdlib crypto/ecdsa, and proves that a CPU-forged impostor is rejected.
|
Command security-gpu-attest executes an inline Metal compute kernel, attests real Apple Silicon GPU execution via x/engineattest, signs the attestation receipt with a Secure Enclave P-256 key (x/enclave), verifies it with stdlib crypto/ecdsa, and proves that a CPU-forged impostor is rejected. |
|
soundanalysis
|
|
|
listen
command
Command listen classifies the sounds in an audio file using the SoundAnalysis framework's built-in classifier, printing each result's time range and its top labels with confidence.
|
Command listen classifies the sounds in an audio file using the SoundAnalysis framework's built-in classifier, printing each result's time range and its top labels with confidence. |
|
speech
|
|
|
live-dictation
command
Command live-dictation demonstrates zero-cgo on-device speech recognition with Apple's Speech framework (x/ondeviceasr), AVAudioPCMBuffer streaming, and full-duplex barge-in voice control (x/duplexaudio).
|
Command live-dictation demonstrates zero-cgo on-device speech recognition with Apple's Speech framework (x/ondeviceasr), AVAudioPCMBuffer streaming, and full-duplex barge-in voice control (x/duplexaudio). |
|
spritekit
|
|
|
bounce
command
Command bounce shows a SpriteKit physics simulation in an AppKit window: colored sprites fall under gravity and bounce off the walls of the scene.
|
Command bounce shows a SpriteKit physics simulation in an AppKit window: colored sprites fall under gravity and bounce off the walls of the scene. |
|
spritekit-sound-physics
command
Command spritekit-sound-physics is a 60fps Metal SpriteKit physics/particle visualizer driven by Accelerate vDSP FFT bands from an AVFAudio groove.
|
Command spritekit-sound-physics is a 60fps Metal SpriteKit physics/particle visualizer driven by Accelerate vDSP FFT bands from an AVFAudio groove. |
|
systemconfiguration
|
|
|
reachability
command
Command reachability reports whether a host is reachable with the current network configuration, using the SystemConfiguration framework.
|
Command reachability reports whether a host is reachable with the current network configuration, using the SystemConfiguration framework. |
|
ui
|
|
|
ax-space-inspector
command
Command ax-space-inspector inspects an application's Accessibility windows alongside their macOS WindowServer (SkyLight) Space membership.
|
Command ax-space-inspector inspects an application's Accessibility windows alongside their macOS WindowServer (SkyLight) Space membership. |
|
uniformtypeidentifiers
|
|
|
file-types
command
Command file-types shows a few common Uniform Type Identifier lookups.
|
Command file-types shows a few common Uniform Type Identifier lookups. |
|
typeid
command
Command typeid resolves Uniform Type Identifiers for file extensions, MIME types, and UTI strings.
|
Command typeid resolves Uniform Type Identifiers for file extensions, MIME types, and UTI strings. |
|
usernotifications
|
|
|
notify
command
Command notify requests notification authorization and schedules a local notification using the UserNotifications framework.
|
Command notify requests notification authorization and schedules a local notification using the UserNotifications framework. |
|
videotoolbox
|
|
|
codecs
command
Command codecs reports the video encoders VideoToolbox exposes on this machine, the codecs it can decode in hardware, and the properties an encoder supports for a given frame size.
|
Command codecs reports the video encoders VideoToolbox exposes on this machine, the codecs it can decode in hardware, and the properties an encoder supports for a given frame size. |
|
virtualization
|
|
|
agent-microvm
command
Command agent-microvm demonstrates a network-less Linux microVM tool-execution sandbox built on Apple Virtualization.framework (x/vzkit) with VirtioFS workspace sharing and an APFS copy-on-write staging overlay with reviewable unified diffs and an explicit --apply gate.
|
Command agent-microvm demonstrates a network-less Linux microVM tool-execution sandbox built on Apple Virtualization.framework (x/vzkit) with VirtioFS workspace sharing and an APFS copy-on-write staging overlay with reviewable unified diffs and an explicit --apply gate. |
|
vminfo
command
Command vminfo queries Apple Virtualization framework capabilities.
|
Command vminfo queries Apple Virtualization framework capabilities. |
|
vision
|
|
|
face-detect
command
Face-detect uses the Vision framework to detect faces in an image.
|
Face-detect uses the Vision framework to detect faces in an image. |
|
ocr
command
Command ocr extracts text from an image file using the Vision framework.
|
Command ocr extracts text from an image file using the Vision framework. |
|
redact
command
Command redact detects faces and text in an image with the Vision framework and writes a PNG copy with those regions obscured using Core Image.
|
Command redact detects faces and text in an image with the Vision framework and writes a PNG copy with those regions obscured using Core Image. |
|
screenctx
command
Command screenctx captures screen context by combining CGWindowListCopyWindowInfo with Vision OCR to produce an XML map of on-screen text attributed to the owning application.
|
Command screenctx captures screen context by combining CGWindowListCopyWindowInfo with Vision OCR to produce an XML map of on-screen text attributed to the owning application. |
|
vision-subject-cutout
command
Command vision-subject-cutout lifts foreground subjects from images using macOS Vision's Neural Engine instance mask and CoreImage GPU compositing.
|
Command vision-subject-cutout lifts foreground subjects from images using macOS Vision's Neural Engine instance mask and CoreImage GPU compositing. |
|
vlm-ocr-prefilter
command
Command vlm-ocr-prefilter demonstrates a self-contained zero-cgo 3-stage ANE VLM prefilter on macOS using purego Vision, CoreGraphics, CoreText, IOSurface, Metal, and x/screentensor with zero TCC prompts.
|
Command vlm-ocr-prefilter demonstrates a self-contained zero-cgo 3-stage ANE VLM prefilter on macOS using purego Vision, CoreGraphics, CoreText, IOSurface, Metal, and x/screentensor with zero TCC prompts. |
|
vndetect
command
Command vndetect detects objects in images using the Vision framework.
|
Command vndetect detects objects in images using the Vision framework. |
|
vnocr
command
Command vnocr extracts text from images using the Vision framework.
|
Command vnocr extracts text from images using the Vision framework. |
|
webkit
|
|
|
minibrowser
command
Command minibrowser opens a window containing a WKWebView, loads a URL, and runs JavaScript in the page once the load finishes.
|
Command minibrowser opens a window containing a WKWebView, loads a URL, and runs JavaScript in the page once the load finishes. |
|
webkit-pdf-snap
command
Command webkit-pdf-snap renders HTML/CSS/SVG or a URL headlessly with WebKit to a vector PDF and PNG snapshot, then verifies the output using PDFKit and Vision OCR—without Chrome or Playwright.
|
Command webkit-pdf-snap renders HTML/CSS/SVG or a URL headlessly with WebKit to a vector PDF and PNG snapshot, then verifies the output using PDFKit and Vision OCR—without Chrome or Playwright. |
|
xpc
|
|
|
addclient
command
Command addclient calls the addservice XPC service.
|
Command addclient calls the addservice XPC service. |
|
addservice
command
Command addservice is an XPC service that adds two numbers.
|
Command addservice is an XPC service that adds two numbers. |
|
machdemo
command
Command machdemo is a runnable XPC round trip over a Mach service.
|
Command machdemo is a runnable XPC round trip over a Mach service. |
|
shared-weight-cluster
command
Command shared-weight-cluster is a multi-process zero-copy local inference broker demo composing:
|
Command shared-weight-cluster is a multi-process zero-copy local inference broker demo composing: |
|
swiftinterop/goclient
command
Command goclient is the Go half of direction A: an xpc.Session talking to a Mach service served by Swift's XPCListener.
|
Command goclient is the Go half of direction A: an xpc.Session talking to a Mach service served by Swift's XPCListener. |
|
swiftinterop/goservice
command
Command goservice is the Go half of the Swift/Go XPC interoperability examples: a Mach-service listener that a Swift XPCSession client talks to.
|
Command goservice is the Go half of the Swift/Go XPC interoperability examples: a Mach-service listener that a Swift XPCSession client talks to. |
|
tensor-broker
command
Command tensor-broker demonstrates zero-copy 64 MiB FP16 tensor sharing using x/xpctensor (XPC + IOSurface + Metal) and a self-contained parent/child subprocess proof of:
|
Command tensor-broker demonstrates zero-copy 64 MiB FP16 tensor sharing using x/xpctensor (XPC + IOSurface + Metal) and a self-contained parent/child subprocess proof of: |
Click to show internal directories.
Click to hide internal directories.