Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
chore: remove unused fileSize(), update CLAUDE.md for JSONL architecture
libokaid3a13c3d0fa7
diff --git a/CLAUDE.md b/CLAUDE.mdnew file mode 100644index 00000000..50c2f0ba--- /dev/null+++ b/CLAUDE.md@@ -0,0 +1,26 @@+# CodePulse++## Language & Syntax++- **Swift 6** strict concurrency mode — use latest Swift 6 syntax throughout+- Prefer SwiftUI lifecycle and modern APIs (e.g., `MenuBarExtra`, `@Observable`, `@State`, `@Environment`)+- Use structured concurrency (`async/await`, `TaskGroup`) over Combine where possible+- Use `sending`, `nonisolated`, `@MainActor` correctly per Swift 6 rules+- Avoid `@unchecked Sendable` — prefer proper `Sendable` conformance++## Architecture++- macOS menu bar app using `NSStatusItem` + `NSPopover`+- **JSONL transcript parsing** (like Pixel Agents) for state detection — zero impact on Claude Code+- Single `Notification` command hook (`~/.codepulse/notify.sh`) for instant permission detection only+- Shell script hook uses `curl --max-time 1 || true` — never blocks Claude Code even if app is not running+- Shared code in `CodePulseShared` Swift Package (macOS 14+ / iOS 17+)+- **Do NOT register HTTP hooks** — they block Claude Code on ECONNREFUSED when app is down+- **Do NOT register PreToolUse or PostToolUse hooks** — they are synchronous and block tool execution++## Targets++- `CodePulse-macOS` — macOS menu bar app+- `CodePulse-iOS` — iOS companion app+- `CodePulseLiveActivity` — iOS Live Activity widget+- `CodePulseShared` — shared models and CloudKit logicdiff --git a/CodePulse-macOS/Utilities/JSONLTailReader.swift b/CodePulse-macOS/Utilities/JSONLTailReader.swiftindex 6f0ce9c0..7ea81ec0 100644--- a/CodePulse-macOS/Utilities/JSONLTailReader.swift+++ b/CodePulse-macOS/Utilities/JSONLTailReader.swift@@ -154,10 +154,4 @@ enum JSONLTailReader {info.totalOutputTokens = totalOutputTokensreturn info}-- static func fileSize(url: URL) -> UInt64? {- guard let attrs = try? FileManager.default.attributesOfItem(atPath: url.path),- let size = attrs[.size] as? UInt64 else { return nil }- return size- }}