CLAUDEMD_SYSTEM_PROMPT missing type emoji mappings #294

Closed
opened 2026-01-25 15:47:14 +00:00 by jack · 1 comment
Owner

Problem

CLAUDEMD_SYSTEM_PROMPT in packages/worker/src/handlers/prompts.ts only provides emoji mappings for 6 observation types, but ObservationType defines 21 types.

Current State (Lines 165-172)

Type indicators (T column):
- 🔵 discovery: Information gathering
- 🟣 change: File modifications
- 🟠 feature: New functionality
- 🔴 bugfix: Bug fixes
- ✅ decision: Architectural decisions
- 🔄 refactor: Code restructuring

Missing Mappings

The following types have no emoji mapping:

Type Suggested Emoji Description
docs 📝 Documentation changes
config ⚙️ Configuration changes
test 🧪 Test implementation
security 🔒 Security fixes
performance Performance optimization
deploy 🚀 Deployment changes
infra 🏗️ Infrastructure changes
migration 📦 Database migrations
research 🔬 Investigation/analysis
api 🔌 API changes
integration 🔗 Third-party integration
dependency 📚 Package updates
task ☑️ Todo items
plan 📋 Implementation plans
note 📌 Manual notes
session-request 💬 User requests

Impact

When generating CLAUDE.md files, observations with unmapped types will either:

  1. Have no emoji in the table
  2. Be incorrectly mapped by the LLM

This reduces the visual clarity and scannability of CLAUDE.md files.

Solution

  1. Add emoji mappings for all 21 observation types
  2. Consider referencing ObservationTypeConfig from packages/types/src/database.ts which already defines emoji/icon for types

Note

The UI already has getTypeBadge() function with type-to-color/icon mappings. The prompt should be consistent with the UI representation.

  • Issue #291 - OBSERVATION_SYSTEM_PROMPT sync issue
## Problem `CLAUDEMD_SYSTEM_PROMPT` in `packages/worker/src/handlers/prompts.ts` only provides emoji mappings for 6 observation types, but `ObservationType` defines 21 types. ## Current State (Lines 165-172) ``` Type indicators (T column): - 🔵 discovery: Information gathering - 🟣 change: File modifications - 🟠 feature: New functionality - 🔴 bugfix: Bug fixes - ✅ decision: Architectural decisions - 🔄 refactor: Code restructuring ``` ## Missing Mappings The following types have no emoji mapping: | Type | Suggested Emoji | Description | |------|-----------------|-------------| | `docs` | 📝 | Documentation changes | | `config` | ⚙️ | Configuration changes | | `test` | 🧪 | Test implementation | | `security` | 🔒 | Security fixes | | `performance` | ⚡ | Performance optimization | | `deploy` | 🚀 | Deployment changes | | `infra` | 🏗️ | Infrastructure changes | | `migration` | 📦 | Database migrations | | `research` | 🔬 | Investigation/analysis | | `api` | 🔌 | API changes | | `integration` | 🔗 | Third-party integration | | `dependency` | 📚 | Package updates | | `task` | ☑️ | Todo items | | `plan` | 📋 | Implementation plans | | `note` | 📌 | Manual notes | | `session-request` | 💬 | User requests | ## Impact When generating CLAUDE.md files, observations with unmapped types will either: 1. Have no emoji in the table 2. Be incorrectly mapped by the LLM This reduces the visual clarity and scannability of CLAUDE.md files. ## Solution 1. Add emoji mappings for all 21 observation types 2. Consider referencing `ObservationTypeConfig` from `packages/types/src/database.ts` which already defines emoji/icon for types ## Note The UI already has `getTypeBadge()` function with type-to-color/icon mappings. The prompt should be consistent with the UI representation. ## Related - Issue #291 - OBSERVATION_SYSTEM_PROMPT sync issue
Author
Owner

Fixed in commit 6d0e113

Added all 21 type emoji mappings to CLAUDEMD_SYSTEM_PROMPT:

  • 🔴 bugfix, 🟠 feature, 🔄 refactor, 🟣 change
  • 📝 docs, ⚙️ config
  • 🧪 test, 🔒 security, performance
  • 🚀 deploy, 🏗️ infra, 📦 migration
  • 🔵 discovery, decision, 🔬 research
  • 🔌 api, 🔗 integration, 📚 dependency
  • ☑️ task, 📋 plan
  • 📌 note, 💬 session-request
Fixed in commit 6d0e113 Added all 21 type emoji mappings to CLAUDEMD_SYSTEM_PROMPT: - 🔴 bugfix, 🟠 feature, 🔄 refactor, 🟣 change - 📝 docs, ⚙️ config - 🧪 test, 🔒 security, ⚡ performance - 🚀 deploy, 🏗️ infra, 📦 migration - 🔵 discovery, ✅ decision, 🔬 research - 🔌 api, 🔗 integration, 📚 dependency - ☑️ task, 📋 plan - 📌 note, 💬 session-request
jack closed this issue 2026-01-25 15:57:09 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
customable/claude-mem#294
No description provided.