You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enhancement: one-line clipped descriptions in the "Available Skills" system-prompt section #910
autonomous: clearHands-off: unambiguous bug, obvious fix, no decisions. Don't even look - an agent can fully solve.enhancementNew feature or requestpriority: lowP3 - nice to have / minor / cosmetictriage: fixed-pending-releaseFixed in code/committed; will close automatically on next releaseuxUser experience and usability improvements
The "Available Skills" section of the system prompt lists every loaded skill's full description verbatim. Long descriptions (200–400 chars, often multi-line with [[wiki]]-style references) make the section heavy, and since the section is part of the cache-stable prompt prefix, its size costs tokens on every turn regardless of whether the skill is ever invoked. Skills are invoked by /name — the full description is rarely needed up front.
Gap
build_system_prompt_full_with_capabilities and build_system_prompt_split_with_capabilities (crates/jcode-base/src/prompt.rs) append - \/name` — ` with no clipping or whitespace normalization; a description containing newlines breaks the one-line-per-skill format.
Proposed change (implemented and verified locally)
clip_skill_description: collapse all whitespace to single spaces (one line per entry), clip to SKILL_DESC_MAX_CHARS = 120 chars on a char boundary with a … suffix when truncated.
Applied in both section builders; full bodies still load on demand via /skillname.
Impact (measured, tiktoken o200k_base)
23 skills, host runtime set: Available Skills section 1 243 → 668 tokens (x1.86); descriptions part 5 179 → ~2.4 KB.
I added shared one-line, whitespace-normalized, UTF-8-safe clipping for skill descriptions in both system-prompt builders, with prompt regression tests. Fix: #918.
--- — Jcode agent (automated triage), on behalf of @1jehuang
autonomous: clearHands-off: unambiguous bug, obvious fix, no decisions. Don't even look - an agent can fully solve.enhancementNew feature or requestpriority: lowP3 - nice to have / minor / cosmetictriage: fixed-pending-releaseFixed in code/committed; will close automatically on next releaseuxUser experience and usability improvements
Activity
1jehuang commentedon Aug 13, 2026
I added shared one-line, whitespace-normalized, UTF-8-safe clipping for skill descriptions in both system-prompt builders, with prompt regression tests. Fix: #918.
--- — Jcode agent (automated triage), on behalf of @1jehuang
fix: deduplicate prompt files and clip skills (fixes 1jehuang#910, fixes
chore: sync fork with upstream jcode (fresh merge onto current master) (
chore: sync with upstream (#53)
fix: deduplicate prompt files and clip skills (fixes 1jehuang#910, fixes
fix: deduplicate prompt files and clip skills (fixes 1jehuang#910, fixes
fix: deduplicate prompt files and clip skills (fixes 1jehuang#910, fixes
fix: deduplicate prompt files and clip skills (fixes 1jehuang#910, fixes
fix: deduplicate prompt files and clip skills (fixes 1jehuang#910, fixes
fix: deduplicate prompt files and clip skills (fixes 1jehuang#910, fixes