Ni

Nightshift – Rust CLI to Orchestrate GitHub Issue Resolution with Dags

Hacker News

Nightshift – Rust CLI to Orchestrate GitHub Issue Resolution with Dags

Hi everyone, I built Nightshift: An agent-agnostic rust-cli tool that orchestrates completion of GitHub Issues. When Openai and Anthropic released `/goal` a couple months ago, I was really excited to try it for long-horizon tasks. But after using it, it didn't blow me away and i did some digging and found a major architectural flaw when using it for complex multi-issue workflows: context rot. This isn't anything new, but given how openai positioned this feature to developers, i was let down by how they'd implemented context management. Though `goal/` is a step forward in long-horizon coding, it lacks task decomposition and proper handling of context - it uses a multi-tier approach that includes persistent context chaining (PCC) to memory, local vector embeddings for RAG, sliding windows, and compaction. In principle, giving claude/codex a directive of `/goal work towards closing my open issues on github` should work but this specific execution model hits a fatal wall - Even with massive context windows and RAG, llm reasoning quality degrades significantly beyond 150k~ tokens, the agent continues working with worsening performance and finally to prevent token exhaustion it uses compaction to summarize old logs. In practice, this causes compaction amnesia. The model is asked to summarize a massive blob of mixed-relevance information when its reasoning quality is already at its lowest. This compaction leads to forgetting critical constraints, makes way for hallucinations of past decisions, and introduces noise that makes the new context unreliable for long-horizon work. I made nightshift to handle the "outer-loop" and enforce strict session boundaries. So rather than getting one agent to work towards closing issues in a single session, nightshift isolates the work like this: 1. You write a PRD as a parent Github issue that defines what needs to be implemented and break it down into vertically sliced child issues with explicit kanban-style dependencies. 2. You run `nightshift --prd 1 --agent claude` 3. nightshift utilises `gh` cli to resolve the dependency graph and pick the next unblocked issue. 4. it syncs the repo, puts together essential context for just that issue and starts a new agent session piping the prd and issue context directly to stdin for the agent to pick up. 5. the agent is now responsible for the usual coding - new feature branch, implementation and testing, pr and self-review, and finally closes the issue. 6. nightshift finds the next unblocked issue after maintaining git hygiene and loops until all issues linked to the prd are resolved. Its a very simple orchestration, but its effective. The agent has no memory of previous runs and it doesn't need to - each task is isolated and gets a fresh agent session. The state is managed entirely through filesystem and git operations and you get determinstic scheduling, failure isolation, and robust autonomy. It currently supports claude-code, codex, cursor, antigravity, pi, opencode, and github-copilot and im working on adding support for more agents as this project grows. With all that being said, I'd like to close with saying that this doesn't replace or compete with our favourite coding tools - just extends their capabilities. Its an opinionated tool and not as flexible as `/goal` which is still better for repetitive tasks wherein number of iterations are discovered by actually doing the work and you cannot meaningfully plan this. It isn’t a better goal - just makes goal-driven coding work more disciplined. I think if you've already taken the time to plan everything ahead, implementation can be handed off to an agent as long as there is proper context management which keeps the costs and quality in control. I'd love to hear your thoughts on this and check out your experiments with long-horizon task orchestration. Maybe the way going forward is combining macro management with micro management? Thanks.

Share card

Actual performance

2points
3comments
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: mac, agents, agent · Missing: macos, apple, agentic
100%100% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: supports · Missing: reddit linkedin, podcasting, created
93%93% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: excited, filesystem, io · Missing: https docs, just released, exist
59%59% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: month, way · Missing: mobile apps, ios, personal
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
39%39% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: introduce · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

BountyHub
BountyHub66%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Monetizing GitHub issue resolution through bounties

Product Hunt+341Open Source
A
A CLI GitHub issue creator44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A CLI GitHub issue creator

Hacker News1
Hs
Hsctl, a CLI for HomeSeer in Rust43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Hsctl, a CLI for HomeSeer in Rust

Hacker News1
A
A simple Rust CLI for debugging transient errors47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A simple Rust CLI for debugging transient errors

Hacker News3
A
A faster fuck (thefuck CLI rewritten in Rust)58%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

A faster fuck (thefuck CLI rewritten in Rust)

Hacker News2
Di
Diem – a daily CLI todolist in rust39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Diem – a daily CLI todolist in rust

Hacker News1
Gr
GritQL, a Rust CLI for rewriting source code70%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GritQL, a Rust CLI for rewriting source code

Hacker News280
ResolveRent
ResolveRent7%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

AI Landlord-Tenant Dispute Resolution

Indie Hackers
Is
Issue Reward – Add reward to GitHub issue, incentivize others to fix it36%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Issue Reward – Add reward to GitHub issue, incentivize others to fix it

Hacker News2
Wa
WatchGames Issue 441%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

WatchGames Issue 4

Hacker News1