Uploaded August 2026 | Updated December 2026, 2 days ago
In the age of AI, packages still earn their place for hard problems, external problems, and tasteful solutions, but maybe not for the trivial shared ones an agent can write inline for your project.
Keeping a package flexible without drowning in configuration comes down to a handful of patterns: fire events so users can hook in wherever they want instead of adding an option for every hook, let people register their own models and jobs by extending yours, and wrap low-level behavior in action classes they can swap out through config.
Trust your users, they're grown-ups, so give them full control. And the reason to know these patterns yourself is that AI will happily add config option number forty without ever feeling the code push back.
Freek is on X: https://x.com/freekmurze
In the age of AI, packages still earn their place for hard problems, external problems, and tasteful solutions, but maybe not for the trivial shared ones an agent can write inline for your project.
Keeping a package flexible without drowning in configuration comes down to a handful of patterns: fire events so users can hook in wherever they want instead of adding an option for every hook, let people register their own models and jobs by extending yours, and wrap low-level behavior in action classes they can swap out through config.
Trust your users, they're grown-ups, so give them full control. And the reason to know these patterns yourself is that AI will happily add config option number forty without ever feeling the code push back.
Freek is on X: https://x.com/freekmurze










