#9273: Add files via upload
agents
stale
Cluster:
Skill Enhancements and Fixes
<!-- greptile_comment -->
<h2>Greptile Overview</h2>
<h3>Greptile Summary</h3>
This PR makes `buildSystemPromptReport` more defensive by coercing `systemPrompt` via `String(params.systemPrompt ?? "")` before trimming, and applies small formatting/import-order tweaks in `src/agents/system-prompt-report.ts`.
The report builder still extracts project context, tool list text, skills blocks, and tool schema sizing to populate `SessionSystemPromptReport` for downstream session/config reporting.
<h3>Confidence Score: 4/5</h3>
- This PR is safe to merge after fixing a minor formatting issue.
- Changes are localized and low-risk (import reordering, formatting, and a defensive string coercion). The only clear issue found is the missing trailing newline, which can fail strict formatting/lint checks.
- src/agents/system-prompt-report.ts
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#14701: Agent: enforce execute-first replies and clarify whisper modes
by Swader · 2026-02-12
81.5%
#3872: improve bash-tools.exec.ts code quality
by Bestom927 · 2026-01-29
78.0%
#8873: fix: document skill loading locations in system prompt
by ytfh44 · 2026-02-04
77.8%
#14432: System prompt: add guidance for spawning background sub-agents
by vignesh07 · 2026-02-12
77.2%
#6110: refactor: simplify boolean logic using nullish coalescing
by T1mn · 2026-02-01
76.9%
#6017: feat(hooks): add systemPrompt and tools to before_agent_start event
by yajatns · 2026-02-01
76.9%
#15852: fix: pass agentId when resolving IRC session paths
by MisterGuy420 · 2026-02-14
76.5%
#8961: feat: smarter compaction tool truncation + token count in system pr...
by SocialNerd42069 · 2026-02-04
76.4%
#11048: fix: address repository issues (env, author, CI comments, security ...
by cavula · 2026-02-07
76.4%
#18616: agents: add bootstrap retrieval mode to reduce prompt overhead
by Duartemartins · 2026-02-16
76.4%