longer-agent 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +62 -10
- package/README.zh-CN.md +62 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<img src="https://raw.githubusercontent.com/FelixRuiGao/LongerAgent/main/assets/logo.png" alt="LongerAgent" width="360" />
|
|
3
3
|
</p>
|
|
4
4
|
<p align="center">
|
|
5
|
-
<strong>
|
|
5
|
+
<strong>Built to work longer.</strong>
|
|
6
6
|
</p>
|
|
7
7
|
<p align="center">
|
|
8
8
|
English | <a href="./README.zh-CN.md">中文</a>
|
|
@@ -14,15 +14,22 @@
|
|
|
14
14
|
<img alt="Author" src="https://img.shields.io/badge/author-Felix%20Rui%20Gao-4b4bf0?style=flat-square" />
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
A terminal AI coding agent that manages its own context proactively, runs parallel sub-agents, and lets you message it while it's working.
|
|
18
18
|
|
|
19
19
|

|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
> **Platform:** macOS.
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
## Why LongerAgent
|
|
24
|
+
|
|
25
|
+
Most coding agents work well for short bursts, then degrade as the session gets longer. LongerAgent is built for the opposite case:
|
|
26
|
+
|
|
27
|
+
- **Long-running sessions** — context is monitored, summarized, and compacted before it collapses
|
|
28
|
+
- **Interruptible work** — you can send a new message while the agent is still executing
|
|
29
|
+
- **Parallel execution** — delegate exploration and implementation to sub-agents in the same session
|
|
30
|
+
- **Project memory** — `AGENTS.md` and the Important Log survive across sessions and compactions
|
|
31
|
+
|
|
32
|
+
If you want a terminal-native agent that can stay productive through a long refactor, investigation, or multi-step task, this is the point of the project.
|
|
26
33
|
|
|
27
34
|
## Quick Start
|
|
28
35
|
|
|
@@ -37,16 +44,57 @@ longeragent init
|
|
|
37
44
|
longeragent
|
|
38
45
|
```
|
|
39
46
|
|
|
47
|
+
The setup wizard walks you through provider and model selection. If you prefer to edit config yourself, use [configExample.yaml](./configExample.yaml) as the reference.
|
|
48
|
+
|
|
49
|
+
### First 5 Minutes
|
|
50
|
+
|
|
51
|
+
Typical first session:
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
$ longeragent
|
|
55
|
+
You: audit the auth flow and find dead code
|
|
56
|
+
You: while you do that, also check whether password reset uses the same token path
|
|
57
|
+
You: /summarize keep the final findings and file references
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Useful early commands:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
/model # switch model/provider for the current session
|
|
64
|
+
/thinking # raise or lower reasoning depth
|
|
65
|
+
/skills # enable or disable installed skills
|
|
66
|
+
/resume # reopen an older session from log
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
> **Safety:** LongerAgent does not sandbox shell commands or file edits. Run it in trusted environments and review what it does.
|
|
70
|
+
|
|
71
|
+
## Demo
|
|
72
|
+
|
|
73
|
+
Parallel sub-agents investigating a codebase, an async message mid-task, and context summarization — all in one session.
|
|
74
|
+
|
|
75
|
+
https://github.com/user-attachments/assets/377fe648-d43c-45da-b111-9434b2a0dc61
|
|
76
|
+
|
|
40
77
|
---
|
|
41
78
|
|
|
42
79
|
## Highlights
|
|
43
80
|
|
|
44
|
-
- **Three-layer context management** —
|
|
45
|
-
- **Parallel sub-agents** — spawn workers
|
|
46
|
-
- **Skills system** — install, manage, and create reusable skill packages
|
|
81
|
+
- **Three-layer context management** — hinting, surgical summarization, and full compaction
|
|
82
|
+
- **Parallel sub-agents** — spawn workers from chat or YAML call files
|
|
83
|
+
- **Skills system** — install, manage, and create reusable skill packages from inside the agent
|
|
47
84
|
- **Persistent memory** — `AGENTS.md` files and Important Log survive across sessions and compactions
|
|
48
85
|
- **Async messaging** — talk to the agent while it's mid-task
|
|
49
|
-
- **7 provider families** — Anthropic, OpenAI, Kimi, MiniMax, GLM, OpenRouter, and
|
|
86
|
+
- **7 provider families** — Anthropic, OpenAI, Kimi, MiniMax, GLM, OpenRouter, and OpenRouter-compatible models
|
|
87
|
+
|
|
88
|
+
## What It Feels Like
|
|
89
|
+
|
|
90
|
+
LongerAgent is optimized for a specific workflow:
|
|
91
|
+
|
|
92
|
+
1. Start a real task, not a toy prompt.
|
|
93
|
+
2. Let the agent explore, edit, and test for a while.
|
|
94
|
+
3. Interrupt it with clarifications or side requests without losing momentum.
|
|
95
|
+
4. Keep the session alive by summarizing or compacting instead of restarting from scratch.
|
|
96
|
+
|
|
97
|
+
That combination is the core product, more than any individual slash command or tool.
|
|
50
98
|
|
|
51
99
|
## Usage
|
|
52
100
|
|
|
@@ -222,6 +270,10 @@ pnpm test # Run tests (vitest)
|
|
|
222
270
|
pnpm typecheck # Type check
|
|
223
271
|
```
|
|
224
272
|
|
|
273
|
+
## Security
|
|
274
|
+
|
|
275
|
+
LongerAgent does not sandbox commands or require approval before file edits and shell execution. Use it in trusted environments and review what it does.
|
|
276
|
+
|
|
225
277
|
## License
|
|
226
278
|
|
|
227
279
|
[MIT](./LICENSE)
|
package/README.zh-CN.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<img src="https://raw.githubusercontent.com/FelixRuiGao/LongerAgent/main/assets/logo.png" alt="LongerAgent" width="360" />
|
|
3
3
|
</p>
|
|
4
4
|
<p align="center">
|
|
5
|
-
<strong
|
|
5
|
+
<strong>Built to work longer.</strong>
|
|
6
6
|
</p>
|
|
7
7
|
<p align="center">
|
|
8
8
|
<a href="./README.md">English</a> | 中文
|
|
@@ -14,15 +14,22 @@
|
|
|
14
14
|
<img alt="Author" src="https://img.shields.io/badge/author-Felix%20Rui%20Gao-4b4bf0?style=flat-square" />
|
|
15
15
|
</p>
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
一个能主动管理自身上下文、运行并行子 Agent、并允许你在工作中随时发送消息的终端 AI 编程助手。
|
|
18
18
|
|
|
19
19
|

