jaxon-agents 0.1.0 → 0.2.0
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 +39 -31
- package/README.zh-CN.md +42 -34
- package/dist/BUILD_INFO.json +3 -3
- package/dist/PACKAGE_MANIFEST.json +31 -25
- package/dist/RELEASE_META.json +8 -2
- package/dist/api/mcp-tools.js +5 -4
- package/dist/connections/health.js +4 -1
- package/dist/console/activity-client.js +620 -0
- package/dist/console/activity-page.js +24 -0
- package/dist/console/activity-topics.js +640 -0
- package/dist/console/activity.js +379 -0
- package/dist/console/assets.js +207 -16
- package/dist/console/pages.js +38 -17
- package/dist/console/server.js +51 -5
- package/dist/console/station-pages.js +40 -6
- package/dist/daemon/client.js +1 -1
- package/dist/daemon/host.js +2 -0
- package/dist/environment/pi-launch-spec.js +1 -1
- package/dist/ops/catalog.js +1 -0
- package/dist/ops/core.js +89 -35
- package/dist/pi-host/history-reader.js +20 -0
- package/dist/pi-host/mcp-bridge.entry.js +22 -5
- package/dist/sessions/dashboard-usage.js +5 -3
- package/dist/sessions/supervisor.js +391 -31
- package/dist/stations/cues.js +59 -48
- package/dist/stations/interactions.js +75 -0
- package/dist/stations/member-instructions.js +25 -0
- package/dist/stations/station-member.entry.js +6 -6
- package/package.json +8 -2
- package/runtime/provenance.json +3 -3
- package/runtime/runtime-lock.json +2 -2
- package/runtime/runtime-package.json +1 -1
package/README.md
CHANGED
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
</p>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## Abstract
|
|
11
|
+
|
|
12
|
+
Single-agent coding sessions degrade quickly when one context window has to plan, edit dozens of files, and review its own work—yet most multi-agent frameworks overcorrect by forcing you to wire up static workflow graphs (DAGs) or rigid DSLs before a single line of code is inspected.
|
|
13
|
+
|
|
14
|
+
**JaXon Agents** takes a fundamentally different approach: it turns the coding CLI you already use (**Claude Code**, **Codex**, or **OpenCode**) into the lead of a persistent agent crew backed by a local singleton daemon—hosting isolated `Pi` sessions (automatically stripping bulky `thinking` noise on `session_read`), serving a live `127.0.0.1` Web Console, and providing a built-in **`JaXon`** quartermaster (`ask_jaxon`) that scaffolds roles and stations from plain language. By design, a JaXon **Station** provides no executable graph and never compiles natural language into a hidden scheduler. Instead, roles establish clear boundaries up front (`STATION.md`), synchronize conclusions on auto-injected **Markdown Boards**, and operate with full-stack independence across **Model — Prompt — Tools — Skills — Memory** (freely mixing subscription OAuth, built-in APIs, OpenAI/Anthropic/Google-compatible custom endpoints, and zero-auth local models)—so your lead agent can judge new findings as they emerge and decide every next move live.
|
|
11
15
|
|
|
12
16
|
<p align="center">
|
|
13
17
|
<img src="docs/assets/jaxon-demo.gif" width="100%" alt="Illustrative demo: role-driven collaboration through the JaXon station hub — planner, coders (with a temporary helper joining mid-run and stepping out when done), and reviewer coordinate on boards while the lead agent decides each next step live." />
|
|
@@ -18,48 +22,42 @@
|
|
|
18
22
|
|
|
19
23
|
---
|
|
20
24
|
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
- 🧭 **No Executable DAG or DSL (By Principle, Not Convenience)**: Pre-drawn graphs—even cyclic ones—force you to hardcode branches before work happens. In a JaXon Station, plain-language rules (`STATION.md`) set role boundaries up front, members post conclusions to auto-injected **Markdown Boards**, and your lead agent decides every next hop or roster change from the new knowledge and actual progress on the boards. **Boards never trigger steps, and the runtime never compiles natural language into a hidden scheduler.**
|
|
24
|
-
- 🧠 **Mix Any Connectable Model or Compatible Endpoint by Role**: Assign every role (`planner`, `coder`, `reviewer`, `writer`, or temporary helpers) its own model and billing mode in the same Station—freely coexisting across **subscription OAuth** *(Anthropic, OpenAI, OpenAI Codex)*, **built-in APIs** *(Claude, GPT, Gemini, OpenRouter, DeepSeek, xAI, Groq, etc.)*, **any OpenAI-, Anthropic-, or Google-compatible custom endpoint** *(`baseUrl` + `modelId` for third-party relays, self-hosted routers, or enterprise gateways)*, and **zero-auth local `127.0.0.1` models** *(Ollama / vLLM)*. Credentials stay `0600`-isolated in the local daemon (`NEEDS_HUMAN_AUTH`), never in model context.
|
|
25
|
-
- ✦ **The `X` Hub & Built-in `JaXon` Quartermaster**: You keep your daily CLI. Behind it, a singleton local daemon hosts isolated `Pi` sessions (stripping bulky `thinking` noise from `session_read`), serves a live Web Console (`127.0.0.1`), and includes a built-in **`JaXon`** preset (`ask_jaxon`) that scaffolds agents and stations from plain-language requests.
|
|
26
|
-
|
|
27
|
-
---
|
|
25
|
+
## Core Principles: Why JaXon Is Built This Way
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
### 1. There Is No Eden in Real Work: New Knowledge Has the Right to Redraw Boundaries
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
Real work never unfolds in a frictionless Eden: plans rarely survive contact with reality, work itself generates new knowledge, and **that new knowledge has every right to redefine the original boundaries of the job**. Pre-drawn workflow graphs—even cyclic ones—fail in practice because they lock down pipeline topologies and arrows before work begins. Chasing that kind of rigid SOP and KPI pipeline only produces a brittle pseudo-fluency that derails at the first real exception.
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
Consider what happens when a **`reviewer`** raises an objection or a task uncovers an unexpected constraint. Only after reading what the work actually brought to light can the lead agent judge which next move holds:
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
1. **A straightforward implementation slip** → send the session back to **`coder`** to patch the code in place.
|
|
34
|
+
2. **A flawed design in `PLAN.md`** → bouncing back to `coder` would loop forever; route back to **`planner`** to revise the spec first.
|
|
35
|
+
3. **A sudden parallel module or heavy lift** → update the station roster to bring in a **temporary `coder` helper** mid-run, then remove the helper cleanly once active turns finish.
|
|
36
|
+
4. **An explainable convention or a newly exposed product ambiguity** → either clarify directly on the board and proceed, or pause and hand the decision to the **human**.
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
**JaXon** refuses predetermined pipeline topologies and hardwired arrows. Boards carry conclusions without ever auto-triggering steps; you set role boundaries and acceptance criteria up front (`STATION.md`), and the runtime stays focused on **understanding the goal, judging new developments, and adjusting course—which is what real intelligence is for**.
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
2. **A flawed spec in `PLAN.md`** → bouncing back to `coder` would loop forever; the lead routes back to **`planner`** to revise the design first.
|
|
41
|
-
3. **A sudden parallel module or heavy lift** → the lead updates the station roster to bring in a **temporary `coder` helper** mid-run, then removes the helper cleanly once active turns finish.
|
|
42
|
-
4. **An explainable convention or a newly exposed product ambiguity** → the lead either clarifies on the board and ships immediately, or pauses to let the **human** decide.
|
|
40
|
+

