{"id":42526617,"url":"https://github.com/cmdrvl/regret","last_synced_at":"2026-01-28T16:00:59.896Z","repository":{"id":334919419,"uuid":"1142967102","full_name":"cmdrvl/regret","owner":"cmdrvl","description":"Measure rework and rollbacks in your swarm. Maps regret back to work IDs (Beads-compatible, not required).","archived":false,"fork":false,"pushed_at":"2026-01-28T01:28:05.000Z","size":394,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-28T01:30:57.351Z","etag":null,"topics":["agentic","automation","cli","code-review","git","observability","reliability","rust","swarm"],"latest_commit_sha":null,"homepage":"https://cmdrvl.com","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/cmdrvl.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"AGENTS.md","dco":null,"cla":null}},"created_at":"2026-01-27T03:23:18.000Z","updated_at":"2026-01-28T01:28:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cmdrvl/regret","commit_stats":null,"previous_names":["cmdrvl/regret"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cmdrvl/regret","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdrvl%2Fregret","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdrvl%2Fregret/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdrvl%2Fregret/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdrvl%2Fregret/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cmdrvl","download_url":"https://codeload.github.com/cmdrvl/regret/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cmdrvl%2Fregret/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28846742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-28T15:15:36.453Z","status":"ssl_error","status_checked_at":"2026-01-28T15:15:13.020Z","response_time":57,"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":["agentic","automation","cli","code-review","git","observability","reliability","rust","swarm"],"created_at":"2026-01-28T16:00:58.906Z","updated_at":"2026-01-28T16:00:59.837Z","avatar_url":"https://github.com/cmdrvl.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# regret\n\n`regret` is a single-verb, local-first, deterministic CLI that mines **high-precision regret signals** from git history and reports the top culprits with evidence.\n\n## Install\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/cmdrvl/regret/main/scripts/install.sh | bash\n```\n\n## Quickstart\n\n```bash\nregret\n```\n\nBy default, `regret` ranks evidence in the last 30 days (configurable) and freezes `--until` once per invocation for deterministic output.\n\nIf you see a coverage warning, expand local coverage deterministically:\n\n```bash\nregret --scan --since 180d\n```\n\nFor reproducible runs (CI/snapshots), pin the window explicitly:\n\n```bash\nregret --since 30d --until 2024-01-02T00:00:00Z\n```\n\n## Getting the most out of regret (agent-friendly)\n\nLinked-fix trailers unlock the highest-signal, lowest-noise regret events in v0.1: a follow-up fix can explicitly point back to the culprit commit with **forensic certainty**.\n\nEnable the commit template that nudges humans and agents into writing these trailers:\n\n```bash\nregret --init\ngit config commit.template .regret/commit-template.txt\n```\n\n`regret --init` is safe and idempotent. To overwrite existing files, use `--force`.\n\nDisable (local repo):\n\n```bash\ngit config --unset commit.template\n```\n\nOptional advisory hook (local repo only):\n\n```bash\ncp .regret/hooks/commit-msg .git/hooks/commit-msg\nchmod +x .git/hooks/commit-msg\n```\n\nIf you already have a commit-msg hook, merge manually.\n\nAgent instruction snippet (paste into Claude/Codex system prompts; also written by `regret --init` to `.regret/agent-snippets/regret-linked-fix.md`):\n\n```markdown\n# regret: linked-fix trailers (agent rule)\n\nWhen you make a follow-up fix for a previous commit, add a trailer referencing the culprit commit:\n\n- Add: `Fixes-Commit: \u003cfull 40-hex SHA\u003e` in the commit message trailers/footer section.\n- Use the full SHA (no prefixes).\n- The SHA MUST be the culprit (the change being fixed), not the evidence/fix commit.\n```\n\nMinimal example:\n\n1) Culprit commit (already on the selected branch):\n- `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` (example SHA)\n\n2) Follow-up fix commit message (evidence commit):\n```text\nFix login regression\n\nFixes-Commit: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n```\n\n3) Verify the linked-fix shows up as evidence (robot-friendly):\n```bash\nregret --ndjson --since 30d\n```\n\nExample NDJSON evidence record (fields may include additional additive keys over time, but `type=linked_fix` and `confidence_reason=explicit_trailer` are the core facts):\n```json\n{\"type\":\"evidence\",\"signal_type\":\"linked_fix\",\"culprit_sha\":\"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\",\"evidence_sha\":\"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\",\"confidence_reason\":\"explicit_trailer\"}\n```\n\nNDJSON schema reference: `docs/schema/ndjson/v1.md`\n\n## Determinism (short)\n\n- `--until` is frozen once and used for age/coverage/rate calculations.\n- `--since` filters evidence by when regret happened (evidence time), not culprit age.\n- `--all` removes the window bound and implies a full-history scan.\n\n## Advanced config (optional)\n\n`regret` reads `.regret/config.toml` when present. Defaults:\n- `ranking.default_since = \"30d\"`\n- `scan.bootstrap_since = \"45d\"`\n\nUse `--deep` to enable patch-id equivalence (slower, higher recall); default runs include canonical reverts + linked-fix trailers only.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdrvl%2Fregret","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmdrvl%2Fregret","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmdrvl%2Fregret/lists"}