Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: harden instruction file writes, cache local embedding providers, and refine call resolution

3 months ago

b57e952
Authored
asta-nguyen8/11/2026, 7:58:23 AM
- Use atomic write-then-rename for AGENTS.md/CLAUDE.md to prevent partial writes
- Add O_NOFOLLOW and symlink checks to reject symlink attacks on instruction files
- Cache LocalEmbeddingProvider instances by model directory to avoid redundant initialization
- Parse retry-after/x-ratelimit-reset headers for smarter backoff on 429 responses
- Fix false-positive this.member rewriting in nested plain functions (only rewrite in methods)
- Preserve non-active-provider embeddings when

Parent1e7f788

9 files changed
  • apps/cli/src/setup-instructions.ts+51−4
  • apps/web/src/routes/settings.tsx+3−1
  • docs/superpowers/plans/2026-08-10-local-embedding-cli.md+1−1
  • packages/core/src/local-embedding.ts+35−2
  • packages/indexer/src/parsers/oxc-parser.ts+1−1
  • tests/embed-benchmark.test.ts+3−0
  • tests/embed-workspace.test.ts+19−3
  • tests/local-embedding.test.ts+4−0
  • tests/oxc-parser.test.ts+25−0