### Install AgentNotch via Homebrew Source: https://github.com/appgram/agentnotch/blob/main/README.md Use Homebrew to install the AgentNotch application on macOS. ```bash brew tap AppGram/tap brew install --cask agentnotch ``` -------------------------------- ### Install and Upgrade AgentNotch via Homebrew Source: https://github.com/appgram/agentnotch/blob/main/CLAUDE.md Commands to tap the repository and manage the AgentNotch cask installation. ```bash brew tap appgram/homebrew-tap brew install --cask agentnotch brew upgrade --cask agentnotch ``` -------------------------------- ### Application Settings Configuration Source: https://github.com/appgram/agentnotch/blob/main/CLAUDE.md Configuration properties for Claude Code, Codex, and general context display settings. ```swift // Claude Code enableClaudeCodeJSONL: Bool = true showSessionDots: Bool = true showPermissionIndicator: Bool = true showTodoList: Bool = true showThinkingState: Bool = true // Codex enableCodexJSONL: Bool = true // Context & Display contextTokenLimit: Int = 200_000 // 50k-1M range showContextProgress: Bool = true toolDisplayMode: String = "list" // "list" or "singular" ``` -------------------------------- ### AgentNotch Project Directory Structure Source: https://github.com/appgram/agentnotch/blob/main/CLAUDE.md Overview of the project file organization, including core logic, models, views, and distribution files. ```text AgentNotch/ ├── Core/ │ ├── ClaudeCode/ │ │ └── ClaudeCodeManager.swift # Claude Code JSONL parsing, session watching │ ├── Codex/ │ │ └── CodexManager.swift # OpenAI Codex JSONL parsing, session watching │ ├── Settings/ │ │ └── AppSettings.swift # @AppStorage settings │ ├── Telemetry/ │ │ ├── TelemetryCoordinator.swift # OTLP telemetry handling │ │ └── OTLPHTTPServer.swift # HTTP server for telemetry │ └── Process/ │ └── MCPProcessManager.swift # MCP process management ├── Models/ │ ├── ClaudeCodeModels.swift # ClaudeSession, ClaudeToolExecution, etc. │ └── CodexModels.swift # CodexSession, CodexToolExecution, etc. ├── Views/ │ ├── Notch/ │ │ └── AgentNotchContentView.swift # Main notch UI │ ├── ClaudeCode/ │ │ └── ClaudeToolListView.swift # Claude tool list UI │ ├── Codex/ │ │ └── CodexToolListView.swift # Codex tool list UI │ └── Settings/ │ └── AgentSettingsView.swift # Settings UI └── homebrew/ # Homebrew cask distribution ├── agentnotch.rb # Cask formula └── AgentNotch.zip # Release artifact ``` -------------------------------- ### Configure Claude Code Telemetry Source: https://github.com/appgram/agentnotch/blob/main/README.md Set the OTLP exporter endpoint to point to the local AgentNotch instance. ```bash # Set OTEL endpoint to AgentNotch (default port 4318) export OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4318" ``` -------------------------------- ### Configure Codex Telemetry Source: https://github.com/appgram/agentnotch/blob/main/README.md Update the Codex configuration file to enable analytics and point the OTLP exporter to AgentNotch. ```toml [analytics] enabled = true [otel] # AgentNotch currently does not decode OTLP traces, so disable trace export to avoid noisy errors. trace_exporter = "none" [otel.exporter.otlp-http] endpoint = "http://localhost:4318/v1/logs" protocol = "binary" ``` -------------------------------- ### Claude Token Usage Structure Source: https://github.com/appgram/agentnotch/blob/main/CLAUDE.md A data structure for tracking input, output, and cached token usage metrics. ```swift struct ClaudeTokenUsage { var inputTokens: Int var outputTokens: Int var cacheReadInputTokens: Int // Green in UI - savings var cacheCreationInputTokens: Int // Yellow in UI - creation } ``` -------------------------------- ### Define Codex Token Usage Structure Source: https://github.com/appgram/agentnotch/blob/main/CLAUDE.md Swift struct representing token usage metrics for Codex, including support for prompt caching and reasoning tokens. ```swift struct CodexTokenUsage { var inputTokens: Int var outputTokens: Int var cachedInputTokens: Int // Prompt cache hits var reasoningOutputTokens: Int // o1/o3 reasoning tokens var totalTokens: Int var modelContextWindow: Int } ``` -------------------------------- ### Debug Logging Utility Source: https://github.com/appgram/agentnotch/blob/main/CLAUDE.md A conditional logging function that only executes print statements during DEBUG builds. ```swift @inline(__always) func debugLog(_ message: @autoclosure () -> String) { #if DEBUG print(message()) #endif } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.