SpyBara
Go Premium

Documentation 2025-12-10 09:03 UTC to 2025-12-11 21:02 UTC

2 files changed +30 −2. View all changes and history on the product overview
2025
Sat 27 06:02 Tue 23 18:02 Sat 20 00:04 Fri 19 21:01 Thu 18 21:01 Wed 17 15:02 Tue 16 21:01 Mon 15 21:01 Sat 13 06:02 Fri 12 21:01 Thu 11 21:02 Wed 10 09:03 Tue 9 18:01 Mon 8 21:01 Sat 6 18:02 Fri 5 00:04 Thu 4 21:02 Wed 3 00:04 Tue 2 21:01 Mon 1 03:31
Details

5## Keyboard shortcuts5## Keyboard shortcuts

6 6 

7<Note>7<Note>

8 Keyboard shortcuts may vary by platform and terminal. Press `?` to see available shortcuts for your environment.8 Keyboard shortcuts may vary by platform and terminal. Press `?` to see available shortcuts for your environment. For example, Option key combinations on macOS may require configuring your terminal to use Option as a meta/escape key.

9</Note>9</Note>

10 10 

11### General controls11### General controls

12 12 

13| Shortcut | Description | Context |13| Shortcut | Description | Context |

14| :------------------------------------------- | :---------------------------------------------------------------------------------------------- | :---------------------------------------------------------- |14| :-------------------------------------------- | :---------------------------------------------------------------------------------------------- | :---------------------------------------------------------- |

15| `Ctrl+C` | Cancel current input or generation | Standard interrupt |15| `Ctrl+C` | Cancel current input or generation | Standard interrupt |

16| `Ctrl+D` | Exit Claude Code session | EOF signal |16| `Ctrl+D` | Exit Claude Code session | EOF signal |

17| `Ctrl+L` | Clear terminal screen | Keeps conversation history |17| `Ctrl+L` | Clear terminal screen | Keeps conversation history |


22| `Esc` + `Esc` | Rewind the code/conversation | Restore the code and/or conversation to a previous point |22| `Esc` + `Esc` | Rewind the code/conversation | Restore the code and/or conversation to a previous point |

23| `Tab` | Toggle [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking) | Switch between Thinking on and Thinking off |23| `Tab` | Toggle [extended thinking](https://docs.claude.com/en/docs/build-with-claude/extended-thinking) | Switch between Thinking on and Thinking off |

24| `Shift+Tab` or `Alt+M` (some configurations) | Toggle permission modes | Switch between Auto-Accept Mode, Plan Mode, and normal mode |24| `Shift+Tab` or `Alt+M` (some configurations) | Toggle permission modes | Switch between Auto-Accept Mode, Plan Mode, and normal mode |

25| `Option+P` (macOS) or `Alt+P` (Windows/Linux) | Switch model | Switch models without clearing your prompt |

25 26 

26### Multiline input27### Multiline input

27 28 

statusline.md +27 −0

Details

58 "total_api_duration_ms": 2300,58 "total_api_duration_ms": 2300,

59 "total_lines_added": 156,59 "total_lines_added": 156,

60 "total_lines_removed": 2360 "total_lines_removed": 23

61 },

62 "context_window": {

63 "total_input_tokens": 15234,

64 "total_output_tokens": 4521,

65 "context_window_size": 200000

61 }66 }

62}67}

63```68```


181get_duration() { echo "$input" | jq -r '.cost.total_duration_ms'; }186get_duration() { echo "$input" | jq -r '.cost.total_duration_ms'; }

182get_lines_added() { echo "$input" | jq -r '.cost.total_lines_added'; }187get_lines_added() { echo "$input" | jq -r '.cost.total_lines_added'; }

183get_lines_removed() { echo "$input" | jq -r '.cost.total_lines_removed'; }188get_lines_removed() { echo "$input" | jq -r '.cost.total_lines_removed'; }

189get_input_tokens() { echo "$input" | jq -r '.context_window.total_input_tokens'; }

190get_output_tokens() { echo "$input" | jq -r '.context_window.total_output_tokens'; }

191get_context_window_size() { echo "$input" | jq -r '.context_window.context_window_size'; }

184 192 

185# Use the helpers193# Use the helpers

186MODEL=$(get_model_name)194MODEL=$(get_model_name)


188echo "[$MODEL] 📁 ${DIR##*/}"196echo "[$MODEL] 📁 ${DIR##*/}"

189```197```

190 198 

199### Context Window Usage

200 

201Display the percentage of context window consumed:

202 

203```bash theme={null}

204#!/bin/bash

205input=$(cat)

206 

207INPUT_TOKENS=$(echo "$input" | jq -r '.context_window.total_input_tokens')

208OUTPUT_TOKENS=$(echo "$input" | jq -r '.context_window.total_output_tokens')

209CONTEXT_SIZE=$(echo "$input" | jq -r '.context_window.context_window_size')

210MODEL=$(echo "$input" | jq -r '.model.display_name')

211 

212TOTAL_TOKENS=$((INPUT_TOKENS + OUTPUT_TOKENS))

213PERCENT_USED=$((TOTAL_TOKENS * 100 / CONTEXT_SIZE))

214 

215echo "[$MODEL] Context: ${PERCENT_USED}%"

216```

217 

191## Tips218## Tips

192 219 

193* Keep your status line concise - it should fit on one line220* Keep your status line concise - it should fit on one line