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
↓ 7 callers
Function
build_system_prompt
Build the system prompt from config. Delegates to `claurst_core::system_prompt::build_system_prompt` so that all default content (capabilities, safet
src-rust/crates/query/src/lib.rs:2173
↓ 7 callers
Function
builtin_styles
Return all built-in output styles in display order.
src-rust/crates/core/src/output_styles.rs:90
↓ 7 callers
Function
die
(msg: str)
scripts/bump-version.py:30
↓ 7 callers
Method
effective_max_tokens
Resolve the effective max-tokens.
src-rust/crates/core/src/lib.rs:1283
↓ 7 callers
Method
enabled
Only the enabled plugins.
src-rust/crates/plugins/src/registry.rs:75
↓ 7 callers
Function
estimate_chars
(s: &str)
src-rust/crates/query/src/context_analyzer.rs:83
↓ 7 callers
Method
evaluate
Evaluate whether `tool_name` should be allowed to run. Evaluation order (faithful to TS behaviour): 1. BypassPermissions → always Allow. 2. Check den
src-rust/crates/core/src/lib.rs:2302
↓ 7 callers
Method
insert_char
(&mut self, c: char)
src-rust/crates/tui/src/free_mode_dialog.rs:143
↓ 7 callers
Method
len
Number of models in the registry.
src-rust/crates/api/src/model_registry.rs:823
↓ 7 callers
Function
list_sessions
List all sessions, sorted by most-recently-updated first.
src-rust/crates/core/src/lib.rs:3087
↓ 7 callers
Function
load_plugins
Discover and load all plugins from the standard locations. Search order: 1. `~/.claurst/plugins/` (user-global) 2. `<project_dir>/.claurst/plugins/`
src-rust/crates/plugins/src/lib.rs:199
↓ 7 callers
Function
make_plugin
(name: &str)
src-rust/crates/plugins/src/registry.rs:281
↓ 7 callers
Function
make_temp_png
()
src-rust/crates/tui/src/image_paste.rs:397
↓ 7 callers
Function
merge_openai_compatible_options
(body: &mut Value, provider_options: &Value)
src-rust/crates/api/src/providers/request_options.rs:27
↓ 7 callers
Function
models_cache_path
Default cache filename — derived from the source URL so a custom `CLAURST_MODELS_URL` doesn't stomp the canonical models.dev cache.
src-rust/crates/cli/src/main.rs:889
↓ 7 callers
Method
move_down
(&mut self)
src-rust/crates/tui/src/dialog_select.rs:92
↓ 7 callers
Method
name
(&self)
src-rust/crates/query/src/agent_tool.rs:156
↓ 7 callers
Method
open
Open (or create) the goal database.
src-rust/crates/core/src/goal.rs:140
↓ 7 callers
Function
parse_args
(raw: &[&str])
src-rust/crates/commands/src/stats.rs:56
↓ 7 callers
Function
parse_extraction_response
Parse the model's response into `ExtractedMemory` entries. Expected line format: `MEMORY: <category> | <confidence 0-10> | <fact>`
src-rust/crates/query/src/session_memory.rs:392
↓ 7 callers
Method
process_notification
Process a single notification message from the transport stream. Routes resource updates to subscribers and logs other notifications.
src-rust/crates/mcp/src/lib.rs:742
↓ 7 callers
Method
project_root
(&self)
src-rust/crates/tui/src/app.rs:2328
↓ 7 callers
Method
raw_git
(&self, args: &[&str], stdin_data: Option<Vec<u8>>)
src-rust/crates/core/src/snapshot/shadow.rs:521
↓ 7 callers
Method
register_server
Register an LSP server configuration.
src-rust/crates/core/src/lsp.rs:926
↓ 7 callers
Function
render_system_api_error
Render a system API error block (red-bordered, first 5 lines with [expand] hint, optional retry countdown).
src-rust/crates/tui/src/messages/mod.rs:1703
↓ 7 callers
Function
render_tool_result_success
Render a tool result (success variant) — generic fallback.
src-rust/crates/tui/src/messages/mod.rs:1104
↓ 7 callers
Method
resolve_api_key
Resolve the API key for the active provider.
src-rust/crates/core/src/lib.rs:1364
↓ 7 callers
Function
run_git
(cwd: &std::path::Path, args: &[&str])
src-rust/crates/tools/src/worktree.rs:427
↓ 7 callers
Method
server_name_for_file
Find the first server name that handles `file_path` based on extension.
src-rust/crates/core/src/lsp.rs:965
↓ 7 callers
Method
start_rename
Switch to rename mode, pre-populating the input with the current title.
src-rust/crates/tui/src/session_browser.rs:110
↓ 7 callers
Method
tick
Remove all expired notifications. Call this once per render frame.
src-rust/crates/tui/src/notifications.rs:76
↓ 7 callers
Method
uses_bearer_auth
Returns true if the token requires Bearer-style authorization (i.e. Claude.ai subscription with `user:inference` scope).
src-rust/crates/core/src/lib.rs:3617
↓ 7 callers
Function
word_wrap
Wrap `text` to fit within `width` display columns, preferring whitespace breaks but falling back to a hard character break when a single token is long
src-rust/crates/tui/src/dialogs.rs:313
↓ 7 callers
Function
write_file
(dir: &Path, name: &str, content: &str)
src-rust/crates/core/src/skill_discovery.rs:283
↓ 6 callers
Method
add_message
Add a message directly (e.g. from a non-streaming source).
src-rust/crates/tui/src/app.rs:2494
↓ 6 callers
Method
add_usage
( &self, input: u64, output: u64, cache_creation: u64,
src-rust/crates/core/src/lib.rs:3354
↓ 6 callers
Method
build_permission_request
( &self, tool_name: &str, description: &str, details: Option<String>,
src-rust/crates/tools/src/lib.rs:323
↓ 6 callers
Function
calculate_token_warning_state
Determine token-warning state given current input token count and model. Thresholds (mirrors TypeScript autoCompact.ts): ≥ 95 % → Critical (red warni
src-rust/crates/query/src/compact.rs:505
↓ 6 callers
Method
cancel
Mark a task as `Cancelled`. No-op if unknown or already terminal.
src-rust/crates/core/src/lib.rs:4043
↓ 6 callers
Method
check_permission
(&self, request: &PermissionRequest)
src-rust/crates/core/src/lib.rs:2563
↓ 6 callers
Function
compute_streaks
Compute (current_streak, longest_streak) in days from the aggregated stats. A streak is a consecutive run of calendar days with any activity, ending o
src-rust/crates/tui/src/stats_dialog.rs:278
↓ 6 callers
Function
context_window_for_model
Return the effective context-window size in tokens for the given model. These are approximate; the API enforces the real limits server-side.
src-rust/crates/query/src/compact.rs:489
↓ 6 callers
Method
create_message_stream
Send a streaming `POST /v1/messages`. Events are dispatched to the provided `handler` in real time, and also forwarded into the returned channel so t
src-rust/crates/api/src/lib.rs:727
↓ 6 callers
Function
detect_table
Detect if a sequence of lines forms a markdown table
src-rust/crates/tui/src/messages/markdown_enhanced.rs:82
↓ 6 callers
Function
discover_skills
Discover all skills from all configured sources. Returns a `HashMap` of `skill_name → DiscoveredSkill` (first match wins; duplicates from lower-prior
src-rust/crates/core/src/skill_discovery.rs:139
↓ 6 callers
Method
dismiss_context_menu
Dismiss the context menu.
src-rust/crates/tui/src/app.rs:5282
↓ 6 callers
Method
dismiss_error_notifications
(&mut self)
src-rust/crates/tui/src/app.rs:2298
↓ 6 callers
Method
effective_output_style
Resolve the effective output style for system-prompt assembly.
src-rust/crates/core/src/lib.rs:1298
↓ 6 callers
Function
ensure_unique_profile_id
If the requested id already exists, suffix with -2, -3, … until free.
src-rust/crates/core/src/accounts.rs:233
↓ 6 callers
Function
expand_env_vars
Expand `${VAR_NAME}` and `${VAR_NAME:-default}` patterns in `input` using the process environment. Unknown variables without a default are left as-is
src-rust/crates/mcp/src/lib.rs:45
↓ 6 callers
Function
get_compact_prompt
Build the compaction prompt, optionally with custom instructions appended.
src-rust/crates/query/src/compact.rs:422
↓ 6 callers
Function
git_output
Run a git command in `repo_root` and return stdout as a String. Returns empty string on failure (non-zero exit, not-a-repo, etc.).
src-rust/crates/core/src/git_utils.rs:27
↓ 6 callers
Method
id
(&self)
src-rust/crates/api/src/providers/free.rs:270
↓ 6 callers
Method
item_height
Get the cached height for item `idx` at `width`, computing it if needed.
src-rust/crates/tui/src/virtual_list.rs:103
↓ 6 callers
Function
load_output_styles_dir
Load user-defined output styles from a directory. Supported file formats: - `.md` — Markdown: `# Label\ndescription\n\nprompt text…` - `.json` — JS
src-rust/crates/core/src/output_styles.rs:110
↓ 6 callers
Function
make_config
(sys: Option<&str>, append: Option<&str>)
src-rust/crates/query/src/lib.rs:2289
↓ 6 callers
Function
make_dream
(tmp: &TempDir)
src-rust/crates/query/src/auto_dream.rs:364
↓ 6 callers
Function
make_temp_dir
()
src-rust/crates/core/src/skill_discovery.rs:279
↓ 6 callers
Function
models_for_provider_from_registry
Get models for a provider from the model registry (models.dev data). Builds picker entries from the bundled / network-refreshed registry. The registr
src-rust/crates/tui/src/model_picker.rs:270
↓ 6 callers
Method
name
(&self)
src-rust/crates/commands/src/lib.rs:517
↓ 6 callers
Function
open_goal_store
()
src-rust/crates/commands/src/lib.rs:1601
↓ 6 callers
Function
parse_skill_file
Parse a skill markdown file. Expects optional YAML frontmatter delimited by `---`. Returns `None` when the file is empty after trimming.
src-rust/crates/core/src/skill_discovery.rs:39
↓ 6 callers
Method
paste
Handle a paste event.
src-rust/crates/tui/src/prompt_input.rs:1691
↓ 6 callers
Function
print_account_list
(provider: &str, display_name: &str)
src-rust/crates/cli/src/main.rs:3945
↓ 6 callers
Method
record_file_change
( &self, path: PathBuf, before_content: &[u8], after_content: &[u8],
src-rust/crates/tools/src/lib.rs:479
↓ 6 callers
Function
render_collapsed_read_search
Render a collapsed read/search tool use summary. Shows: `▸ ` in yellow + `{tool_name} ` in yellow bold + first few paths comma-joined, followed by `(+
src-rust/crates/tui/src/messages/mod.rs:1916
↓ 6 callers
Function
render_dialog_select
Render the DialogSelect overlay — OpenCode-style: dark overlay, no border, full-width highlight bar on selected item, minimal and polished.
src-rust/crates/tui/src/dialog_select.rs:191
↓ 6 callers
Function
render_file_op_result
Render a file-edit/write tool result: `Updated file` or `Created file`.
src-rust/crates/tui/src/messages/mod.rs:1093
↓ 6 callers
Function
render_mcp_view
(state: &McpViewState, area: Rect, buf: &mut Buffer)
src-rust/crates/tui/src/mcp_view.rs:222
↓ 6 callers
Function
render_task_assignment
Render a transcript task assignment row using the same structured title/subtitle language.
src-rust/crates/tui/src/messages/mod.rs:1943
↓ 6 callers
Method
request_permission_inner
( &self, request: PermissionRequest, )
src-rust/crates/tools/src/lib.rs:343
↓ 6 callers
Method
resolve_anthropic_auth_async
(&self)
src-rust/crates/core/src/lib.rs:1381
↓ 6 callers
Method
resolve_output_style_prompt
Resolve the prompt text for the selected output style, including user-defined styles loaded from `~/.claurst/output-styles/`.
src-rust/crates/core/src/lib.rs:1307
↓ 6 callers
Method
send_notification_inner
Send a JSON-RPC notification (fire-and-forget, no response expected).
src-rust/crates/core/src/lsp.rs:343
↓ 6 callers
Method
send_request_inner
Send a JSON-RPC request and wait for the matching response.
src-rust/crates/core/src/lsp.rs:288
↓ 6 callers
Method
server_status
Return status for a single server.
src-rust/crates/mcp/src/lib.rs:957
↓ 6 callers
Method
set_turn_diff
(&mut self, files: Vec<FileDiffStats>)
src-rust/crates/tui/src/diff_viewer.rs:210
↓ 6 callers
Method
show
Show the dialog (called at startup when bypass mode is active).
src-rust/crates/tui/src/bypass_permissions_dialog.rs:36
↓ 6 callers
Method
show
Show the notification for the given memory file path. After `dismiss()` is called, re-showing is allowed (unlike the upsell banners which are session-
src-rust/crates/tui/src/memory_update_notification.rs:99
↓ 6 callers
Function
store_session
(s: ChromeSession)
src-rust/crates/commands/src/lib.rs:5653
↓ 6 callers
Method
switch_pane
(&mut self)
src-rust/crates/tui/src/mcp_view.rs:136
↓ 6 callers
Function
tokens_with_scopes
(scopes: Vec<&str>)
src-rust/crates/core/src/voice.rs:580
↓ 5 callers
Method
activate_provider
(&mut self, provider_id: String, provider_name: String, status_prefix: &str)
src-rust/crates/tui/src/app.rs:1667
↓ 5 callers
Function
all_commands
Return all built-in slash commands.
src-rust/crates/commands/src/lib.rs:8837
↓ 5 callers
Function
all_styles
Return all styles available for `config_dir`: built-ins first, then styles from `<config_dir>/output-styles/`. `config_dir` is typically `~/.claurst`
src-rust/crates/core/src/output_styles.rs:184
↓ 5 callers
Function
all_tips
Return a reference to all registered tips.
src-rust/crates/core/src/tips.rs:168
↓ 5 callers
Method
append_output
Append a line of output to an existing task. No-op if unknown.
src-rust/crates/core/src/lib.rs:4018
↓ 5 callers
Method
auth_header
(&self)
src-rust/crates/api/src/providers/openai.rs:345
↓ 5 callers
Function
begin_modal_frame
( frame: &mut Frame, area: Rect, width: u16, height: u16, header_height: u16, fo
src-rust/crates/tui/src/overlays.rs:128
↓ 5 callers
Function
compute_slash_suggestions
Compute typeahead suggestions for slash commands only (e.g., `/help`).
src-rust/crates/tui/src/prompt_input.rs:1085
↓ 5 callers
Method
confirm_selection
Confirm the current selection; advances to the `Confirming` step. Returns the selected message index if in the Selecting step.
src-rust/crates/tui/src/overlays.rs:1389
↓ 5 callers
Function
connect
Connect to Chrome at the given port. Picks the first available target (tab/page).
src-rust/crates/commands/src/lib.rs:5663
↓ 5 callers
Function
cron_field_matches
(field: &str, value: u32)
src-rust/crates/tools/src/cron.rs:130
↓ 5 callers
Function
current_unix_secs
()
src-rust/crates/tui/src/overlays.rs:533
↓ 5 callers
Function
device_fingerprint
Compute a stable device fingerprint from machine-local information. Combines hostname, login user name, and home directory path, then SHA-256 hashes
src-rust/crates/bridge/src/lib.rs:124
↓ 5 callers
Method
ensure_started
Spawn and initialize the server for `file_path` if it is not already running. Returns `None` when no server is configured for this file type.
src-rust/crates/core/src/lsp.rs:979
↓ 5 callers
Function
expand_prompt
Expand a skill's prompt template, substituting `$ARGUMENTS` and `$ARGUMENTS_SUFFIX`. - `$ARGUMENTS` → replaced by `args` verbatim (or `""` whe
src-rust/crates/tools/src/bundled_skills.rs:437
↓ 5 callers
Function
extract_yaml_str
(front: &str, key: &str)
src-rust/crates/tui/src/agents_view.rs:456
↓ 5 callers
Method
filter_pop
Backspace in the filter.
src-rust/crates/tui/src/dialog_select.rs:131
↓ 5 callers
Function
format_permission_reason
Build the explanation paragraph shown in the permission dialog. Mirrors the TS `createPermissionRequestMessage` / `permissionExplainer` output style.
src-rust/crates/core/src/lib.rs:2184
← previous
next →
201–300 of 4,591, ranked by callers