[content] crowd-pilot-extension/.crowd-pilot-preferences.jsonl (jsonl)
{"timestamp":1765382052004,"context":[{"role":"system","content":"You are a helpful assistant that interacts with a computer shell to solve programming tasks.
Your goal is to predict the next bash command a developer would most likely execute, given their editing and navigation history.

=== CONVERSATION FORMAT ===
The conversation history alternates between:
- Assistant messages: bash commands in fenced code blocks
- User messages: command output wrapped in <stdout>...</stdout> tags

File contents are displayed with 6-character right-aligned line numbers followed by a tab, e.g.:
     1	first line
     2	second line

File content is typically shown in viewports of ~20 lines around the area of interest.

=== RESPONSE FORMAT ===
Your response must contain exactly ONE bash code block with one command or two commands connected with &&.

<format_example>
```bash
your_command_here
```
</format_example>

Failure to follow these rules will cause your response to be rejected.

=== EDIT COMMAND FORMAT (IMPORTANT) ===
When you want to EDIT a file, you MUST encode the edit using line-based sed commands in ONE of the following forms,
and you MUST NOT use substitution commands like \"Ns/old/new/g\".

Assume all line numbers are 1-based and paths are absolute.
Allowed edit encodings (choose exactly one per response):

1) Replace a contiguous block of lines:
   sed -i 'START,ENDc\\
NEW_LINE_1
NEW_LINE_2
...
' /abs/path/to/file && cat -n /abs/path/to/file | sed -n 'VSTART,VENDp'

2) Delete a contiguous block of lines:
   sed -i 'START,ENDd' /abs/path/to/file && cat -n /abs/path/to/file | sed -n 'VSTART,VENDp'

3) Insert new lines BEFORE a given line:
   sed -i 'STARTi\\
NEW_LINE_1
NEW_LINE_2
...
' /abs/path/to/file && cat -n /abs/path/to/file | sed -n 'VSTART,VENDp'

4) Append new lines at the END of the file:
   sed -i '$a\\
NEW_LINE_1
NEW_LINE_2
...
' /abs/path/to/file && cat -n /abs/path/to/file | sed -n 'VSTART,VENDp'

Where VSTART and VEND specify a small viewport around the edited region.

Do NOT emit commands like \"3s/print/print()/g\" or any other \"s/old/new/\" style sed substitution; instead,
always rewrite the affected lines using one of the line-based forms above.

When you are NOT editing files (e.g., running tests, git commands, tools, etc.), you may emit arbitrary bash commands."},{"role":"assistant","content":"```bash
cat -n /home/franz.srambical/crowd-pilot-extension/.crowd-pilot-preferences.jsonl | sed -n '92,112p'
```
"},{"role":"user","content":"<stdout>
    92	    27\	      {
    93	    28\	        \\\"command\\\": \\\"crowd-pilot.hideUi\\\",
    94	    29\	        \\\"title\\\": \\\"crowd-pilot: Hide Preview\\\"
    95	    30\	      },
    96	    31\	      {
    97	    32\	        \\\"command\\\": \\\"crowd-pilot.sglangTest\\\",
    98	    33\	        \\\"title\\\": \\\"crowd-pilot: Test SGLang\\\"
    99	    34\	      },
   100	    35\	      {
   101	    36\	        \\\"command\\\": \\\"crowd-pilot.modelRun\\\",
   102	    37\	        \\\"title\\\": \\\"crowd-pilot: Model Plan & Run\\\"
   103	    38\	      },
   104	    39\	      {
   105	    40\	        \\\"command\\\": \\\"crowd-pilot.clearContext\\\",
   106	    41\	        \\\"title\\\": \\\"crowd-pilot: Clear Context\\\"
   107	    42\	      },
   108	    43\	      {
   109	    44\	        \\\"command\\\": \\\"crowd-pilot.openPreferenceLog\\\",
   110	    45\	        \\\"title\\\": \\\"crowd-pilot: Open Preference Log\\\"
   111	    46\	      }
   112	    47\	    ],
