Skip to content
Closed
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
dbe9950
feat(cli): list managed Agent View sessions in qwen sessions ps
yiliang114 Sep 3, 2026
8879852
docs(skills): stop the recency gate from silencing a stalled wiring
yiliang114 Sep 3, 2026
06741f4
feat(cli): start a background Agent View session with --bg
yiliang114 Sep 3, 2026
6eb41f0
feat(cli): see, answer and stop a background session
yiliang114 Sep 3, 2026
eaa0a23
test(cli): pin the id a background worker registers under
yiliang114 Sep 3, 2026
cb77045
Merge branch 'feat/agent-view-bg-dispatch' into feat/agent-view-sessi…
yiliang114 Sep 3, 2026
85c5e36
feat(serve): expose the background agents the supervisor is running
yiliang114 Sep 3, 2026
a4baf7c
fix(serve): wire the background-agents trust gate in production
yiliang114 Sep 3, 2026
7d20281
fix(serve): give the background-agents 503 the daemon error envelope
yiliang114 Sep 3, 2026
3620141
test(serve): pin the background-agents field guards in a mixed state
yiliang114 Sep 3, 2026
9b14578
fix(cli): keep non-owned supervisor snapshots out of sessions ps
yiliang114 Sep 3, 2026
94610b3
fix(cli): verify managed session pids before listing them
yiliang114 Sep 3, 2026
3e3dac5
test(cli): pin LF and TAB stripping on the ps store-failure note
yiliang114 Sep 3, 2026
4d84fbc
docs(commands): warn that the jq -r example renders session text raw
yiliang114 Sep 3, 2026
29a69d0
fix(cli): route Agent View intercepts after bootstrap routing and scrub
yiliang114 Sep 3, 2026
993944c
fix(cli): decline --bg launches carrying flags they would silently drop
yiliang114 Sep 3, 2026
2031747
fix(cli): strip LF/TAB from one-line session control output
yiliang114 Sep 3, 2026
02b87ee
docs(settings): list --bg in the command-line arguments table
yiliang114 Sep 3, 2026
6c194f9
fix(cli): name peek's title the way sessions ps does
yiliang114 Sep 4, 2026
572de7a
fix(cli): stop peek printing the summary twice
yiliang114 Sep 4, 2026
2fde009
fix(cli): write session control failures to stderr
yiliang114 Sep 4, 2026
6b2c711
fix(cli): keep the sessions ps JSON contract off display wording
yiliang114 Sep 4, 2026
e5e0b6d
Merge branch 'feat/agent-view-first-consumer' into feat/agent-view-bg…
yiliang114 Sep 4, 2026
6a96db5
Merge branch 'feat/agent-view-session-control' into feat/daemon-backg…
yiliang114 Sep 4, 2026
7614b86
Merge branch 'feat/agent-view-bg-dispatch' into feat/agent-view-sessi…
yiliang114 Sep 4, 2026
136e783
fix(serve): report the stable task token, not the table's wording
yiliang114 Sep 4, 2026
cd68e10
fix(cli): import the task-state type the row test annotates
yiliang114 Sep 4, 2026
1077718
Merge branch 'feat/agent-view-first-consumer' into feat/agent-view-bg…
yiliang114 Sep 4, 2026
04735cc
Merge branch 'feat/agent-view-bg-dispatch' into feat/agent-view-sessi…
yiliang114 Sep 4, 2026
5315cc4
Merge branch 'feat/agent-view-session-control' into feat/daemon-backg…
yiliang114 Sep 4, 2026
2416476
fix(serve): give the background-agents test a pid that is really alive
yiliang114 Sep 4, 2026
edddf36
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 7, 2026
1f84edb
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 9, 2026
318237d
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 12, 2026
a5f3bb7
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 18, 2026
ad24822
fix(cli): take isPidAlive from the core module that defines it
yiliang114 Sep 18, 2026
3bc3f95
fix(cli): make the background agent surfaces tell the truth
yiliang114 Sep 19, 2026
ebf5c1d
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 19, 2026
8294768
test(cli): keep the stdout recorder mock's return type void
yiliang114 Sep 19, 2026
7f43e6b
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 23, 2026
1b58fbb
fix(serve): merge the session registry into GET /background-agents
yiliang114 Sep 24, 2026
b2e1fea
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 25, 2026
0c5f997
Merge origin/main (73aa65a4b4) into feat/daemon-background-agents
yiliang114 Sep 25, 2026
420ab83
fix(serve): scope GET /background-agents to the bound workspace
yiliang114 Sep 25, 2026
4467b79
chore(skills): drop the find-simplifications survey edits from this PR
yiliang114 Sep 26, 2026
3b97553
Merge branch 'main' into feat/daemon-background-agents
wenshao Sep 26, 2026
4f275d0
fix(cli): let a leading --bg reach cli.js instead of answering -v
yiliang114 Sep 26, 2026
d5627a0
chore(serve): merge main into feat/daemon-background-agents
qwen-code-dev-bot Sep 26, 2026
4ae0857
Merge branch 'feat/daemon-background-agents' (d5627a0c94) into local …
yiliang114 Sep 26, 2026
ec7f7ae
fix(cli): close the round-13/14 critical findings on the background-a…
qwen-code-dev-bot Sep 27, 2026
b98dfa1
Merge origin/main into feat/daemon-background-agents
yiliang114 Sep 27, 2026
728f08a
Merge origin/main into feat/daemon-background-agents
yiliang114 Oct 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .qwen/skills/find-simplifications/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ the issue comment.
| Several strong candidates in one run | File them all; land at most one |
| Report-only territory | File with evidence, marked report-only. Never a PR |
| Path or symbol younger than ~90 days | Drop **silently** — unwired new feature, not rot |
| A young **subsystem** unwired, its wiring PR open and stale | Not a deletion. Report the stall to that PR stack |
| A never-called migrator, validator, guard, or dropped wire-up | Not cleanup. It may be a defect → `/bugfix` or `/review` |
| Any consumer cannot be named | Drop |
| Correct but tiny (one dead import, a typo) | Reject on the ledger: below both skills' intake bar |
Expand Down
47 changes: 41 additions & 6 deletions .qwen/skills/find-simplifications/references/survey.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,27 @@ feature someone is still wiring up. (90 days is a heuristic, not a measured
threshold; widen it for a large subsystem.) Proposing deletion of something
that landed last week is the fastest way to lose a reviewer for good.

