Skip to content

dm-context-filter: live prompt still exposes Kimaki spawn guidance and noisy --user examples #137

@chubes4

Description

@chubes4

Problem

Data Machine-managed Kimaki sessions are still receiving generic Kimaki session-spawning guidance that dm-context-filter is supposed to strip or adapt. This is no longer just model self-report: the current live OpenCode session followed the surviving prompt guidance and spawned Homeboy fleet minion threads with --user 532385681268408341, causing Discord system messages that Franklin added chubes to every minion thread.

The behavior is wrong for background fleet/minion work. The controller thread should own user notification, while minion threads should run quietly unless user review is explicitly needed.

Evidence

Repository inspection shows:

  • This site opencode.json loads /Users/chubes/.kimaki/kimaki-config/plugins/dm-context-filter.ts.
  • The installed plugin strips several sections and strips --agent <current_agent> examples.
  • The effective-prompt harness passes, but it only gates --agent leaks by default.
  • Filtered snapshots still preserve --user in helper/minion spawning guidance.

Relevant files:

  • bridges/kimaki/plugins/dm-context-filter.ts
  • tests/effective-prompt/run.mjs
  • tests/effective-prompt/snapshots/default.filtered.txt
  • tests/effective-prompt/snapshots/no-agents-no-thread.filtered.txt

Current filtered snapshot still says, in the start-new-sessions section:

  • kimaki send --channel ... --prompt your prompt here --user
  • You can use this to spawn parallel helper sessions like teammates
  • Prefer --user over --user name

That is exactly the guidance the live agent followed when spawning minions.

This is adjacent to #120, but narrower and actionable: even if the transform path were fully effective, the filtered prompt still keeps the wrong --user guidance for minion/fleet spawning.

Desired behavior

  • Background helper/minion/fleet spawning examples omit --user by default.
  • --user remains documented only for explicit user-facing notifications or cases where the user should be added to the new thread.
  • The filtered prompt should make the distinction clear:
    • controller/minion fan-out: no --user
    • notification/user-review thread: use --user or an explicit mention
  • Tests should fail if generic helper/minion spawn guidance contains --user.
  • If dm-context-filter: strip operations don't reach model in live sessions despite tests passing #120 means transform output is still not reaching live model context, the implementation should either fix the live hook path or move this policy to a prompt surface that is proven to affect outgoing model context.

Acceptance criteria

AI assistance

  • AI assistance: Yes
  • Tool(s): OpenCode (gpt-5.5)
  • Used for: Issue drafted from live session behavior and repository inspection; Chris directed filing and dispatch.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions