Kenon

The local context layer for coding agents.面向 Coding Agents 的本地项目上下文层。

Agent-first repo-local semantic ledger and context protocol for coding agents, with a deterministic zero-dependency core.面向 Coding Agents 的 Agent-First、Repo-Local 语义台账与上下文协议层,以确定性的零依赖主链运行。

Deps
Time
dns SPACE
Intent
Quality

Agents don't just need code context.
They need state, boundaries, evidence, and continuity.
Agents 需要的远不止代码上下文。
它们更渴望状态、边界、证据与连续性。

Stateless Context无状态的上下文交互
radio_button_unchecked

Broad codebase scanning泛化的代码库检索

Information density dilutes core instructions.过高的信息密度容易导致模型偏离焦点。

radio_button_unchecked

Unbounded execution scope隐晦的执行边界

Agents may unintentionally process ignored or generated files.Agent 容易对配置、自动生成产物等非目标文件进行处理。

radio_button_unchecked

Late-stage validation滞后的验证回路

Errors cascade through the project before detection.错误往往在整个工作流执行完甚至提交后才暴露。

Kenon ProtocolKenon 协议模式
check_circle

Scoped context loading按作用域精准加载

Load exactly what matters for the scenario.精确抽取对当前任务唯一且绝对相关的最小集合。

check_circle

Explicit boundaries强制的硬性边界

Rigid exclusion rules enforced via grounds.通过内建的 grounds 原则强制阻止所有无效操作。

check_circle

Narrowed impact收紧变更影响面

Verify downstream effects before committing.在代码弄脏之前,验证它的所有潜在下游涟漪。

One anchor, four faces.

The dimensional model of agent context.

Space空间(Space)

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 能够触碰的物理边界。

.kenon/space/modules.jsonl scan-baseline.json
Time时间(Time)

Sessions & Continuity. Track history beyond the chat prompt. Know what was tried and why.会话与连贯性。追踪提示词之外的全局历史,记住尝试过什么以及原因。

history
Quality质量

Verification & Findings. Grounding truth in execution.验证与发现。以真实执行结果为基础的事实对齐。

verified
Intent意图

Decisions & Exclusions. Explicit goals and forbidden paths.决策与排除。明确的目标约束与禁止触碰的红线。

track_changes
Dependencies依赖图

Dependency Analysis. Seeing the ripple effect.影响面分析。洞悉任何一次修改所引发的连锁反应。

account_tree

A short loop for real work. 主导真实工作的极简循环。

The standard lifecycle for agent interaction. 规范化 Agent 交互的标准生命周期。

fact_check
check
hub
impact
all_inclusive
download
load
verified
verify
save
save
done_all
finalize

3-Minute Fast Track 三分钟快速上手

Do it yourself, or just hand the keys to your agent.亲自操作,或者把钥匙直接交给 Agent。

Do It Yourself手动集成
bash — 80x24
$ npm install -g @kenon-ai/cli
+ @kenon-ai/cli@1.2.4
added 42 packages in 2s
$ kenon run onboard
[kenon] Indexing workspace...
[kenon] Found 12 main modules, writing to .kenon/space/modules.jsonl
$ kenon load auth-service --scenario edit
Context loaded: 4 files primary, 12 secondary dependencies.
Read-only boundaries enforced for /shared/lib.
$ kenon check --diff
_
Delegate To Agent委托代理

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.
Humans can start with the short path. Agents navigate via kenon help --json. 人类可以通过简短路径起步,Agents 通过 kenon help --json 导航。
Apache-2.0

One protocol layer. Multiple runtimes. 单层协议,多重运行环境组合。

Claude Code Cursor Codex GitHub Copilot OpenCode Pi
Atomon (Not yet open sourced) (暂未开源)

Not a Workflow Tool. 并非另一款 Workflow 工具。

Kenon is the infra beneath the automation. Kenon 是构建在自动化之下的核心层基础设施。

Primary Purpose 核心目标
Workflow Tools Organize tasks & specs 组织任务与需求规范
Kenon Local protocol layer 本地标准协议层
Context Logic 上下文逻辑
Workflow Tools RAG or full-repo context RAG 向量检索或代码片段
Kenon Scoped context loading 按作用域精准组装与装载
Safety 安全机制
Workflow Tools Post-execution review 基于版本控制的事后 Review
Kenon Explicit boundaries & grounds 强制的读写隔离与不可改白名单
Memory 记忆流转
Workflow Tools Session-bound (cleared over time) 依附于对话引擎的会话生命周期
Kenon Written back to repo 结构化回写至代码库长青存储
Core Loop 核心引擎
Workflow Tools LLM-driven task orchestration 由大模型主导任务调度与统筹
Kenon Deterministic zero-dependency main chain using algorithmic folding 零依赖的确定性主链,依靠本地算法进行状态折叠