Skip to content

Instantly share code, notes, and snippets.

View mdp's full-sized avatar

Mark Percival mdp

View GitHub Profile
@mdp
mdp / crm-enrichment-cline-sdk.md
Created May 20, 2026 18:04
CRM enrichment and Cline SDK integration

CRM Enrichment and Cline SDK Integration

This note explains how BigBrother runs the CRM enrichment task and how the CRM agent skill is executed through the Cline SDK. It is aimed at engineers who need to understand the moving parts, not at end users. Code samples below are trimmed excerpts from the referenced files.

High-Level Flow

The CRM enrichment job is a scheduled task, not a standalone script embedded in a skill.

  1. The daemon or CLI builds shared agent dependencies with buildAgents().
  2. The crm-enrichment task searches Notion CRM for recently created companies.
@mdp
mdp / POSTHOG.md
Created May 18, 2026 19:49
PostHog x BigBrother: Inception Debugging & Observability Strategy

🦔 PostHog × BigBrother: "Inception" Debugging & Observability Strategy

Author: AI Analysis
Date: May 18, 2026
Status: Exploration & Case-Making


1. Executive Summary

@mdp
mdp / bigbrother-cline-sdk-report.md
Created May 18, 2026 19:32
How BigBrotherBot uses @cline/sdk v0.0.41 — a comprehensive integration overview

BigBrotherBot × Cline SDK — Integration Overview

This document was produced by reviewing the BigBrotherBot codebase. It covers every meaningful way the project uses @cline/sdk.


Overview

BigBrotherBot is a production AI agent for 1984 Ventures. It processes inbound email, enriches a Notion CRM, scores applications, runs daily meeting prep, and provides a chatbot interface over Discord and WhatsApp.

@mdp
mdp / REPORT.md
Created May 18, 2026 19:11
SigMap Codebase Report v6.10.10

SigMap Codebase Report

Generated: 2026-05-18
Version: 6.10.10
Branch: main (up-to-date with origin)

Repository Status

Item Value
@mdp
mdp / BOXLITE_TECHNICAL_SUMMARY.md
Created May 15, 2026 12:33
BoxLite: Technical Summary for Engineers

BoxLite: Technical Summary for Engineers

What It Is (Elevator Pitch)

BoxLite is an embeddable micro-VM runtime that runs standard OCI containers (Docker images) inside lightweight hardware-virtualized sandboxes ("Boxes"). It follows the SQLite philosophy: you link it as a library into your application—no daemon, no root, no background service required.

It is positioned as a "compute substrate for AI agents," but the primitive is general-purpose: give me an isolated, stateful environment where I can run untrusted code with real kernel isolation, and I want it to feel as easy as docker run.

The Core Value Proposition

@mdp
mdp / AGENT_GUIDE.md
Last active May 21, 2026 01:17
WhatsApp Gateway — Agent Integration Guide

WhatsApp Gateway — Agent Integration Guide

This service bridges WhatsApp to a simple HTTP + WebSocket API. This guide tells you everything you need to operate it as an agent.

Base URL

https://whatsapp.anteater-snapper.ts.net   (HTTPS, port 443)
wss://whatsapp.anteater-snapper.ts.net     (WebSocket over TLS, port 443)
### Keybase proof
I hereby claim:
* I am mdp on github.
* I am mdp (https://keybase.io/mdp) on keybase.
* I have a public key whose fingerprint is 3977 96B0 0D37 D95B 3FDC F12F 32FC E8AB 7513 4EF9
To claim this, I am signing this object:
@mdp
mdp / env-to-ssm.sh
Created January 8, 2018 21:33
.env to SSM
#!/bin/bash
# Usage: ./env-to-ssm.sh prefix envfile
# Ex: ./env-to-ssm.sh prod.app .env
AWS_SSM_PREFIX=$1
ENV_FILE=$2
cat aws/.env | grep -v ^# | grep -v -e '^$' | while read line
@mdp
mdp / openvpn.sh
Created November 21, 2017 21:41
OpenVPN setup on docker
#!/bin/bash
arg=$1
host=$2
OVPN_DATA="ovpn-data"
set -x
if [ "$arg" == "setup" ]; then
@mdp
mdp / Occupancy.py
Last active September 26, 2017 21:02
The occupancy sensor at work have REALLY short timeouts.
try:
import RPi.GPIO as GPIO
except RuntimeError:
print("Error importing RPi.GPIO! This is probably because you need superuser privileges. You can achieve this by using 'sudo' to run your script")
import time
import random
import pytz
from datetime import datetime