Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kuberwastaken/claurst
/ functions
Functions
4,591 in github.com/Kuberwastaken/claurst
⨍
Functions
4,591
◇
Types & classes
828
↓ 4 callers
Function
history_path
()
src-rust/crates/core/src/prompt_history.rs:145
↓ 4 callers
Method
jump_to_mark
Move cursor to the position recorded for mark `name`, if the text still matches.
src-rust/crates/tui/src/prompt_input.rs:2456
↓ 4 callers
Function
jwt_identity
Decode the payload of a JWT (`header.payload.signature`) and pull out the fields we care about for naming a profile. Tolerates malformed input by retu
src-rust/crates/core/src/accounts.rs:309
↓ 4 callers
Method
list_all_resources
List all resources from all (or a specific) connected server.
src-rust/crates/mcp/src/lib.rs:1069
↓ 4 callers
Function
llama_cpp
llama.cpp — lightweight C++ inference server. Reads `LLAMA_CPP_HOST` for the base URL; defaults to `http://localhost:8080`.
src-rust/crates/api/src/providers/openai_compat_providers.rs:95
↓ 4 callers
Function
lm_studio
LM Studio — local OpenAI-compatible server. Reads `LM_STUDIO_HOST` for the base URL; defaults to `http://localhost:1234`.
src-rust/crates/api/src/providers/openai_compat_providers.rs:80
↓ 4 callers
Function
load_todos
Load the persisted todo list for `session_id`. Returns an empty vec if the file does not exist or cannot be parsed.
src-rust/crates/tools/src/todo_write.rs:25
↓ 4 callers
Function
make_agg_with_dates
(dates: &[&str])
src-rust/crates/tui/src/stats_dialog.rs:761
↓ 4 callers
Function
make_sync
()
src-rust/crates/core/src/team_memory_sync.rs:526
↓ 4 callers
Function
make_test_ctx
()
src-rust/crates/tools/src/monitor_tool.rs:246
↓ 4 callers
Function
managed_agent_system_prompt
Build the managed-agent section appended to the system prompt when managed mode is active.
src-rust/crates/query/src/managed_orchestrator.rs:7
↓ 4 callers
Method
map_http_error
(&self, status: u16, body: &str)
src-rust/crates/api/src/providers/openai_compat.rs:401
↓ 4 callers
Method
matches
Returns `true` when this rule matches the given tool name and optional path argument.
src-rust/crates/core/src/lib.rs:2097
↓ 4 callers
Function
mcp_result_to_string
Convert an MCP tool call result to a string for the model. Content type handling: - `text` → the text itself - `image` → `[Image: <mime_type>]
src-rust/crates/mcp/src/lib.rs:1367
↓ 4 callers
Function
model_supports_effort
Returns `true` for models that support extended thinking / effort levels. Covers Claude's extended-thinking models and the GPT-5 reasoning family (in
src-rust/crates/tui/src/model_picker.rs:98
↓ 4 callers
Function
motion_gg
`gg` / line-N — go to start of line `line_num` (1-indexed; 0 or 1 → start of text).
src-rust/crates/tui/src/prompt_input.rs:285
↓ 4 callers
Method
move_end
(&mut self)
src-rust/crates/tui/src/dialog_select.rs:113
↓ 4 callers
Method
move_home
(&mut self)
src-rust/crates/tui/src/dialog_select.rs:109
↓ 4 callers
Method
next_field
Move focus to the next field.
src-rust/crates/tui/src/elicitation_dialog.rs:232
↓ 4 callers
Function
normalize_anthropic_messages
(messages: &[Message])
src-rust/crates/api/src/providers/message_normalization.rs:10
↓ 4 callers
Function
ollama
Ollama — local inference server. Reads `OLLAMA_HOST` for the base URL; defaults to `http://localhost:11434`.
src-rust/crates/api/src/providers/openai_compat_providers.rs:63
↓ 4 callers
Method
on_event
(&self, event: &AnthropicStreamEvent)
src-rust/crates/query/src/lib.rs:2524
↓ 4 callers
Method
on_failure
Record a failed compaction; open circuit breaker if too many.
src-rust/crates/query/src/compact.rs:77
↓ 4 callers
Method
on_new_message
Called whenever a new message is appended to `messages`. Manages the auto-scroll / new-message-counter state.
src-rust/crates/tui/src/app.rs:2545
↓ 4 callers
Method
open
Open the overlay. `current_model` is highlighted as active; `current_effort` and `fast_mode` are carried over from app state so the user sees the liv
src-rust/crates/tui/src/model_picker.rs:529
↓ 4 callers
Method
open
(&mut self, servers: Vec<McpServerView>)
src-rust/crates/tui/src/mcp_view.rs:119
↓ 4 callers
Method
open_editor
(&mut self, idx: Option<usize>)
src-rust/crates/tui/src/agents_view.rs:315
↓ 4 callers
Method
options_len
(&self)
src-rust/crates/tui/src/ask_user_dialog.rs:188
↓ 4 callers
Method
page_down
(&mut self)
src-rust/crates/tui/src/dialog_select.rs:104
↓ 4 callers
Method
page_up
(&mut self)
src-rust/crates/tui/src/dialog_select.rs:100
↓ 4 callers
Method
parse_api_error
Parse an API error body into a typed `ClaudeError`.
src-rust/crates/api/src/lib.rs:1028
↓ 4 callers
Function
parse_chord
Parse a chord (space-separated keystrokes like "ctrl+k ctrl+d")
src-rust/crates/core/src/keybindings.rs:131
↓ 4 callers
Function
parse_hooks_value
Parse a raw `serde_json::Value` that may be either a flat hooks object (`{ "PreToolUse": [...] }`) or a wrapped object with a `hooks` key (`{ "descrip
src-rust/crates/plugins/src/hooks.rs:77
↓ 4 callers
Function
parse_params
(params: Option<Value>)
src-rust/crates/acp/src/server.rs:200
↓ 4 callers
Function
path_row
(label: &str, value: &str)
src-rust/crates/tui/src/import_config_dialog.rs:137
↓ 4 callers
Function
png_dimensions
Read PNG dimensions from the IHDR chunk (bytes 16–23).
src-rust/crates/tui/src/image_paste.rs:410
↓ 4 callers
Function
process_sse_line
( line: &str, event_name: &mut Option<String>, data_lines: &mut Vec<String>, )
src-rust/crates/mcp/src/lib.rs:474
↓ 4 callers
Method
push_filter_char
(&mut self, c: char)
src-rust/crates/tui/src/overlays.rs:330
↓ 4 callers
Method
refresh_context_window_size
Update the context window size from the model registry for the current model.
src-rust/crates/tui/src/app.rs:1870
↓ 4 callers
Method
refresh_global_search
(&mut self)
src-rust/crates/tui/src/app.rs:2336
↓ 4 callers
Method
refresh_turn_diff_from_history
(&mut self)
src-rust/crates/tui/src/app.rs:2824
↓ 4 callers
Function
remove_file_if_exists
(path: &std::path::Path)
src-rust/crates/cli/src/main.rs:1180
↓ 4 callers
Function
render_bypass_permissions_dialog
Render the bypass-permissions confirmation dialog over the frame.
src-rust/crates/tui/src/bypass_permissions_dialog.rs:66
↓ 4 callers
Function
render_dark_overlay_buf
(buf: &mut Buffer, area: Rect)
src-rust/crates/tui/src/overlays.rs:48
↓ 4 callers
Function
render_dialog_bg_buf
(buf: &mut Buffer, area: Rect)
src-rust/crates/tui/src/overlays.rs:64
↓ 4 callers
Function
render_file_injection_dialog
Render the file injection warning dialog over the frame.
src-rust/crates/tui/src/file_injection_dialog.rs:144
↓ 4 callers
Function
render_invalid_config_dialog
Render the invalid-config dialog over the frame.
src-rust/crates/tui/src/invalid_config_dialog.rs:88
↓ 4 callers
Function
render_modal_title_buf
(buf: &mut Buffer, area: Rect, title: &str, right_hint: &str)
src-rust/crates/tui/src/overlays.rs:194
↓ 4 callers
Function
render_onboarding_dialog
( frame: &mut Frame, state: &OnboardingDialogState, area: Rect, )
src-rust/crates/tui/src/onboarding_dialog.rs:92
↓ 4 callers
Function
render_rate_limit_with_hint
Render a rate-limit warning banner with optional upgrade hint.
src-rust/crates/tui/src/messages/mod.rs:1414
↓ 4 callers
Function
render_scope_line
(agg: &Aggregated, ctx: &CommandContext)
src-rust/crates/commands/src/stats.rs:669
↓ 4 callers
Method
replay_macro
Return the recorded key sequence for `register`, or an empty vec.
src-rust/crates/tui/src/prompt_input.rs:2484
↓ 4 callers
Function
run_with_input
(stdin: &str, timeout: Duration)
src-rust/crates/cli/tests/acp_smoke.rs:18
↓ 4 callers
Function
rustle_lines
Returns 5 Lines representing the Rustle mascot: [0] — head row (5-wide top, 7-wide bottom) [1] — claws + eyes row (widest — pincers extend from sides)
src-rust/crates/tui/src/rustle.rs:163
↓ 4 callers
Function
scan_for_secrets
Scan `content` for common high-confidence secret patterns. Returns one [`SecretMatch`] per distinct pattern that fired. The actual matched text is i
src-rust/crates/core/src/team_memory_sync.rs:404
↓ 4 callers
Function
seed_from_user_id
Derive a deterministic u32 seed from a user-id string. Algorithm: FNV-1a 32-bit over the raw bytes of `user_id`. Matches the TypeScript `hashString`
src-rust/crates/buddy/src/lib.rs:43
↓ 4 callers
Method
selected_branch
Get a reference to the currently selected branch, if any.
src-rust/crates/tui/src/session_branching.rs:118
↓ 4 callers
Method
send_notification
(&self, method: &str, params: Option<Value>)
src-rust/crates/mcp/src/rmcp_backend.rs:41
↓ 4 callers
Function
sessions_dir
The on-disk directory for conversation sessions.
src-rust/crates/core/src/lib.rs:3065
↓ 4 callers
Method
set_enabled
Enable or disable voice input.
src-rust/crates/core/src/voice.rs:207
↓ 4 callers
Method
set_state
(&self, s: BridgeState)
src-rust/crates/bridge/src/lib.rs:435
↓ 4 callers
Method
shadow_prefix
(&self)
src-rust/crates/core/src/snapshot/shadow.rs:551
↓ 4 callers
Function
shimmer_spans
Build spans for a text string with a right-to-left glimmer sweep, matching the TS `GlimmerMessage` behaviour (glimmerSpeed=200ms, 3-char shimmer windo
src-rust/crates/tui/src/render.rs:1955
↓ 4 callers
Method
show
Show the banner with the given overage amount.
src-rust/crates/tui/src/overage_upsell.rs:39
↓ 4 callers
Function
slugify_profile_id
Slugify an arbitrary string into a safe profile id. Lowercases, replaces non-`[a-z0-9_-]` with `-`, trims dashes/underscores from edges, falls back to
src-rust/crates/core/src/accounts.rs:218
↓ 4 callers
Method
start
Spawn the server process and return a connected client. The I/O pump task is started in the background.
src-rust/crates/core/src/lsp.rs:188
↓ 4 callers
Function
store_mcp_token
Persist an MCP OAuth token to disk.
src-rust/crates/mcp/src/oauth.rs:50
↓ 4 callers
Function
subsequence_score
Compute a match score for `query` against `target`. Fast path: if `target` contains `query` as a substring the score is `1.0 + position_bonus` so it
src-rust/crates/tui/src/overlays.rs:638
↓ 4 callers
Function
test_tool_context
( handler: Arc<dyn claurst_core::permissions::PermissionHandler>, )
src-rust/crates/tools/src/lib.rs:612
↓ 4 callers
Function
todos_path
Returns the path to the persisted todo list for `session_id`.
src-rust/crates/tools/src/todo_write.rs:15
↓ 4 callers
Function
token_path
Path to the token store for a given MCP server.
src-rust/crates/mcp/src/oauth.rs:42
↓ 4 callers
Function
tool_result_text
(content: &ToolResultContent)
src-rust/crates/tui/src/messages/mod.rs:1538
↓ 4 callers
Method
total_tokens
(&self)
src-rust/crates/core/src/lib.rs:3383
↓ 4 callers
Function
transcript_dir
Returns the per-project transcript directory. The project root path is encoded using **URL-safe base64 without padding to produce a stable, platform-
src-rust/crates/core/src/session_storage.rs:232
↓ 4 callers
Function
truncate_spans_to_width
Truncate a list of owned spans so the total character count ≤ `max_chars`.
src-rust/crates/tui/src/diff_viewer.rs:816
↓ 4 callers
Function
try_read_for_sync
Try to read a file, applying the 500 KB size limit. Returns `None` if the file doesn't exist, is empty, or exceeds the limit.
src-rust/crates/core/src/settings_sync.rs:417
↓ 4 callers
Function
update_terminal_title
Update the terminal title to reflect the current session context. Format: "🦀 | <topic>" or just "🦀 Claurst" when no topic is set.
src-rust/crates/tui/src/lib.rs:297
↓ 4 callers
Function
write_file
(dir: &Path, name: &str, content: &str)
src-rust/crates/core/src/memdir.rs:614
↓ 4 callers
Function
write_file_for_sync
Write `content` to `path`, creating parent directories as needed.
src-rust/crates/core/src/settings_sync.rs:431
↓ 4 callers
Method
write_line
(self: &Arc<Self>, value: &Value)
src-rust/crates/acp/src/connection.rs:150
↓ 4 callers
Function
write_transcript_entry
Append a single entry to a JSONL transcript file. Creates parent directories if they do not exist. Is a no-op (returns `Ok(())`) when the file alread
src-rust/crates/core/src/session_storage.rs:253
↓ 3 callers
Function
account_dir
`~/.claurst/accounts/<provider>/<id>/`.
src-rust/crates/core/src/accounts.rs:258
↓ 3 callers
Method
add_image
Add a clipboard image attachment to the pending list.
src-rust/crates/tui/src/prompt_input.rs:1584
↓ 3 callers
Method
add_lines
(&self, added: i64, removed: i64)
src-rust/crates/core/src/analytics.rs:57
↓ 3 callers
Method
add_rule
Add an arbitrary rule to this manager.
src-rust/crates/core/src/lib.rs:2398
↓ 3 callers
Method
add_session_allow
Allow `tool_name` for the rest of this session.
src-rust/crates/core/src/lib.rs:2406
↓ 3 callers
Method
all_command_defs
Collect all `PluginCommandDef` items from enabled plugins.
src-rust/crates/plugins/src/registry.rs:123
↓ 3 callers
Method
all_tool_definitions
Get all tool definitions from all connected servers.
src-rust/crates/mcp/src/lib.rs:1016
↓ 3 callers
Function
anthropic_token_path
File where the per-account Anthropic OAuth tokens live.
src-rust/crates/core/src/accounts.rs:263
↓ 3 callers
Method
as_str
The lowercase string name of this effort level. Round-trips with `from_str`.
src-rust/crates/core/src/effort.rs:48
↓ 3 callers
Method
attach_turn_diff_state
( &mut self, file_history: Arc<parking_lot::Mutex<FileHistory>>, current_turn: Arc<std
src-rust/crates/tui/src/app.rs:2745
↓ 3 callers
Method
back
Navigate back one level (Esc key).
src-rust/crates/tui/src/hooks_config_menu.rs:159
↓ 3 callers
Function
base64url_encode
Encode bytes as base64url (no padding) — same as `btoa` + replace in TS.
src-rust/crates/core/src/crypto_utils.rs:23
↓ 3 callers
Method
begin_auth
Build a full OAuth authorization session for an HTTP/SSE MCP server.
src-rust/crates/mcp/src/lib.rs:1215
↓ 3 callers
Method
best_model_for_provider
Pick the best default model for a provider. Selection rule** (mirrors opencode's "latest tag"): 1. Prefer non-alpha, non-deprecated models. 2. Prefer
src-rust/crates/api/src/model_registry.rs:733
↓ 3 callers
Function
build_file_diff_from_snapshots
(path: String, before: &str, after: &str)
src-rust/crates/tui/src/diff_viewer.rs:320
↓ 3 callers
Function
build_free_provider
Build a [`FreeProvider`] by walking [`FREE_CATALOG`] and pulling any keys the user has stored in the auth store. Each catalog entry whose upstream has
src-rust/crates/api/src/registry.rs:94
↓ 3 callers
Function
build_inline_diff_spans
Compute word-level inline diff spans for an adjacent (removed, added) line pair. Returns `(old_spans, new_spans)` where changed words have a highlight
src-rust/crates/tui/src/diff_viewer.rs:836
↓ 3 callers
Function
build_turn_diff
Build a turn-local diff from file-history snapshots.
src-rust/crates/tui/src/diff_viewer.rs:274
↓ 3 callers
Method
can_submit
Enabling Free mode requires at least one non-empty key. More is better.
src-rust/crates/tui/src/free_mode_dialog.rs:156
← previous
next →
401–500 of 4,591, ranked by callers