But "young" is not the fact the gate is reaching for — "still being wired
up" is, and the two come apart. A directory can keep growing for months
while its consumer never lands, and then every re-run of this survey dates
it young again and drops it again, which is how a subsystem gets to five
figures with nothing calling it. So when the gate fires on a **subsystem**
(not a single symbol), date the wiring rather than the code:

```bash
# has anything outside it ever referenced it?
"$RG" -l '<dir>/' --glob '!<dir>/**' packages
Comment thread
yiliang114 marked this conversation as resolved.
Resolved
# and are the PRs that would wire it still open?
gh pr list --repo QwenLM/qwen-code --search '<feature> in:title' --state all
```

Recent commits inside the directory plus no external reference plus an open,
stalled wiring PR is **not** a deletion candidate and **not** a drop. It is a
different finding with a different owner: the wiring stalled. Report it to
that stack — the merged infrastructure has no entry point — and never as a
deletion PR. The code is wanted; the review that would connect it is what is
missing.

**3 — Published-surface escape.** Is the surface reachable from outside the
repo? SKILL.md § Territory is the authoritative list; keep the two in step.
Everything under `packages/core/src` is, via that package's `"./src/*"`
Expand Down Expand Up @@ -262,13 +283,27 @@ registry entry), not in `packages/core`, and `git log` puts it well past the
recency gate. Deletion is the component, its test, and its snapshot entry, in
one commit. This is what a filed candidate should look like.

