Skip to content

Instantly share code, notes, and snippets.

View AmoabaKelvin's full-sized avatar
🍀
locking in

Kelvin Amoaba AmoabaKelvin

🍀
locking in
View GitHub Profile
@AmoabaKelvin
AmoabaKelvin / redaction.md
Created February 4, 2026 09:45 — forked from ruvnet/redaction.md
Redaction hooks for Claude Code

A drop-in redaction hook wired through settings.json for Claude Code.

It masks secrets before tools run and censors sensitive fields in transcripts.

what is it?

Data leakage for enterprises using Ai coding is a ███ . Redaction hooks solve ██ problems by catching secrets before they leak. Here’s how I do it.

A redaction hook sits between your agent and the outside world. Every time Claude Code reads a file, runs a shell command, or fetches a web resource, the hook scans for sensitive patterns like API keys, tokens, or passwords. If it sees something dangerous, it either masks it with a placeholder or blocks the request outright. That way, your logs and transcripts remain useful but never expose private values.

@AmoabaKelvin
AmoabaKelvin / worktree-manager.bash
Created January 7, 2026 16:57
Multi-project git worktree manager with GitHub username support, auto-setup scripts, and Claude integration
#!/usr/bin/env bash
# Multi-project worktree manager - Bash version
#
# ASSUMPTIONS & SETUP:
# - Works from any git repository in the filesystem
# - Worktrees will be created in: <project-parent-dir>/.worktrees/<project-name>/<branch>
# - New branches will be named: <your-username>/<feature-name>
#
# DIRECTORY STRUCTURE EXAMPLE:
# /path/to/projects/