</stdout>"},{"role":"assistant","content":"```bash
sed -i '292,292c\\
                                                                                                                                                                                                                                                                                                  {\"timestamp\":1765382050204,\"context\":[{\"role\":\"system\",\"content\":\"You are a helpful assistant that interacts with a computer shell to solve programming tasks.
Your goal is to predict the next bash command a developer would most likely execute, given their editing and navigation history.

=== CONVERSATION FORMAT ===
The conversation history alternates between:
- Assistant messages: bash commands in fenced code blocks
- User messages: command output wrapped in <stdout>...</stdout> tags

File contents are displayed with 6-character right-aligned line numbers followed by a tab, e.g.:
     1\	first line
     2\	second line

File content is typically shown in viewports of ~20 lines around the area of interest.

=== RESPONSE FORMAT ===
Your response must contain exactly ONE bash code block with one command or two commands connected with &&.

<format_example>
```bash
your_command_here
```
</format_example>

Failure to follow these rules will cause your response to be rejected.

=== EDIT COMMAND FORMAT (IMPORTANT) ===
When you want to EDIT a file, you MUST encode the edit using line-based sed commands in ONE of the following forms,
and you MUST NOT use substitution commands like \\\"Ns/old/new/g\\\".

Assume all line numbers are 1-based and paths are absolute.
Allowed edit encodings (choose exactly one per response):

1) Replace a contiguous block of lines:
   sed -i '\"'\"'START,ENDc\\\\
NEW_LINE_1
NEW_LINE_2
...
'\"'\"' /abs/path/to/file && cat -n /abs/path/to/file | sed -n '\"'\"'VSTART,VENDp'\"'\"'

2) Delete a contiguous block of lines:
   sed -i '\"'\"'START,ENDd'\"'\"' /abs/path/to/file && cat -n /abs/path/to/file | sed -n '\"'\"'VSTART,VENDp'\"'\"'

3) Insert new lines BEFORE a given line:
   sed -i '\"'\"'STARTi\\\\
NEW_LINE_1
NEW_LINE_2
...
'\"'\"' /abs/path/to/file && cat -n /abs/path/to/file | sed -n '\"'\"'VSTART,VENDp'\"'\"'

4) Append new lines at the END of the file:
   sed -i '\"'\"'$a\\\\
NEW_LINE_1
NEW_LINE_2
...
'\"'\"' /abs/path/to/file && cat -n /abs/path/to/file | sed -n '\"'\"'VSTART,VENDp'\"'\"'

Where VSTART and VEND specify a small viewport around the edited region.

Do NOT emit commands like \\\"3s/print/print()/g\\\" or any other \\\"s/old/new/\\\" style sed substitution; instead,
always rewrite the affected lines using one of the line-based forms above.

When you are NOT editing files (e.g., running tests, git commands, tools, etc.), you may emit arbitrary bash commands.\"},{\"role\":\"assistant\",\"content\":\"```bash
squeue
```
\"},{\"role\":\"user\",\"content\":\"<stdout>
  JOBID       USER PARTITION NODES  CPUS ST         SUBMIT_TIME          START_TIME     TIME TIME_LIMIT NODELIST(REASON)
  36249 franz.sram interacti     1    20  R 2025-12-10T16:52:17 2025-12-10T16:52:17     0:42 1-00:00:00 hai004
  36147   xiao.liu interacti     1   128  R 2025-12-10T07:33:10 2025-12-10T07:33:10  9:19:49   23:59:00 hai006
  36136   xiao.liu interacti     1   128  R 2025-12-10T05:12:34 2025-12-10T05:12:34 11:40:25   23:59:00 hai005
  36157   xiao.liu  standard     1   128  R 2025-12-10T09:29:57 2025-12-10T15:15:29  1:37:30   23:59:00 hai007
  36223 kalyan.nad  standard     1    16  R 2025-12-10T13:53:12 2025-12-10T13:53:31  2:59:28   23:00:00 hai004
  36135 nishant.ku  standard     3   624  R 2025-12-09T22:39:45 2025-12-09T22:39:45 18:13:14 1-00:00:00 hai[001-003]
</stdout>\"},{\"role\":\"assistant\",\"content\":\"```bash
cat -n /home/franz.srambical/crowd-pilot-extension/package.json | sed -n '\"'\"'1,11p'\"'\"'
```
\"},{\"role\":\"user\",\"content\":\"<stdout>
     1\	{
     2\	  \\\"name\\\": \\\"crowd-pilot\\\",
     3\	  \\\"displayName\\\": \\\"crowd-pilot-extension\\\",
     4\	  \\\"description\\\": \\\"Teaching language models to code like humans.\\\",
     5\	  \\\"publisher\\\": \\\"p-doom\\\",
     6\	  \\\"version\\\": \\\"0.0.1\\\",
     7\	  \\\"repository\\\": {
     8\	    \\\"type\\\": \\\"git\\\",
     9\	    \\\"url\\\": \\\"https://github.com/p-doom/crowd-pilot-extension\\\"
    10\	  },
    11\	  \\\"engines\\\": {
</stdout>\"},{\"role\":\"assistant\",\"content\":\"```bash
cat -n /home/franz.srambical/crowd-pilot-extension/package.json | sed -n '\"'\"'70,90p'\"'\"'
```
\"},{\"role\":\"user\",\"content\":\"<stdout>
    70\	        },
    71\	        \\\"crowd-pilot.minAvgLogprob\\\": {
    72\	          \\\"type\\\": \\\"number\\\",
    73\	          \\\"default\\\": -1.0,
    74\	          \\\"description\\\": \\\"Minimum average log-probability per token for displaying suggestions. Higher values (closer to 0) require more confidence. -1.0 ≈ perplexity 2.7\\\"
    75\	        },
    76\	        \\\"crowd-pilot.maxContextTokens\\\": {
    77\	          \\\"type\\\": \\\"number\\\",
    78\	          \\\"default\\\": 120000,
    79\	          \\\"description\\\": \\\"Context length (in tokens). Older messages are truncated to fit. Set below your model'\"'\"'s limit to leave room for the response.\\\"
    80\	        },
    81\	        \\\"crowd-pilot.enablePreferenceLogging\\\": {
    82\	          \\\"type\\\": \\\"boolean\\\",
    83\	          \\\"default\\\": true,
    84\	          \\\"description\\\": \\\"Enable logging of accept/reject data for reward model training and RLHF/DPO\\\"
    85\	        },
    86\	        \\\"crowd-pilot.preferenceLogPath\\\": {
    87\	          \\\"type\\\": \\\"string\\\",
    88\	          \\\"default\\\": \\\"\\\",
    89\	          \\\"description\\\": \\\"Custom path for the preference log file (JSONL format). If empty, uses workspace/.crowd-pilot-preferences.jsonl\\\"
    90\	        }
</stdout>\"},{\"role\":\"assistant\",\"content\":\"```bash
pwd
```
\"},{\"role\":\"assistant\",\"content\":\"```bash
cat -n /home/franz.srambical/crowd-pilot-extension/package.json | sed -n '\"'\"'70,90p'\"'\"'
```
\"},{\"role\":\"user\",\"content\":\"<stdout>
    70\	        },
    71\	        \\\"crowd-pilot.minAvgLogprob\\\": {
    72\	          \\\"type\\\": \\\"number\\\",
    73\	          \\\"default\\\": -1.0,
    74\	          \\\"description\\\": \\\"Minimum average log-probability per token for displaying suggestions. Higher values (closer to 0) require more confidence. -1.0 ≈ perplexity 2.7\\\"
    75\	        },
    76\	        \\\"crowd-pilot.maxContextTokens\\\": {
    77\	          \\\"type\\\": \\\"number\\\",
    78\	          \\\"default\\\": 120000,
    79\	          \\\"description\\\": \\\"Context length (in tokens). Older messages are truncated to fit. Set below your model'\"'\"'s limit to leave room for the response.\\\"
    80\	        },
    81\	        \\\"crowd-pilot.enablePreferenceLogging\\\": {
    82\	          \\\"type\\\": \\\"boolean\\\",
    83\	          \\\"default\\\": true,
    84\	          \\\"description\\\": \\\"Enable logging of accept/reject data for reward model training and RLHF/DPO\\\"
    85\	        },
    86\	        \\\"crowd-pilot.preferenceLogPath\\\": {
    87\	          \\\"type\\\": \\\"string\\\",
    88\	          \\\"default\\\": \\\"\\\",
    89\	          \\\"description\\\": \\\"Custom path for the preference log file (JSONL format). If empty, uses workspace/.crowd-pilot-preferences.jsonl\\\"
    90\	        }
</stdout>\"},{\"role\":\"assistant\",\"content\":\"```bash
cat -n /home/franz.srambical/crowd-pilot-extension/.crowd-pilot-preferences.jsonl
```
\"},{\"role\":\"user\",\"content\":\"<stdout>
     1\	{\\\"timestamp\\\":1765382039706,\\\"context\\\":[{\\\"role\\\":\\\"system\\\",\\\"content\\\":\\\"You are a helpful assistant that interacts with a computer shell to solve programming tasks.
     2\	Your goal is to predict the next bash command a developer would most likely execute, given their editing and navigation history.
     3\	
     4\	=== CONVERSATION FORMAT ===
     5\	The conversation history alternates between:
     6\	- Assistant messages: bash commands in fenced code blocks
     7\	- User messages: command output wrapped in <stdout>...</stdout> tags
     8\	
     9\	File contents are displayed with 6-character right-aligned line numbers followed by a tab, e.g.:
    10\	     1\\\	first line
    11\	     2\\\	second line
    12\	
    13\	File content is typically shown in viewports of ~20 lines around the area of interest.
    14\	
    15\	=== RESPONSE FORMAT ===
    16\	Your response must contain exactly ONE bash code block with o"},{"role":"user","content":"<stdout>
   442	     7\	- User messages: command output wrapped in <stdout>...</stdout> tags
   443	     8\	
   444	     9\	File contents are displayed with 6-character right-aligned line numbers followed by a tab, e.g.:
   445	    10\	     1\\\	first line
   446	    11\	     2\\\	second line
   447	    12\	
   448	    13\	File content is typically shown in viewports of ~20 lines around the area of interest.
   449	    14\	
   450	    15\	=== RESPONSE FORMAT ===
   451	    16\	Your response must contain exactly ONE bash code block with one command or two commands connected with &&.
   452	    17\	
   453	    18\	<format_example>
   454	    19\	```bash
   455	    20\	your_command_here
   456	    21\	```
   457	    22\	</format_example>
   458	    23\	
   459	    24\	Failure to follow these rules will cause your response to be rejected.
   460	    25\	
   461	    26\	=== EDIT COMMAND FORMAT (IMPORTANT) ===
   462	    27\	When you want to EDIT a file, you MUST encode the edit using line-based sed commands in ONE of the following forms,
</stdout>"}],"completion":{"rawModelOutput":"```bash
cat -n /home/franz.srambical/crowd-pilot-extension/.crowd-pilot-preferences.jsonl | sed -n '442,462p'
```","parsedAction":{"kind":"setSelections","selections":[{"start":[2,0],"end":[2,0]}]},"avgLogprob":-0.005101029632877562},"outcome":"ignored","outcomeTimestamp":1765382052680,"modelName":"qwen/qwen3-8b"}