This document covers common errors, environment variables, debugging tips, and OS-specific considerations for agent-sync.
Error | Description | Solution |
---|---|---|
configuration file not found |
The agent-sync.yml file could not be found | Ensure you’re in the correct directory or specify the path with --config |
invalid configuration format |
The configuration file has syntax errors | Check the YAML syntax for errors |
mixed configuration format |
Both simplified and standard formats were detected | Use either the simplified format or the standard format, not both |
agent not found |
The specified agent is not supported | Check for typos or use agent-sync list agents to see supported agents |
file access denied |
Permission issues when reading/writing files | Check file permissions |
agent-sync recognizes the following environment variables:
Variable | Description |
---|---|
AGENT_SYNC_LOG_FILE |
Log file path (overridden by --log-file flag) |
AGENT_SYNC_LOG_LEVEL |
Log level (overridden by --log-level flag) |
--dry-run
: Preview what would be generated without writing files--debug
for a shorthand that sets level to debug and enables console output, or use --log-level=debug --verbose
explicitly/
are treated as directories, while paths without are treated as filesThe --dry-run
flag provides a powerful way to preview and debug your configuration without making actual changes. The enhanced output format offers:
Agent-based organization: Output is grouped by agent, making it easy to see how files will be processed for each target system
[CREATE]
: File does not exist and would be created[MODIFY]
: File exists and its content would be changed[UNCHANGED]
: File exists and its content would remain the sameExample of using dry-run to debug configuration issues:
# Run in dry-run mode to check configuration
agent-sync apply --dry-run
# If you need more details, combine with debug logging
# Shorthand (debug level + console output)
agent-sync apply --dry-run --debug
# Equivalent explicit form
agent-sync apply --dry-run --log-level debug --verbose
This helps identify issues such as:
/
) and backslashes (\
) are supported in paths. Home directory expansion (~
) works with the user’s profile directory./
) for paths. Home directory expansion (~
) works with the user’s home directory.Some default paths differ between operating systems:
%APPDATA%\Code\User\globalStorage\rooveterinaryinc.roo-cline\settings\custom_modes.yaml
(for mode tasks)%USERPROFILE%\Documents\Cline\Rules\
~/Library/Application Support/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/custom_modes.yaml
~/Documents/Cline/Rules/
~/.config/Code/User/globalStorage/rooveterinaryinc.roo-cline/settings/custom_modes.yaml
~/Documents/Cline/Rules/
Note:
.roo/commands/
(project) or ~/.roo/commands/
(user) by default (directory, per-file)..roomodes
for project scope, and custom_modes.yaml
in the platform-specific VS Code globalStorage path for user scope.If you’re having issues with logs:
debug
--verbose
warn
or error
For more information about logging configuration, see the Logging Guide.
Previous | Next |
---|---|
Examples and Best Practices |