{"id":43062548,"url":"https://github.com/chenhunghan/ralph-hook-lint","last_synced_at":"2026-02-16T18:07:16.664Z","repository":{"id":335638132,"uuid":"1145305374","full_name":"chenhunghan/ralph-hook-lint","owner":"chenhunghan","description":"Zero dependencies lighting fast universal lint hook for you agent loop","archived":false,"fork":false,"pushed_at":"2026-01-31T19:57:37.000Z","size":72,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-31T22:12:08.671Z","etag":null,"topics":["agent","claude-code","cli","hooks","plugin","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chenhunghan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-29T16:57:40.000Z","updated_at":"2026-01-31T19:57:41.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/chenhunghan/ralph-hook-lint","commit_stats":null,"previous_names":["chenhunghan/ralph-hook-lint"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/chenhunghan/ralph-hook-lint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenhunghan%2Fralph-hook-lint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenhunghan%2Fralph-hook-lint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenhunghan%2Fralph-hook-lint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenhunghan%2Fralph-hook-lint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chenhunghan","download_url":"https://codeload.github.com/chenhunghan/ralph-hook-lint/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chenhunghan%2Fralph-hook-lint/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29196850,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T12:38:28.597Z","status":"ssl_error","status_checked_at":"2026-02-07T12:38:23.888Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","claude-code","cli","hooks","plugin","rust"],"created_at":"2026-01-31T12:14:42.331Z","updated_at":"2026-02-16T18:07:16.658Z","avatar_url":"https://github.com/chenhunghan.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ralph-hook-lint\n\nZero dependencies lighting fast universal lint hook for your ~~Ralph Wiggum~~ agent loop.\n\nSee also format hook: [ralph-hook-fmt](https://github.com/chenhunghan/ralph-hook-fmt)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/user-attachments/assets/7c63516e-ed02-4d98-952d-a642215cb722\" alt=\"Ralph Wiggum\" /\u003e\n\u003c/p\u003e\n\n## What it does\n\nLints after every `Write`/`Edit` operation in Claude Code. If lint errors are found, the agent is prompted to fix them.\n\n## Supported Languages\n\n- **JavaScript/TypeScript**: `oxlint` \u003e `biome` \u003e `eslint` \u003e `npm run lint` (in order of preference)\n- **Rust**: `clippy`\n- **Python**: `ruff` \u003e `mypy` \u003e `pylint` \u003e `flake8` (in order of preference)\n- **Java**: Maven (`pmd:check` \u003e `spotbugs:check`) or Gradle (`pmdMain` \u003e `spotbugsMain`)\n- **Go**: `golangci-lint` \u003e `staticcheck` \u003e `go vet` (in order of preference)\n\n## Installation\n\n```bash\nclaude plugin marketplace add https://github.com/chenhunghan/ralph-hook-lint.git\nclaude plugin install ralph-hook-lint\n```\n\n## Update Plugin\n\n```bash\nclaude plugin marketplace update ralph-hook-lint\nclaude plugin update ralph-hook-lint@ralph-hook-lint\n```\n\n## Lenient Mode\n\nEnabled by default. When the agent edits files in multiple steps, intermediate states may have unused variables/imports. The `--lenient` flag suppresses these rules so the agent can work incrementally without being blocked mid-edit.\n\nTo disable lenient mode, remove `--lenient` from the command in `hooks.json`:\n\n1. Open `~/.claude/plugins/ralph-hook-lint/hooks/hooks.json`\n2. Change the command from:\n   ```json\n   \"command\": \"${CLAUDE_PLUGIN_ROOT}/bin/ralph-hook-lint --lenient\"\n   ```\n   to:\n   ```json\n   \"command\": \"${CLAUDE_PLUGIN_ROOT}/bin/ralph-hook-lint\"\n   ```\n\n## Debug Mode\n\nBy default, the hook only outputs `systemMessage` when blocking (lint errors found). To see all diagnostic messages, add `--debug` to the command in `hooks.json`:\n\n```json\n\"command\": \"${CLAUDE_PLUGIN_ROOT}/bin/ralph-hook-lint --lenient --debug\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenhunghan%2Fralph-hook-lint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchenhunghan%2Fralph-hook-lint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchenhunghan%2Fralph-hook-lint/lists"}