Atlas Compact
OpenCode plugin: retention-targeted compaction — compress sessions to ~45% instead of dust, preserving goals, constraints, paths, and errors
0
1,437
近 7 天 149
39.2
生态多维模型
10 天前
2026-10-10
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-atlas-compact@0.3.4"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-atlas-compact@0.3.4"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D opencode-atlas-compactOpenCode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
该插件暂未提供 README 文档
缺少文档通常代表该项目仍在开发初期。建议前往其源码仓库查看详细实现。
同类生态推荐
Better Compact
better-compact
OpenCode plugin that improves long-session context with boundary-time pruning
Autocompact
@hacky.software/opencode-autocompact
Claude Code-style autocompact for OpenCode V2 with a per-session threshold: /autocompact 500k compacts a session and its children once the live context reaches that many tokens.
Jev Compaction
opencode-jev-compaction
opencode plugins that shrink context by deleting provably-stale tool calls and truncating the rest, deterministically first, with an optional local Laya backend.