Skip to content

Instantly share code, notes, and snippets.

@adam91holt
adam91holt / gist:8fe3e49e3b9043b5553ef6d259d03b4b
Last active January 19, 2026 19:43
Simple bash script to run a Clawdbot agent on odd days of the month
#!/bin/bash
# odd-day-task: Run an agent task on odd days of the month
REPLY_TO="+1234567890"
REPLY_ACCOUNT="your-account"
DAY=$(date +%d)
# Check if odd day (remove leading zero for arithmetic)
if (( 10#$DAY % 2 == 1 )); then
@adam91holt
adam91holt / claude-agent-sdk.md
Created January 9, 2026 02:57
Claude Agent SDK Architecture - how to call the model with tools

Claude Agent SDK Architecture

This document explains how the WhatsApp bot uses the Claude Agent SDK to respond to messages.

Installation

npm install @anthropic-ai/claude-agent-sdk
View
<asp:HiddenField ID="hfB2BWindscreen" runat="server" Value="!" ClientIDMode="Static" />
codebehind
Dim _currentUser As UserInfo = UserController.GetCurrentUserInfo()
For Each BrandRoleName In {"GB", "DULUX", "CP", "WATTYL", "PM", "M10", "ITM", "REPORT"}
@adam91holt
adam91holt / 0_reuse_code.js
Created August 29, 2016 04:41
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console