**2. Everything says dead; `git` says five days old.** `packages/cli/src/agent-view`
is ~6,000 lines whose entry flag is passed to a spawned process but parsed
nowhere; every static signal calls it rot. Then:
**2. Everything says dead; `git` says five days old — and says it again a
month later.** `packages/cli/src/agent-view` was ~6,000 lines whose entry flag
is passed to a spawned process but parsed nowhere; every static signal called
it rot. Then:
`git log --follow --diff-filter=A --format=%ad --date=short -- packages/cli/src/agent-view
| tail -1` → `2026-08-01`, five days before HEAD. It is a feature mid-wiring.
**Drop silently.** Do not file it, do not mention it — a "should we delete
your new subsystem?" question costs more trust than the finding is worth.
| tail -1` → `2026-08-01`, five days before HEAD. A feature mid-wiring, so:
**do not file a deletion.** A "should we delete your new subsystem?" question
costs more trust than the finding is worth.

What this example originally got wrong was the second half — "do not mention
it". Measured again on 2026-09-04: **11,004 production lines, still zero
external references**, up ~8,000 in four weeks. The five merged PRs of its
stack shipped the supervisor, the PTY workers and the lifecycle; the two that
would give it an entry point (#7802 commands, #7803 roster TUI) have been
open since 2026-07-27, the second at +31,699 lines across 104 files and
conflicting. The recency gate kept firing and the survey kept dropping it, so
nothing ever said out loud that a five-figure subsystem had no caller.

The deletion verdict was right and stays right. The silence was not: this is
the stalled-wiring finding above, owed to that PR stack, not to a cleanup
list.

**3. The naive count is wrong in both directions.**
`eslint.legacy-filenames.mjs` lists 559 bare basenames. Checking "does a
Expand Down
1 change: 1 addition & 0 deletions docs/developers/daemon/02-serve-runtime.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
| ---------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `serve/fs/` | `WorkspaceFileSystem` factory plus `policy.ts` (size/trust/binary checks), `paths.ts` (canonicalize, resolveWithin, symlink rejection), `audit.ts`, and typed `FsError` values. |
| `serve/routes/workspace-file-read.ts`, `workspace-file-write.ts` | HTTP handlers for `GET /file`, `GET /file/bytes`, `POST /file/write`, and `POST /file/edit`. |
| `serve/routes/background-agents.ts` | `GET /background-agents` — the sessions the Agent View supervisor is running, read from the roster rather than from the daemon's own session model. Read-only: acting on one goes through the supervisor's socket, which the CLI does. |
Comment thread
yiliang114 marked this conversation as resolved.
Resolved
| `serve/workspace-memory.ts` | `GET/POST /workspace/memory` (QWEN.md CRUD). |
| `serve/workspace-agents.ts` | `GET/POST/DELETE /workspace/agents` (subagent CRUD). |
| `serve/daemon-status-provider.ts` | Env snapshot plus daemon-host preflight cells: Node version, CLI entry, workspace stat, ripgrep, git, npm. |
Expand Down
1 change: 1 addition & 0 deletions docs/users/configuration/settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -803,6 +803,7 @@ For sandbox image selection, precedence is:
| `--model` | `-m` | Specifies the Qwen model to use for this session. | Model name | Example: `npm start -- --model qwen3-coder-plus` |
| `--prompt` | `-p` | Used to pass a prompt directly to the command. This invokes Qwen Code in a non-interactive mode. | Your prompt text | For scripting examples, use the `--output-format json` flag to get structured output. |
| `--prompt-interactive` | `-i` | Starts an interactive session with the provided prompt as the initial input. | Your prompt text | The prompt is processed within the interactive session, not before it. Cannot be used when piping input from stdin. Example: `qwen -i "explain this code"` |
| `--bg` | | Experimental. Runs the prompt as a background session owned by a supervisor, and returns immediately, printing the session id. | Your prompt text | Other launch flags are not honored; pass the prompt alone. List background sessions with `qwen sessions ps`. Example: `qwen --bg "audit the release"` |
| `--system-prompt` | | Overrides the built-in main session system prompt for this run. | Your prompt text | Loaded context files such as `QWEN.md` are still appended after this override. Can be combined with `--append-system-prompt`. |
| `--append-system-prompt` | | Appends extra instructions to the main session system prompt for this run. | Your prompt text | Applied after the built-in prompt and loaded context files. Can be combined with `--system-prompt`. See [Headless Mode](../features/headless) for examples. |
| `--output-style` | | Selects the output style that shapes how responses are written for this run. | Style name | `Concise`, `Proactive`, `Explanatory`, `Learning`, or `default` for no style (case-insensitive). Overrides the `general.outputStyle` setting. An unknown name prints a warning and the session starts with the default style. Has no effect when `--system-prompt` or `QWEN_SYSTEM_MD` replaces the built-in prompt. See [Headless Mode](../features/headless) for examples. |
Expand Down
Loading
Loading