Skip to content

Conversation

@hassoncs
Copy link
Contributor

@hassoncs hassoncs commented Jan 8, 2026

fixes errors when the agent tries to access the ~ dir

… improved cross-platform compatibility

fixes errors when the agent tries to access the ~ dir
@changeset-bot
Copy link

changeset-bot bot commented Jan 8, 2026

⚠️ No Changeset found

Latest commit: 46f2a48

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Jan 8, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Overview

This PR improves cross-platform compatibility for skill file paths by:

  1. Using path.join() instead of string concatenation with / separators
  2. Using os.homedir() to get the actual home directory path instead of the ~ shorthand

The changes are correct and follow Node.js best practices for path handling.

Files Reviewed (1 file)
  • src/core/prompts/sections/skills.ts - Path handling improvements for cross-platform compatibility
Notes
  • The change from ~/.kilocode to the full absolute path (e.g., /Users/username/.kilocode) now exposes the actual home directory path in the system prompt. This is intentional per the updated JSDoc and is necessary for the AI to correctly locate skill files using read_file.
  • The path.join() usage ensures correct path separators on both Windows (\) and Unix (/) systems.

@hassoncs hassoncs closed this Jan 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants