DSH Hub

jermaine123123/agent-context-editor

agent-context-editor

ToolTerminal62 GitHub stars· updated 2026-10-01

Cross-agent plugin for manually excluding and editing AI conversation context, with search, filtering, hide/restore, undo, and original Session preservation.

Install

npx @deepseek-ai/dsh plugin --profile <profile> add ./context-editor-deepseek-harness-0.4.10.tgz

Restart `dsh web` after install. Bundle APIs can change during the developer preview.

README badge

agent-context-editor DSH Hub badge
[![DSH Hub](https://dshhub.dev/badge/agent-context-editor.svg)](https://dshhub.dev/plugins/agent-context-editor)

Paste this into your README. The star count updates with every catalog sync.

From the README

Excerpt from jermaine123123/agent-context-editor, cleaned of badges and images.

Agent Context Editor

Agent Context Editor is a cross-agent plugin for manually excluding, editing, and selectively compressing AI conversation context. It also supports searching, filtering, selecting, hiding, restoring, and undoing conversation changes while preserving the original Session.

It provides a consistent, reversible, and user-controlled context-management option across supported Agent hosts, complementing prompt steering and automatic context compaction rather than replacing them.

中文说明: README.zh-CN.md

Usage guidance

Long-running Agent sessions can suffer from context rot: as the context grows—especially when failed attempts, stale conclusions, and irrelevant Tool output accumulate—the model may become less reliable at finding and correctly applying important information even before the context window is full.

For most tasks, prompt steering and automatic context compaction are usually sufficient. Manual context exclusion and editing are optional controls for cases where the automatic result is not what you want, rather than something users need to manage continuously. They can be useful when compaction drops details worth preserving or when failed attempts and irrelevant history occupy too much of the context.

Prompt-cache impact: Excluding or editing context changes the model-input prefix. Cached prompt content after the earliest changed position may no longer be reusable, so changes near the end of a Session usually affect less cached context than changes near the beginning. Exact behavior depends on the Agent host, model, and provider. The original Session remains preserved.

Features

  • Manually exclude selected context and restore it later
  • Edit User messages and AI Answers with restore and undo
  • AI-condense selected context into an editable, reversible summary(selectively compressing)
  • Search conversations and navigate between matches
  • Filter User, AI, Reasoning, Answer, and Tool content
  • Select individual items, continuous ranges, or multiple items
  • Hide, restore, reset, and undo visual changes
  • Manage AI Reasoning and final Answers independently
  • Save changes without overwriting the original Session
  • Automatically use a Chinese or English interface

Supported hosts

FeaturePi TUIPi Desktop/RPCDeepSeek Harness
Search and filtersYesYesYes
Single, range, and batch selectionYesYesYes
Independent Reasoning and Answer unitsYesYesYes
Visual hide, restore, reset, and undoYesYesYes
Manual context exclusionYesNoYes
Manual User/Answer editingYesNoYes
AI condensation and replacementYesNoYes
Original Session preservedYesYesYes
Chinese and English UIYesYesYes

Manual context exclusion, text editing, and selected-context AI condensation are available in Pi TUI and DeepSeek Harness. Editable content is limited to plain-text User messages and complete unsigned Answers.

The separate Pi Context Desktop community build provides visual conversation management for Windows x64.

Install

Pi extension

…

Related plugins