github / github/app

prompt injection uses a TON of tokens.

Open
#1,768 0 comments 0 reactions 0 assignees View on GitHub
Feedback os:macos
Dominant language
No language data
Stars
2.1k
Forks
153
PR merge metrics
No merged PRs in 30d

Description

prompt injection uses a TON of tokens. If I have plugins they are used globally, and as such they're injected into every prompt. It means if I'm using local models (or heck even just doing API cost) theres a ton of tokens I don't always need. We need a way to tie plugins to sessions, or specific workflows. A way to enable or disable them situationally instead of just globally. A local model can NEVER be used with this app unless it has minimum 64k context window, but 128k is better. Even with that, session length must be kept short so as not to overwhelm the models.

---
| Field | Value |
| --- | --- |
| App version | 1.0.17 |
| OS | macOS 26.5.2 |
| Theme | GitHub |
| Path | /chat |
| Tenure | Week 14 |

Contributor guide

Open the contributing guide

Research direction

Start at the /chat entry point and trace how plugins are included in prompts and how sessions or workflows are represented. Define how plugins can be enabled or disabled per session or workflow, then verify that unused plugins are excluded from prompts and that the chat still works with shorter model context windows.

Written by the indexing model from the issue text.

Assessment

Domain
ai, desktop
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.