Skip to content

feat(compile): add --no-dedup / --force-instructions flag for claude target #1463

@sergio-sisternes-epam

Description

@sergio-sisternes-epam

Context

PR #1146 introduced deduplication logic for apm compile --target claude: when .claude/rules/ already contains per-instruction files, the compiler omits the instructions section from CLAUDE.md to avoid duplicate context.

Request

Add an escape hatch flag (--no-dedup or --force-instructions) on apm compile --target claude so users can opt out of the deduplication behaviour when needed (e.g. debugging, or when the user intentionally wants both copies).

Source

Recommended by the devx-ux-expert persona during the apm-review-panel pass on PR #1146.

Acceptance criteria

  • New CLI flag accepted by apm compile
  • When set, instructions section is always included in CLAUDE.md regardless of .claude/rules/ contents
  • Unit test covering the flag
  • Docs updated in docs/src/content/docs/producer/compile.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/cliCLI command surface, flags, help text (cross-cutting).area/docs-sitedocs/src/content (Starlight), README, doc generation.enhancementDeprecated: use type/feature. Kept for issue history; will be removed in milestone 0.10.0.priority/lowAccepted but not time-sensitivestatus/acceptedDirection approved, safe to start work.status/triagedInitial agentic triage complete; pending maintainer ratification (silence = approval).theme/portabilityOne manifest, every target. Multi-target deploy, marketplace, packaging, install.type/featureNew capability, new flag, new primitive.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions