Skip to main content

apply_resume_compatibility

Function apply_resume_compatibility 

Source
pub fn apply_resume_compatibility(
    config: &mut Config,
    claude_home: &Path,
) -> Result<ClaudeCompatibilitySnapshot, Error>
Expand description

Install Claude Code’s non-executing compatibility state into config.

This imports Claude’s global instructions and project named agents, then enables the inert Agent compatibility surface. It does not spawn a child, start a scheduler, or change sandbox/approval posture. The caller supplies Claude’s home (normally $HOME/.claude) explicitly so embedding/tests do not depend on process-global environment mutation.