/** * Remember Tag Processor Hook * * Processes tags from Task agent output. * Saves to .omc/notepad.md for compaction-resilient memory. * * Based on oh-my-claude-sisyphus post-tool-use hook. * * Tag formats: * - content → Working Memory (auto-pruned after 7 days) * - content → Priority Context (always loaded) */ import type { PluginInput } from "@opencode-ai/plugin"; export interface RememberTagProcessorOptions { /** Only process tags from Task tool output */ taskToolOnly?: boolean; /** Tools to process (if not taskToolOnly) */ toolNames?: string[]; } /** * Create the Remember Tag Processor hook */ export declare function createRememberTagProcessor(ctx: PluginInput, options?: RememberTagProcessorOptions): { /** * Process tool output for tags */ "tool.execute.after": (input: { tool: string; sessionID: string; callID: string; }, output: { title: string; output: string; metadata: unknown; }) => Promise; }; /** * Extract and process remember tags from arbitrary content */ export declare function extractRememberTags(content: string): { priority: string[]; working: string[]; }; /** * Format remember tags for output */ export declare function formatRememberTag(content: string, priority?: boolean): string;