SShortSingh.
Back to feed

Developer builds Shadow-Branch, a background daemon that tests and patches code before commit

0
·2 views

A developer has created Shadow-Branch Engine, an asynchronous background tool that aims to move AI coding assistance beyond reactive workflows. The daemon detects unfinished code, mounts a parallel Git worktree that reuses existing dependencies through hardlinks, and avoids costly reinstalls. It uses AST parsing to pass only the relevant code context to a local AI model, which the author says cuts token usage by over 90 percent. Generated tests and patches run inside network-isolated Docker containers, and failing patches feed back into an automated healing loop. The project is open source on GitHub and seeks contributors to add Python and Rust language server support.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Why two browser tabs silently overwrote each other, and how version columns and ETags fix it

A developer testing an admin panel found that editing the same product in two tabs caused one change to vanish with no error or log entry. The cause is a lost update: each form saved every field, including stale values, through the ORM's default last-write-wins behavior. Database transactions cannot prevent this when the read and the save happen in separate HTTP requests, since each transaction is individually valid. The proposed fix is optimistic concurrency control, using an integer version column checked in the UPDATE's WHERE clause and exposed to clients through ETag and If-Match headers. A mismatch returns a 412 or 428 response, letting the user review changes and decide whether to reload or overwrite. Counters and inventory can skip this approach by doing atomic arithmetic in SQL.

0
ProgrammingDEV Community ·

Stack3 Security Uses TigerGraph to Link Repo, Package, and Wallet Threats

Stack3 Security is a Web3 security platform built at Hacker House Goa for the TigerGraph Open Innovation track. It aims to connect threat signals that are usually investigated separately, such as malicious repositories, suspicious packages, phishing websites, and risky wallet requests. A VS Code extension clones and scans public GitHub repositories in quarantine without executing their code, checking for auto-run configurations, exposed secrets, and risky npm dependencies. A Chrome extension inspects suspicious websites and intercepts wallet requests before they reach MetaMask, while degrading gracefully if unavailable. A central dashboard offers scanning, authentication, and a one-hop threat graph view that shows connected threat intelligence.

0
ProgrammingDEV Community ·

Keep etcd peer and client certificate trust separate before scaling a cluster

etcd is a durable control store used by many Kubernetes and platform deployments, and its peer and client connections access the same state. Because a certificate authenticating a cluster member can act with more authority than an ordinary client certificate, treating them as one broad TLS population weakens the cluster boundary. The guidance recommends separating them through distinct certificate profiles, subject alternative names, issuance policies, and allowed peer names, even when a single CA is used. Operators should verify TLS in both directions on every member, map each client certificate to a specific workload with least-privilege access, and test that peer and client certificates are rejected at the wrong endpoints.

0
ProgrammingDEV Community ·

AutoDAgger lets compact robot policies learn from a teacher with far less data

Researchers introduced AutoDAgger, a method that recovers teacher trajectories during a student policy's own rollouts instead of in a separate data-collection stage. It collects recovery data more than twice as fast as the human-monitored HG-DAgger and removes the need for a person to supervise the process. Using an autonomous reward model to trigger teacher takeovers, a student policy rose from a baseline score of 27.8 to 63.9 after 30 episodes and 77.8 after 90 episodes. The TILDE approach reportedly outperformed all evaluated baselines on three manipulation tasks, though the study tested only those tasks and assumed a reliable reward signal. Its robustness under sparse teacher interventions or noisy rewards remains unresolved.