Sisyphus
f3db564b2e
fix: reduce context duplication from ~22k to ~11k tokens (#383)
* fix: reduce context duplication from ~22k to ~11k tokens
Remove redundant env info and root AGENTS.md injection that OpenCode
already provides, addressing significant token waste on startup.
Changes:
- src/agents/utils.ts: Remove duplicated env fields (working dir,
platform, date) from createEnvContext(), keep only OmO-specific
fields (time, timezone, locale)
- src/hooks/directory-agents-injector/index.ts: Skip root AGENTS.md
injection since OpenCode's system.ts already loads it via custom()
Fixes #379
* refactor: remove unused _directory parameter from createEnvContext()
---------
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-01-01 20:23:23 +09:00
..
2025-12-28 17:48:33 +09:00
2025-12-25 17:00:07 +09:00
2025-12-31 13:14:59 +09:00
2025-12-31 13:14:59 +09:00
2025-12-31 13:14:59 +09:00
2025-12-31 13:14:59 +09:00
2025-12-31 13:14:59 +09:00
2025-12-31 13:14:59 +09:00
2025-12-31 13:14:59 +09:00
2025-12-17 09:37:32 +09:00
2026-01-01 15:37:24 +09:00
2026-01-01 15:37:24 +09:00
2025-12-31 13:14:59 +09:00
2025-12-21 17:09:26 +09:00
2026-01-01 20:23:23 +09:00