deepagents-code==0.1.52

langchain-ai/deepagentsdeepagents-code==0.1.52Aug 4, 2026by github-actions[bot]

AI Summary

Hooks v2 is now generally available with expanded plugin support and configuration options. The update also adds a tri-state environment variable for onboarding and refreshes the price catalog hourly in the background.

Key Highlights

  • Hooks v2 is now generally available, with support for loading hooks from installed plugins.
  • Auto approval classifier configuration now supports selecting the classifier model and setting a review timeout.
  • HITL rejection reasons are now framed for the model.
  • Added a tri-state `DEEPAGENTS_CODE_ONBOARDING` environment variable.
  • The price catalog now refreshes hourly in the background.

New Features

  • Hooks v2 is now generally available, with support for loading hooks from installed plugins.
  • Auto approval classifier configuration now supports selecting the classifier model and setting a review timeout.
  • HITL rejection reasons are now framed for the model, and the approval menu makes reject-with-feedback easier to discover.
  • Added a tri-state `DEEPAGENTS_CODE_ONBOARDING` environment variable.
  • The price catalog now refreshes hourly in the background.
  • Updated recommendations to include DeepSeek V4 Flash 0731.

Full Release Notes

### Features

- Hooks v2 is now generally available, with support for loading hooks from installed plugins. ([#5307](https://github.com/langchain-ai/deepagents/issues/5307), [#5198](https://github.com/langchain-ai/deepagents/issues/5198))
- Auto approval classifier configuration now supports selecting the classifier model and setting a review timeout. ([#5205](https://github.com/langchain-ai/deepagents/issues/5205), [#5302](https://github.com/langchain-ai/deepagents/issues/5302))
- HITL rejection reasons are now framed for the model, and the approval menu makes reject-with-feedback easier to discover. ([#5259](https://github.com/langchain-ai/deepagents/issues/5259), [#5260](https://github.com/langchain-ai/deepagents/issues/5260))
- Added a tri-state `DEEPAGENTS_CODE_ONBOARDING` environment variable. ([#5301](https://github.com/langchain-ai/deepagents/issues/5301))
- The `/model` footer Ctrl+N hint now follows the current display mode. ([#5247](https://github.com/langchain-ai/deepagents/issues/5247))
- The price catalog now refreshes hourly in the background. ([#5264](https://github.com/langchain-ai/deepagents/issues/5264))
- Updated recommendations to include DeepSeek V4 Flash 0731. ([#5244](https://github.com/langchain-ai/deepagents/issues/5244))

### Bug Fixes

- Fixed several Hooks v2 lifecycle issues: session-end teardown is now bounded, hooks refresh after cwd switches, malformed hook resumes are handled, hook stops surface without agent errors, and unused `SessionEndCause` members were removed. ([#5248](https://github.com/langchain-ai/deepagents/issues/5248), [#5249](https://github.com/langchain-ai/deepagents/issues/5249), [#5233](https://github.com/langchain-ai/deepagents/issues/5233), [#5276](https://github.com/langchain-ai/deepagents/issues/5276), [#5240](https://github.com/langchain-ai/deepagents/issues/5240))
- `PreCompact` now fires before auto-compaction. ([#5277](https://github.com/langchain-ai/deepagents/issues/5277))

---

Internal maintainers: @aolsenjazz, @johannes117, @mdrxy

Released by: @johannes117

<details>
<summary>Git log since deepagents-code==0.1.51</summary>

This commit history includes changes to this package. Commits are listed newest first.

- [`b428644`](https://github.com/langchain-ai/deepagents/commit/b428644d31dd6b416fe0e2abb5338610a2553d1a) release(deepagents-code): 0.1.52 (#5228)
- [`28a7d5b`](https://github.com/langchain-ai/deepagents/commit/28a7d5bdd3f78044b4f3612f71e13ce38ef47bf4) fix(code): bound Hooks v2 session-end teardown (#5248)
- [`4edebde`](https://github.com/langchain-ai/deepagents/commit/4edebdedd61d6793f0f7b666f5ee26b414576805) feat(code): make Hooks v2 generally available (#5307)
- [`7bd977b`](https://github.com/langchain-ai/deepagents/commit/7bd977bc9d4c11aad90dbef7872d83c2affd584e) feat(code): configurable Auto classifier review timeout (#5302)
- [`6f48dd5`](https://github.com/langchain-ai/deepagents/commit/6f48dd59efd27c3476cf32cb8c965155c59993a5) fix(code): refresh hooks after cwd switches (#5249)
- [`553a030`](https://github.com/langchain-ai/deepagents/commit/553a030a5b959ac8bb17d52447f915397f910f03) release(deepagents): 0.7.4 (#5305)
- [`43293e9`](https://github.com/langchain-ai/deepagents/commit/43293e95cb072c8b92a734eca8c0292e45d279e8) feat(code): tri-state `DEEPAGENTS_CODE_ONBOARDING` env var (#5301)
- [`3012bac`](https://github.com/langchain-ai/deepagents/commit/3012bac6608b8abd0aca4c00c1f16cd2698676ae) style(code): explain why to use `/offload` in the startup tip (#5303)
- [`f4cc516`](https://github.com/langchain-ai/deepagents/commit/f4cc5160c75eb44e8ddee8b049048690ea0f8616) fix(code): fire `PreCompact` before auto-compaction (#5277)
- [`ed0e3e2`](https://github.com/langchain-ai/deepagents/commit/ed0e3e236eea691d7c8c586ac1f9c82eba352b1a) fix(code): surface hook stops without agent errors (#5276)
- [`ee1e0f5`](https://github.com/langchain-ai/deepagents/commit/ee1e0f50bfaff3690c6164147cdf22c94c289768) fix(code): remove undispatched `SessionEndCause` members (#5240)
- [`1d3feb1`](https://github.com/langchain-ai/deepagents/commit/1d3feb1275a875f84f96f04a07e47cb6ec974b78) feat(code): selectable model for the Auto approval classifier (#5205)
- [`2454afa`](https://github.com/langchain-ai/deepagents/commit/2454afa58521f9dddb64bbde364a475694f45f4d) feat(code): refresh price catalog hourly in the background (#5264)
- [`b1e3240`](https://github.com/langchain-ai/deepagents/commit/b1e324038771c55460793e2e35d9d9ce5ea7b3f5) fix(code): make reject-with-feedback discoverable in approval menu (#5260)
- [`f60951e`](https://github.com/langchain-ai/deepagents/commit/f60951e3f5e4d7e57d6379a4bbc64259bdfdb884) release(deepagents): 0.7.3 (#5251)
- [`db70043`](https://github.com/langchain-ai/deepagents/commit/db70043993b73b149c3f6428c1d2249447fa2e28) chore(code): prune superseded entries from `_RECOMMENDED_MODELS` (#5263)
- [`89c814b`](https://github.com/langchain-ai/deepagents/commit/89c814b29249b44a8a6122f6c359db3601a6802e) feat(code): frame HITL rejection reasons for the model (#5259)
- [`bc49ffb`](https://github.com/langchain-ai/deepagents/commit/bc49ffbe76522e986fcc0ad9991c9b503f759ed3) chore(code): bump genai-prices minimum to 0.1.1 (#5256)
- [`a7e3566`](https://github.com/langchain-ai/deepagents/commit/a7e3566f908f3943780a7bee8fac74b1fb4c6875) style(code): status bar model label flush with the right edge (#5254)
- [`cf87266`](https://github.com/langchain-ai/deepagents/commit/cf87266105ee6ed79e56d72dea58c1c5f431228f) feat(code): `/model` footer Ctrl+N hint follows display mode (#5247)
- [`bd562c8`](https://github.com/langchain-ai/deepagents/commit/bd562c879ad3a8eec0a930bba23ef57fee163c05) fix(code): handle malformed hook resumes (#5233)
- [`fbe4ec8`](https://github.com/langchain-ai/deepagents/commit/fbe4ec8046c35313c6c05a986779111d84fe2536) feat(code): recommend DeepSeek V4 Flash 0731 (#5244)
- [`0063721`](https://github.com/langchain-ai/deepagents/commit/00637212084c7fe4c12993c95ab559b92aaa4fef) release(deepagents): 0.7.2 (#5230)
- [`0828b02`](https://github.com/langchain-ai/deepagents/commit/0828b02d30c7b5557ecfce7c4a4039e0d9c4c571) feat(code): load hooks from installed plugins (#5198)

</details>