jermaine123123/agent-context-editor
agent-context-editor
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.tgzRestart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](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
| Feature | Pi TUI | Pi Desktop/RPC | DeepSeek Harness |
|---|---|---|---|
| Search and filters | Yes | Yes | Yes |
| Single, range, and batch selection | Yes | Yes | Yes |
| Independent Reasoning and Answer units | Yes | Yes | Yes |
| Visual hide, restore, reset, and undo | Yes | Yes | Yes |
| Manual context exclusion | Yes | No | Yes |
| Manual User/Answer editing | Yes | No | Yes |
| AI condensation and replacement | Yes | No | Yes |
| Original Session preserved | Yes | Yes | Yes |
| Chinese and English UI | Yes | Yes | Yes |
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
…


