Thank you for your interest in contributing to AgentShield! We welcome contributions from developers, security engineers, and AI practitioners.
AgentShield is built with Node.js 20+, TypeScript, ESM, and pnpm.
# 1. Clone your fork
git clone https://github.com/<your-username>/AgentShield.git
cd AgentShield
# 2. Install dependencies
pnpm install
# 3. Build project
pnpm run build
# 4. Run full test suite
pnpm test- We use Biome for ultra-fast linting and code formatting:
pnpm run lint pnpm run format
- All code must pass Biome checks with 0 errors and 0 warnings before opening a PR.
Important
GitHub Secret Scanning Push Protection will immediately block git pushes if you include realistic token formats (such as literal sk-proj-... or AKIA...).
Always construct test tokens dynamically using arrays: ["sk-proj-", "123..."].join("") or synthetic non-production strings.
To add a new credential pattern:
- Edit
src/patterns.ts. - Add a unique
id, human-readablename,category, andseverity. - Provide a test case in
tests/engine.test.ts.
- Create a feature branch:
git checkout -b feat/my-new-feature. - Ensure all existing tests and new unit tests pass (
pnpm test). - Commit with semantic commit messages:
feat(...): New feature or patternfix(...): Bug fix or false positive tuningdocs(...): Documentation updatestest(...): Test additions
- Push and open a Pull Request against
RitualDev-Lab/AgentShield:main.
AgentShield is governed by RitualDev Lab. Core releases, signing keys, and repository admin controls are managed by our Direct Access Admins:
- Divyanshu Jethi (@divyanshujethi) — Founder & Lead
- Sakshi Sharma (@Sakshisharma1616) — Core Maintainer & Product
- RitualDev (@Ritual-Dev-Git) — Core Maintainer & Infra