Native Mac performance investigation: local processes, ports, RAM and bounded diagnostic evidence
- 版本
- v0.2.14-24
- 发布日期
- 2026-11-07
- 平台
- macOS
- 安装包大小
- macOS 11.1 MB
- 发布者
- sarthakagrawal927
contextdaddy
ContextDaddy is a local first macOS control plane for coding agent context. It answers two questions through bounded local discovery without capturing prompt bodies:
README
ContextDaddy
ContextDaddy is a local-first macOS control plane for coding-agent context. It answers two questions through bounded local discovery without capturing prompt bodies:
- Which skills can Codex, Claude, Cursor, Devin, and Grok discover, and how can each runtime invoke them?
- What are those agents consuming in context tokens, logical network events, and tool calls when trustworthy local telemetry exists?
The app combines a focused usage desk with a unified skill library and agent-policy inspector. Every value is labelled as measured, derived, estimated, partial, or unavailable. Missing instrumentation stays missing; ContextDaddy does not manufacture precision.
The primary navigation is Usage, Skills, Memory, Projects, and Run telemetry. Files & diagnostics is a secondary route to raw source inventory and configuration checks. Skills explains how each agent can use a skill; Projects shows discovered files rather than claiming they entered a live prompt. Run telemetry combines recorded runs with verified local signals and a separate fixed 24-hour telemetry window.
Agent Inbox owns live thread status, the agent-status battery, attention, conversations and replies. PerformanceDaddy owns measured Mac and workload diagnosis. ContextDaddy owns context, invocation policy and consumption evidence; discovery and telemetry do not prove live prompt use or task success.
Current milestone
- Bounded discovery for global and project skill roots across five agent runtimes.
- Physical-skill deduplication with every logical exposure retained.
- Project catalog with per-agent startup-context estimates, pressure bands, and global/parent/local attribution.
- Full source inventory with provider, kind, and scope filters; deterministic sorting; and paginated drill-down.
- Safe on-demand previews for eligible instruction, skill, rule, and agent-definition text (256 KiB maximum).
- Persisted custom discovery roots, explicit scan limits, and previous-result preservation during refresh.
- Portable frontmatter policy plus Codex
agents/openai.yamlpolicy resolution. - Agent-scoped governance totals and filters for automatic, manual-only, model-only, disabled, not-exposed, and review-needed skills.
- Cross-agent sharing coverage that separates all-agent, multi-agent, single-agent, and same-runtime definition conflicts.
- Exact manual invocation syntax for non-auto skills, with copy actions and expected exposure-root guidance.
- Installed plugin caches remain inventory evidence but do not count as active runtime exposure.
- Read-only redundancy review for exact copies, same-name version drift, and likely purpose overlap, with confidence, evidence, affected agents, deterministic keep candidates, and a separate managed-cache queue.
- Skill policy resolution distinguishes discovered Claude personal/project precedence, coexisting Codex shared-root definitions, and unqualified vendor or custom-route collisions. Unreadable definitions stay Needs review; a declared restriction cannot be inferred from a file that was not safely read. See v1 acceptance and limits.
- Duplicate-byte estimates cover exact local file copies only; the app does not claim context savings or infer that an unobserved skill is unused.
- In-app local telemetry for Prometheus metrics and Tempo sessions, with no external dashboard required for the core workflow.
- Usage first scan shows side-by-side Codex/Claude allowance followed by one local history chart including Devin. The historical chart has shared agent filters, model/model-provider/project grouping where supported, range, day/week/month scale, generated/cache/cost metrics where available, selectable periods and exact breakdown. Model, project, and session drill-downs remain below. Cache reads, generated tokens, and estimated cost stay separate; unpriced models are flagged.
- Skills can run an explicit, read-only Read local history scan. Claude and Devin
skilltool calls are counted separately from Cursor/Grok skill-file reads and Codex tool calls that reference aSKILL.mdpath. The library shows last-seen dates, agent and folder evidence, 30/90-day or all-history windows, and an evidence-only filter. Cursor dates use transcript modification time because its records lack event timestamps. Name-only tool calls cannot identify a particular same-name copy; no recorded event never means unused. This backfill is held in memory for the app session and does not automatically remove skills. - Project grouping is a separately labelled session ledger, joining ccusage session IDs to Codex's read-only thread-index
cwd, Grok's project paths, and Claude's encoded project slugs. It queries only Codex rollout path and working directory metadata, never prompt bodies. Buckets use session last activity, not an invented daily allocation; totals may not reconcile to daily accounting. Missing session identity remains Unattributed. Model-provider labels are inferred from reported model names, not billing endpoints; unknown aliases remain unknown. Devin's indexed daily tokens participate in the shared model and provider grouping; project attribution remains unavailable. - Provider allowance for Codex, Claude and Grok is fetched on Check allowances, or on opening Usage after the user enables the opt-in automatic switch (at most once per 15 minutes). It is never added to local token history. Codex's reported credit balance appears in credit units, separately from full-reset grants; unlimited, unavailable, and unreported balances remain explicit. Codex reset-credit expiry leads with the first reported expiry; detail rows may be capped, so an earlier expiry may exist. Grok reads the CLI ACP billing extension without starting a conversation or model run; reported weekly/monthly usage, reset times, prepaid USD credits and pay-as-you-go usage/caps stay separate from local history. Missing Grok reset-grant counts remain unreported. Claude's full and 5-hour reset grants are read from its usage endpoint with the existing default Claude Code sign-in and the installed CLI version. Each grant keeps its expiry and paused/unusable state. Confirmed empty grants show None; failed, ineligible or unsupported responses remain explicitly unavailable, with CLI notice counts and a Claude Settings > Usage link as fallbacks. Scheduled reset times stay with their allowance meters, and Source & reading details discloses the provider source and full check time. These grants are separate from paid usage credits and may cover only particular limits. ContextDaddy makes only a GET usage request for reset details. It never invokes
/limit-reset, redeems a grant, refreshes/writes credentials, follows redirects, or stores credential/response bodies. Locked or unavailable Keychain access and custom Claude configuration homes remain explicit unavailable states. - Skills and OTEL review panels can Copy all issues into an agent-ready brief with IDs, evidence, source scope, and verification limits. After skill edits, Verify after changes rescans and distinguishes detector-cleared, still-detected, and unverified findings. The library supports previewed local skill edits with recovery; OTEL signals need a new comparable observation window.
- Files & diagnostics configuration findings have the same copy-all and rescan handoff without copying configuration values or modifying files. This file audit detects the two misplaced
otel.*keys but cannot detect launch-timesession-flags.token_budget; that warning must be traced to the launcher supplying the flag. - Cursor remains inventory-only for usage until a verified source exists.
- Derived 24-hour Codex total-token, model, token-component, tool, MCP, API-error, compaction, and operation-time range estimates. Claude Code's documented OTLP token, model, session-start, and estimated-cost metrics are mapped separately when the local collector receives them. A reachable collector without verified Claude samples displays an explicit unavailable state and a route to separate Usage history rather than a grid of dashes; Claude tool/API event counts remain unavailable without a verified logs/trace adapter.
- Recent Tempo session roots with trace IDs, start times, end-to-end durations, and span counts.
- Native named-skill injection evidence with explicit/implicit mode and status; injection is not presented as proof of successful execution.
- Explicitly unavailable bandwidth bytes and partial Cursor/Devin telemetry. Devin's indexed local history is not labelled live OTEL.
- Read-only configuration health for ignored Codex settings and enabled MCP launch commands that cannot resolve, with deduplicated file/line evidence and remediation.
- No automatic configuration writes, prompt bodies, responses, tool arguments, or results.
Skill management
Skills opens Library: search names, descriptions, paths, agents, and app-local tags; filter by agent, owner, or location; favorite frequently used definitions. A physical skill appears once, with every discovered link and policy attached to it. Agent policies and Review duplicates retain the existing evidence views.
- Add skill creates a definition or imports one local skill folder, including its support files. Add search locations for skills outside the known agent roots.
- Overview shows the physical source, ownership, and logical exposures. Content explicitly reads SKILL.md and supports editing local definitions. Access explains each agent's effective policy and invocation syntax.
- Share chooses an agent and a global/project scope, then previews a directory link. Existing destinations are never overwritten. Discovery does not prove runtime activation.
- Update from folder previews replacement content and a file-change manifest, retaining the previous folder. Remote repositories are not fetched or checked for updates.
- Archive moves a local skill into recovery storage. Linked exposures stop resolving until restored. Removing an exposure moves only that directory link.
- History stores change receipts and recoverable originals under
~/Library/Application Support/ContextDaddy/SkillHistory. Restore rejects newer content edits and occupied original destinations. Incomplete operations remain visible for inspection.
Plugin/system definitions are read-only in this workflow and identify their owning mechanism. Imports never execute scripts; protected configuration files and symlinks inside a skill folder are rejected. Management is bounded to 2,000 entries and 16 MiB per skill folder, with a 256 KiB document editing limit. This feature does not modify global agent configuration or claim automatic upstream update detection.
Run locally
swift run ContextDaddy
ContextDaddy remains available in the menu bar after its window closes. Open ContextDaddy reopens the review window; Refresh Local Context scans local skill/context metadata without starting provider allowance or usage-history checks. Quit reviews ongoing model-owned background reads. See branch reconciliation.
The app requires macOS 14 or newer. Its Codex adapter reads the loopback-only local telemetry stack and renders Prometheus metrics and Tempo sessions inside ContextDaddy. A separate Claude adapter reads Claude Code metrics from the same local Prometheus path only if Claude exports to that collector; ContextDaddy does not enable or reroute Claude telemetry. The rest of the product still works when either source is absent or partial.
ContextDaddy runs ccusage 20.0.24 directly in offline mode for local history. The packaged app carries its own pinned helper and MIT acknowledgement; no CodeVetter installation or CLI is needed at runtime. A Refresh history action rescans local logs. Check allowance separately calls Codex app-ser