Copak V1.0.0
BETA
Copak app icon
v1.0.0 Native macOS Desktop App • Zero Telemetry

Deterministic handoffs
for AI coding agents.

Carry active session momentum, sanitized diffs, and project instructions into Claude Code, Cursor, and web LLMs—without leaking API keys or blowing token budgets.

Requires macOS 14.0+ • Universal Binary (Apple Silicon & Intel) • Free & Open Source
Copak — Handoff Preview (⌘⇧H)
# Context Packet: my-saas-core
# Generated: 2026-09-28 | Budget: Standard (~3,500 tokens) | Target: Claude Code

## ACTIVE MOMENTUM
- Goal: Implement authenticated webhook verification endpoint for Stripe.
- Next Tasks:
  1. Add signature replay validation window (max 300s).
  2. Emit structured audit log on signature failure.
- Decisions:
  - Rejected storing raw payloads in DB due to PII compliance.
  - Used crypto.subtle for zero-dependency native verification.

## SANITISED REPOSITORY STATE
- Branch: feature/stripe-webhook (HEAD: 8074458)
- Changed Files: Sources/Webhooks/StripeHandler.swift, .env.example

## SECRET FILTERING VERIFICATION
- Stripped 1 OpenAI token: [REDACTED_API_KEY]
- Stripped 1 PEM Private Key: [REDACTED_PRIVATE_KEY]
- Excluded uncommitted sensitive file: .env.local

## PROJECT RULES (AGENTS.md)
- Concurrency: Never use DispatchQueue.global() in Swift 6 mode.
- Formatting: Follow SwiftFormat strict presets.

Deterministic Momentum vs. Black-Box Memory

Vector databases and "autonomous memory" hallucinate stale code and lose nuance. Copak pairs developer-maintained intent with automated inspection.

Autonomous Memory Tools

Fuzzy & Unpredictable

  • ❌ Retrieves outdated code snippets from 2 weeks ago
  • ❌ Leaks API keys and .env variables into prompt context
  • ❌ Unbounded token dumps dilute model attention and reasoning
  • ❌ Invisible background daemons running cloud syncs & telemetry
Copak Handoffs

Explicit & Deterministic

  • ✓ Developer maintains goals, decisions, and active task queues
  • ✓ Multi-layer sanitization strips secrets before touching clipboard
  • ✓ Enforced token ceilings (1k, 3.5k, 10k) with trim disclosures
  • ✓ 100% offline, native Swift, local atomic JSON storage

Engineered for real developer workflows

[01 // MOMENTUM]
Developer Momentum
Explicit scratchpad of active goals, queued tasks, and rejected approaches. Persists atomically to ~/.copak/sessions/.
[02 // PRIVACY]
Secret Sanitization
Multi-layer regex and entropy filters strip AWS, OpenAI, GitHub, and Anthropic API keys, PEM blocks, and .env assignments.
[03 // BUDGET]
Token Ceilings
Enforced envelopes: Compact (~1k), Standard (~3.5k), or Comprehensive (~10k) with prioritized trims and transparent disclosures.
[04 // AGENTS]
Rule Ingestion
Inspects Git status, file trees, and automatically ingests instructions from AGENTS.md, CLAUDE.md, and .cursorrules.
🔐

Zero-Leak Secret Redaction

Copak scans every diff, file tree, and note before copying. Secrets never touch the clipboard.

sk-proj-**************** ghp_******************** AKIA******************** -----BEGIN PRIVATE KEY----- postgres://user:pass@host DATABASE_URL=***********

Frequently Asked Questions

Agents operate with context windows that fill up quickly and drift over long sessions. When starting a new session or debugging in a separate web LLM, you have to re-explain the architecture. Copak generates a sanitized, compact snapshot of your immediate momentum and repo diff so the new agent is up to speed in seconds.
No. Copak is 100% offline. It has zero network calls, zero analytics, and zero cloud accounts. Everything is parsed locally on your Mac and copied directly to your clipboard.
Yes! Copak gracefully detects non-git folders, extracts directory file trees, analyzes TODOs, and ingests instruction files while omitting Git-specific diff sections.
Simply download Copak.zip from GitHub Releases, extract it, and move Copak.app into your /Applications folder. If Gatekeeper prompts on first launch, right-click and choose "Open" or run xattr -cr /Applications/Copak.app.

Eliminate context drift today.

Download the native macOS app and carry your active coding momentum into any agent session.

✓ Copied Handoff Packet to clipboard!