Skip to content

Replace hardcoded 'Daniel' user references with dynamic principal.name #555

@neilsoult

Description

@neilsoult

Problem

Several files in the PAI codebase contain hardcoded references to "Daniel" as the user identity. When someone other than Daniel uses PAI, the system still refers to "Daniel" instead of the actual principal's name from settings.json.

Impact

Users who configure their own principal.name in settings.json still see "Daniel" in:

  • Agent voice notification instructions (11 files)
  • Variable names in hooks
  • File name references

Affected Files

HIGH PRIORITY - Agent Files (Packs/pai-agents-skill/src/agents/)

All contain: "DO NOT SKIP - Daniel needs to hear you speak"

  • Architect.md (line 76)
  • Artist.md (line 72)
  • ClaudeResearcher.md (line 91)
  • CodexResearcher.md (line 78)
  • Designer.md (line 73)
  • Engineer.md (lines 74, 184)
  • GeminiResearcher.md (line 91)
  • GrokResearcher.md (line 77)
  • Intern.md (line 94)
  • Pentester.md (line 93)
  • QATester.md (line 72)

MEDIUM PRIORITY - Hook Files

  • Releases/v2.5/.claude/hooks/RelationshipMemory.hook.ts: Variable danielPreferences should be principalPreferences
  • Releases/v2.5/.claude/skills/PAI/Tools/RelationshipReflect.ts: References ABOUT_DANIEL.md

Proposed Fix

Replace hardcoded "Daniel" user references with the principal name from settings.json:

  1. Agent files: Change to "The principal needs to hear you speak" or use a placeholder that gets substituted
  2. Variable names: Rename to generic names like principalPreferences
  3. File references: Use ABOUT_PRINCIPAL.md or dynamic naming

Notes

  • This does NOT affect:
    • Author attribution ("Author: Daniel Miessler") - these are correct
    • Voice name references ("Daniel" ElevenLabs voice) - these are correct
    • Repository URLs (danielmiessler/PAI) - these are correct

Only USER IDENTITY references that assume the user is named "Daniel" need to change.


Reported via PAI system analysis

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions