Skip to content

Instantly share code, notes, and snippets.

View IgorGanapolsky's full-sized avatar
💭
Mastering Python and AI

Igor Ganapolsky IgorGanapolsky

💭
Mastering Python and AI
View GitHub Profile
@IgorGanapolsky
IgorGanapolsky / hyperagent.py
Last active November 4, 2026 02:24
🤖 Hyperagent 5-Agent 16-Stage Physical-Goods Arbitrage State Machine (ByteHedge, ChronoSim, ShieldGrid, VaultBot, PulseRay) + Blind Rubric Judge & 99.3% Recurring Cost Compiler — https://github.com/IgorGanapolsky/ThumbGate | https://iganapolsky.gumroad.com/l/vcrho
"""Hyperagent (hyperagent.com + Nov 3, 2026 Product Update) Architectural Steal for Swappa/ShopGoodwill Desk.
Implements the 7 core systems extracted from https://hyperagent.com/thread/cmql52i8o0dd606adahnyadrt?autostart=onboarding-four-paths,
/Users/iganapolsky/Downloads/hyper.pdf, and https://www.hyperagent.com/llms.txt:
1. Onboarding Four Paths + 5-Agent Physical-Goods Arbitrage Team (`ByteHedge`, `ChronoSim`, `ShieldGrid`, `VaultBot`, `PulseRay`)
& 16-Stage Arbitrage State Machine (`DISCOVERED` -> ... -> `SOLD`).
2. Rubrics & Blind Judge Evaluator (`rubrics-and-evaluations.md`):
- 3-7 weighted criteria (auto-normalized to 1.0) with 1-to-5 scoring guides and hard-failure gates.
- Blind Judge separation: scores ONLY output + rubric (never sees internal reasoning or self-grades).
@IgorGanapolsky
IgorGanapolsky / yolo-roast.py
Last active November 2, 2026 22:29
🔥 Mac AI Agent Stack Roaster (150ms zero-dep Python CLI): catches Claude Code / Cursor / MCP memory leaks, ccusage hogs & orphaned PPID=1 servers
#!/usr/bin/env python3
"""
yolo-roast — Zero-install Viral "Mac Agent Stack Roaster" & 1-Command Critique CLI.
Inspired by `npx ccusage` / `neofetch`:
1. Scans live macOS process tree (`ps`, `vm_stat`, `sysctl`) in <200ms.
2. Evaluates the 5 real-world macOS coding-agent failure signatures documented in
public GitHub issues (e.g., anthropics/claude-code#11315 129GB RAM freeze,
#4953 120GB OOM, #67433 500MB/min idle leak, #82941 kalloc.1024 kernel panic,
#98864 renderer bloat, and orphaned stdio MCP servers).
@IgorGanapolsky
IgorGanapolsky / property_distress_classifier.ipynb
Created September 17, 2026 17:02
GPU property distress classifier for RE wholesaling
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@IgorGanapolsky
IgorGanapolsky / n8n-34269-minimal-workaround.workflow.json
Created July 15, 2026 23:50
n8n #34269 production workaround: authenticated fail-closed GCS verification
{
"name": "GCS resumable upload - fail-closed verification workaround",
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [-720, 0],
"id": "e5fd6958-6a52-49fa-b4e9-fb94fa74171f",
"name": "When clicking Test workflow"
@IgorGanapolsky
IgorGanapolsky / HERMES-MOBILE-LAUNCH.md
Created July 13, 2026 21:08
Hermes Mobile launch — approve AI agents from your phone (own Mac)

Hermes Mobile — phone remote for AI agents on YOUR Mac

Not another cloud agent. Control Cursor / Claude Code / Hermes gateway from your phone.

  • Free chat to your Mac gateway (Tailscale when off Wi‑Fi)
  • Leash: approve/deny dangerous tools from the couch (10 free approvals/week)
  • Keys stay on your machine

Install (Android live)

@IgorGanapolsky
IgorGanapolsky / hermes-mobile-privacy-policy.md
Created July 4, 2026 23:43
Hermes Mobile — Privacy Policy

Hermes Mobile Privacy Policy

Effective date: July 4, 2026

Hermes Mobile is published by Max Smith KDP LLC. Hermes Mobile lets you connect your phone to your own computer so you can monitor and control Hermes workflows from the mobile app.

Data We Collect

Hermes Mobile collects limited data needed to operate and improve the app:

@IgorGanapolsky
IgorGanapolsky / reliability_checklist.md
Created July 4, 2026 01:29
AI Agent Reliability Checklist — 12-point audit for production AI agents

AI Agent Reliability Checklist

The 12-point audit for teams running AI coding agents in production.


Why this exists

After 6 months of ThumbGate telemetry across Claude Code, Cursor, and Codex installations, we identified the 12 failure patterns that cause 94% of all agent incidents. This checklist helps you find them in your setup before they cost you money.

@IgorGanapolsky
IgorGanapolsky / gist_content.md
Created July 3, 2026 23:25
Stop Your AI Agent Before It Breaks Production — Pre-action gates for AI coding agents

Stop Your AI Agent Before It Breaks Production

The Problem

AI coding agents (Claude Code, Cursor, Codex) make the same categories of mistakes:

  1. Editing files outside task scope — agent "helpfully" refactors a file you didn't ask it to touch
  2. Hallucinating function signatures — calls a function with wrong params, breaks the build
  3. Making unauthorized changes — modifies config files, env vars, or deployment scripts without confirmation
  4. Ignoring instructions — skips test files, deletes comments, reformats code you told it not to touch
@IgorGanapolsky
IgorGanapolsky / 04-lead-magnet-stripe-connect-teardown.md
Created July 2, 2026 16:50
The 4 Stripe Connect failure modes that quietly cost marketplaces money — by Igor Ganapolsky (ThumbGate)

The 4 Stripe Connect failure modes that quietly cost marketplaces real money

A field teardown for anyone building split payments on a platform — and how to catch each one before it hits a real payout.

Most Stripe Connect integrations demo perfectly and then lose money in production, because the failure modes don't show up until real volume, real retries, and real disputes arrive. Here are the four I see most, ranked by blast radius, with the check that catches each one.

1. Non-idempotent charge creation → double charges on retry

A network blip makes your server retry a PaymentIntent/charge create. Without an Idempotency-Key, Stripe happily creates two. The customer is charged twice; you eat the refund and the dispute. Catch it: every create/capture call carries a stable idempotency key derived from your order id (not a random per-attempt UUID). Test it by firing the same request twice and asserting one charge.

@IgorGanapolsky
IgorGanapolsky / lipo-support.md
Created May 28, 2026 22:02
LipoShield — Support / Contact