Skip to content

About

Native macOS control strip, non-blocking Foundation hook binary & local observability layer for multi-agent coding workflows

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

AgentStrip

CI Platform: macOS 14+ Swift 5.10 License: MIT

Native macOS control strip, non-blocking agent hook binary, and local observability layer for multi-agent coding workflows (Claude Code, OpenAI Codex, Gemini, Copilot, and Grok).

專為多 AI 程式代理工作流打造的 macOS 原生控制條與觀測工具:透過極輕量無阻塞 Hook 進程即時同步代理狀態、權限核准、限額與跨會話訊號——完全本機計算、零雲端上傳、失敗自動退回原狀。


Architecture

flowchart LR
  subgraph Agents["Coding Agents (Claude Code · Codex · Gemini · Copilot)"]
    A1["Agent Session A"]
    A2["Agent Session B"]
  end
  subgraph Hook["AgentStripHook (Foundation-only CLI)"]
    H["Fast Non-Blocking Hook\n(Never stalls agent loop)"]
  end
  subgraph Core["AgentStripCore + macOS App"]
    T["Protocol Translators\n(Permission · Status · Rate Limit)"]
    R["Incremental Log Tailer\n(Partial-line safe)"]
    UI["Edge-Snapping macOS Control Strip\n(Multi-Display Aware)"]
  end
  A1 & A2 --> H --> T & R --> UI
Loading

Design Principles

  • 100% Local-First Computation: All session state, log tailing, and telemetry are computed strictly on-device with zero external uploads.
  • Fail-Safe & Reversible: AgentStripHook is a dedicated Foundation-only executable built for sub-millisecond startup. If AgentStrip.app is not running or encounters an error, agents fall back to their native prompts seamlessly.
  • Multi-Agent Protocol Translation: Normalizes permission requests, status events, rate limits, and completion replies across Claude Code, Codex, Copilot, and Gemini shapes (AgentStripCore).
  • Verified with Automated Tests: 43 XCTest unit tests covering log tailing, ISO-8601 microsecond parsing, multi-display edge snapping, and cross-agent protocol translation.

Targets (Package.swift)

Target Role
AgentStripCore Core protocol translators, incremental file tailers, edge-snapping geometry, and state models.
AgentStrip Native macOS 14+ UI application.
AgentStripHook Lightweight Foundation-only CLI invoked by agent hooks.
AgentStripCoreTests 43 fast unit tests (< 0.05s total runtime).

Requirements

  • macOS 14.0+ (Sonoma or later)
  • Swift 5.10+ / Xcode Command Line Tools

Quick Start

# Run all 43 unit tests
swift test

# Build release binaries
swift build -c release

# Package & ad-hoc sign AgentStrip.app
bash scripts/build-app.sh

License

MIT

About

Native macOS control strip, non-blocking Foundation hook binary & local observability layer for multi-agent coding workflows

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages