Skip to content

[pi] Historian error spawning pi (Windows Powershell) #177

Description

@davidambler

Short description

When running Magic Context via the Pi plugin on Windows, the historian subagent fails to start with repeated spawn_failed errors: Pi recomp historian failed (spawn_failed): spawn pi ENOENT

What happened?

When running Magic Context via the Pi plugin on Windows, the historian subagent fails to start with repeated spawn_failed errors: Pi recomp historian failed (spawn_failed): spawn pi ENOENT

Environment

  • Pi plugin: v0.26.0
  • Pi: not installed
  • OS: win32 x64
  • Node: v26.2.0

Diagnostics

  • Timestamp: 2026-06-20T13:46:40.357Z
  • Pi plugin: v0.26.0
  • OS: win32 x64
  • Node: v26.2.0
  • Pi installed: true
  • Magic Context package registered: true
  • User config parse error: none
  • Project config parse error: none
  • Known Pi extension conflicts: none

Pi settings

{
"path": "<HOME>\\.pi\\agent\\settings.json",
"exists": true,
"hasMagicContextPackage": true,
"packages": [
"npm:pi-mono-multi-edit",
"npm:@hugo-hsi-dev/pi-interactive-questionnaire",
"npm:pi-ocr",
"npm:pi-lens",
"npm:@tintinweb/pi-subagents",
"npm:pi-powerline-footer",
"npm:@cortexkit/pi-magic-context"
]
}

Config paths

{
"agentDir": "<HOME>\\.pi\\agent",
"userConfig": "<HOME>\\.pi\\agent\\magic-context.jsonc",
"projectConfig": "D:\\project\\.pi\\magic-context.jsonc"
}

User magic-context.jsonc flags

{
"$schema": "https://raw.githubusercontent.com/cortexkit/magic-context/master/assets/magic-context.schema.json",
"historian": {
"model": "lm-studio/qwen3.6-27b-text-nvfp4-mtp"
},
"dreamer": {
"model": "lm-studio/qwen3.6-27b-text-nvfp4-mtp"
},
"sidekick": {
"model": "lm-studio/qwen3.6-27b-text-nvfp4-mtp"
},
"embedding": {
"provider": "local",
"model": "Xenova/all-MiniLM-L6-v2"
}
}

Project magic-context.jsonc flags

{}

Loaded config paths

  • .pi\agent\magic-context.jsonc

Config load warnings

None.

Shared storage

{
"path": "<HOME>\\.local\\share\\cortexkit\\magic-context",
"exists": true,
"context_db_size": "912.0 KB"
}

Pi extension conflicts

No known conflicting Pi extensions are currently registered. Other Pi packages are informational only.

{
"knownConflicts": [],
"otherPiExtensions": [
"npm:pi-mono-multi-edit",
"npm:@hugo-hsi-dev/pi-interactive-questionnaire",
"npm:pi-ocr",
"npm:pi-lens",
"npm:@tintinweb/pi-subagents",
"npm:pi-powerline-footer"
]
}

Log file

  • Path: \AppData\Local\Temp\pi\magic-context\magic-context.log
  • Exists: true
  • Size: 833 KB

Diagnostics

Plugin version

0.26.0

OpenCode version

N/A

Platform

windows x64

Client

Unknown

Log output (optional)

