harnessed 4.31.1 → 4.31.2

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 CHANGED
@@ -93,6 +93,8 @@ Native agents give you primitives; harnessed wires them into a methodology. Wher
93
93
 
94
94
  > Native agents win on zero-setup, zero-overhead for trivial one-off edits. harnessed earns its keep the moment work spans multiple steps, sessions, or subagents — where freestyle drift and lost-in-chat state start costing you.
95
95
 
96
+ **Don't take our word for it — we ran the experiment.** A published A/B evidence pack ([docs/evidence/2026-07-b1/](./docs/evidence/2026-07-b1/)) compares `/auto` against bare Claude Code on 4 machine-graded tasks, full transcripts included. Honest headline: on small, fully-specified tasks both arms score 100% and bare is 4-5× cheaper — use bare (or auto-lite) there. The orchestration value claim lives in fuzzy-spec / multi-session territory, which that experiment deliberately does not cover; bring us a real task from that territory and we'll run the same protocol on it.
97
+
96
98
  ---
97
99
 
98
100
  ## 📦 Quick Install
package/dist/cli.mjs CHANGED
@@ -38,7 +38,7 @@ var init_package = __esm({
38
38
  "package.json"() {
39
39
  package_default = {
40
40
  name: "harnessed",
41
- version: "4.31.1",
41
+ version: "4.31.2",
42
42
  description: "AI coding harness package manager + composition orchestrator",
43
43
  type: "module",
44
44
  license: "Apache-2.0",
@@ -6884,6 +6884,16 @@ var init_doctor_registry = __esm({
6884
6884
  }
6885
6885
  });
6886
6886
 
6887
+ // src/cli/lib/detectHeadless.ts
6888
+ function detectHeadless(env, _isTTY) {
6889
+ if (env.HARNESSED_HEADLESS === "1") return { headless: true, signal: "explicit-env" };
6890
+ return { headless: false, signal: "none" };
6891
+ }
6892
+ var init_detectHeadless = __esm({
6893
+ "src/cli/lib/detectHeadless.ts"() {
6894
+ }
6895
+ });
6896
+
6887
6897
  // src/cli/gates.ts
6888
6898
  var gates_exports = {};
6889
6899
  __export(gates_exports, {
@@ -7004,11 +7014,19 @@ async function runGatesPlan(master, raw, deps = defaultRunDeps) {
7004
7014
  (m) => deps.warn(m)
7005
7015
  );
7006
7016
  let parallelism = { escalate_to_teams: false, reason: null };
7007
- try {
7008
- const escalate = await resolveJudgmentGate(PARALLELISM_GATE, ctx, packageRoot);
7009
- parallelism = escalate ? { escalate_to_teams: true, reason: "agent-teams-upgrade gate fired" } : { escalate_to_teams: false, reason: null };
7010
- } catch {
7011
- parallelism = { escalate_to_teams: false, reason: null };
7017
+ const hl = detectHeadless(process.env, Boolean(process.stdout.isTTY));
7018
+ if (hl.headless) {
7019
+ parallelism = {
7020
+ escalate_to_teams: false,
7021
+ reason: "headless mode \u2014 Agent Teams are session-scoped, incompatible with -p (issue #7)"
7022
+ };
7023
+ } else {
7024
+ try {
7025
+ const escalate = await resolveJudgmentGate(PARALLELISM_GATE, ctx, packageRoot);
7026
+ parallelism = escalate ? { escalate_to_teams: true, reason: "agent-teams-upgrade gate fired" } : { escalate_to_teams: false, reason: null };
7027
+ } catch {
7028
+ parallelism = { escalate_to_teams: false, reason: null };
7029
+ }
7012
7030
  }
7013
7031
  const result = { master, fire, skip, parallelism };
7014
7032
  deps.log(JSON.stringify(result, null, 2));
@@ -7045,6 +7063,7 @@ var init_gates = __esm({
7045
7063
  init_judgmentResolver();
7046
7064
  init_skipSubs();
7047
7065
  init_assetsRoot();
7066
+ init_detectHeadless();
7048
7067
  init_gateContext();
7049
7068
  init_runDeps();
7050
7069
  VALID_MASTERS = /* @__PURE__ */ new Set(["auto", "discuss", "plan", "task", "verify", "ship"]);