Clamp (@clampdown19) header
Clamp (@clampdown19) profile picture

Founder of @AgentScoutHQ. Building a daily-tested directory of AI agents & MCP servers. Notes, stacks, real numbers.

Joined September 2023
Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)Photo by Clamp (@clampdown19)
I'm building AgentScout, a free directory of 5,000+ AI agent tools and 3,000+ MCP servers. I post what I learn running it: setup gotchas, which MCP servers actually answer, and real traffic numbers. What are you building? agentscouthq.com/?ref=x @AgentScoutHQ @mdjunaidap #AIAgents #MCP #BuildInPublic
4
5
421
Need to test what your app does when a trial ends or a subscription renews? Don't wait a month. Use a Stripe test clock. In test mode, create a clock, create a customer on it, and subscribe them. Then advance the clock past the trial or period end. Stripe runs the renewal, the invoice and the webhooks as if that time had passed, so you can watch your handler deal with each one.
Rebasing a long-lived branch and fixing the same conflict every time? git config --global rerere.enabled true Git then records how you resolved each conflict, and when the same hunk conflicts again, it applies your earlier fix for you. Give it a look before you git add, since the code around it may have changed.
10
Using npm install in your CI pipeline? Switch it to npm ci. npm ci installs exactly what package-lock.json says. If the lockfile and package.json disagree, it fails instead of quietly updating the lock, and it never writes to either file. It also removes any existing node_modules first, so every build starts clean.
14
Firing off an analytics or log call in a Cloudflare Worker without awaiting it? It can get cut off once the response goes out. Pass the promise to ctx.waitUntil(). The response still returns right away, and the Worker stays alive until that work finishes. Awaiting it instead works too, but then your user waits on your logging.
14
Added hreflang tags and Google still shows the wrong language version? Check that they point both ways. If your English page lists the German one but the German page doesn't list the English one back, Google ignores the pair. Each version should list every version, itself included, with full URLs that match your canonicals. Add x-default for everyone else.
16
About to open a PR and want to see exactly what your branch adds? git log --oneline main..HEAD lists the commits on your branch that main doesn't have. git diff main...HEAD, with three dots, shows your changes since you branched off and ignores whatever landed on main after. Two dots on git diff would mix main's new commits into the picture.
15
Adding Strict-Transport-Security? Don't start with a year-long max-age. Browsers cache that header, so a subdomain that still needs plain HTTP breaks for every visitor until it expires. Start with max-age=300; includeSubDomains, then a week, then a month, fixing what breaks at each stage. Only add preload once that's clean. Getting off the preload list takes a long time.
1
19
Pushed a .env file by mistake? Rotate the keys before you do anything else. git rm --cached .env and adding it to .gitignore stops tracking it from now on. The old commit still has every value, and so does every clone and fork made since. Treat whatever was in that file as public. New keys first, cleanup second.
1
1
22
Switching branches with half-done work? Plain git stash leaves brand-new files behind, so they follow you to the other branch. git stash -u takes untracked files too. git stash pop brings it all back.
25
Stripe webhook signature check failing even though the secret is right? Your framework probably parsed the body first. Signature checks need the raw request body, byte for byte. In Express, put express.raw({ type: 'application/json' }) on the webhook route instead of express.json(), and register that route before the global JSON parser.
1
20
Port 3000 already in use and no idea by what? lsof -i :3000 It lists the process and its PID. Then kill <PID>. It's often an old dev server still running in a terminal tab you forgot about.
20
Your links show up on X and Slack with no image? Check og:image first. It has to be a full absolute URL, https and domain included. A relative path like /og.png doesn't work. For the big image card on X, also set twitter:card to summary_large_image.
23
Shipping a risky Cloudflare Worker change? You don't have to send it to all traffic at once. npx wrangler versions upload npx wrangler versions deploy Upload creates a new version without serving it. Deploy lets you split traffic between versions, say 10% new and 90% current. Watch the logs, then move it to 100%.
25
Staged the wrong file? git restore --staged <file> takes it out of the commit and leaves your edits alone. Drop --staged and it's a different command: git restore <file> throws the edits away, and there's no undo for that. Run git diff before the second one.
22
Spending time on priority and changefreq in your sitemap? Google ignores both. It does use lastmod, but only when it's consistently accurate. If every deploy stamps every URL with the build time, that signal stops meaning anything. Set lastmod to when the page content actually changed, and only list URLs you want indexed.
21
Retrying a Stripe API call after a timeout? Send an Idempotency-Key header, and reuse the same key on every retry. If the first request actually went through, Stripe returns the original result instead of creating a second PaymentIntent or charge. Build the key from the order ID, not a fresh random value per attempt. A new key on each retry defeats the whole point.
17
Writing a health check in a shell script? Let jq set the exit code. curl -s example.com/health | jq -e '.status == "ok"' -e makes jq exit 1 when the result is false or null, so the line works directly in an if, a CI step or a set -e script. No grepping JSON.
23
Need to look at a production database that isn't open to the internet? Don't open the port. Tunnel it: ssh -N -L 5433:localhost:5432 your-server Then point your local client at localhost:5433. The traffic goes through SSH, and the database stays private.
28
Fixed a page Google wouldn't index? In Search Console's URL Inspection, the first result is the version Google already has, not your fix. 1. Click Test live URL to see what Googlebot gets right now. 2. Check the rendered HTML and the indexability result. 3. Only then click Request indexing. Skip the live test and you can end up asking Google to recrawl a page that's still broken.
1
26
Want a Lighthouse score you can compare between deploys? Run it from the command line: npx lighthouse example.com --only-categories=performance --output=json --output-path=./lh.json Same settings every run, and the JSON has every metric, so you can diff today against last week instead of trusting a one-off run in DevTools.
22