AI-safe .env files: Schemas for agents, Secrets for humans.
@env-spec), type validation, secret management, and AI-safe config exposure to standard .env files..env files have no schema, secrets can leak to AI agents reading codebases, and .env.example files are perpetually out of sync with reality.| Rating | Summary | |
|---|---|---|
| Quality | excellent (22/24) | Actively maintained TypeScript monorepo with 3540 stars in 13 months, high-discipline tooling, and a comprehensive multi-package ecosystem. |
| PAI Relevance | integrate (0.88) | Fills PAI's env-schema gap directly, ships as a TypeScript/Bun CLI with MCP server, and introduces a novel AI-safe config pattern applicable to PAI's security hooks and agent credential handling. |
22/24 — actively-maintained / adequately-documented / high-discipline
Failed:
Passed:
@varlock/vite-integration@1.1.2 tagged 2026-05-25.github/workflows/test.yamlFailed:
## Workflow which shows commands but doesn't match the probe keywordsPassed:
## Installation section with CLI, Homebrew, cURL, and Docker install paths.env.schema code blocks under ## Workflow and plugin exampleshttps://varlock.dev docs site with specific sub-paths (installation, guides, integrations, AI-safe config guide)Failed:
Passed:
package.json present with full monorepo workspace configtest:ci, smoke-test, and test:frameworks scripts in manifest; CI badge confirms test runs in GitHub Actions| Dimension | Score | Assessment |
|---|---|---|
| Harvest Value | 2 | The @env-spec JSDoc-in-.env DSL is a novel co-location pattern for schema + config; the runtime log redaction and AI-safe schema exposure (agents see types/descriptions, never secret values) is directly applicable to PAI's security hooks layer and to how PAI's 27 agents handle API credentials across Claude, GPT-5.4, and Kimi-K2.6. |
| Integration Readiness | 2 | TypeScript CLI with bun as its own package manager (bun@1.3.11), installable via bun add varlock or as a subprocess; ships a Vite integration directly applicable to the Conservancy project (SvelteKit/Vite), and an MCP server for agent-accessible docs. |
| Overlap Risk | 1 | Partial overlap with PAI's Silas/security agent and existing security hooks (which handle observability and PII), but no existing PAI skill covers structured .env schema management, secret scanning via git hooks, or AI-safe config exposure — the overlap is functional proximity, not duplication. |
| Gap Fill | 2 | PAI manages credentials for multiple AI providers and Cloudflare services with no schema enforcement, no leak-scanning hooks, and no runtime redaction; varlock addresses all three with zero PAI-internal equivalent. |
Composite: 0.88
Category: Security & Privacy
In this category: first entry — no prior secrets-management or env-schema tool appraised; elder-plinius--ST3GG (steganography) is the only other security-category repo and covers an entirely different domain
Standing: Varlock is the first and only env-schema/secrets-management tool in the landscape, making it the category-defining entry with no direct competition in the appraisal set.
Density: 10/10 — README (first 8KB, substantive and complete for scoring purposes), dependency manifest (root package.json with full scripts, devDependencies, catalog, and engine constraints), GitHub metadata (stars, forks, issues, dates, release, topics, license, archived status), landscape context with prior appraisals and rolling summary all present.
The @env-spec RFC (tracked in GitHub Discussions #17) signals an attempt to standardize the DSL beyond varlock itself — worth monitoring for ecosystem adoption. The repo uses Bun as its own package manager, which is an unusually strong stack alignment signal for PAI. The MCP server for varlock docs makes the tool self-referentially AI-tool-friendly. Growth rate (~262 stars/month from a standing start in April 2025) indicates genuine product-market fit rather than hype spike. The varlock scan + git hook pattern for catching AI-generated code that accidentally leaks secrets is especially relevant for any PAI workflow that uses agentic coding loops.