Kenon
Context protocol and concurrency coordination layer for coding agents. Keep them working continuously without losing state, boundaries, and evidence.面向 Coding Agents 的上下文协议与并发协调层,让 Agent 在真实工程里持续工作而不失去状态、边界和证据。
Install in 2 minutes. Stop letting your Agents understand the repo from scratch every time.2 分钟装上,让你的 Agent 不再每次都从零理解仓库。
Agents don't just need code context.
They need state, boundaries, evidence, and continuity.
Agents 需要的远不止代码上下文。
它们更渴望状态、边界、证据与连续性。
Broad codebase scanning泛化的代码库检索
Information density dilutes core instructions.过高的信息密度容易导致模型偏离焦点。
Unbounded execution scope隐晦的执行边界
Agents may unintentionally process ignored or generated files.Agent 容易对配置、自动生成产物等非目标文件进行处理。
Late-stage validation滞后的验证回路
Errors cascade through the project before detection.错误往往在整个工作流执行完甚至提交后才暴露。
Scoped context loading按作用域精准加载
Load exactly what matters for the scenario.精确抽取对当前任务唯一且绝对相关的最小集合。
Explicit boundaries强制的硬性边界
Rigid exclusion rules enforced via grounds.通过内建的 grounds 原则强制阻止所有无效操作。
Narrowed impact收紧变更影响面
Verify downstream effects before committing.在代码弄脏之前,验证它的所有潜在下游涟漪。
One anchor, four faces.
The dimensional model of agent context.
Paths & Anchors路径与锚点
The foundational map of your repository. Defines where code lives, what it depends on, and the physical limits of an agent's workspace.代码仓库的基础地图。定义了代码位置、依赖关系以及 Agent 能够触碰的物理边界。
Sessions & Continuity. Track history beyond the chat prompt. Know what was tried and why.会话与连贯性。追踪提示词之外的全局历史,记住尝试过什么以及原因。
Verification & Findings. Grounding truth in execution.验证与发现。以真实执行结果为基础的事实对齐。
Decisions & Exclusions. Explicit goals and forbidden paths.决策与排除。明确的目标约束与禁止触碰的红线。
Dependency Analysis. Seeing the ripple effect.影响面分析。洞悉任何一次修改所引发的连锁反应。
A short loop for real work. 主导真实工作的极简循环。
The standard lifecycle for agent interaction. 规范化 Agent 交互的标准生命周期。
3-Minute Fast Track 三分钟快速上手
Do it yourself, or just hand the keys to your agent.亲自操作,或者把钥匙直接交给 Agent。
added 1 package in 1s
[kenon] Found 12 main modules, writing to .kenon/space/modules.jsonl
Read-only boundaries enforced for /shared/lib.
Prompt Drop-in注入提示词
Drop this straight into your agent. It will install and configure Kenon.直接粘贴这段提示词发给 Agent 进行原生初始化。
请先在这个仓库里安装并初始化 Kenon。 1. 运行 `git clone https://github.com/kenon-ai/kenon.git` 2. 运行 `kenon run onboard` 3. 运行 `kenon load --global --scenario edit` 4. 告诉我这个仓库最值得先看的模块和原因 5. 后续在变更前默认先经过 `check --diff`
Please install and initialize Kenon in this repository first. 1. Run `git clone https://github.com/kenon-ai/kenon.git` 2. Run `kenon run onboard` 3. Run `kenon load --global --scenario edit` 4. Tell me which module in this repository is most worth looking at first and why. 5. In future changes, always pass through `check --diff` by default.
kenon help --json.
人类可以通过简短路径起步,Agents 通过 kenon help --json 导航。
One protocol layer. Multiple runtimes. 单层协议,多重运行环境组合。
Why Kenon? 它解决了什么?
Stop letting your coding agents fly blind. Kenon prevents context drift, historical violations, and collision during parallel execution. 不再让你的 Agent 每次从零读代码。Kenon 防止上下文漂移、设计越界以及并发协作时的态势踩踏。
Lacking a stable project state entry point before starting work. 开工前缺少稳定的项目状态入口。
load returns a folded, minimal relevant context instead of a full dump.
load 返回折叠后的最小相关上下文,而不是整个 dump。
Excluded paths and discarded options are hard to reuse. 已排除路径难以复用。
Explicit excluded makes discarded paths and conditions retractable and reconsiderable.
excluded、grounds 与 reconsider_when 让排除路径及其生效条件可重审。
Changes easily cross historical design boundaries unguided. 变更极易无意越过项目的历史设计边界。
check --diff intercepts overstepping before commit.
check --diff 在合入前拦截并预警越界行为。
Verification scope balloons out of control after code changes. 代码改完后验证范围容易扩散且失控。
impact / verify shrinks scope & drives evidence-based acceptance.
impact / verify 缩小验证范围并以证据驱动流转。
Engineering semantics are scattered across sessions and prompts. 工程语义零散分布在各个会话记录和 prompt 补丁中。
save / finalize writes decisions & evidence back to the repo ledger.
save / finalize 把决策、边界和证据写回长青仓库。
Concurrent Agents clash over context, workspace, and the final say. 多个 Agent 并发时容易抢夺上下文、工作区与最终解释权。
Append-only truth + isolated execution = safe merge without collisions. Append-only 真源 + 隔离执行,并行追加与合流而不互相踩踏状态。
Agents rebuild state from scratch every round using logs and diffs. Agent 每轮都需自己从零去读取日志和 Diff 拼凑当前态势。
load returns minimal, highly consumable state summaries and next steps.
load 仅返回高度折叠后的态势摘要、异常分级与下一步明确导航。
Heavy tasks like batch audits and debugging lack controlled execution channels. 做批量审计、深层次联调等重操作时,缺乏系统级的受控通道。
invoke provides a controlled multi-backend environment.
invoke 提供多后端的系统级无缝跨平台受控执行层。
Every Agent runtime builds its own fractured ecosystem. 每一个 Agent runtime 平台都在试图自己搞一套孤立生态。
One native protocol connects to 6 major coding agent runtimes universally. 底层一套协议栈,原生无缝挂接打通 6 个主流的 Agent 运行环境。
Workflow Tools vs Kenon. Workflow 工具 与 Kenon 区别。
It's a repo-local semantic ledger beneath the workflow layer. Kenon 是一层嵌入在工作流之下的本地工程语义账本。