|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
> **平台:** macOS。
|
|
22
22
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
## 为什么是 LongerAgent
|
|
24
|
+
|
|
25
|
+
很多 Coding Agent 在短任务里表现不错,但会话一长就开始失速。LongerAgent 是反过来设计的:
|
|
26
|
+
|
|
27
|
+
- **长会话** —— 在上下文崩掉之前就监控、压缩、重置
|
|
28
|
+
- **可打断执行** —— Agent 工作到一半时,你还能继续发消息
|
|
29
|
+
- **并行执行** —— 同一会话里把探索和执行拆给多个子 Agent
|
|
30
|
+
- **项目记忆** —— `AGENTS.md` 和 Important Log 跨会话、跨压缩保留
|
|
31
|
+
|
|
32
|
+
如果你想要的是一个真正适合长时间重构、排查、迭代执行的终端 Agent,这就是它的设计目标。
|
|
26
33
|
|
|
27
34
|
## 快速开始
|
|
28
35
|
|
|
@@ -37,16 +44,57 @@ longeragent init
|
|
|
37
44
|
longeragent
|
|
38
45
|
```
|
|
39
46
|
|
|
47
|
+
初始化向导会带你完成 provider 和 model 的选择。如果你更想手动配置,可以直接参考 [configExample.yaml](./configExample.yaml)。
|
|
48
|
+
|
|
49
|
+
### 前 5 分钟
|
|
50
|
+
|
|
51
|
+
一个典型的首次会话会是这样:
|
|
52
|
+
|
|
53
|
+
```text
|
|
54
|
+
$ longeragent
|
|
55
|
+
你:检查一下认证流程,顺便找出死代码
|
|
56
|
+
你:另外也看看 password reset 是否复用了同一条 token 路径
|
|
57
|
+
你:/summarize 保留最终结论和文件引用
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
前期最常用的几个命令:
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
/model # 切换当前会话使用的模型/provider
|
|
64
|
+
/thinking # 调高或调低推理深度
|
|
65
|
+
/skills # 启用或禁用已安装技能
|
|
66
|
+
/resume # 从日志恢复旧会话
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
> **安全提示:** LongerAgent 不会对 shell 命令或文件编辑做沙箱隔离。请只在可信环境中使用,并留意它的实际操作。
|
|
70
|
+
|
|
71
|
+
## 演示
|
|
72
|
+
|
|
73
|
+
并行子 Agent 调查代码架构、运行中发送异步消息、上下文压缩——一个会话内完成。
|
|
74
|
+
|
|
75
|
+
https://github.com/user-attachments/assets/377fe648-d43c-45da-b111-9434b2a0dc61
|
|
76
|
+
|
|
40
77
|
---
|
|
41
78
|
|
|
42
79
|
## 亮点
|
|
43
80
|
|
|
44
|
-
- **三层上下文管理** ——
|
|
45
|
-
- **并行子 Agent** ——
|
|
46
|
-
- **Skills 系统** ——
|
|
81
|
+
- **三层上下文管理** —— 提示、精确压缩、全量 compact 三层协作
|
|
82
|
+
- **并行子 Agent** —— 可在对话里或通过 YAML 调用文件派发任务
|
|
83
|
+
- **Skills 系统** —— 直接在 Agent 内安装、管理、创建可复用技能包
|
|
47
84
|
- **持久记忆** —— `AGENTS.md` 和 Important Log 跨会话、跨压缩存续
|
|
48
85
|
- **异步消息** —— Agent 工作中随时发送消息,不用等它完成
|
|
49
|
-
- **7 大 Provider** —— Anthropic、OpenAI、Kimi、MiniMax、GLM、OpenRouter
|
|
86
|
+
- **7 大 Provider** —— Anthropic、OpenAI、Kimi、MiniMax、GLM、OpenRouter,以及 OpenRouter 兼容模型
|
|
87
|
+
|
|
88
|
+
## 实际使用感受
|
|
89
|
+
|
|
90
|
+
LongerAgent 重点优化的是这样一条工作流:
|
|
91
|
+
|
|
92
|
+
1. 直接开始做真实任务,而不是演示型 prompt。
|
|
93
|
+
2. 让 Agent 连续探索、修改、测试一段时间。
|
|
94
|
+
3. 中途随时插话补充要求,不需要重新开局。
|
|
95
|
+
4. 通过 summarize 或 compact 维持会话寿命,而不是上下文一满就从头再来。
|
|
96
|
+
|
|
97
|
+
这个组合本身,才是 LongerAgent 的核心价值,而不只是某一个命令或工具。
|
|
50
98
|
|
|
51
99
|
## 使用
|
|
52
100
|
|
|
@@ -222,6 +270,10 @@ pnpm test # 运行测试(vitest)
|
|
|
222
270
|
pnpm typecheck # 类型检查
|
|
223
271
|
```
|
|
224
272
|
|
|
273
|
+
## 安全
|
|
274
|
+
|
|
275
|
+
LongerAgent 不对命令做沙盒隔离,也不会在文件编辑和 Shell 执行前要求审批。请在可信环境中使用,并留意它的操作。
|
|
276
|
+
|
|
225
277
|
## 许可证
|
|
226
278
|
|
|
227
279
|
[MIT](./LICENSE)
|
package/package.json
CHANGED