-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontext_script.sh
More file actions
executable file
·25 lines (19 loc) · 859 Bytes
/
context_script.sh
File metadata and controls
executable file
·25 lines (19 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
# prepare_context.sh
echo "Preparing pm_encoder context with AI Collaboration Protocol..."
# Create temporary file
CONTEXT_FILE="/tmp/pm_encoder_full_context.txt"
# Add header
echo "# pm_encoder Development Context" > $CONTEXT_FILE
echo "# Generated: $(date)" >> $CONTEXT_FILE
echo "# Purpose: Generate SYSTEM_INSTRUCTIONS.md for pm_encoder" >> $CONTEXT_FILE
echo "" >> $CONTEXT_FILE
# Add the protocol first
echo "++++++++++ AI_COLLABORATION_PROTOCOL.md ++++++++++" >> $CONTEXT_FILE
cat ../ai_collaboration_protocol_system.md >> $CONTEXT_FILE
echo "---------- AI_COLLABORATION_PROTOCOL.md ----------" >> $CONTEXT_FILE
echo "" >> $CONTEXT_FILE
# Then add pm_encoder itself
./pm_encoder.py . --include "*.py" "*.md" "*.json" >> $CONTEXT_FILE
echo "Context prepared in: $CONTEXT_FILE"
echo "Size: $(wc -l $CONTEXT_FILE | cut -d' ' -f1) lines"