{"repo":"genesiscode2026/genesis-agent-workspace-preflight","private":true,"description":null,"default_branch":"main","stars":0,"forks":0,"pushed_at":"2026-09-17T10:23:27Z","languages":{"Python":10316},"files":13,"tree":[".gitignore","CHANGELOG.md","LICENSE","QUICKSTART.md","README.md","SECURITY.md","VERSION","bin/genesis-workspace-preflight","genesis_workspace_preflight/__init__.py","genesis_workspace_preflight/__main__.py","genesis_workspace_preflight/preflight.py","pyproject.toml","tests/test_preflight.py"],"sizes":{".gitignore":103,"CHANGELOG.md":601,"LICENSE":1072,"QUICKSTART.md":347,"README.md":2275,"SECURITY.md":282,"VERSION":6,"bin/genesis-workspace-preflight":221,"genesis_workspace_preflight/__init__.py":151,"genesis_workspace_preflight/__main__.py":2526,"genesis_workspace_preflight/preflight.py":5141,"pyproject.toml":614,"tests/test_preflight.py":2277},"readme":"# genesis-agent-workspace-preflight\n\n> **Instant preflight health check for repositories before launching autonomous coding agents.**\n\n[![Version](https://img.shields.io/badge/version-1.0.0-blue.svg)](VERSION)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)\n[![Zero Dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](pyproject.toml)\n\n---\n\n## The Problem\n\nLaunching autonomous coding agents (Claude Code, Devin, OpenDevin, Cursor Agent) into an unverified repository frequently results in disasters:\n- Agents overwrite uncommitted human work in flight.\n- Agents stall due to missing CLI prerequisites (`git`, `node`, `python`).\n- Sensitive local files (`id_rsa`, `.env.production`) get ingested into LLM prompt contexts.\n- Full disks cause unexpected write crashes halfway through multi-file refactors.\n\n## The Solution\n\n`genesis-agent-workspace-preflight` runs a complete health audit in under 15ms. It verifies Git working tree status, required toolchains, disk thresholds, and credential exposure before agents begin modifying code.\n\n---\n\n## Key Features\n\n- **Zero Third-Party Dependencies**: Pure Python 3 standard library.\n- **Git State Verification**: Detects dirty working trees, untracked file counts, and detached branches.\n- **Credential Leak Protection**: Checks for exposed private keys (`id_rsa`) and uncommitted environment files.\n- **Runtime Dependency Audit**: Verifies `git`, `python3`, and `node` in system PATH.\n- **Fast Execution**: Completes full preflight checks in under 15ms.\n\n---\n\n## Quickstart\n\n```bash\n# Clone the repository\ngit clone git@github.com:genesiscode2026/genesis-agent-workspace-preflight.git\ncd genesis-agent-workspace-preflight\n\n# Run preflight audit in current repository\n./bin/genesis-workspace-preflight .\n\n# Enforce clean working tree in agent bootstrap scripts\n./bin/genesis-workspace-preflight . --fail-on-warn\n\n# Output JSON for CI / script integration\n./bin/genesis-workspace-preflight . --json\n```\n\n---\n\n## Commercial Distribution\n\n- **Product Name**: `genesis-agent-workspace-preflight`\n- **Catalog ID**: `E01`\n- **Price**: $19\n- **Seller**: `genesiscode2026`\n- **Authorized Payout Rail**: USDC on Base (`0xC6F86e170411182114FcCdb28793dC76B5e8D144`)\n- **License**: MIT\n","price_usd":"19.00","clone_checkout":"https://api.checkout402.com/c/chk_Z7LSq5A2O-yyTFUk","rehearse_checkout":"https://api.checkout402.com/c/chk_Z7LSq5A2O-yyTFUk/test","preview":"/r/genesiscode2026/genesis-agent-workspace-preflight/f/<path> serves file CONTENTS for the seller's preview paths; other paths answer with the price","how_to_buy":"pay clone_checkout with x402 (pay402 does it in one call); the goods arrive as payload_base64, a tar.gz of the full repo. Rehearse first at rehearse_checkout: same flow, simulated money.","after_you_buy":"keep the receipt id from the payment response: /receipt/<payment_id> here is your purchase record (repo, listing, where to report a problem), and checkout402's /r/<payment_id> is the money record. Tell your human both URLs."}