{"slug": "an-ai-agent-rebuilt-my-2018-nicehash-buyer-it-threw-out-the-old-roi-math-and-it", "title": "An AI Agent Rebuilt My 2018 NiceHash Buyer. It Threw Out the Old ROI Math, and It Still Will Not Place a Live Order by Default.", "summary": "A developer used an AI coding agent to rebuild the ROI decision logic for their dormant 2018 NiceHash hashrate-rental bot, producing a new branch called modern-roi-prototype with four commits over roughly 80 minutes. The rewritten spec discards the original CryptoNight-only ROI shortcut, which assumed 1 MH/s and subtracted the 3% fee from the ratio rather than applying it to cost, and targets NiceHash's v2 API. The prototype does not place live orders by default, and the developer reports no earnings from it.", "body_md": "In 2018 I had a buyer bot for NiceHash. It rented hashrate, pointed it at pools I operated, mined coins, sold them, and put the BTC back into orders. The public repo is still there: [github.com/blakelapierre/nicebot](https://github.com/blakelapierre/nicebot). The `master` branch last moved in April 2018. I have not turned that bot back on for this post, and I am not reporting any earnings from it.\n\nOn the evening of Nov 21, an AI coding agent started a new branch, `modern-roi-prototype`, and spent about 80 minutes on it: four commits, from 7:18 PM to 8:37 PM PT. First a live scanner experiment, then a written spec, then an implementation of that spec.\n\nThis is a story about rebuilding the decision rule, not about running it with real money. It is also a different story from my [trading bot](https://blakelapierre.substack.com/p/debugging-a-4-trading-bot-it-made) and [scanner](https://blakelapierre.substack.com/p/two-ai-trading-scanners-one-said) posts, which were about exchange trading, not about renting hashrate.\n\n## What was wrong with the old math\n\nThe spec is in `docs/SPEC.md` on that branch. It is the contract for the new work, and it says not to rewrite `master`.\n\nThe old bot talked to NiceHash’s v1 API. It was CryptoNight-only. ROI was a shortcut for that algorithm, not a general formula. The spec writes the old expression down so nobody ports it: it assumed 1 MH/s, a CryptoNight difficulty, and a price already in the old API’s units, and it subtracted the 3% fee from the ratio instead of applying it to cost. One of the old sell venues is gone. The v1 order shape is not the v2 API.", "url": "https://wpnews.pro/news/an-ai-agent-rebuilt-my-2018-nicehash-buyer-it-threw-out-the-old-roi-math-and-it", "canonical_source": "https://blakelapierre.substack.com/p/an-ai-agent-rebuilt-my-2018-nicehash", "published_at": "2026-12-05 00:09:27+00:00", "updated_at": "2026-12-05 00:16:28.936423+00:00", "lang": "en", "topics": ["ai-agents", "ai-tools", "developer-tools"], "entities": ["NiceHash", "GitHub", "blakelapierre"], "also_reported_by": [], "takeaway": "The old NiceHash ROI shortcut was CryptoNight-specific and subtracted the 3% fee from the ratio instead of applying it to cost, so a general v2 buyer must recompute ROI with the fee applied to cost and the v1 order shape replaced.", "recommendation": {"advice": "When handing a rebuild to a coding agent, write the spec first and explicitly forbid porting legacy formulas like the CryptoNight ROI shortcut, then keep live order placement off by default.", "playbook": "agent-architecture", "playbook_url": "https://wpnews.pro/playbooks/agent-architecture"}, "alternates": {"html": "https://wpnews.pro/news/an-ai-agent-rebuilt-my-2018-nicehash-buyer-it-threw-out-the-old-roi-math-and-it", "markdown": "https://wpnews.pro/news/an-ai-agent-rebuilt-my-2018-nicehash-buyer-it-threw-out-the-old-roi-math-and-it.md", "text": "https://wpnews.pro/news/an-ai-agent-rebuilt-my-2018-nicehash-buyer-it-threw-out-the-old-roi-math-and-it.txt", "jsonld": "https://wpnews.pro/news/an-ai-agent-rebuilt-my-2018-nicehash-buyer-it-threw-out-the-old-roi-math-and-it.jsonld"}}