Skip to content

feat: add per-thread system prompts - #16

Merged
AaronCQL merged 4 commits into
mainfrom
feat/thread-system-prompts
Apr 13, 2026
Merged

feat: add per-thread system prompts#16
AaronCQL merged 4 commits into
mainfrom
feat/thread-system-prompts

Conversation

@AaronCQL

Copy link
Copy Markdown
Owner

Summary

  • Add per-thread system prompt support via --append-system-prompt CLI flag
  • Prompt files stored at ~/.miniclaw/data/prompts/{chatID}_{threadID}.md (or {chatID}.md for non-threaded chats)
  • If a prompt file exists and is non-empty, its contents are appended to the system prompt alongside the global CLAUDE.md
  • Threads without a prompt file are unaffected
  • Auto-create data/prompts/ directory on startup

Test plan

  • Create a prompt file for a thread and verify it's appended to the system prompt
  • Verify threads without prompt files work as before
  • Verify the agent can read/write the prompt file when asked to update the thread's system prompt

@AaronCQL
AaronCQL merged commit e39a44d into main Apr 13, 2026
1 check passed
@AaronCQL
AaronCQL deleted the feat/thread-system-prompts branch April 13, 2026 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant