認識 Shepherd:一個開源 Python 基底,讓元代理能分叉、重播及還原任何代理執行
重點摘要
Shepherd 是一個開源的 Python 執行基底,能將代理程式的執行過程記錄成類似 Git 的型別事件追蹤,讓元代理可以分叉、重播和還原任意的代理狀態。研究顯示,其分叉速度比 Docker 快 5 倍,重播時 prompt 快取重用率超過 95%,並在即時監督與反事實最佳化等應用中顯著提升效能。
Long-running agents accumulate state that no transcript captures.A coding agent at step 10 holds edited files, a running dev server, installed packages, and a warm prompt cache.
When it misreads a traceback and rewrites a file that was already correct, neither available recovery path is cheap: patching forward grows the context and the token bill, and restarting from step one re-pays every model and tool call while reproducing nothing exactly, because runs are non-deterministic.
Jumping back to step eight is the option engineers actually want, and it is the one existing runtimes cannot offer.Git versions files, not a live process or a cache.
Researchers at Northeastern University and Stanford University have released Shepherd, a Python runtime substrate that records an agent run as a Git-like trace of typed events, so any past state can be forked and replayed.
The research team reports forks 5× faster than Docker and over 95% prompt-cache reuse on replay.Is it deployable?Yes but it is available in early alpha and not ready for production.Shepherd is MIT-licensed and installable with pip install shepherd-ai from PyPI.It needs Python 3.11+.
OS-level grant enforcement runs on macOS (Seatbelt) and Linux (Landlock, in a privileged container).Industries: Software engineering and DevOps, AI infrastructure and agent-platform vendors, quantitative finance research, security tooling and offensive-security research, and data engineering.
The common trait is not the vertical.It is long-horizon agent runs against heavy sandbox state, where a failed run is expensive to redo.Applications: Live supervision of coding agents, with a meta-agent reverting a bad write before it commits.
Automated recovery from a wrong tool call, without a full restart.Branching exploration over candidate agent strategies, compared side by side.Rollout generation for reinforcement learning, forking at selected turns.
What Shepherd changes Shepherd is a Python substrate that records an agent’s execution as a first-class object.Every agent-environment interaction becomes a typed event in a Git-like execution trace.Core operations are formalized as functions and mechanized in Lean.
Each interaction is effectively a commit.Unlike Git, the commit covers the agent process and the filesystem together, copy-on-write.A branch therefore carries live state, not just files.Returning to an earlier point is a single fork from that commit.
The research team reports that Shepherd forks the agent process and its filesystem 5× faster than Docker.Because the prompt prefix through the branch point is unchanged, replay achieves over 95% prompt-cache reuse.
The documentation organizes the framework around four concepts: tasks, effects, runs, and workspaces.A task is a typed function whose body the model fills in, so the signature is the contract.An effect is every crossing of the task boundary, and it can be watched, answered, or refused.
A run is the durable record of those crossings.Permissions are declared in the signature.A May[GitRepo, ReadOnly] binding is compiled to that run’s writable roots and enforced at the native syscall jail.
Once a run is forkable, a meta-agent can sit on top Forking enables higher-order agents that observe a trace and intervene before a bad write commits.The research team demonstrates three applications: In runtime intervention, a live supervisor raised pair-coding pass rates on CooperBench from 28.
8% to 54.7%.In counterfactual meta-optimization, branching exploration beat baselines across four benchmarks by up to 11 points, while cutting wall-clock time by up to 58%.In Tree-RL training, forking rollouts at selected turns improved TerminalBench-2 from 34.2% to 39.4%.window.
addEventListener("message",function(e){ if(e.data&&e.data.mtpHeight){var f=document.getElementById("mtp-shep-frame"); if(f)f.style.height=e.data.mtpHeight+"px";} }); Key Takeaways Shepherd records each agent-environment interaction as a typed event in a Git-like, forkable trace.
A commit covers the agent process and filesystem together, so a rewind restores live state, not just files.Reported: 5× faster forks than Docker and over 95% prompt-cache reuse on replay.A live supervisor lifted CooperBench pair-coding pass rates from 28.8% to 54.7%.
Check out the Paper, GitHub, Experiments repo, Project page and PyPI.Also, feel free to follow us on Twitter and don’t forget to join our 150k+ML SubReddit and Subscribe to our Newsletter.Wait!are you on telegram?now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.?Connect with us The post Meet Shepherd: An Open-Source Python Substrate That Lets Meta-Agents Fork, Replay, and Revert Any Agent Run appeared first on MarkTechPost.
Related
相關文章

