Skip to content

Community revival: Zhifei (知非) — a fork where the community's 156 open PRs can finally merge #1640

Backlog

Description

@tanbopiao

Hi everyone 👋

This repository collected 156 open pull requests and 316 open issues with no merge since 2024-01-25 — and no PyPI release since January 2022. The tool no longer installs on current Python (3.12+ removed distutils and imp), yet the community never left: 24 PRs were filed in the last six months alone, the oldest has been waiting since 2017.

So the workshop got a new operator. Zhifei (知非) is a community revival fork of The Fuck — named for the ancient Chinese sage Qu Boyu, who said "at fifty, I knew the wrongs of my forty-nine years." To know one's errors and correct them: exactly what this tool does, one command at a time.

What we did

  • Full triage of all 156 open PRs (v1.0): 19 PRs fixing the Python 3.12+ installation breakage (one mega-cluster, prioritized first), 28 bug fixes & safety gaps (rm / guard, dirty_unzip cwd escape), 39 new correction rules (apt 3.0, nushell, nix-shell, terraform, …), 27 near-duplicate dependency bumps treated as one work item, plus features/docs/tests/refactor buckets — every single one dispositioned.
  • Full credit roll: all 533 contributors (120 PR authors + 263 issue reporters + 150 long-term contributors) are named in ACKNOWLEDGMENTS.md.
  • Absorption ledger: every absorbed PR/issue is mapped to its source in docs/ABSORPTION-LEDGER.md — nothing lands without attribution.
  • MIT preserved unchanged (Copyright (c) 2015-2022 Vladimir Iakovlev), NOTICE included. This fork is not affiliated with or endorsed by the upstream author.

You're invited

If you have a PR or issue here: your fixes have a place where they can actually merge. Open an issue or PR at Zhifei referencing your upstream number (e.g. upstream #1639) and we will prioritize it — installation breakage and safety fixes land first.

To the most prolific contributors — @isagoakira (27 PRs!), @nkakonas, @cjoshmartin, @soraxas — your work is waiting for you. And @TriTacLe: you offered to maintain a fork in #1638 — the door is open, come build with us.

To everyone else listed in the acknowledgments: same invitation, no mention needed — we didn't want to spam 533 people.

The door is open. 🛠️

Activity

  1. ProfessorTom commented on Nov 30, 2026

    @ProfessorTom
    Contributor

    I'd be happy to be a co-maintainer or more involved with this project. I contributed to thefuck once: and would love to be more active.

    What can I do to help and come up to speed?

    Also, what is your plan for releasing the fork? (Perhaps it's similar to the original project and is the point of Qu Boyu?)

  2. TriTacLe commented on Nov 30, 2026

    @TriTacLe

    Thanks for the mention. I'm going ahead with my own fork, TriTacLe/thefuck-ng, starting with a Python 3.12+ PyPI release. Happy to share fixes in both directions.

  3. ProfessorTom commented on Nov 30, 2026

    @ProfessorTom
    Contributor

    Thanks for the mention. I'm going ahead with my own fork, TriTacLe/thefuck-ng, starting with a Python 3.12+ PyPI release. Happy to share fixes in both directions.

    I'd be happy to work in both repos.

    @TriTacLe I saw your comment here.

    For both repos: just tell me what I can do to contribute and I'll do my utmost.

  4. tanbopiao commented on Nov 30, 2026

    @tanbopiao
    Author

    Thanks @ProfessorTom and @TriTacLe for the responses, and sorry for the slow follow-up.

    On the release plan: there is no PyPI package yet, and I won't announce one until it actually installs — the first absorption batch had to land first. It has now:

    Everything is dispositioned in TRIAGE-MATRIX.md, recorded in the append-only ABSORPTION-LEDGER.md, and the batch commit is 2b075f1. Test suite: 1887 passed, 16 skipped.

    @ProfessorTom — co-maintainer help is very welcome. The highest-value next items per the matrix are the remaining safety fixes (#777 #804 #1006 #1007 #1013 #1020-class bucket) and the first new correction rules. Pick any PR from the matrix and open a PR against zhifei — every absorption gets attributed in the ledger.

    @TriTacLe — thefuck-ng shipping a 3.12+ PyPI release is great news; happy to share fixes in both directions as you said. We'll cross-reference as things land on either side.

  5. ProfessorTom commented on Nov 30, 2026

    @ProfessorTom
    Contributor

    @tanbopiao Per the thread here I already had a fork. and per @TriTacLe 's instructions, and for the practice, I'm going to try to merge in #1499, #1639 and #734 (with a slight update for myself).

    So I think that means I'll have thefuck-ng project that @TriTacLe mentioned.

    I suppose you're saying I should make a PR based on the PRs that are already on this, original thefuck repo and they will be attributed to their original submitters?

    Finally, I made a small PR against your new repo. 😉

  6. tanbopiao commented on Dec 1, 2026

    @tanbopiao
    Author
  7. ProfessorTom commented on Dec 1, 2026

    @ProfessorTom
    Contributor

    I should have been clearer in my message: the first half was me saying what I wanted to do on my fork. But I'm fighting to get my fork to pass the tests in GitHub. I may have to look at what you did or fork from you.

    Meanwhile, I'll PR the remaining safety fixes (#777 #804 #1006 #1007 #1013 #1020 bucket) to your repo.

  8. ProfessorTom commented on Dec 1, 2026

    @ProfessorTom
    Contributor

    @tanbopiao you said in an earlier message:

    Test suite: 1887 passed, 16 skipped.

    When I clone your repo, do

    pip install -r requirements.txt
    pip install -e .
    pytest

    I get 2158 passed, 47 skipped, 273 warnings in 3.31s

    Seems like you're missing guest a bit of tests.

  9. ProfessorTom commented on Dec 1, 2026

    @ProfessorTom
    Contributor

    @tanbopiao Also, running pytest --enable-functional gives

    2158 passed, 19 skipped, 272 warnings, 28 errors in 17.72s

    because https://hub.docker.com/u/thefuck contains no images.

    It looks like we can build an image from the repo, though. We'll need to change where the repo points to for a test container. I guess this should be an issue against your repo.

  10. ProfessorTom commented on Dec 1, 2026

    @ProfessorTom
    Contributor

    @tanbopiao I've put up a PR to merge #777 in

    tanbopiao/zhifei#2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions