Skip to content

Instantly share code, notes, and snippets.

@kgaidis
kgaidis / codex-thread-archiver
Created July 19, 2026 00:27
A Codex skill to archive threads which can improve Codex performance
---
name: codex-thread-archiver
description: Archive stale, unpinned local Codex threads using inactivity and user-turn thresholds, with a pre-run manifest and safety checks. Use only when the user explicitly invokes `$codex-thread-archiver` in the current request. Never invoke implicitly from ordinary questions or requests about threads, archiving, cleanup, or automations.
---
# Codex Thread Archiver
## Invocation gate
Proceed only when the current user request explicitly contains `$codex-thread-archiver`. Otherwise, do not inspect or archive threads; tell the user that explicit invocation is required.
@kgaidis
kgaidis / UIWebView+CustomAccessory.h
Last active June 23, 2019 18:31
UIWebView does not allow to customize the `inputAccessoryView` without using magic. Just simply change the `customInputAccessoryView` property to switch to another view. Inspiration from: https://gist.github.com/bjhomer/2048571
#import <UIKit/UIKit.h>
@interface UIWebView (CustomInputAccessoryView)
@property (strong, nonatomic) UIView *customInputAccessoryView;
@end