Troubleshooting
Check overall state
bash
aiman status
aiman doctorstatus answers "what has changed and what is published." doctor answers "is the local machine ready to apply inventory."
AI environment not found
Symptom:
text
environment codex not foundSteps:
- Verify the AI tool is installed.
- Check the standard environment directory.
- If the path is non-standard, set it in
aim.local.yaml.
yaml
environments:
codex: ~/.codexaiman sync blocked by local changes
aiman sync will not overwrite local changes without an explicit decision from you.
Options:
- publish changes:
bash
aiman push
aiman sync- manually save or discard local changes;
- apply the published state, discarding local changes:
bash
aiman sync --forceRemote repository is ahead of local state
If push reports that the remote is ahead, apply the published state first:
bash
aiman syncThen redo your local changes or publish the current state.
Required MCP env variable is not set
Symptom:
text
required env variable API_KEY is missingRun aiman sync — AIM will prompt for the value interactively. Or set it directly in aim.local.yaml:
yaml
mcp_env:
context7:
API_KEY: "..."Do not commit aim.local.yaml.
Invalid Skill or MCP Item
Check that:
- the filename matches
name; - the Skill has a non-empty body after the frontmatter;
- the MCP Item contains
name,description,command,args,targets, andenv; - the YAML is valid.
Formats are described in Inventory Format.
No access to the remote repository
Check:
- SSH key or HTTPS authentication;
- repository access permissions;
- the presence of the
originremote; - network connectivity.
Git history has diverged
AIM intentionally does not perform merges on your behalf.
If the history has diverged, restore the repository using standard Git commands manually, then retry:
bash
aiman status
aiman sync