frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: Nightshift – Rust CLI to Orchestrate GitHub Issue Resolution with Dags

https://github.com/Shaurya-Sethi/nightshift
2•shaurya-sethi•41m ago
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.

Comments

zish•24m ago
I came across, nightshift when I was issues with /goals and tbh nightshift takes the edge because so much optimized and gives better results almost 70% percent of the times
adyut•12m ago
hey shaurya, how is this different from claude dynamic workflows?

I build Garmin watch faces with AI agents

https://myday24.com/blog/how-i-build-garmin-watch-faces-with-ai-agents/
1•tomasslavicek•23s ago•0 comments

Ask HN: Did you ever worship your career or identity?

1•general_reveal•34s ago•0 comments

Population ethics is a big deal, which is why I made this population ethics quiz

https://mdickens.me/2026/08/31/population_ethics_quiz/
1•surprisetalk•1m ago•0 comments

Your Agent Speaks MCP. Give It a Computer.

https://fly.io/blog/sprites-mcp/
1•torutofu•1m ago•0 comments

Kagi Translate Is Back

https://blog.kagi.com/translate-is-back
1•twapi•2m ago•0 comments

Opinion: We have started losing control of AI. It's time to shut it down

https://www.theguardian.com/commentisfree/2026/sep/10/ai-control-sci-fi
2•drayfield•2m ago•0 comments

Tell HN: OpenAI keeps re-enabling the 'allow training' setting

4•jacquesm•3m ago•0 comments

Rust Is Tier-1 Language at Microsoft

https://rustfoundation.org/media/guest-post-rust-is-tier-1-language-at-microsoft/
3•mmastrac•4m ago•0 comments

Go 1.27 Release Notes

https://go.dev/doc/go1.27
2•nkjoep•4m ago•0 comments

LRU is harder to beat than the KV-cache papers suggest

https://github.com/gauravapiscean/agentic-kv-cache
1•gauravapiscean•4m ago•0 comments

Hiring Staff Machine Learning Engineer

https://careers.elcompanies.com/careers/job/1168273194779
1•jfeola•4m ago•0 comments

The Same Matching Engine Measured 130k/s and 106/s

https://www.ovasylenko.com/blog/matching-engine-performance-benchmarking
1•_alphageek•6m ago•1 comments

Show HN: JavaScript grid and pivot library built for coding agents

2•yonl•7m ago•0 comments

Grafista: Graphic design platform fighting AI slop

https://grafista.io/
1•GiorgosGennaris•7m ago•0 comments

Before NTP there were Time and Daytime

https://www.jeffgeerling.com/blog/2026/rfc-867-868-time/
1•corvad•9m ago•0 comments

Aubusson Weaves Tolkien

https://www.cite-tapisserie.fr/en/le-musee/les-aventures-tissees/aubusson-tisse-tolkien
2•nfeutry•10m ago•0 comments

Some (mostly historical) issues with the Unix load average

https://utcc.utoronto.ca/~cks/space/blog/unix/LoadAverageHistoricalIssues
1•signa11•11m ago•0 comments

I ported a VB6 game to Flutter and generated all 14 art themes

https://apps.apple.com/cz/app/kirian/id6774868017
1•lioil•11m ago•0 comments

Show HN: Implementing Embedding Gemma in PyTorch

https://www.youtube.com/watch?v=rxOUmSJTQBk
2•prasoon21•13m ago•0 comments

OpenAI Gives US Agencies 50% Off Models, Ending $1 per Year Deal

https://www.bloomberg.com/news/articles/2026-09-10/openai-gives-us-agencies-50-off-models-ending-...
1•helsinkiandrew•14m ago•1 comments

Privacy on Bitcoin: what works and what doesn't

https://www.learnbitcoin.com/rabbit-hole/bitcoin-privacy
1•granya•16m ago•0 comments

iTerm 2 Companion App

https://iterm2.com/companion-app.html
1•fredley•18m ago•0 comments

Comparing performance of different offline first solutions

https://github.com/bkniffler/offline-sync-bench
2•quambo•19m ago•0 comments

AI Doomlord Jacob Coxon's Media Tour Has Begun

https://gizmodo.com/ai-doomlord-jacob-coxons-media-tour-has-begun-2000809720
8•jjj123•21m ago•1 comments

Transcompilation Express

https://blog.gingerbeardman.com/2026/08/31/transcompilation-express/
1•surprisetalk•22m ago•0 comments

1.1.1.1 now supports post-quantum DNSSEC, all 2,420 bytes of it

https://blog.cloudflare.com/post-quantum-dnssec-1111/
4•HieronymusBosch•23m ago•0 comments

Guiding AI writing to make technical text easier to review

https://a11.to/blog/claudisms
1•helenapankov•24m ago•2 comments

US Army places $11M bet on Austin-based GPS alternative Tern

https://techcrunch.com/2026/09/10/us-army-places-11m-bet-on-austin-based-gps-alternative-tern/
3•gemanor•24m ago•0 comments

What is the correct way to become a DevOps eng?

1•edviik•25m ago•1 comments

Show HN: AI Brand Visibility for Free Forever

https://app.geosurge.ai/login
3•jonsmostovojs•26m ago•6 comments