Someone needs to convince Firefox rather than develop its own AI (https://news.ycombinator.com/item?id=45926779) to develop a system to pipe your html rendered browsing history in real time so external local services can process it (https://connect.mozilla.org/t5/ideas/archive-your-browser-hi...). See https://news.ycombinator.com/item?id=45743918
Firefox probably won't suddenly have the best AI, but they could have the only browser that does this.