重磅!蘋果國行AI突然發佈,首次官宣牽手阿里,Mac用上千問了
蘋果官方更新Mac使用手冊,首次公開確認與阿里巴巴千問合作,將AI能力整合進國行Apple智能。用戶可透過Siri與寫作工具直接在Mac上使用千問的文本理解與生成功能,合作僅限中國大陸地區。

【數智周報】張一鳴:字節跳動“拒絕蒸餾”,不用別人輸出換榜單排名;三星發佈下一代AI存儲路線圖,展示zHBM和400層以上V10 NAND技術;閃迪第四財季營收超預期增長372%,數據中心收入增近13倍,擬豪擲140億回購
字節跳動創辦人張一鳴在內部會議強調公司堅持長期主義,拒絕蒸餾他人模型以換取榜單排名。三星發佈下一代AI存儲路線圖,展示zHBM與400層以上V10 NAND技術。閃迪第四財季營收年增372%,數據中心收入成長近13倍,並計劃回購140億美元股票。
Pokee AI 推出 Pokee-Isaac 28B:百萬 Token 上下文長度的代理模型,專為客戶內部部署設計
長時程代理在累積上下文的速度上,遠快於解決任務的效率。每項工具輸出、觀察結果及中間推理步驟都會保留在上下文視窗中,而兩個關鍵能力——保留上下文並在其中保持連貫——目前幾乎僅能透過雲端端點實現。這排除了受監管行業、公共部門機構及裝置端應用,因為這些場景的資料完全不允許離開內部邊界。Pokee AI 發布了 Pokee-Isaac 28B,這是一款擁有 280 億參數、僅支援文字的基礎模型,具備 1000 萬 Token 的上下文長度,專為在客戶內部邊界內運行而設計。Pokee 研究團隊聲稱,在 RULER 基準測試中,該模型在 1000 萬 Token 長度下達到 93.3% 的準確率,與代理基準測試中最具成本效益的雲端基準模型表現持平,且可單靠一張 GPU 完成部署。

專為 AI 智能體打造的雲端瀏覽器,Cloudflare 發佈 Kitesurf
Cloudflare 推出專為 AI 智能體打造的雲端瀏覽器 Kitesurf,運行於 Cloudflare Workers 平台,支援瀏覽網站與填寫表單。該瀏覽器較 Chromium 消耗更少計算資源,能降低運作成本,目前處於測試階段。

都學壞了!奧特曼親手封鎖最強模型Astra,重蹈Mythos覆轍
OpenAI 執行長奧特曼宣布延後發布最強模型 Astra,原因是內部評估顯示其網路安全能力可能達到「關鍵」級別,需進一步確保安全。此舉被認為與先前 Anthropic 推遲 Mythos 模型發布的策略類似,引發外界質疑是否為恐懼行銷。

微軟預告 Win10/Win11 經典版 Outlook 更新:基於上下文 AI 解釋用戶選中文本
首頁 > 智能時代>人工智能 微軟預告 Win10/Win11 經典版 Outlook 更新:基於上下文 AI 解釋用戶選中文本 2026/8/8 11:39:29 來源:IT之家 作者:故淵 責編:故淵 評論: IT之家 8 月 8 日消息,科技媒體 Windows Latest 昨日(8 月 7 日)發佈博文,報道稱面向 Windows 10、Windows 11 經典版 Outlook 應用,微軟開始推送名為 Explain This 的 Copilot AI 功能。功能方面,用戶打開郵件後,只需選中任意文本,Copilot 就會結合整封郵件的內容,給出貼切的上下文解釋。微軟在更新說明裡寫道,這項改進讓用戶對 Copilot 有更高的控制權,可以決定其在何時、如何協助完成任務,從而在工作流中整合生產力、清晰度和決策能力。時間表方面,微軟預計經典版 Outlook 的 Explain This 功能會在 9 月底前完成推送,大多數用戶會在 9 月初看到它。 投訴水文 我要糾錯 下載IT之家APP,簽到賺金幣兌豪禮 相關文章關鍵詞:Outlook,AI,微軟微軟 Win10/Win11 新版 Outlook 收件箱塞入 Copilot,AI 摘要過去 8 小時郵件Win10/Win11 新版 Outlook 本月將集成 Planner 任務管理,微軟希望藉此推動經典版用戶遷移微軟承認 Outlook 存在嚴重 Bug,郵件中的圖片無法正常顯示微軟修復 Outlook 奇怪 Bug:打開 Office 文檔顯示空白或“已損壞”微軟增強 Outlook AI 功能:自主梳理收件箱、調整日程安排等部分微軟 Outlook 365 用戶反饋安裝 2603 更新後出現“幽靈滾動”