Orwa Mahmoud (@OrwaMahmod) header
Orwa Mahmoud (@OrwaMahmod) profile picture

Senior AI Engineer · Agentic AI Building production AI systems. Open source in my spare time 🌙 Creator of Nightshift & AdaptTable

Joined December 2024
Photo by Orwa Mahmoud (@OrwaMahmod)Photo by Orwa Mahmoud (@OrwaMahmod)Photo by Orwa Mahmoud (@OrwaMahmod)
Always nice to see Nightshift getting some love ❤️
Let your AI coding agent work through a plan overnight, then review a receipt for each item in the morning. Nightshift is an open-source plugin for Claude Code, Codex, and Cursor that runs the shift and resumes interrupted work. Explore it here: osp.fyi/nightshift
1
9,326
Plan first, execute autonomously, review with evidence. And with the latest releases, share all stages with your team. Thanks for sharing!
与其让编程代理通宵乱改,不如先把要做什么、怎样算做完写清楚,再让它自己跑一轮,并把变更和检查回执留下来。 orwa-mahmoud/nightshift 就是按这个顺序设计的:先把方案和验收标准谈清楚,再让编程代理自主执行一轮,并留下可复核的变更与检查回执。GitHub 项目助手今早核对,仓库约 608 星,主要是 Shell,今日热榜增量约 +50。说明里写到,它可以用于 Claude Code、Codex 和 Cursor。 适合谁:已经在用这类编程代理,希望把夜间或长时间任务收成“先约定、再执行、再验收”的人。怎么用:先按仓库说明,把目标和验收标准写明白,再让代理在你自己的仓库里跑一轮,第二天只根据它留下的变更和回执做复核。注意点:自主执行仍可能改错文件或引入新问题,回执不能代替人看 diff;权限和可写范围也要事先收紧,不要把它接到未备份的生产环境里。 github.com/orwa-mahmoud/nigh…
37
Really appreciate the detailed analysis and write-up!
nightshift 今天发布了 v0.47.0,登上 GitHub 趋势 Shell 日榜第 16,一天新增 50 个 star。 github.com/orwa-mahmoud/nigh… 让编程智能体通宵干活时,进度经常散落在对话里,中断后也很难接上。nightshift 是装进 Claude Code、Codex、Cursor 和 Antigravity 的插件:先在计划室里比较方案、定好验收证据,再按任务清单无人值守执行;每项完成后留下回执,写明改了什么、跑过哪些检查、花了多少时间和 token。班次记录都在磁盘上,换工具可以从同一份清单继续;会话外的守夜进程还能在中断后自动恢复。这次 v0.47.0 把完整班次跑通到了 Antigravity。MIT 许可,目前 609 个 star。
24
Tip: The parking lot is just one hook: PreToolUse. And that’s how it all started, with a few hooks, before I turned it into a plugin. Another tip: Installation is just one command, with no API keys or dependencies. It runs inside the AI agent you already use, and it has a lot more than the parking lot.
The idea worth stealing from Nightshift isn't the plugin, it's the parking lot. When the agent hits a decision overnight, it picks a default, writes down why, and keeps going. You review those calls in the morning instead of finding it stuck. No install needed to copy that.
1
37
My car has been slow lately. Should I rewrite it in Rust?
2
46
Sometimes I even dream about it 😂
agents destroy my sleep last thing i do every day is spending 1h making sure my agents will do the right stuff and first hour of waking i'll wake up excited to poke around in results
49
Orwa Mahmoud retweeted
解决 AI 编程 Agent 在长时间无人值守运行中容易中途停工、上下文压缩丢状态以及产出结果难以复核的问题。 github.com/orwa-mahmoud/nigh…
1
2
6
1,012
Haha, Nightshift was born out of many frustrating nights with coding agents. Thanks for sharing it! 🌙
让 AI 跑通宵写代码,最容易翻车的往往不是模型能力不够,而是根本没法安心去睡觉。 睡前把需求丢给 Claude Code,第二天醒来经常是这几种情况:做到一半抛个问题卡在原地干等;半夜撞上 API 500 直接中断;好不容易跑完了,面对几百屏拉不到头的对话记录,完全搞不清它中间踩了什么坑、漏了什么测试。 刚在 GitHub 刷到一个叫 Nightshift 的插件,专门治这种“长任务管不住、醒来没法验收”的毛病。它不用另装客户端也不用配额外 API,直接作为原生插件装进 Claude Code、Codex 和 Cursor 里,macOS、Linux、Windows 都能用。 翻了一圈文档,能看出来作者是真在实战里被 Agent 折腾过: 开工前先拉进一个 plan room 聊方案,这时候整个代码库处于只读状态,治好了 Agent 听两句就急着乱改代码的毛病。聊完直接把任务清单落盘,连同要交什么验收证据(比如不同宽度的截图、性能对比数据)、每个任务的耗时和 token 上限一并定死。 真正跑起来之后,遇到需要你拍板的细节它不会停下来傻等,而是先按默认方案往下推,把决策和理由顺手记进待审区,等你醒了再统一过目。要是清单还没清完就想提前收工,检查机制会直接把它拦回去接着干。外面还单独挂了个进程盯着,半夜撞上接口报错、卡死或者额度限制,过会儿能自己拉起来续跑。 最有意思的是跨工具无缝接班。因为任务清单、进度和踩坑记录全存在本地磁盘里,Claude Code 额度耗尽了,停掉,十分钟后开 Cursor 在同一个分支上直接接着上一棒往下写,一句话都不用重新解释。跑任务时还能切到独立的 git worktree 里隔离,不会弄脏你手头没提交的改动。 早上起来也不用去翻聊天记录,直接看生成的回执就行:每条任务交付了什么、试过又毙掉了哪些方案、跑了哪些检查、真实耗时和 token 消耗(直接读宿主记录,不是模型自己瞎估的)全列得清清楚楚。 项目 MIT 开源,核心基本是 Shell 和 PowerShell 写的,目前刚 600 多星。平时习惯把清技术债、补单测、修 flaky test 这类活丢给 Agent 后台慢慢磨的,挺值得顺手试试。 项目地址:github.com/orwa-mahmoud/nigh…
2
1
95
Really appreciate the write-up!
You let an agent work overnight, and wake up to receipts instead of a mess — Nightshift pairs long tasks with a watchman and per-item receipts, 525 stars and counting. It fixes the nobody's-watching problem: the agent hits a 500 error, crashes, or runs out of allowance at 3 a.m., and by morning you have half a job and have to re-explain where it stopped. Three layers: plan first in a plan room with a punch list and acceptance criteria; a watchman outside the session keeps the shift going and resumes it after interruptions; every item closes with its own receipt — what shipped, what was tried, which checks ran, and the token cost. Built for overnight refactors, dependency sweeps, and flaky-test repair; overkill for a two-line fix, where planning takes longer than the work. The punch list lives on disk, so you can switch between Claude Code, Codex, and Cursor mid-shift without re-explaining. It doesn't write code for you; it manages long jobs for you. Try one ready-made shift — flaky-test repair — for a night, and judge it by the morning receipt alone. What's the longest job you've ever handed an agent? #ClaudeCode #AIAgents github.com/orwa-mahmoud/nigh…
2
47
I couldn’t be happier to see Nightshift hit 500+ stars on GitHub! 🌙 Plan the work in the plan room, let your agent carry the punch list through, and review a receipt for every item. Claude Code, Codex, and Cursor. Thank you to everyone who gave it a try, starred it, or shared it with a friend. More to come! 🚀 github.com/orwa-mahmoud/nigh…
14
6
117
74,816
Really cool to see Nightshift getting featured by @the_osps! Always great to see an open-source side project reaching more developers. Thanks for sharing! 🙌
Nightshift keeps your coding agent working through a plan, then gives you reviewable results.
1
123
Amazing to see Nightshift reaching the Chinese developer community! 🇨🇳🌙 Really appreciate the detailed breakdown. Thanks for sharing! 🙌
🌙 程序员的夜班替身 Nightshift,睡前把任务清单交给 Claude Code,早上起来对着回执验收。 Nightshift 是个原生插件,Claude Code、Codex 和 Cursor 三家都能装,不用单独的应用和服务,也不用 API 密钥。 让 agent 长时间干活,最怕两件事:半夜卡在一个要你拍板的问题上干等,或者跑完一堆改动你根本不知道它干了啥。 Nightshift 把流程拆成三步:先在计划室里把任务清单、约定和检查写成文件,这一步项目代码只读、动不了;然后让 agent 按清单一项项做到底;碰到需要拍板的地方,它先按默认答案往下走,把理由记进「停车场」,等你回来再审。 每个任务都有一张回执:交付了什么、哪些尝试被否掉了、跑了哪些检查、花了多少时间和 token。插件里还内置了 32 个现成的班次可以直接挑。 人下班了,agent 还在上夜班。 GitHub:github.com/orwa-mahmoud/nigh…
4
15,401
Love seeing Nightshift reaching developers around the world! Thanks for sharing! 🙌
همه میگن ایجنت رو بذار شب کار کنه، صبح تحویل بگیر ولی ایجنتی که لیست نداره، صبح نصف کار رو ول کرده و رفته نایت شیفت به کرسر و کدکس یه شیفت میده که آخرش باید حساب پس بده قبل خواب لیست کار رو میدی، صبح به جای چت طولانی رسید هر آیتم رو میبینی چی تحویل داده، چی رو امتحان کرده و رد کرده، چقدر زمان و توکن برده گیت نمیگه کد درسته، فقط نمیذاره نصفه ولش کنه؛ چک صبح با خودته ۴۵۸ تا استار گرفته و ۳۲ تا شیفت آماده داره اینجا خونه اهل وایب کدینگه، ابزار تازه رو زودتر از بقیه میبینی و بقیه پیج ها یه قدم عقب ترن
2
1
14
73,880
Keeping agents running is just one of Nightshift’s capabilities. Thanks to Hubmesh for sharing!
Agents like to stop with half the list open. Nightshift sends them back. Plugin for Claude Code, Codex and Cursor. The punch list lives on disk, a gate blocks clock-out while items are open, and each item ends with a receipt: checks run, time, tokens. github.com/orwa-mahmoud/nigh…
1
5
113
Nightshift is open source and works with Codex, Claude Code, and Cursor. Contributions are welcome!. Ready-made shifts: If you have a workflow you regularly use to improve your projects, you can contribute it as a reusable shift. github.com/orwa-mahmoud/nigh… Evidence kinds: If there’s specific evidence you ask your coding agent to produce for certain tasks, like screenshots, test results, or performance comparisons, you can add it to the evidence catalog. github.com/orwa-mahmoud/nigh… Gate stacks & edge-case packs: If you have a set of checks you rely on for your tech stack, or scenarios you always want your agent to consider during planning, you can contribute them to the catalogs. github.com/orwa-mahmoud/nigh… Run receipts: If you’ve used Nightshift on a public project, you can share the results, what was completed, what was verified, and even what didn’t go as planned. github.com/orwa-mahmoud/nigh… ⭐ github.com/orwa-mahmoud/nigh…
Really happy to see Nightshift featured as one of the Top 10 Codex Plugins of 2026 by @HashgraphOnline! 🚀 Selected from 618 plugins! Nightshift helps you plan long-running tasks, keep coding agents working through them, and review the results with per-item receipts and evidence, without digging through every change. hol.org/blog/best-codex-plug…
8
1
23
96,274
Really happy to see Nightshift featured as one of the Top 10 Codex Plugins of 2026 by @HashgraphOnline! 🚀 Selected from 618 plugins! Nightshift helps you plan long-running tasks, keep coding agents working through them, and review the results with per-item receipts and evidence, without digging through every change. hol.org/blog/best-codex-plug…
2
1
5
98,700
Claude/Codex quota about to reset? Don’t let it go to waste. I built Nightshift for long-running coding agents, but found another useful way to use it: putting leftover quota to work before the reset. Nightshift comes with 32 ready-made shifts covering bug hunts, dead-code cleanup, tests, security, dependencies, performance, docs, product improvements, and more. Or set your own open-ended goal with a strict time limit and let the agent work on it. Wake up to reviewable results, verification evidence, and a record of what was tried and reverted. Give it a try and put that unused quota to work! And if you’ve got a workflow that works well for you and delivers useful results, contribute it to the shift catalog so everyone can benefit. Open source · MIT License GitHub: github.com/orwa-mahmoud/nigh… Website: nightshift.orwamahmoud.com
9
1
18
82,974
Before you leave a coding agent running: what is it allowed to change, how much effort can one item consume, and what will you actually review afterward? I built Nightshift around those questions. It’s an open-source plugin for Claude Code, Codex, and Cursor that gives long coding runs a persistent work contract: a punch list, stopping rules, and receipts you can inspect. The latest release adds two pieces I wanted as an engineer: • Plan Room. Investigate the code and work through the design before implementation. Keep decisions, rejected approaches, and the next step on disk. The planning conversation stays fenced from implementation until you explicitly leave planning. • Per-item budgets. Set soft and hard limits in working time, tokens, or both. A soft limit tells the agent to start finishing. A hard limit restricts subsequent tool calls to wrap-up: preserve WIP, leave a receipt, and mark unfinished work stopped before moving on. It doesn’t interrupt a response already in flight. Those additions sit on top of the core Nightshift workflow: • Choose the ending. A finite punch list runs toward completion. Repeated work runs in cycles until quitting time. • Review the work, not a marathon chat. Each item gets a receipt while the work is happening, with what changed, what was tried, verification, outputs, time, and token usage where the host provides it. • Recover the shift. A watchman outside the session can resume after a crash. On Claude Code and Codex, it can also recover a turn that stopped on an API error. If it cannot prove the session is dead, it stays down. • Continue without retelling the night. The punch list, decisions, snags, and receipts stay on disk. A later session—or another model—can continue from that record. No punch list ready? Start with a ready-made shift: discover and rank product opportunities, then build complete improvements until quitting time; give it your own feature objective; spend the night adding meaningful tests; hunt defects until a full pass is clean; or take a release candidate to a reviewable verdict. If you have a workflow that already works, contribute it as a shift so other people can run it, test it, and improve it. MIT licensed. Try Nightshift on a real issue, tell me what you’d change about the workflow, and star the repo if it’s useful. github.com/orwa-mahmoud/nigh…
10
1
13
39,255