[2026-06-20T13:25:52.106Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:52.106Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:52.110Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:52.110Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:26:46.761Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:26:46.764Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:26:46.767Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:26:46.767Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:00.287Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:28:00.290Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:00.293Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:28:00.293Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:17.550Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:28:17.550Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:17.554Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:28:17.554Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:29:13.048Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:29:13.050Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:29:13.055Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:29:13.055Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"## Log (last 400 lines, sanitized)
[truncated for GitHub 64KB limit — older log lines dropped]
[2026-06-20T13:22:31.804Z] [magic-context][pi] registered auto-search hint (threshold=0.6, minChars=20)
[2026-06-20T13:22:31.804Z] [magic-context][pi] registered /ctx-aug (sidekick model=qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:22:31.805Z] [magic-context][pi] registered /ctx-status
[2026-06-20T13:22:31.805Z] [magic-context][pi] registered magic-context status line
[2026-06-20T13:22:31.805Z] [magic-context][pi] registered /ctx-flush
[2026-06-20T13:22:31.805Z] [magic-context][pi] registered /ctx-recomp
[2026-06-20T13:22:31.805Z] [magic-context][pi] registered /ctx-session-upgrade
[2026-06-20T13:22:31.805Z] [magic-context][pi] registered /ctx-dream
[2026-06-20T13:22:31.805Z] [magic-context][pi] registered /ctx-embed
[2026-06-20T13:22:31.806Z] [magic-context][pi] registered dreamer (schedule=02:00-06:00, tasks=[consolidate,verify,archive-stale,improve])
[2026-06-20T13:22:31.806Z] [magic-context][pi] registered before_agent_start system prompt injector
[2026-06-20T13:22:31.806Z] [dreamer] registered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (dreaming=true embeddings=true commits=false; total=1)
[2026-06-20T13:22:31.806Z] [dreamer] started independent schedule timer (every 15m)
[2026-06-20T13:22:31.806Z] [dreamer] timer tick (startup) — projects=1
[2026-06-20T13:22:31.808Z] [dreamer] timer tick (startup) git:ca1e75fd46fa36208ddd8a34e473ee581201991a — checking schedule window "02:00-06:00"
[2026-06-20T13:22:42.125Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:22:42.130Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:22:42.132Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191833:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188261:1734)"
[2026-06-20T13:22:42.133Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:22:42.134Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:22:42.134Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:22:42.136Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:22:42.136Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191833:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188261:1734)"
[2026-06-20T13:22:42.137Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:22:42.140Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:25:04.648Z] [dreamer] unregistered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (remaining=0)
[2026-06-20T13:25:04.648Z] [dreamer] stopped dream schedule timer (no projects left)
[2026-06-20T13:25:38.631Z] [magic-context][pi] loaded v0.26.0 | harness=pi | db=<HOME>\.local\share\cortexkit\magic-context\context.db | project=git:ca1e75fd46fa36208ddd8a34e473ee581201991a | dir=D:\project
[2026-06-20T13:25:38.635Z] [magic-context][pi] config loaded from: <HOME>\.pi\agent\magic-context.jsonc
[2026-06-20T13:25:38.636Z] [magic-context][pi] registered embedding config for project git:ca1e75fd46fa36208ddd8a34e473ee581201991a
[2026-06-20T13:25:38.637Z] [magic-context][pi] registered tools: ctx_search, ctx_memory, ctx_note, ctx_expand, ctx_reduce
[2026-06-20T13:25:38.638Z] [magic-context][pi] registered context handler (tagging + drops + nudges)
[2026-06-20T13:25:38.638Z] [magic-context][pi] registered historian trigger (model=qwen3.6-27b-text-nvfp4-mtp, executeThreshold=65%)
[2026-06-20T13:25:38.638Z] [magic-context][pi] registered auto-search hint (threshold=0.6, minChars=20)
[2026-06-20T13:25:38.638Z] [magic-context][pi] registered /ctx-aug (sidekick model=qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:38.638Z] [magic-context][pi] registered /ctx-status
[2026-06-20T13:25:38.638Z] [magic-context][pi] registered magic-context status line
[2026-06-20T13:25:38.639Z] [magic-context][pi] registered /ctx-flush
[2026-06-20T13:25:38.639Z] [magic-context][pi] registered /ctx-recomp
[2026-06-20T13:25:38.639Z] [magic-context][pi] registered /ctx-session-upgrade
[2026-06-20T13:25:38.639Z] [magic-context][pi] registered /ctx-dream
[2026-06-20T13:25:38.639Z] [magic-context][pi] registered /ctx-embed
[2026-06-20T13:25:38.641Z] [magic-context][pi] registered dreamer (schedule=02:00-06:00, tasks=[consolidate,verify,archive-stale,improve])
[2026-06-20T13:25:38.641Z] [magic-context][pi] registered before_agent_start system prompt injector
[2026-06-20T13:25:38.641Z] [dreamer] registered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (dreaming=true embeddings=true commits=false; total=1)
[2026-06-20T13:25:38.641Z] [dreamer] started independent schedule timer (every 15m)
[2026-06-20T13:25:38.641Z] [dreamer] timer tick (startup) — projects=1
[2026-06-20T13:25:38.642Z] [dreamer] timer tick (startup) git:ca1e75fd46fa36208ddd8a34e473ee581201991a — checking schedule window "02:00-06:00"
[2026-06-20T13:25:46.132Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:25:46.136Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:46.138Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:46.140Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:25:46.140Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:25:46.140Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:46.143Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:46.143Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:46.144Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:25:46.147Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:25:49.046Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:25:49.049Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:49.049Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:49.050Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:25:49.050Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:25:49.050Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:49.053Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:49.053Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:49.054Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:25:49.057Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:25:50.145Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:25:50.148Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:50.148Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:50.149Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:25:50.149Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:25:50.149Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:50.152Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:50.152Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:50.154Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:25:50.156Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:25:50.768Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:25:50.771Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:50.771Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:50.772Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:25:50.772Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:25:50.772Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:50.775Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:50.775Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:50.776Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:25:50.778Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:25:51.207Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:25:51.210Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:51.210Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:51.211Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:25:51.211Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:25:51.211Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:51.214Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:51.214Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:51.215Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:25:51.217Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:25:51.626Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:25:51.629Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:51.629Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:51.630Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:25:51.630Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:25:51.630Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:51.633Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:51.633Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:51.634Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:25:51.636Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:25:52.104Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:25:52.106Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:52.106Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:52.107Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:25:52.107Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:25:52.107Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:25:52.110Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:25:52.110Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:25:52.111Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:25:52.113Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:26:37.857Z] [dreamer] unregistered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (remaining=0)
[2026-06-20T13:26:37.857Z] [dreamer] stopped dream schedule timer (no projects left)
[2026-06-20T13:26:40.628Z] [magic-context][pi] loaded v0.26.0 | harness=pi | db=<HOME>\.local\share\cortexkit\magic-context\context.db | project=git:ca1e75fd46fa36208ddd8a34e473ee581201991a | dir=D:\project
[2026-06-20T13:26:40.631Z] [magic-context][pi] config loaded from: <HOME>\.pi\agent\magic-context.jsonc
[2026-06-20T13:26:40.632Z] [magic-context][pi] registered embedding config for project git:ca1e75fd46fa36208ddd8a34e473ee581201991a
[2026-06-20T13:26:40.632Z] [magic-context][pi] registered tools: ctx_search, ctx_memory, ctx_note, ctx_expand, ctx_reduce
[2026-06-20T13:26:40.633Z] [magic-context][pi] registered context handler (tagging + drops + nudges)
[2026-06-20T13:26:40.633Z] [magic-context][pi] registered historian trigger (model=qwen3.6-27b-text-nvfp4-mtp, executeThreshold=65%)
[2026-06-20T13:26:40.633Z] [magic-context][pi] registered auto-search hint (threshold=0.6, minChars=20)
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered /ctx-aug (sidekick model=qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered /ctx-status
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered magic-context status line
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered /ctx-flush
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered /ctx-recomp
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered /ctx-session-upgrade
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered /ctx-dream
[2026-06-20T13:26:40.634Z] [magic-context][pi] registered /ctx-embed
[2026-06-20T13:26:40.635Z] [magic-context][pi] registered dreamer (schedule=02:00-06:00, tasks=[consolidate,verify,archive-stale,improve])
[2026-06-20T13:26:40.635Z] [magic-context][pi] registered before_agent_start system prompt injector
[2026-06-20T13:26:40.635Z] [dreamer] registered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (dreaming=true embeddings=true commits=false; total=1)
[2026-06-20T13:26:40.635Z] [dreamer] started independent schedule timer (every 15m)
[2026-06-20T13:26:40.636Z] [dreamer] timer tick (startup) — projects=1
[2026-06-20T13:26:40.637Z] [dreamer] timer tick (startup) git:ca1e75fd46fa36208ddd8a34e473ee581201991a — checking schedule window "02:00-06:00"
[2026-06-20T13:26:46.757Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:26:46.761Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:26:46.764Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:26:46.765Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:26:46.765Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:26:46.766Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:26:46.767Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:26:46.767Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:26:46.769Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:26:46.772Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" Nothing was written.
[2026-06-20T13:27:58.047Z] [dreamer] unregistered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (remaining=0)
[2026-06-20T13:27:58.047Z] [dreamer] stopped dream schedule timer (no projects left)
[2026-06-20T13:27:58.431Z] [magic-context][pi] loaded v0.26.0 | harness=pi | db=<HOME>\.local\share\cortexkit\magic-context\context.db | project=git:ca1e75fd46fa36208ddd8a34e473ee581201991a | dir=D:\project
[2026-06-20T13:27:58.438Z] [magic-context][pi] config loaded from: <HOME>\.pi\agent\magic-context.jsonc
[2026-06-20T13:27:58.440Z] [magic-context][pi] registered embedding config for project git:ca1e75fd46fa36208ddd8a34e473ee581201991a
[2026-06-20T13:27:58.440Z] [magic-context][pi] registered tools: ctx_search, ctx_memory, ctx_note, ctx_expand, ctx_reduce
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered context handler (tagging + drops + nudges)
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered historian trigger (model=lm-studio/qwen3.6-27b-text-nvfp4-mtp, executeThreshold=65%)
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered auto-search hint (threshold=0.6, minChars=20)
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered /ctx-aug (sidekick model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered /ctx-status
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered magic-context status line
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered /ctx-flush
[2026-06-20T13:27:58.441Z] [magic-context][pi] registered /ctx-recomp
[2026-06-20T13:27:58.442Z] [magic-context][pi] registered /ctx-session-upgrade
[2026-06-20T13:27:58.442Z] [magic-context][pi] registered /ctx-dream
[2026-06-20T13:27:58.442Z] [magic-context][pi] registered /ctx-embed
[2026-06-20T13:27:58.443Z] [magic-context][pi] registered dreamer (schedule=02:00-06:00, tasks=[consolidate,verify,archive-stale,improve])
[2026-06-20T13:27:58.443Z] [magic-context][pi] registered before_agent_start system prompt injector
[2026-06-20T13:27:58.443Z] [dreamer] registered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (dreaming=true embeddings=true commits=false; total=1)
[2026-06-20T13:27:58.443Z] [dreamer] started independent schedule timer (every 15m)
[2026-06-20T13:27:58.443Z] [dreamer] timer tick (startup) — projects=1
[2026-06-20T13:27:58.444Z] [dreamer] timer tick (startup) git:ca1e75fd46fa36208ddd8a34e473ee581201991a — checking schedule window "02:00-06:00"
[2026-06-20T13:28:00.283Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:28:00.287Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:28:00.290Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:00.291Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:28:00.291Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:28:00.291Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:28:00.293Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn EINVAL
[2026-06-20T13:28:00.293Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn EINVAL | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:00.294Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:28:00.297Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn EINVAL" Nothing was written.
[2026-06-20T13:28:12.743Z] [dreamer] unregistered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (remaining=0)
[2026-06-20T13:28:12.743Z] [dreamer] stopped dream schedule timer (no projects left)
[2026-06-20T13:28:15.428Z] [magic-context][pi] loaded v0.26.0 | harness=pi | db=<HOME>\.local\share\cortexkit\magic-context\context.db | project=git:ca1e75fd46fa36208ddd8a34e473ee581201991a | dir=D:\project
[2026-06-20T13:28:15.430Z] [magic-context][pi] config loaded from: <HOME>\.pi\agent\magic-context.jsonc
[2026-06-20T13:28:15.431Z] [magic-context][pi] registered embedding config for project git:ca1e75fd46fa36208ddd8a34e473ee581201991a
[2026-06-20T13:28:15.431Z] [magic-context][pi] registered tools: ctx_search, ctx_memory, ctx_note, ctx_expand, ctx_reduce
[2026-06-20T13:28:15.432Z] [magic-context][pi] registered context handler (tagging + drops + nudges)
[2026-06-20T13:28:15.432Z] [magic-context][pi] registered historian trigger (model=lm-studio/qwen3.6-27b-text-nvfp4-mtp, executeThreshold=65%)
[2026-06-20T13:28:15.432Z] [magic-context][pi] registered auto-search hint (threshold=0.6, minChars=20)
[2026-06-20T13:28:15.432Z] [magic-context][pi] registered /ctx-aug (sidekick model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:28:15.432Z] [magic-context][pi] registered /ctx-status
[2026-06-20T13:28:15.432Z] [magic-context][pi] registered magic-context status line
[2026-06-20T13:28:15.432Z] [magic-context][pi] registered /ctx-flush
[2026-06-20T13:28:15.433Z] [magic-context][pi] registered /ctx-recomp
[2026-06-20T13:28:15.433Z] [magic-context][pi] registered /ctx-session-upgrade
[2026-06-20T13:28:15.433Z] [magic-context][pi] registered /ctx-dream
[2026-06-20T13:28:15.433Z] [magic-context][pi] registered /ctx-embed
[2026-06-20T13:28:15.434Z] [magic-context][pi] registered dreamer (schedule=02:00-06:00, tasks=[consolidate,verify,archive-stale,improve])
[2026-06-20T13:28:15.434Z] [magic-context][pi] registered before_agent_start system prompt injector
[2026-06-20T13:28:15.434Z] [dreamer] registered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (dreaming=true embeddings=true commits=false; total=1)
[2026-06-20T13:28:15.434Z] [dreamer] started independent schedule timer (every 15m)
[2026-06-20T13:28:15.434Z] [dreamer] timer tick (startup) — projects=1
[2026-06-20T13:28:15.435Z] [dreamer] timer tick (startup) git:ca1e75fd46fa36208ddd8a34e473ee581201991a — checking schedule window "02:00-06:00"
[2026-06-20T13:28:17.547Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:28:17.550Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:28:17.550Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:17.551Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:28:17.551Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:28:17.552Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:28:17.554Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:28:17.554Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:28:17.555Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:28:17.557Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:29:06.358Z] [dreamer] unregistered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (remaining=0)
[2026-06-20T13:29:06.358Z] [dreamer] stopped dream schedule timer (no projects left)
[2026-06-20T13:29:09.005Z] [magic-context][pi] loaded v0.26.0 | harness=pi | db=<HOME>\.local\share\cortexkit\magic-context\context.db | project=git:ca1e75fd46fa36208ddd8a34e473ee581201991a | dir=D:\project
[2026-06-20T13:29:09.009Z] [magic-context][pi] config loaded from: <HOME>\.pi\agent\magic-context.jsonc
[2026-06-20T13:29:09.010Z] [magic-context][pi] registered embedding config for project git:ca1e75fd46fa36208ddd8a34e473ee581201991a
[2026-06-20T13:29:09.010Z] [magic-context][pi] registered tools: ctx_search, ctx_memory, ctx_note, ctx_expand, ctx_reduce
[2026-06-20T13:29:09.011Z] [magic-context][pi] registered context handler (tagging + drops + nudges)
[2026-06-20T13:29:09.011Z] [magic-context][pi] registered historian trigger (model=lm-studio/qwen3.6-27b-text-nvfp4-mtp, executeThreshold=65%)
[2026-06-20T13:29:09.011Z] [magic-context][pi] registered auto-search hint (threshold=0.6, minChars=20)
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered /ctx-aug (sidekick model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered /ctx-status
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered magic-context status line
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered /ctx-flush
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered /ctx-recomp
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered /ctx-session-upgrade
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered /ctx-dream
[2026-06-20T13:29:09.012Z] [magic-context][pi] registered /ctx-embed
[2026-06-20T13:29:09.013Z] [magic-context][pi] registered dreamer (schedule=02:00-06:00, tasks=[consolidate,verify,archive-stale,improve])
[2026-06-20T13:29:09.013Z] [magic-context][pi] registered before_agent_start system prompt injector
[2026-06-20T13:29:09.013Z] [dreamer] registered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (dreaming=true embeddings=true commits=false; total=1)
[2026-06-20T13:29:09.013Z] [dreamer] started independent schedule timer (every 15m)
[2026-06-20T13:29:09.013Z] [dreamer] timer tick (startup) — projects=1
[2026-06-20T13:29:09.015Z] [dreamer] timer tick (startup) git:ca1e75fd46fa36208ddd8a34e473ee581201991a — checking schedule window "02:00-06:00"
[2026-06-20T13:29:13.044Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=agent:historian)
[2026-06-20T13:29:13.048Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:29:13.050Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:29:13.052Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-1 (failed) — not deleted
[2026-06-20T13:29:13.052Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] compartment agent: retrying historian with lm-studio/qwen3.6-27b-text-nvfp4-mtp (session-model last resort 1/1)
[2026-06-20T13:29:13.052Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: creating child session (agent=historian, model=lm-studio/qwen3.6-27b-text-nvfp4-mtp)
[2026-06-20T13:29:13.055Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: prompt attempt 1 failed: Pi recomp historian failed (spawn_failed): spawn pi ENOENT
[2026-06-20T13:29:13.055Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian prompt failed: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" promptLength=23405 stackHead="Error: Pi recomp historian failed (spawn_failed): spawn pi ENOENT | at Object.prompt (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:191828:799) | at process.processTicksAndRejections (node:internal/process/task_queues:104:5) | at async promptWithTimeout (C:/Users/<USER:07d046d5fac1>/.pi/agent/npm/node_modules/@cortexkit/pi-magic-context/dist/index.js:188256:1734)"
[2026-06-20T13:29:13.056Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] historian: KEEPING child session magic-context-pi-recomp-2 (failed) — not deleted
[2026-06-20T13:29:13.059Z] [magic-context][019ee4ef-5130-7b7b-ba43-811f40fb13ca] recomp finished (published=false): ## Magic Recomp — Failed Recomp failed while rebuilding messages 1-94: Historian failed while processing this session: Error message="Pi recomp historian failed (spawn_failed): spawn pi ENOENT" Nothing was written.
[2026-06-20T13:44:09.025Z] [dreamer] timer tick (interval) — projects=1
[2026-06-20T13:44:09.030Z] [dreamer] timer tick (interval) git:ca1e75fd46fa36208ddd8a34e473ee581201991a — checking schedule window "02:00-06:00"
[2026-06-20T13:45:22.703Z] [dreamer] unregistered project git:ca1e75fd46fa36208ddd8a34e473ee581201991a (remaining=0)
[2026-06-20T13:45:22.703Z] [dreamer] stopped dream schedule timer (no projects left)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions