A 3-Agent Claude Pipeline That Safely Open-Sources Any Project

A 3-Agent Claude Pipeline That Safely Open-Sources Any Project

calendar_todayschedule1 min read

Open-sourcing a project means ensuring every API key, database password, internal domain, and .env file is stripped before you push to a public repo. Miss one, and it's on GitHub forever.

I built a pipeline of 3 Claude Code agents that automates this:

/opensource fork my-project

The Pipeline

1. Forker — Copies your project and strips secrets using 20 regex patterns (AWS, GitHub, Google OAuth, JWT, private keys, database URLs, Slack webhooks, SendGrid, Mailgun). Replaces internal references (domains, paths, IPs) with placeholders. Generates .env.example.

2. Sanitizer — Independent read-only auditor. Doesn't trust the forker. Re-scans everything across 6 categories: secrets, PII, internal references, dangerous files, config completeness, git history. One critical finding blocks release.

3. Packager — Detects your tech stack and generates CLAUDE.md, setup.sh, README.md, LICENSE, CONTRIBUTING.md, and GitHub issue templates.

Why Zero Trust Between Agents?

The sanitizer can report problems. It cannot fix them. If the same agent that strips secrets also checks for them, it can silently paper over its own mistakes. Separating the transformer (forker) from the verifier (sanitizer) is the core security design.

The Interesting Part

The entire codebase is 1,506 lines of markdown. No npm, no pip, no Docker. Each agent is a .md file with natural language instructions that Claude Code follows. The "code" is English.

Install (30 seconds)

git clone https://github.com/herakles-dev/opensource-pipeline.git
cd opensource-pipeline
./setup.sh

Copies 4 files into ~/.claude/. Then open Claude Code in any project and say /opensource fork my-project.

Open Source

MIT license. 5 issues tagged "good first issue" — easiest contribution is adding a secret detection pattern.

GitHub: herakles-dev/opensource-pipeline

784 Points10 Badges10
Chicago, ILiolais.ai
3Posts
4Comments
2Followers
2Connections
Its not rocket science.. Self-hosted everything. AI agents -> Architectures -> Harnesses -> Automation-obsessed. Too many Docker containers. No regrets.
Build your own developer journey
Track progress. Share learning. Stay consistent.
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

The Sovereign Vault — A Comprehensive Guide to Protocol-Driven AI

Ken W. Algerverified - Jun 4

Comparison: Universal Import vs. Plaid/Yodlee

Pocket Portfolio - Mar 12

How I Built a React Portfolio in 7 Days That Landed ₹1.2L in Freelance Work

Dharanidharan - Feb 9

I Wrote a Script to Fix Audible's Unreadable PDF Filenames

snapsynapseverified - Apr 20

Your AI Agent Skills Have a Version Control Problem

snapsynapseverified - Apr 22
chevron_left

Related Jobs

View all jobs →

Commenters (This Week)

3 comments
2 comments
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!