You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Community revival: Zhifei (知非) — a fork where the community's 156 open PRs can finally merge #1640
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.
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.
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.
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:
@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.
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. 😉
@ProfessorTom yes, exactly — that's the model:
- Pick up the original PRs as your base. Git keeps the original authorship, and we keep it visible: every absorbed PR in Zhifei is credited per-PR in the source and mapped in docs/ABSORPTION-LEDGER.md. If you rebase or adapt someone's work, keep them as the commit author (or add Co-authored-by:) and the credit follows the code.
- Note that #1499 and #1639 have already landed in Zhifei (see the absorption batch above), so you can diff against our implementations; #734 is still in the queue — if your merge attempt produces a clean patch, a PR back to Zhifei would be very welcome.
- And thanks for the small PR — I'll review it shortly. Contributions to both Zhifei and thefuck-ng are welcome; the two repos attacking the same 3.12+ breakage from different angles is exactly the kind of cross-pollination this revival needs.
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.
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.
Activity
ProfessorTom commentedon Nov 30, 2026
I'd be happy to be a co-maintainer or more involved with this project. I contributed to
thefuckonce: 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?)
TriTacLe commentedon Nov 30, 2026
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.
ProfessorTom commentedon Nov 30, 2026
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.
tanbopiao commentedon Nov 30, 2026
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:
No module named 'distutils'for Python3.12+ #1534 Replace deprecated pkg_resources with importlib.metadata #1555 support:support for Python 3.12+ #1569 Fix: python 3.13 windows compat #1580 Python 3.12 compatibility fixes for shell history parsing and history filtering #1610 fix: Python 3.12+ compatibility (test speed +74%, zero regressions) #1619.distutils.spawnis gone (shutil.whichis the drop-in), one best implementation covering the whole cluster, with per-PR attribution in the source.rm /now prompts for confirmation instead of relying on error text), Feature/self protect thefuck #1020 (self-protection rule + multi-candidate corrections), #1630: Don't remove files outside the cwd in dirty_unzip/dirty_untar #1639 (dirty_unzip/dirty_untarno longer touch files outside the cwd).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-ngshipping 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.ProfessorTom commentedon Nov 30, 2026
@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-ngproject that @TriTacLe mentioned.I suppose you're saying I should make a PR based on the PRs that are already on this, original
thefuckrepo and they will be attributed to their original submitters?Finally, I made a small PR against your new repo. 😉
tanbopiao commentedon Dec 1, 2026
ProfessorTom commentedon Dec 1, 2026
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.
ProfessorTom commentedon Dec 1, 2026
@tanbopiao you said in an earlier message:
When I clone your repo, do
pip install -r requirements.txt pip install -e . pytestI get
2158 passed, 47 skipped, 273 warnings in 3.31sSeems like you're missing guest a bit of tests.
ProfessorTom commentedon Dec 1, 2026
@tanbopiao Also, running
pytest --enable-functionalgivesbecause 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.
ProfessorTom commentedon Dec 1, 2026
@tanbopiao I've put up a PR to merge #777 in
tanbopiao/zhifei#2