Skip to main content

Module claude_compat

Module claude_compat 

Source
Expand description

Claude Code project compatibility helpers.

Claude stores named subagent definitions as Markdown files under <project>/.claude/agents/. The body is the child’s system prompt and a small YAML-like frontmatter block carries its name, tool allowlist, and model pin. These helpers import that durable project state without starting a child or otherwise executing it.

Structs§

ClaudeCompatibilitySnapshot
Claude-specific project state installed into a resumed agent config.
ClaudeProjectAgent
One imported Claude project-agent file.

Functions§

apply_resume_compatibility
Install Claude Code’s non-executing compatibility state into config.
load_project_agents
Discover and parse every <cwd>/.claude/agents/*.md definition.
parse_project_agent
Parse one Claude project-agent Markdown definition.