Skip to content

feat(plugin): system prompt injection for behavior enforcement #828

@JeremyDev87

Description

@JeremyDev87

Purpose

Inject codingbuddy rules and agent context into Claude's system prompt automatically. Solves the core problem: MCP can only recommend, plugin can enforce.

Changes

  • packages/codingbuddy-plugin/ — Prompt injection module
  • Auto-inject: active agent's system prompt, mandatory checklists, mode-specific rules
  • Auto-dispatch enforcement: when parse_mode returns dispatch:"auto", inject "MUST dispatch these specialists"

Key Enforcement

  • Specialist auto-dispatch: 0% → 100% dispatch rate
  • Quality gates: cannot skip lint/test before commit
  • Mode rules: PLAN/ACT/EVAL behavior strictly enforced

Acceptance Criteria

  • codingbuddy rules injected into system prompt at session start
  • Active agent context auto-injected on mode change
  • dispatch:"auto" triggers MUST-dispatch instruction injection
  • Quality gate rules injected as non-negotiable constraints
  • Injection configurable (opt-out per rule)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featpriority:mustMust Have - 반드시 필요, 없으면 릴리즈 불가sub-issue상위 이슈의 하위 작업

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions