You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] apm compile -t <target> generates outputs for ALL targets, ignoring the -t flag #1074
apm compile -t <target> generates output files for ALL supported targets regardless of what is passed to -t. The flag only controls which harness directories get skills deployed to during apm install, not what compile outputs.
Environment
APM version: 0.11.0
OS: Linux (NixOS)
Steps to Reproduce
mkdir -p /tmp/apm-compile-bug/.apm/instructions
cd /tmp/apm-compile-bug
cat > apm.yml << 'EOF'name: test-bugversion: 1.0.0type: hybridtarget: opencodeEOF
cat > .apm/instructions/test.instructions.md << 'EOF'---description: Test instructionapplyTo: "*.md"---Test content.EOF# Compile with opencode target only
apm compile -t opencode
Expected Behavior
apm compile -t opencode should only generate AGENTS.md (which is what opencode reads). It should not generate CLAUDE.md, GEMINI.md, or any other target-specific output.
Running ls after the command shows both AGENTS.md and CLAUDE.md (and likely more if the project had matching target files). The -t opencode flag had no effect on which files were generated.
Additional Context
The -t flag description in --help says Target platform: copilot (AGENTS.md), claude (CLAUDE.md), cursor, opencode, or all. — implying it controls compile output, but it does not.
This produces unwanted files (e.g., a CLAUDE.md in a repo that only uses opencode) that must then be .gitignore\d or manually cleaned.
Verified on 0.11.0 with a clean Python environment (no PYTHONPATH pollution).
Suspected Location
The compile command likely ignores the -t/--target parameter and always compiles for all registered targets. The flag is only respected by apm install for harness directory deployment.
Activity
ic4-y commentedon Apr 30, 2026
Closing — verified this is fixed in 0.11.0. The
-tflag now correctly restricts compile output to the specified targets.fix(compile): forward target to watch-mode recompile (closes #1345) (#…
fix(compile): forward target to watch-mode recompile (closes #1345) (#…