|
|
43
41
|
|
|
44
|
-
|
|
42
|
+
Above is a **Station Activity Graph** running live in the Web Console: each member appears as a node whose brightness reflects current activity, listing one-line topics for its sessions (`-ing` while running, past tense once finished). Dispatch, report, and peer `cue` links between members fade over time, with the observation window switchable across `1m / 10m / 1h / 1d`.
|
|
45
43
|
|
|
46
44
|
### 2. The Lead Is the Lead; The Crew Is the Crew: Seats Are Earned by Continuity
|
|
47
45
|
|
|
48
|
-
In a real team,
|
|
46
|
+
In a real team, the lead can change while the crew keeps moving steadily forward. A member truly holds a **seat** at the station when they take on a clear responsibility, carry an unbroken working history, keep a record on their desk, and respond to teammates' expectations over time.
|
|
49
47
|
|
|
50
|
-
JaXon
|
|
48
|
+
**JaXon** uses a **lead-agnostic, always-on MCP architecture**: the background daemon keeps every station active so you can connect with whichever interactive coding client you prefer (**Claude Code**, **Codex**, or **OpenCode**) and even switch lead terminals mid-project. Any sub-agent workspace can pick up and continue at any time—each member retains its persistent `Pi` session transcript (`session.jsonl`), its desk record on `<your_board>`, and its own sub-workspace (such as a dedicated directory or `git worktree`) without losing context or momentum.
|
|
51
49
|
|
|
52
|
-
### 3.
|
|
50
|
+
### 3. Three Cobblers Outwit a Mastermind: Full-Stack Freedom Lets Intelligence Grow
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
True collective intelligence is never created by pinning three different job titles onto the same brain. It requires giving every role room to grow independently—absorbing different knowledge, wielding fitting tools, and forming its own judgment.
|
|
55
53
|
|
|
56
|
-
To make that real, JaXon opens
|
|
54
|
+
To make that real, **JaXon** opens the full **Model — Prompt — Tools — Skills — Memory** chain for every sub-agent:
|
|
57
55
|
|
|
58
|
-
- **Model**:
|
|
56
|
+
- **Model**: assign each role its best-fit model and billing path in the same Station—freely mixing **subscription OAuth** *(Anthropic, OpenAI, OpenAI Codex)*, **built-in provider APIs** *(Claude, GPT, Gemini, OpenRouter, DeepSeek, xAI, Groq, etc.)*, **any OpenAI-, Anthropic-, or Google-compatible custom endpoint** *(`baseUrl` + `modelId` for third-party relays, self-hosted routers, or enterprise gateways)*, and **zero-auth local `127.0.0.1` models** *(Ollama / vLLM)*. Credentials stay `0600`-isolated inside the local daemon (`NEEDS_HUMAN_AUTH` when missing) and never enter model context.
|
|
59
57
|
- **Prompt & Tools**: give each preset its own versioned system instructions (`APPEND_SYSTEM.md`), default toolset (`settings.json`), and dedicated external MCP servers (`mcp.json`).
|
|
60
58
|
- **Skills & Memory**: attach role-specific skill directories (`skills/`) while preserving long-lived session transcripts and self-maintained board conclusions (`<your_board>`) across turns.
|
|
61
59
|
|
|
62
|
-
> 💡 **Author's Field Note**:
|
|
60
|
+
> 💡 **Author's Field Note**: From my own hands-on experience, exercise caution before using **GPT-6 and newer models** for work outside **code implementation and mathematical analysis**—and especially avoid putting them in the lead agent seat, where they tend to leave the workspace increasingly tangled.
|
|
63
61
|
|
|
64
62
|
---
|
|
65
63
|
|
|
@@ -132,15 +130,25 @@ tool_timeout_sec = 1800
|
|
|
132
130
|
```
|
|
133
131
|
</details>
|
|
134
132
|
|
|
135
|
-
### 3. Bind
|
|
133
|
+
### 3. Bind a Model & Ask JaXon to Assemble Your Station
|
|
134
|
+
|
|
135
|
+
A clean startup includes only the built-in `JaXon` preset—you do not need to manually pre-build roles or stations before starting work:
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
1. In the Web Console → **Connections**, add your model connection(s)—**OAuth**, **API**, or **Custom** *(any OpenAI-, Anthropic-, or Google-compatible `baseUrl` + `modelId`)*, or use a zero-auth local `127.0.0.1` Ollama/vLLM endpoint ([`examples/agents/local-qwen/`](./examples/agents/local-qwen/)).
|
|
138
|
+
2. In **Agents**, bind a model to the built-in **`JaXon`** preset (which runs a real one-shot `Pi` readiness probe before becoming `ready`).
|
|
139
|
+
3. Once your coding CLI is connected via MCP, **copy the prompt template below into your coding CLI** and replace `<Your requirement...>` with your task. Your CLI will call `ask_jaxon` directly, and **`JaXon`** will automatically scaffold the required role presets and assemble a tailored **Station** around your requirement:
|
|
138
140
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
3. Create the [`dev-loop`](./examples/stations/dev-loop/) station (in the console UI or by asking `JaXon` via `ask_jaxon`), then prompt your main coding CLI:
|
|
141
|
+
```text
|
|
142
|
+
Act as the lead agent (master) and use the jaxon-agents MCP server to complete the following task:
|
|
142
143
|
|
|
143
|
-
|
|
144
|
+
[Task Goal & Workspace]
|
|
145
|
+
<Your requirement, e.g., In workspace /path/to/your-project, build / refactor / investigate ... (state the goal, constraints, and expected deliverables)>
|
|
146
|
+
|
|
147
|
+
[Collaboration & Execution Guidelines]
|
|
148
|
+
1. Ask JaXon to assemble the roles and Station: Call `ask_jaxon` first with the requirement above so the built-in `JaXon` quartermaster can inspect available model connections, create or reuse fitting role presets (configuring each role's instructions, tools, and best-fit model and running readiness checks), and assemble a dedicated Station (defining clear role boundaries and acceptance criteria in `STATION.md` without hardcoding a rigid workflow graph).
|
|
149
|
+
2. Set the master board and delegate: Write the task goal, workspace path, hard boundaries, and current plan onto the Station's `master` board (`board_write`). Delegate with full autonomy—pass goals, boundaries, and board references rather than micromanaging implementation details, and dispatch independent tracks in parallel (`session_send` / `session_wait`).
|
|
150
|
+
3. Coordinate via boards and adapt live: Track progress through member boards (`board_read`) and session outputs (`session_read`), decide every next move from the new findings that emerge during execution (routing back for fixes, revising plans, or calling `ask_jaxon` mid-run to adjust the Station roster when extra hands are needed), and report back once acceptance criteria are verified.
|
|
151
|
+
```
|
|
144
152
|
|
|
145
153
|
---
|
|
146
154
|
|
package/README.zh-CN.md
CHANGED
|
@@ -7,7 +7,11 @@
|
|
|
7
7
|
</p>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
## 摘要(Abstract)
|
|
11
|
+
|
|
12
|
+
单智能体(Single-Agent)在独自包揽规划、跨文件编码与自我审查时,上下文窗口会迅速被噪音淹没;然而主流多智能体框架往往走向另一个极端——强迫人们在工作尚未开始前,先用静态流程图(DAG)或工作流 DSL 把分支与箭头写死。
|
|
13
|
+
|
|
14
|
+
**JaXon Agents** 走了一条更符合真实工程规律的路:它将你正在使用的编码 CLI(**Claude Code**、**Codex** 或 **OpenCode**)升格为常驻团队的**主控(Lead Agent)**,在后台通过全机唯一的守护进程托管隔离的 `Pi` 持久会话(读取时自动剥离庞大的 `thinking` 噪音)、提供 `127.0.0.1` 实时 Web 控制台,并内置同名管家 **`JaXon`**(`ask_jaxon`)按自然语言装配角色与协作站。在这里,协作站(Station)**从设计原则上不提供可执行流程图,也不把自然语言偷偷编译成后台调度器**:团队在运行前通过 `STATION.md` 明确职责边界,在运行中通过每轮自动注入 `system` 的 **Markdown 看板(Boards)**同步进展,并为每个席位开放从异构模型(订阅制 OAuth、内置 API、任意兼容自定义端点与本地免凭据模型)到提示、工具、技能与长程记忆的全链路自由——让主控根据工作催生的新知识实时研判、动态指挥。
|
|
11
15
|
|
|
12
16
|
<p align="center">
|
|
13
17
|
<img src="docs/assets/jaxon-demo.gif" width="100%" alt="示意动画:以角色为主导的 JaXon 协作站流转——规划、编码(含中途灵活加入协助、完成后退场的临时编码成员)与评审在各自看板交接,由主控实时裁决每一步。" />
|
|
@@ -18,48 +22,42 @@
|
|
|
18
22
|
|
|
19
23
|
---
|
|
20
24
|
|
|
21
|
-
##
|
|
22
|
-
|
|
23
|
-
- 🧭 **无 DAG / 无 DSL(是设计原则,而非省配置捷径)**:预画流程图(哪怕带回环的图)强迫你在工作发生前写死分支。在 JaXon 的 Station 中,运行前用自然语言立好角色职责与共同规则(`STATION.md`),运行时各角色将结论写在每轮自动注入 `system` 的**共享 Markdown 看板(Boards)**上,由主控根据看板上的实际进展与新认识决定下一跳或调整阵容。**看板绝不自动触发步骤,系统也绝不把自然语言偷偷编译成后台调度图。**
|
|
24
|
-
- 🧠 **按角色混编任意可接入模型与兼容 API 端点**:同一座 Station 内的每个角色(`planner`、`coder`、`reviewer`、`writer` 或临时帮手)都能独立绑定最合适的模型与计费方式——**订阅制 OAuth**(Anthropic、OpenAI、OpenAI Codex)、**内置提供商 API**(Claude、GPT、Gemini、OpenRouter、DeepSeek、xAI、Groq 等)、**任意 OpenAI / Anthropic / Google 兼容的自定义 API 端点**(填入 `baseUrl` + `modelId` 即可接入第三方中转、自建路由或企业网关)与 **`127.0.0.1` 免凭据本地模型**(Ollama / vLLM)无缝并存。所有凭据以 `0600` 权限锁在本机守护进程内(`NEEDS_HUMAN_AUTH`),永不进入模型上下文。
|
|
25
|
-
- ✦ **`X` 交汇枢与内置管家 `JaXon`**:无需更换你顺手的 CLI。后台常驻单例守护进程托管隔离的 `Pi` 会话(`session_read` 自动剥离庞大的 `thinking` 噪音),提供 `127.0.0.1` 实时 Web 控制台,并内置同名管理角色 **`JaXon`**(`ask_jaxon`),支持用自然语言创建预设、装配 Station 与更新名单。
|
|
26
|
-
|
|
27
|
-
---
|
|
25
|
+
## 核心理念与架构展开
|
|
28
26
|
|
|
29
|
-
|
|
27
|
+
### 1. 现实工作中没有伊甸园:新知识有资格改写工作边界
|
|
30
28
|
|
|
31
|
-
|
|
29
|
+
现实工作中没有按图纸自动运转的伊甸园:计划赶不上变化,工作本身会产生新知识,而**新知识有资格改变这项工作原本的边界定义**。预画的多智能体流程图(哪怕带回环的图)之所以在真实工程里频频失灵,是因为它试图在工作发生前就设置预定的、卡死的流水线拓扑——这种充斥着异常分支、看似流畅实则总在现场脱轨的 SOP 与 KPI,恰恰消解了智能本身。
|
|
32
30
|
|
|
33
|
-
|
|
31
|
+
试想当 **`reviewer`** 提出异议或任务中途遇到新情况时,只有依据实际工作带来的新认识,主控才能判断哪一步真正成立:
|
|
34
32
|
|
|
35
|
-
|
|
33
|
+
1. **单纯的实现疏漏** → 直接派回 **`coder`** 在原会话补上代码;
|
|
34
|
+
2. **`PLAN.md` 方案本身有缺陷** → 机械打回给 `coder` 只会原地死循环,必须先退回 **`planner`** 修订设计;
|
|
35
|
+
3. **中途浮现并行模块或重度攻坚** → 主控实时更新协作站名单,引入一名**临时 `coder` 帮手**协同实现,待在途轮次收尾后再将其干净移出编制;
|
|
36
|
+
4. **可当场澄清的约定或首次暴露的需求歧义** → 主控要么在看板直接拍板放行,要么立即停手交回**人类**裁决。
|
|
36
37
|
|
|
37
|
-
|
|
38
|
+
因此,**JaXon** 拒绝预设箭头指向,拥抱灵活变化——看板只承载结论而绝不自动触发步骤;运行前用 `STATION.md` 立好职责与准则,运行中专注于**目标的理解、研判与调整,是谓智能**。
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
2. **`PLAN.md` 方案本身有缺陷** → 机械打回给 `coder` 只会原地死循环,主控必须先退回 **`planner`** 修订设计;
|
|
41
|
-
3. **中途需要并行攻坚或加派人手** → 主控更新协作站名单,灵活引入一名**临时 `coder` 帮手**参与实现,待在途轮次收尾后再将其干净移出编制;
|
|
42
|
-
4. **可当场解释的约定或首次暴露的需求歧义** → 主控要么在看板直接澄清放行,要么立即停手交回**人类**拍板。
|
|
40
|
+

|
|
43
41
|
|
|
44
|
-
**
|
|
42
|
+
上图是 Web 控制台里真实运行的 **Station 活动图**:每个成员对应一个节点,按当前活跃度自然明暗区分;节点内列出各会话的一行主题(运行中以 `-ing` 呈现、结束后转为过去式);成员之间的派单(dispatch)、汇报(report)与互提醒(`cue`)连线随时间自然衰减,观测窗口可在 `1m / 10m / 1h / 1d` 四档间自由切换。
|
|
45
43
|
|
|
46
|
-
### 2.
|
|
44
|
+
### 2. 老板是老板,员工是员工:老板可以换,席位来自持续的担当
|
|
47
45
|
|
|
48
|
-
|
|
46
|
+
在真实的团队里,老板可以换,员工要一如既往稳步前行。当一名成员接下明确的职责、带着一段延续的过往、在案头留存记录、持续回应同伴的期待时,他才真正拥有自己的**席位(Seat)**。
|
|
49
47
|
|
|
50
|
-
JaXon
|
|
48
|
+
**JaXon** 采用**主控无关(Lead-Agnostic)、保持活跃的 MCP 架构**:后台常驻守护进程持续托管所有协作站,你可以任选顺手的人机交互软件(**Claude Code**、**Codex** 或 **OpenCode**)接入担任主控,甚至中途更换主控终端;而任何子智能体工作区都可以随时继续工作——每位成员始终守在自己延续的 `Pi` 会话历史(`session.jsonl`)、案头留存的专属看板(`<your_board>`)以及独立的子工作区(如专属目录或 `git worktree`)中稳步推进,现场不丢失、脉络不断线。
|
|
51
49
|
|
|
52
|
-
### 3.
|
|
50
|
+
### 3. 三个臭皮匠,顶个诸葛亮:全链路自由,让独立智能生长
|
|
53
51
|
|
|
54
|
-
|
|
52
|
+
真正的集思广益、各显其能,从来不是给同一个大脑贴上三张头衔标签就能分出来的;它需要给每个角色留出独立生长的空间——接触不同的知识、握住趁手的工具、养成自己的判断。
|
|
55
53
|
|
|
56
|
-
|
|
54
|
+
为此,**JaXon** 为每个子智能体开放**「模型 — 提示 — 工具 — 技能 — 记忆」**全自由链路,让智能独立生长:
|
|
57
55
|
|
|
58
|
-
-
|
|
59
|
-
-
|
|
60
|
-
-
|
|
56
|
+
- **模型自由(Model)**:同一座 Station 内的每个角色都能独立绑定最契合的模型与计费通道——**订阅制 OAuth**(Anthropic、OpenAI、OpenAI Codex)、**内置提供商 API**(Claude、GPT、Gemini、OpenRouter、DeepSeek、xAI、Groq 等)、**任意 OpenAI / Anthropic / Google 兼容的自定义 API 端点**(填入 `baseUrl` + `modelId` 即可接入第三方中转、自建路由或企业网关)与 **`127.0.0.1` 免凭据本地模型**(Ollama / vLLM)无缝混编。所有凭据以 `0600` 权限锁在本机守护进程内(缺失时返回 `NEEDS_HUMAN_AUTH`),永不暴露给模型上下文。
|
|
57
|
+
- **提示与工具自由(Prompt & Tools)**:每个预设拥有独立的版本化系统提示(`APPEND_SYSTEM.md`)、默认工具集(`settings.json`)与专属外部 MCP 服务(`mcp.json`)。
|
|
58
|
+
- **技能与记忆自由(Skills & Memory)**:按角色挂载专属技能目录(`skills/`),并在跨轮次延续的持久会话与每轮自动注入 `system` 的个人看板(`<your_board>`)中沉淀各自的工作判断。
|
|
61
59
|
|
|
62
|
-
> 💡
|
|
60
|
+
> 💡 **作者实测提醒**:根据作者的亲身实测,对 **GPT 6 及以上模型**,除**代码实现与数学分析**外请谨慎用于其他工作(尤其不要让它担任主控 Agent),否则它会把工作区越搞越乱。
|
|
63
61
|
|
|
64
62
|
---
|
|
65
63
|
|
|
@@ -132,15 +130,25 @@ tool_timeout_sec = 1800
|
|
|
132
130
|
```
|
|
133
131
|
</details>
|
|
134
132
|
|
|
135
|
-
### 3.
|
|
133
|
+
### 3. 绑定模型连接,直接 Ask JaXon 装配协作站
|
|
134
|
+
|
|
135
|
+
默认干净启动仅包含内置的 `JaXon` 预设,无需手动预建角色或协作站:
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
1. 在 Web 控制台 → **Connections(连接)** 中添加你的模型连接——支持 **OAuth**、**API** 或 **Custom**(填入 `baseUrl` + `modelId` 即可接入任意 OpenAI / Anthropic / Google 兼容端点),也可参考 [`examples/agents/local-qwen/`](./examples/agents/local-qwen/) 直接使用本机 `127.0.0.1` 免凭据 Ollama/vLLM 模型。
|
|
138
|
+
2. 在 **Agents(预设)** 中为内置管家 **`JaXon`** 绑定模型(绑定时会自动执行真实的一次性 `Pi` 就绪检测,通过后变为 `ready`)。
|
|
139
|
+
3. 将你的编码 CLI 通过 MCP 连上后,**直接复制下方提示词模板发送给你的主控 CLI**(把 `<你的需求...>` 替换为实际任务)。主控会直接调用 `ask_jaxon`,由 **`JaXon`** 根据你的需求与可用连接自动创建角色预设、装配专属 Station 并启动团队协作:
|
|
138
140
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
3. 参照 [`dev-loop` 示例](./examples/stations/dev-loop/) 创建协作站(可在控制台网页端创建,也可通过 `ask_jaxon` 让 `JaXon` 帮你装配),随后在主控 CLI 中下达任务:
|
|
141
|
+
```text
|
|
142
|
+
请作为主控(master),使用 jaxon-agents MCP 协作完成以下任务:
|
|
142
143
|
|
|
143
|
-
|
|
144
|
+
【任务目标与工作区】
|
|
145
|
+
<你的需求,例如:工作区位于 /path/to/your-project,请完成……(写明核心目标、技术约束与期望交付物)>
|
|
146
|
+
|
|
147
|
+
【协作与执行要求】
|
|
148
|
+
1. 找 JaXon 装配团队与协作站:先调用 `ask_jaxon`,把上述需求告诉内置管家 `JaXon`,让它结合当前已配置的模型连接,按需创建或复用合适的角色预设(分别配置好系统提示、工具集与契合的模型并通过就绪检测),并装配一座专属 Station(在 `STATION.md` 中写明各角色职责边界、交接与验收准则,不预设死板流程图)。
|
|
149
|
+
2. 主控立项与派单:在 Station 的 `master` 看板(`board_write`)写清本次任务的最终目标、工作区路径、硬边界与当前计划;彻底放权给各专业角色(派单只传目标、边界与看板引用,不替下级手写实现细节),能并行的工作优先并行派出(`session_send` / `session_wait`)。
|
|
150
|
+
3. 看板协同与动态演进:每轮通过角色看板(`board_read`)和会话输出(`session_read`)跟进实际进展,根据工作推进中浮现的新情况实时决定下一步(如派回修复、调整方案,或在需要增援时再次调用 `ask_jaxon` 动态调整 Station 成员名单),直至完成独立验收后向我汇报最终交付结果。
|
|
151
|
+
```
|
|
144
152
|
|
|
145
153
|
---
|
|
146
154
|
|
package/dist/BUILD_INFO.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"build_id": "pkg-
|
|
3
|
-
"built_at": "2026-11-
|
|
4
|
-
"content_hash": "
|
|
2
|
+
"build_id": "pkg-955292c6daad3799",
|
|
3
|
+
"built_at": "2026-11-28T06:14:31.000Z",
|
|
4
|
+
"content_hash": "955292c6daad3799db3cddb47e24417971372be56a4bfb55bb3e08de920d01e0"
|
|
5
5
|
}
|
|
@@ -1,54 +1,58 @@
|
|
|
1
1
|
{
|
|
2
2
|
"LICENSE": "3972dc9744f6499f0f9b2dbf76696f2ae7ad8af9b23dde66d6af86c9dfb36986",
|
|
3
3
|
"README.agent.md": "968eb25b056f978b20990aaef8636e15d47b1a2e291e0519b3c1c0e0229ea9bf",
|
|
4
|
-
"README.md": "
|
|
5
|
-
"README.zh-CN.md": "
|
|
6
|
-
"dist/BUILD_INFO.json": "
|
|
7
|
-
"dist/RELEASE_META.json": "
|
|
4
|
+
"README.md": "d7b7653bea87ba02fe7fafd237faf99b0ef324ff8127334aec533f17c149d561",
|
|
5
|
+
"README.zh-CN.md": "1a7f3474d8e428f970cb6034d20275c8ba3a9fa852e86876c18d1305c4c2bd46",
|
|
6
|
+
"dist/BUILD_INFO.json": "c511712dc5ebfc5d22e27ff07145d1494a7d8c832b38caf5e1f1767c9387369c",
|
|
7
|
+
"dist/RELEASE_META.json": "185106134cf0958be71cdb0a9983cf39ac67d57c4494b98cce2d19c38b827c73",
|
|
8
8
|
"dist/agents/admin-scope.js": "70b617e88181a7252792ac29f0a913abad97b60b732d04f0712c1913d6623bba",
|
|
9
9
|
"dist/agents/directory-store.js": "9a31eee028de820ea619a8b23370ec662df3ed8f7eefa654821ab170144a4810",
|
|
10
10
|
"dist/agents/jaxon-admin.entry.js": "2d9146634223b758b988f1a9744562efc9fe600ff29fd938660fee20325fe378",
|
|
11
11
|
"dist/agents/mcp-server-config.js": "20b7807d41917a120ad8843252d26da6d84d50636718a010165f6c4f1c68518d",
|
|
12
12
|
"dist/agents/skills-directory.js": "e9d56e64098be037f033154dcb48a76b664278ba4dd6e87752dd40632364ab52",
|
|
13
|
-
"dist/api/mcp-tools.js": "
|
|
13
|
+
"dist/api/mcp-tools.js": "f377e7cc2754c6d27342ae3fad832847a5f6868ea719fa274a67f238901993bf",
|
|
14
14
|
"dist/connections/callback-landing.js": "0cf59ea1d7867e07520ea0ea57014ac185b01718d8207e97d59cf6179fb8402c",
|
|
15
|
-
"dist/connections/health.js": "
|
|
15
|
+
"dist/connections/health.js": "f0678a679f412f3c3341ed2dad65f02ca0988c3294837c3949092916479b9e3a",
|
|
16
16
|
"dist/connections/manager.js": "4fe701df7992b76806006fa06874ad6be6f589820927394603a39926d5309c4a",
|
|
17
17
|
"dist/connections/types.js": "8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881",
|
|
18
|
-
"dist/console/
|
|
18
|
+
"dist/console/activity-client.js": "dd5bf3ef360f5dc010cea455818a53d2613ea715f9dec1070bee661991c7a82a",
|
|
19
|
+
"dist/console/activity-page.js": "e58f989385d4fdda6ee6f3164393071eb48bbf3f66ec9546ceed2163c7398b64",
|
|
20
|
+
"dist/console/activity-topics.js": "9c2f530226935b1c157465c7c3450c4b84ada6a950816f4e0e40e40dc6204e51",
|
|
21
|
+
"dist/console/activity.js": "13beb7d9dbe0ec89cb855e21d1dc1d7bbdf757426e6d5dc9a96abf45cf189451",
|
|
22
|
+
"dist/console/assets.js": "1b656e10b25570c76174881a254ed32d4ef586676b44b1db33a9808ec151517e",
|
|
19
23
|
"dist/console/jaxon-logo.svg": "4db7165d971023d4cf9008b828d9a33967d606ebe5ccc04211ebd9297dfb7cec",
|
|
20
|
-
"dist/console/pages.js": "
|
|
24
|
+
"dist/console/pages.js": "434124c140a43af522d8e2dabd1553ff833d092c9537c9d299fce86a20d07a41",
|
|
21
25
|
"dist/console/pagination.js": "399ddc6384076d6d57c0324b0347f8ff3ac915d7bdae9fc182c168838bd8d5d7",
|
|
22
|
-
"dist/console/server.js": "
|
|
23
|
-
"dist/console/station-pages.js": "
|
|
26
|
+
"dist/console/server.js": "b1f4f8fba9bfb69797f620b2857af57babff9419be4c3ae9d8351fdfc3e2eee9",
|
|
27
|
+
"dist/console/station-pages.js": "7c8855de286aa2b60259b994d3b44c949e5ce8f3c43ed44bcdf47777f5632823",
|
|
24
28
|
"dist/console/usage-charts.js": "6634132e21fc507bba086ce2d6085215052c3b711ebf38aaff0e322fc7ae302c",
|
|
25
29
|
"dist/console/usage-page.js": "9cfeec8b47ea4940c0d6c9da7e8258ad73829012439ae0faff5211a21b250ed7",
|
|
26
30
|
"dist/console/usage-range.js": "22fd3ceb7db5019d574cd18f1657d6bffb2e9639bf955e64c33eb4e1a62ba669",
|
|
27
31
|
"dist/console/util.js": "1503cda3c76ce6bb437142d26a98c14e1cb67b424bf99f1ad732a2fdcb29aeb6",
|
|
28
32
|
"dist/daemon/activity.js": "1f3ed4184eb2a2d3e2a8b3fbd6f905d60526ce3f32f60b77b2a967d3f727df04",
|
|
29
33
|
"dist/daemon/candidate.js": "bffa9c14b2be508b90b58ed1f6bcafbfc3aff594c719e4314d73e0a4d6b2d479",
|
|
30
|
-
"dist/daemon/client.js": "
|
|
34
|
+
"dist/daemon/client.js": "bb2ce3d44313276fbfcd939e846f3d4551dee35449915ffa51604a4405b54080",
|
|
31
35
|
"dist/daemon/fingerprint.js": "621ec9e978563e54572fb2c394d9927429f73ea44f93f65628ac38f10c8172fd",
|
|
32
36
|
"dist/daemon/handoff-watchdog.js": "e8eb4ca65c49269f082ac9a3d588937e47476ab70f53c1c5a6c52a57350ab556",
|
|
33
|
-
"dist/daemon/host.js": "
|
|
37
|
+
"dist/daemon/host.js": "bbcd6cc780f60351a181a46c670e8d0925e3ea1686251ffb9cadd981298e23ed",
|
|
34
38
|
"dist/daemon/main.js": "d56da742508262b4e0d86cac62e2118cc0a72c873344e0d153e00d81dcd36268",
|
|
35
39
|
"dist/daemon/paths.js": "9eb1161183b371a4abed0c597ed6ed48d49092692e91c8b7113960c12586991d",
|
|
36
40
|
"dist/daemon/preflight.js": "ba4929a1f96322ca85643bef425a1e352899a8fa28589b8e284b7235b3d2d865",
|
|
37
41
|
"dist/environment/local-model-endpoint.js": "830363a50ae39cb5e8cd672bfbd7169f8798c17b71dd79252389a1e335513d10",
|
|
38
|
-
"dist/environment/pi-launch-spec.js": "
|
|
42
|
+
"dist/environment/pi-launch-spec.js": "3b9dbf862d7676556d4fa0d6a58292ae4b93537a8cec987c0abb72e9f7878c44",
|
|
39
43
|
"dist/environment/runtime-binaries.js": "582497688638d891919b2dcafff7c891ef6e566efdc936aa2f68fa20a60eb45c",
|
|
40
44
|
"dist/index.js": "bb06cc442779dce9230e3e588647ea6de33072a0dd98a62515ec9c442fbe674c",
|
|
41
45
|
"dist/launcher.js": "89968912468621957e676d34bace5960e81d660e98d4530ffa79fc7ed6d22105",
|
|
42
|
-
"dist/ops/catalog.js": "
|
|
43
|
-
"dist/ops/core.js": "
|
|
46
|
+
"dist/ops/catalog.js": "f1f451d3490c6571385232b374320fe923f609ffd5868f9a119ac6681a2d1bd5",
|
|
47
|
+
"dist/ops/core.js": "11425f6f03346949db0f384ba897a8cb569381eca6c6d8751145067eb619ca38",
|
|
44
48
|
"dist/ops/errors.js": "a375d6c06f36e96aa73bbeaca452f6ef3671c0605ec8f35993d066536df83a49",
|
|
45
49
|
"dist/ops/idempotency.js": "989f0219a99483fb7f61c7260768c23ca68ef328ad6b1b5a6d5be74764460ca3",
|
|
46
50
|
"dist/ops/wait.js": "51ddd5f65af4ded333866a0086f0894954065421c8b9687174698f20af0d0fe8",
|
|
47
51
|
"dist/pagination.js": "5922d64f0d54cce66014a9fccdd2846112daf80ebb87eab220522a03b34c1487",
|
|
48
52
|
"dist/pi-host/event-tailer.js": "72d48cf2f798331693c69f5eaab0bb89bcb33dfe824c9627d87daf98315cbf7f",
|
|
49
|
-
"dist/pi-host/history-reader.js": "
|
|
53
|
+
"dist/pi-host/history-reader.js": "d32b65c0474dc9d3ab0e434952af95580344bbef7ada5337e1bd02e73e813703",
|
|
50
54
|
"dist/pi-host/interactive-client.js": "efc36cb046a44c75133669622831dcc74d8b1d1453be47c223ed5d6f9528eb15",
|
|
51
|
-
"dist/pi-host/mcp-bridge.entry.js": "
|
|
55
|
+
"dist/pi-host/mcp-bridge.entry.js": "5db7922315e04602611aa8744e587ad275d2678d113d3e5b8696a6241f2a7056",
|
|
52
56
|
"dist/readiness/service.js": "03227937388ec338ec111f8641f7a7bfbfaa297e21d121375ff78aab0afb6642",
|
|
53
57
|
"dist/release/cli.js": "40718b4d2f66ecf695ccccc953d3f35f8fba2950bba91e9610773e0ce343ed1c",
|
|
54
58
|
"dist/release/cold-start.js": "576453fc880b47e808fa7f08dc0f4caeb5b21bca3be9456e84d6860dffc2d968",
|
|
@@ -59,13 +63,15 @@
|
|
|
59
63
|
"dist/release/store.js": "f767700a7bf41c8ba6f74c23ff57da63bd7bdf5191e8c3c0d4442b204bef416c",
|
|
60
64
|
"dist/release/update.js": "5ab4a0372a556a85e3c017096dceb29cfb24d1eb6c6ba9e38361f478bf6a9702",
|
|
61
65
|
"dist/root.js": "069be52213ae06f19d8b7b58d92ad34a94fd575ad47a9a923826dcbd69f626be",
|
|
62
|
-
"dist/sessions/dashboard-usage.js": "
|
|
63
|
-
"dist/sessions/supervisor.js": "
|
|
66
|
+
"dist/sessions/dashboard-usage.js": "6171091f6c3a6564805cabd7cf80a4714c347fff1a6fcbb9fb1b80edce32b4ff",
|
|
67
|
+
"dist/sessions/supervisor.js": "7af675ced7fc04cf8a3a5aea2bfcb2e8b6e48c0c622a2ea9ad8268b9b61ce7ee",
|
|
64
68
|
"dist/sessions/usage-ledger.js": "364095eb0f55815c9630b54e0a88771997bf2b66a829e9677af88868bcb8cea3",
|
|
65
69
|
"dist/stations/activity.js": "a3d3212cef693bbc0a8babc7f7210854881e92eb39c1666a87df567e91629fde",
|
|
66
70
|
"dist/stations/boards.js": "e7aec0e4a66d8629b9c954d06737c7fea94a0a1572ca29ba5c507ffd1081a165",
|
|
67
|
-
"dist/stations/cues.js": "
|
|
68
|
-
"dist/stations/
|
|
71
|
+
"dist/stations/cues.js": "bfb10a41a81110619feea7d54c5c82cc80cb839bb3081d6ddf04e9e8fc4e7709",
|
|
72
|
+
"dist/stations/interactions.js": "217fc2d4133e5dae325d3610c7012ba434c8410b6e8418fef5b68246345f5ad6",
|
|
73
|
+
"dist/stations/member-instructions.js": "2ecc92373878a1c27a11af3033ce6d2ef0c5379b1ca90787086468ceab3348f6",
|
|
74
|
+
"dist/stations/station-member.entry.js": "fb7c585b72912740da362b27a3f1b559a928322e2ff9f21621a3ca519b3b8c01",
|
|
69
75
|
"dist/stations/station-store.js": "d0d609d07938b426297d0a284969aa9f5e06acc89b3f3e67742dc82733fae4d8",
|
|
70
76
|
"dist/templates/JaXon/APPEND_SYSTEM.md": "96d9e74dc371a025cf12142f86b67bc78eaf66af930d6619e0f86e12b6c601e5",
|
|
71
77
|
"dist/templates/JaXon/DESCRIPTION": "369f5e3b1508febdd1efd7479e2be360df7aab20b27cae49949293563dc82aa9",
|
|
@@ -111,8 +117,8 @@
|
|
|
111
117
|
"examples/stations/research-writer/station.json": "01d2552ce9ff60d7b76fb314463105c218fa9038b5e2c5494c13649c4f88b7f3",
|
|
112
118
|
"examples/workflows/01-dev-loop-e2e.md": "58219d49a254c68b27742c36491460c0deafbd82ac6e34f0ea4c588b361395b6",
|
|
113
119
|
"examples/workflows/02-human-auth-and-roster-switch.md": "772a1bd9623558dc26e4a92b77048b8f690f15713556dda4042a62f94997ba5f",
|
|
114
|
-
"package.json": "
|
|
115
|
-
"runtime/provenance.json": "
|
|
116
|
-
"runtime/runtime-lock.json": "
|
|
117
|
-
"runtime/runtime-package.json": "
|
|
120
|
+
"package.json": "1d6fee36b02402e8ccc08f7fe290c4d11dc65e2cb76eeada65f9d518b525f891",
|
|
121
|
+
"runtime/provenance.json": "33b6b9ebf505812135f0027db66692b4e75f3b0ae97cb4eab97c580bddfb54ca",
|
|
122
|
+
"runtime/runtime-lock.json": "d8d71292c5f189d91d767ef0241fc3d9466fd439820e38d997a0ebbf2ec42b47",
|
|
123
|
+
"runtime/runtime-package.json": "9eb3c4da5791eeeebdb597d427d9f09d5423e9da1899822c96ce68301e6a04dd"
|
|
118
124
|
}
|
package/dist/RELEASE_META.json
CHANGED
package/dist/api/mcp-tools.js
CHANGED
|
@@ -26,9 +26,9 @@ Waiting policy
|
|
|
26
26
|
times out a wait, simply call it again with the same cursor.
|
|
27
27
|
|
|
28
28
|
What you see
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
- History omits thinking by default (counted in thinking_omitted). Avoid
|
|
30
|
+
include_thinking for context minimization; track actions, boards and results.
|
|
31
|
+
Usage includes reasoning tokens.
|
|
32
32
|
|
|
33
33
|
Human-only blocks and retries
|
|
34
34
|
- On NEEDS_HUMAN_AUTH, relay user_action and console_url to the user, then retry
|
|
@@ -53,7 +53,8 @@ Stations
|
|
|
53
53
|
short instructions pointing to boards instead of pasting plans or reports.
|
|
54
54
|
- Use session_send to continue seat work; busy calls queue, and delivery=steer redirects.
|
|
55
55
|
Use session_start(seat=none) for clean parallel work or seat=renew for stale context.
|
|
56
|
-
Members use cue
|
|
56
|
+
Members use cue to remind peers to read boards, waking idle peers without interrupting
|
|
57
|
+
busy turns. Write conclusions on boards first.
|
|
57
58
|
- While several members are busy, wait with session_list(station=..., wait_ms)
|
|
58
59
|
sized by the member expected to finish first.
|
|
59
60
|
- A result carrying station_pending means a roster change is queued. It applies
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { spawn } from "node:child_process";
|
|
2
2
|
import { randomUUID } from "node:crypto";
|
|
3
|
+
import { createInterface } from "node:readline";
|
|
3
4
|
import * as fs from "node:fs";
|
|
4
5
|
import * as path from "node:path";
|
|
5
6
|
import { STATE } from "../root.js";
|
|
@@ -12,7 +13,7 @@ const boundedAppend = (current, chunk) => {
|
|
|
12
13
|
return (current + chunk.toString("utf8")).slice(0, OUTPUT_LIMIT);
|
|
13
14
|
};
|
|
14
15
|
/** Runs Pi without a shell and with the same scrubbed environment as managed sessions. */
|
|
15
|
-
export function runPi(args, agentDir, home, cwd, timeout, extraEnv = {}) {
|
|
16
|
+
export function runPi(args, agentDir, home, cwd, timeout, extraEnv = {}, onStdoutLine) {
|
|
16
17
|
if (!args.length)
|
|
17
18
|
throw new Error("runPi requires an executable");
|
|
18
19
|
fs.mkdirSync(home, { recursive: true, mode: 0o700 });
|
|
@@ -43,6 +44,8 @@ export function runPi(args, agentDir, home, cwd, timeout, extraEnv = {}) {
|
|
|
43
44
|
let timedOut = false;
|
|
44
45
|
let spawnError;
|
|
45
46
|
child.stdout.on("data", (chunk) => { stdout = boundedAppend(stdout, chunk); });
|
|
47
|
+
if (onStdoutLine)
|
|
48
|
+
createInterface({ input: child.stdout, crlfDelay: Infinity }).on("line", onStdoutLine);
|
|
46
49
|
child.stderr.on("data", (chunk) => { stderr = boundedAppend(stderr, chunk); });
|
|
47
50
|
child.once("error", (e) => { spawnError = e.message; });
|
|
48
51
|
const timer = setTimeout(() => {
|