Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

context usage in-chat notifications

未关闭
#596 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 2 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
clojure

调研方向

The issue names no files or tests; start by locating how ECA handles configuration and evaluates context usage after each turn. Compare that flow with the proposed behavior: threshold messages should be appended once per threshold, reset after compaction, and remain disabled unless configured.

由索引模型根据 Issue 内容生成。

描述

What

It could be useful, if ECA could announce into the chat session itself, that the context is "getting closed to filled", allowing the current agentic flow to potentially react on that. For example, agentic task can be prompted in that way, that `if you see that we're getting close to context compaction, pause your current work and store all the precious task details into your task.md file, so it doesn't get lost on compaction".

How - configuration (very approximate, just for the general idea)

{
  "contextNotifications": {
    "thresholds": [70, 85],
    "template": "[eca] Context at {percent}% ({used}/{limit} tokens, compaction at {compactAt}%)."
  }
}

How - approximate behavior:

  • ECA evaluates the context usage after each turn.
  • When the usage crosses a threshold for the first time, ECA appends one message to the conversation.
  • ECA appends the message. It does not rewrite earlier content. Prompt caching stays valid.
  • ECA fires each threshold one time only per chat session. After a compaction, the thresholds reset.
  • Without a template, ECA appends a neutral status line only.
  • Without contextNotifications, the behavior does not change. The feature is off by default.

Backstory and discussion (slack) :

https://clojurians.slack.com/archives/C093426FPUG/p1789028953654579

Notes from Akiz:

Yeah, the template should be probably handled like others. I guess we can go just with one message here. But if we want to repeat when it changes from 90% to 95% for example then I would go with the repeated message that is not part of the history (which shouldn't invalidate the cache). Both is possible. Maybe the simpler approach is enough.

Maybe wait with any code analysis until memory ships as it sounds like something it might profit from some new abstractions. I am also wondering if models will try to call eca_compact when they will see this threshold

主要语言
Clojure
星标
1k
派生
82
平均合并
3 天 39 分钟
30 天内合并 PR
15

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

editor-code-assistant/eca 的其他 Issue

查看 editor-code-assistant/eca 的全部 Issue

相似的 Issue

更多 Clojure Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。