mac26ai 4f2c57eb4e feat(skills): compact skill paths with ~ to reduce prompt tokens
Replace absolute home directory prefix with ~ in skill <location> tags
injected into the system prompt. Models understand ~ expansion and the
read tool resolves it, so this is a safe, backward-compatible change.

Saves ~5-6 tokens per skill path. For a workspace with 90+ skills,
this reduces system prompt size by ~400-600 tokens.

Changes:
- Add compactSkillPaths() helper in workspace.ts
- Apply in buildWorkspaceSkillSnapshot and buildWorkspaceSkillsPrompt
- Add test for path compaction behavior

Before: /Users/alice/.bun/install/global/node_modules/openclaw/skills/github/SKILL.md
After:  ~/.bun/install/global/node_modules/openclaw/skills/github/SKILL.md
2026-02-18 01:35:37 +01:00
..
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-01-20 10:51:25 +00:00
2026-01-19 00:34:26 +00:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-01-30 03:16:21 +01:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-01-14 15:02:19 +00:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-17 13:36:48 +09:00
2026-02-09 18:56:58 -08:00