项目
在 GitHub 查看
1in0511/janus-ai
关于
Desktop agent built on a rebuilt-frame context architecture: bounded context, lossless history, no compaction.
人工智能与机器学习可以做什么
- Rebuilt, not appended: the model never sees an ever-growing transcript. Before every call it gets a freshly assembled, bounded frame: the current request, the last two exchanges, an index of earlier requests, and this request's tool rounds.
- No compaction, nothing dropped: earlier requests, replies and tool results are kept verbatim on your machine. When the frame would overflow, only the oldest rounds fold into one-line labels; no summary ever replaces the original.
- One recall reaches everything: fetch the original by reference (tool:N, request:N, request:N/tool:M), or search the whole history line by line.
- Rules stated once stay in force: earlier requests remain in the index nearly verbatim, so rules and preferences are not truncated or forgotten.
实测星标增长
- 24小时
- 0
- 7天
- 正在收集历史
- 15天
- 正在收集历史
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.zh-CN.md
原文
Janus
采用重建帧上下文架构的桌面 Agent:上下文有界,历史无损,无需压缩。
特点
- 每次重建,而非不断追加:模型看到的不是越来越长的对话记录,而是每次调用前重新组装的有界帧:当前请求、最近两轮往来、早期请求索引和本次的工具轮次。
- 不压缩,不丢弃:早期的请求、回复和工具结果都原文保存在本地。帧装不下时,只把最早的轮次折叠成一行标签,不用摘要替代原文。
- 一个
recall取回一切:按引用(tool:N、request:N、request:N/tool:M)取回原文,或对全部历史逐行搜索。 - 只说一次的规则一直有效:早期请求以接近原文的形式留在索引里,规则和偏好不会被截断或遗忘。
- 缓存友好:一次请求内折叠点只进不退,前缀保持稳定,配合按对话区分的缓存键连续命中。
安装与构建
macOS、Windows、Linux 安装包见 Releases。
从源码运行(需要 Rust 1.85+):
cargo run --locked --bin janus
打包安装包(macOS .dmg、Windows .msi、Linux .deb):
cargo build --locked --release --bins -p janus
python3 script/package_desktop.py
开发时请用 JANUS_DATA_DIR 指定单独的数据目录,避免改动正在使用的数据:
JANUS_DATA_DIR=/tmp/janus-dev cargo run --locked --bin janus
数据位置
对话、设置和 API 密钥保存在本机的 state.sqlite3(密钥为明文),附件在同目录的 attachments/ 下:
- macOS:
~/Library/Application Support/Janus - Windows:
%LOCALAPPDATA%\Janus - Linux:
$XDG_DATA_HOME/janus
许可
Apache License 2.0。第三方组件的许可说明见 NOTICE。
探索相关项目
加载中…