Cross-agent plugin for manually excluding and editing AI conversation context, with search, filtering, hide/restore, undo, and original Session preservation.
# Add to your Claude Code skills
git clone https://github.com/jermaine123123/agent-context-editorGuides for using ai agents skills like agent-context-editor.
agent-context-editor is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by jermaine123123. Cross-agent plugin for manually excluding and editing AI conversation context, with search, filtering, hide/restore, undo, and original Session preservation. It has 51 GitHub stars.
agent-context-editor's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/jermaine123123/agent-context-editor" and add it to your Claude Code skills directory (see the Installation section above).
agent-context-editor is primarily written in TypeScript. It is open-source under jermaine123123 on GitHub, so you can review or fork the full source.
Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh agent-context-editor against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
⚠️ Third-Party Software Notice
This skill is third-party open-source software developed and hosted independently on GitHub. SkillsLLM is an informational directory and does not control or maintain the underlying repository.
Any security checks, ratings, or warnings displayed by SkillsLLM are automated and limited in scope. They do not constitute a security certification or guarantee that the software is safe, error-free, or free from malicious code, vulnerabilities, compromised dependencies, or prompt-injection risks.
Review the source code, permissions, dependencies, and configuration before installing or running any third-party skill. Use is at your own risk. To the maximum extent permitted by applicable law, SkillsLLM is not liable for losses arising from third-party software.
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Agent Context Editor is a cross-agent plugin for manually excluding and editing 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
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.
| 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 |
| Original Session preserved | Yes | Yes | Yes |
| Chinese and English UI | Yes | Yes | Yes |
Manual context exclusion and text editing are currently 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.
Download pi-context-editor-0.5.0.tgz from the release assets. Pi 0.84.2 installs a local package directory rather than a .tgz file. Extract the archive so that package.json is at the package directory root, then run:
pi install ./pi-context-editor-0.5.0
When working directly from this repository:
pi install ./adapters/pi-extension
For Pi Desktop registration, run adapters/pi-extension/scripts/install-desktop.ps1 with PowerShell. The script accepts -PiPath and -DesktopExePath for non-standard installations. Fully restart Pi Desktop after installation.
Download context-editor-deepseek-harness-0.3.0.tgz from the release assets and install it with the official Harness CLI:
dsh plugin --profile <profile> add ./context-editor-deepseek-harness-0.3.0.tgz
The adapter targets DeepSeek Harness Developer Preview commit 141eb6fef83422698aef7a981029e843e8161534 and @deepseek-ai/dsh@0.1.0-rc.8. See COMPATIBILITY.md for the tested host boundary.
Enter /ctx to open the full-screen Context Editor. The primary controls are x for context exclusion or restoration, e for editing, E for restoring original text, h and r for visual hiding and restoration, and s for switching the search scope. Press ? for the complete shortcut reference.
Enter /ctx to open the native Context Editor dialogs. This path supports search, filters, selection, and visual hide/restore operations. It does not currently support model-context exclusion or User/Answer editing.
Open the Context Editor tab beside the normal Chat view. The tab manages the same Session and provides context exclusion, User/Answer editing, search, filters, selection, visual hiding, restoration, and undo.
Agent Context Editor reads the existing Session and presents User, AI, Reasoning, Answer, and Tool content in an independent management view. Reasoning and final Answers from the same AI turn remain separately manageable, while related Tool Calls and Tool Results remain paired.
Visual changes and model-context changes are stored separately. Visual hiding only changes the Context Editor view. Confirmed context exclusion and supported text edits change the derived input sent to the model without overwriting the original Session or the host's main chat timeline.
The current stable project release is v0.3.0:
pi-context-editor@0.5.0context-editor-deepseek-harness@0.3.0context-editor-v0.1.4See the v0.3.0 release notes for detailed changes and verification results.
Requirements: Node.js 22.19 or later. Node 24 was used for the recorded local acceptance run.
npm ci
npm run verify
npm run verify builds both adapters, runs TypeScript checks and automated tests, scans the packages, and verifies the release archives.
Contributions and host compatibility reports are welcome. See CONTRIBUTING.md. Please report security issues according to SECURITY.md.
agent-context-editor/
|-- adapters/
| |-- pi-extension/ Pi /ctx adapter
| `-- deepseek-harness/ DeepSeek Harness adapter
|-- packages/context-editor-core/
|-- docs/
|-- assets/
|-- scripts/
`-- test/
pi-app/ remains a separate Git repository and is not included in this repository.
Agent Context Editor is an independent community project. It is not affiliated with, endorsed by, or sponsored by Pi, DeepSeek, or their maintainers.
MIT. See LICENSE.