Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

refactor: read hot-path files with Bun.file

3 months ago

ba3721c
Authored
Cursor Agent7/1/2026, 11:15:30 PM
Phase 4 of the Bun-native migration. Whole-file text/JSON reads on agent hot
paths move to Bun.file().text()/.arrayBuffer() and the edit tool writes with
Bun.write: edit/read tools, prompt templates and sub-agent prompts, skill
catalog and skill bodies, config layers, session snapshots, memory store,
MCP credential store, and the CLI state store. Atomic tmp+rename writes,
chmod hardening, streaming reads, and fs.watch usage deliberately stay on
node:fs.

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

Parente067a28

10 files changed
  • src/cli/repl/stateStore.ts+1−1
  • src/config.ts+1−1
  • src/mcp/authStore/store.ts+1−1
  • src/memoryStore.ts+1−1
  • src/prompt.ts+4−4
  • src/server/sessionStore.ts+2−2
  • src/skills/catalog.ts+4−4
  • src/skills/loadSkillBody.ts+1−1
  • src/tools/edit.ts+2
−2
  • src/tools/read.ts+1−1