{"slug": "git-grass-open-source-ai-terminal-detox-proof-of-nature-git-daemon", "title": "git-grass — Open-Source AI Terminal Detox & Proof-of-Nature Git Daemon", "summary": "A developer built git-grass, an open-source Python CLI and Git pre-commit hook that locks commits after two hours of continuous coding until the user submits a photo proving they touched real grass. The tool runs a fully offline computer-vision pipeline on CPU in about 80 milliseconds, using Excess Green Index and VARI chlorophyll detection plus organic-texture entropy filters to reject IDE screenshots and dark-theme monitor images. It is built with Python 3, Click, Rich, Pillow, NumPy, and ONNX Runtime, and stores lockout state locally in ~/.git-grass/state.json.", "body_md": "*This is a submission for the [Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass](https://dev.to/challenges/hacktoberfest-week1-2026-10-05)*\n\n**`git-grass`** is a developer wellness CLI and Git pre-commit daemon powered by on-device open-weight computer vision. It actively fights developer burnout by monitoring active screen time and **locking Git commits** until you physically step away from your desk, go outside, and provide photo proof that you touched real grass, lawn turf, or autumn foliage.\n\n`git commit` / `git push` if you code continuously for over 2 hours without an outdoor break.\nHere is `git-grass` blocking a commit during a long coding session, and then unlocking immediately after verifying real grass:\n\n``` bash\nbash\n$ git commit -m \"fix: typo in function\"\n\n ╔════════════════════════════════════════════════════════════╗\n ║                     🔒 GIT COMMITS LOCKED                   ║\n ║                                                            ║\n ║   You have been coding for too long without outdoors time! ║\n ║   Git commits are paused until you touch real grass.       ║\n ║                                                            ║\n ║   Run: git-grass verify <photo_of_grass.jpg>            ║\n ╚════════════════════════════════════════════════════════════╝\n\n❌ Git Commit Blocked by git-grass: Continuous coding session exceeded 120 minutes without touching grass.\n\nCode :\nGitHub Repository: https://github.com/NICKSTER0506/git_grass\n\nRepository Architecture:\ngit_grass/detector.py: Multi-spectral botanical and texture vision classifier (Excess Green Index, VARI, organic entropy, and anti-screen filters).\ngit_grass/hook.py: Git pre-commit hook injector and validator.\ngit_grass/cli.py: Rich terminal interface and commands (status, verify, lock, hook, demo).\ngit_grass/state.py: Local streak and lockout state manager (~/.git-grass/state.json).\n\nHow I Built It\ngit-grass is built with Python 3, Click, Rich, Pillow, NumPy, and ONNX Runtime.\n\nThe core AI engine uses a hybrid local open-weight multi-spectral vision pipeline:\n\nBotanical Remote Sensing Indices: Computes the Excess Green Index (\n2G−R−B) and Visible Atmospherically Resistant Index (VARI) to detect live biological chlorophyll.\nOrganic Gradient Entropy: Applies edge frequency filters to differentiate natural, fractal organic textures (grass blades, bark, leaf veins) from pixel grids and flat monitor panels.\nAnti-Synthetic Heuristics: Detects monochromatic dark theme palettes and high-frequency code line rectangles to reject IDE screenshots with a high penalty score.\nSub-100ms Local Execution: The entire pipeline runs 100% on CPU in approximately 80 milliseconds.\n\nWhy Does Open Innovation Matter?\nOpen innovation is the core reason git-grass works:\n\n100% Offline with Zero Connectivity: Closed cloud APIs (like OpenAI or Anthropic) require an internet connection. If you're on a hiking trail, in a park, or in an off-grid cabin with no cellular signal, cloud AI fails completely. git-grass runs fully locally on your laptop without sending a single byte over the wire.\nAbsolute Privacy: Photos of your backyard, garden, or personal life should never be sent to third-party cloud servers. Local open AI keeps all personal data strictly on your device.\nZero Cost & Infinite Runs: You don't need API keys, credit cards, or token quotas to verify your wellness breaks.\nTransparent & Hackable: Because it's open-source, developers can inspect the weights, calibrate thresholds for their local regional flora (e.g. desert succulent vs. autumn deciduous trees), and contribute custom hooks.\n\nPrize Categories\nHacktoberfest Open-Source AI Challenge: Touch Grass\n```\n\n", "url": "https://wpnews.pro/news/git-grass-open-source-ai-terminal-detox-proof-of-nature-git-daemon", "canonical_source": "https://dev.to/nikhilrb100/git-grass-open-source-ai-terminal-detox-proof-of-nature-git-daemon-3p5e", "published_at": "2026-10-07 10:12:02+00:00", "updated_at": "2026-10-07 10:17:02.094328+00:00", "lang": "en", "topics": ["computer-vision", "ai-tools", "developer-tools", "artificial-intelligence"], "entities": ["git-grass", "GitHub", "Python", "Click", "Rich", "Pillow", "NumPy", "ONNX Runtime"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/git-grass-open-source-ai-terminal-detox-proof-of-nature-git-daemon", "markdown": "https://wpnews.pro/news/git-grass-open-source-ai-terminal-detox-proof-of-nature-git-daemon.md", "text": "https://wpnews.pro/news/git-grass-open-source-ai-terminal-detox-proof-of-nature-git-daemon.txt", "jsonld": "https://wpnews.pro/news/git-grass-open-source-ai-terminal-detox-proof-of-nature-git-daemon.jsonld"}}