Repository navigation
Added
- Knox Department (experimental, off by default). Turns Knox into a small software organisation inside the editor. You are the CEO. Chat in Department mode is the Head of Engineering (it files work and reports back; it does not write code). Standing roles do the work: product manager, architect, engineering manager, tech lead, engineers, QA, security, release, SRE, tech writer, librarian, and scouts. Work moves through tickets. Seats pass typed records (tickets, design records, change requests, reviews, test reports, memos, handoffs, decision requests), not free-text chat. Ticket states, staffing, budgets, merge order, and gate results are code. A step passes only on a build, a test run, LSP diagnostics, or you, never a model's opinion. Off until
knoxchat.org.enabled. How to use it: Knox Department. Rules: contract. Bench: bench.md.- Risk levels. Rules (not a model) pick L0-L3 from the paths a request touches, its size, new dependencies, public API changes, and security-sensitive code. L0 is today's single-agent turn (no tickets). L1 is ticket, engineer, tech-lead review, QA, land. L2 adds a design note and product-manager acceptance. L3 adds an RFC you approve and a security sign-off.
- Department view. Knox: Open Department opens Board (tickets by state, team, owner, risk, budget, checks), Org chart (each seat and whether it is working, waiting, or parked), Inbox (decisions only you can answer), and Ledger (tokens, cost, and time per epic, seat, and model). Ticket detail shows acceptance criteria, timeline, diff, reviews, test report, and spend. Pause / Resume / Continue work from the header, Knox: Pause Department, or Knox: Continue Department Work. Knox: Stand Down Department discards in-flight work.
- Composer Department mode. When the Department is on, the composer popover offers Department mode. Replies from the Head of Engineering link to tickets.
- Merge queue and checkpoints. Changes reach your working tree only through the Release seat, from the merge queue, under a merge mutex. Each landing takes a non-auto workspace checkpoint (which pins Memory Brain) and re-verifies the integrated tree; a red re-verify restores the checkpoint. The author of a change cannot approve it. A review is bound to that change's diff hash; a new diff voids it. High-risk (L3) changes land alone and run the full test command first.
- Permissions only narrow. Seats cannot start other agents or ask you questions (
builtin_task/builtin_ask_userare blocked). A seat's tools are the intersection of its charter, ticket scope, worktree, and your Edits / Auto bar. Command guard, path boundary,.knoxignore, hooks, and review mode still apply. No seat writes.knoxcoder/**or.git/**. The department never editsorg.yaml; it proposes a diff and you apply it. - Settings > Department. The tab sits below Rules. It turns the Department on, edits
org.yaml(limits, checkouts, risk and dependency rules, models, teams, seats), lists role charters, and runs Department commands. It works before the Department is turned on. Presets:solo,standard,systems,rust(knoxchat.org.preset, defaultauto: systems on kernel or QEMU trees, rust with a rootCargo.toml, else standard). Workspace file:.knoxcoder/org/org.yaml. State stays on this machine (~/.knoxcoder/org/plus shareable.knoxcoder/org/in the repo). Custom agents in.knoxcoder/agents/*.mdcan fill engineer seats. - Design, QA, and security. An L3 ticket gets an RFC before any code (a tech lead writes it, a different architect approves it, you sign off in the inbox). QA runs your test command on the exact diff the tech lead approved; a QA "pass" never turns a red run green. Security review is rule-triggered (L3, security paths, secrets, new dependencies, process execution,
eval, raw sockets, or yourriskyPaths). Critical or high findings, a denied license, or a critical or high advisory block the merge whatever verdict the seat gave. - On-call and docs. If the tree goes red after a landing (or your own build fails and the Department's check reproduces it), SRE bisects recent landings on throwaway copies, reverts only the culprit under a new checkpoint, files a fix ticket, and writes a blameless postmortem. A landing that changes exported API, settings, or commands, or breaks a doc link, files a docs ticket for the Tech Writer.
- Roadmap, PRD, GitHub, and several repos. Knox: Set Department Goal drafts a roadmap you adopt in the inbox; while the editor is open and the Department is idle, a 15-minute tick works it. Knox: Build from PRD takes a Markdown PRD with numbered requirements (
R1,R2, ...) and ends with a Spec memo that traces each one.knoxchat.org.gitHosted(also off by default) mirrors reviewed heads to GitHub pull requests withgh; every push is an inbox decision, and the local merge queue still decides what lands. In a multi-root workspace the first folder holds the board; every other folder has its own worktrees, verify command, and queue. - Reorg, hiring, human seats, and audit. After an epic closes, code may propose an
org.yamlreorg or a specialist charter; both wait in your inbox. A seat can be held by a person (holder: human) for reviews only. Export Team Bundle can signorg.yaml, roles, and ADRs (imported Department charters land as candidates). The event log can be exported HMAC-signed with secrets redacted; nothing is imported back into the log. Ticket, role, team, and file memory reuse Memory Brain's local lexical channels (sqlite FTS, BM25, trigrams, graph). No embeddings, vector index, or neural rerank.
Changed
-
npm 11 project config. Native node-gyp pins (
runtime,target,disturl,ms_build_id,build_from_source) moved from.npmrcintopackage.json#nativeBuild..npmrckeeps supported npm keys (legacy-peer-deps,fetch-timeoutinstead oftimeout) and anode-options --importhook so install scripts still getnpm_config_*. Electron and server Node.js version readers follow the same field. -
Settings > Models Connect on the hovered catalog row. Connect is no longer a toolbar button. Hover a model and Connect appears on the right of the capability chips (
tools,reasoning, and so on), under the context badges. Leave the row and it hides. Clicking Connect on that row adds that model. -
Upgrade editor host to VS Code 1.148.0
Merged upstreammicrosoft/vscode1.148.0 editor, workbench, terminal, Git, Markdown editor, and Electron 43.8.10 (ms_build_id16052126) changes while keeping Knox branding, Open VSX gallery, the native TypeScript 7 toolchain, npm (not the upstream pnpm switch), and Knox Agent isolated from upstream AI. The npmelectronpackage and Knox native rebuild (KNOX_ELECTRON_VERSION) now pin 43.8.10 (ABI 148, same as 43.8.3). Built-in js-debug is 1.140.1.Editor-side additions from 1.146-1.148: workspace folder locations, unattended update restart while the screen is locked, hidden-window startup, integrated browser and remote-file handling, empty-editor hint actions (language and Markdown editor, without inline chat), and the 1.148 editor, terminal, Git, and Markdown fixes.
Not adopted from upstream: Copilot harness, Chat, Agents window, Agent Host, MCP, canvases, sessions window, prompt/skill packs, inline chat, dictation, on-device models, Copilot CLI installer, sandbox/agent telemetry, experiment assignment, the pnpm migration, and related SDKs. KnoxCoder stays on npm and uses its own Knox Agent.
Fixed
-
Darwin ARM64 minify packaging. Skip npm
.binshims when gulp copies productionnode_modules. Gulp 5 / vinyl-fs 4lstats those relative links (../uuid/dist-node/bin/uuidfrom@vscode/deviceid) from the repo root and failedpackage-darwin-arm64with ENOENT. -
macOS production signing.
build/darwin/sign.tscalled undefinedgetKeychainPathafter the Electron-version helper merge. Localbuild_dmg.shuses the login keychain; Azurebuildagent.keychainis used only whenAGENT_TEMPDIRECTORYis set. -
Windows CI
npm ci.build/npm/preinstall.tsoverlays Electron header patches frombuild/npm/headers(moved in 1.148) instead of the removedgyp/custom-headersfolder. -
Ubuntu tree-sitter wasm tests. Grammar rebuilds
npm install --ignore-scriptstree-sitter-cli@0.27.2, then runinstall.jswith Node so the nativetree-sitterbinary is downloaded.npxunderignore-scriptsleftcli.jsspawning a missing file. -
Windows tree-sitter wasm tests. Grammar fetch runs
node npm-cli.js(ornpm.cmdwithshell: true). Node cannotspawnSync npm.cmdwithout a shell (EINVAL). Core tests only fetch html and javascript wasm, which ship prebuilt.