Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dhanji/g3
/ functions
Functions
3,053 in github.com/dhanji/g3
⨍
Functions
3,053
◇
Types & classes
258
↓ 1 callers
Method
fail
(reason: impl Into<String>)
crates/g3-core/src/tools/invariants.rs:548
↓ 1 callers
Method
file_path
Get the file path for this fragment.
crates/g3-core/src/acd.rs:143
↓ 1 callers
Method
file_prefix
(&self)
crates/g3-core/src/context_window.rs:45
↓ 1 callers
Function
find_chromedriver_path
()
crates/g3-computer-control/src/webdriver/diagnostics.rs:458
↓ 1 callers
Method
find_element
Find a child element by CSS selector
crates/g3-computer-control/src/webdriver/mod.rs:103
↓ 1 callers
Method
find_elements
( &mut self, selector: &str, )
crates/g3-core/src/webdriver_session.rs:47
↓ 1 callers
Method
find_elements
Find multiple child elements by CSS selector
crates/g3-computer-control/src/webdriver/mod.rs:109
↓ 1 callers
Function
find_fallback_title
Find a fallback title from the first few lines of content.
crates/g3-cli/src/project_files.rs:149
↓ 1 callers
Method
find_matching_open_delimiter
Find a matching open delimiter in the stack.
crates/g3-cli/src/streaming_markdown.rs:434
↓ 1 callers
Method
find_resume_point
Find the first incomplete stage (for resumption)
crates/studio/src/sdlc.rs:318
↓ 1 callers
Function
fix_mixed_quotes_in_json
(json_str: &str)
crates/g3-core/src/utils.rs:499
↓ 1 callers
Method
flush_incomplete
Flush any incomplete constructs.
crates/g3-cli/src/streaming_markdown.rs:729
↓ 1 callers
Function
flush_json_tool_filter
Flushes any pending content from the JSON filter. Call this at the end of streaming to ensure any buffered newlines or whitespace that wasn't followe
crates/g3-cli/src/filter_json.rs:427
↓ 1 callers
Method
force_thin
Manually trigger context thinning regardless of thresholds
crates/g3-core/src/lib.rs:1266
↓ 1 callers
Method
force_thin_all
Manually trigger context thinning for the ENTIRE context window Unlike force_thin which only processes the first third, this processes all messages
crates/g3-core/src/lib.rs:1273
↓ 1 callers
Method
format_cache_stats
(&self, stats: &mut String)
crates/g3-core/src/stats.rs:190
↓ 1 callers
Function
format_code_search_summary
Format a code_search result summary.
crates/g3-core/src/streaming.rs:513
↓ 1 callers
Function
format_compact_tool_summary
Format a compact summary for a successful compact tool
crates/g3-core/src/streaming.rs:120
↓ 1 callers
Method
format_context_window
(&self, stats: &mut String)
crates/g3-core/src/stats.rs:47
↓ 1 callers
Method
format_conversation_history
(&self, stats: &mut String)
crates/g3-core/src/stats.rs:121
↓ 1 callers
Function
format_duration
Format seconds as human-readable duration
crates/studio/src/sdlc.rs:478
↓ 1 callers
Function
format_duration_ms
Format milliseconds as a human-readable duration string.
crates/g3-cli/src/metrics.rs:92
↓ 1 callers
Function
format_envelope_yaml
Format an action envelope as pretty YAML with comments.
crates/g3-core/src/tools/invariants.rs:777
↓ 1 callers
Method
format_header
Format a header line.
crates/g3-cli/src/streaming_markdown.rs:575
↓ 1 callers
Function
format_inline_code_only
Format only inline code within text (used for nested formatting in links)
crates/g3-cli/src/streaming_markdown.rs:793
↓ 1 callers
Function
format_load_toolset_summary
Format a load_toolset result summary.
crates/g3-core/src/streaming.rs:551
↓ 1 callers
Method
format_messages
Format messages according to the model's native chat template.
crates/g3-providers/src/embedded/provider.rs:191
↓ 1 callers
Function
format_nested_bold
Format nested bold within italic text
crates/g3-cli/src/streaming_markdown.rs:811
↓ 1 callers
Function
format_nested_italic
Format nested italic within bold text
crates/g3-cli/src/streaming_markdown.rs:802
↓ 1 callers
Method
format_optimization_metrics
(&self, stats: &mut String)
crates/g3-core/src/stats.rs:72
↓ 1 callers
Method
format_performance_metrics
(&self, stats: &mut String)
crates/g3-core/src/stats.rs:101
↓ 1 callers
Function
format_plan_approve_summary
Format a plan_approve result summary.
crates/g3-core/src/streaming.rs:532
↓ 1 callers
Function
format_plan_as_markdown
Format a plan as markdown with embedded YAML.
crates/g3-core/src/tools/plan.rs:636
↓ 1 callers
Method
format_provider_info
(&self, stats: &mut String)
crates/g3-core/src/stats.rs:237
↓ 1 callers
Function
format_session_time
Format a session's created_at timestamp for display
crates/g3-core/src/session_continuation.rs:545
↓ 1 callers
Function
format_size
Format the file size in a human-readable way.
crates/g3-core/src/tools/memory.rs:26
↓ 1 callers
Function
format_size
Format a byte size for display.
crates/g3-cli/src/project_files.rs:115
↓ 1 callers
Function
format_timestamp_for_filename
Format a timestamp for filenames Format: YYYY-MM-DD_HH-MM-SS (filesystem-safe)
crates/g3-planner/src/history.rs:22
↓ 1 callers
Method
format_tool_call_metrics
(&self, stats: &mut String)
crates/g3-core/src/stats.rs:150
↓ 1 callers
Function
format_tool_output_summary
Format tool output lines for display, respecting machine vs human mode.
crates/g3-core/src/streaming.rs:401
↓ 1 callers
Function
format_tool_result_summary
Determine how to format a tool result for display.
crates/g3-core/src/streaming.rs:61
↓ 1 callers
Function
format_verification_results
Format verification results as a string for display. Uses loud formatting for warnings and errors. If session_id is provided, also checks that envelop
crates/g3-core/src/tools/plan.rs:723
↓ 1 callers
Function
format_yaml_value_markdown
Format a YAML value as indented markdown.
crates/g3-core/src/tools/invariants.rs:995
↓ 1 callers
Method
forward
(&mut self)
crates/g3-core/src/webdriver_session.rs:106
↓ 1 callers
Function
generate_commit_message
Generate a git commit message based on the requirements Uses the planner LLM to generate a commit summary and description. Returns (summary, descript
crates/g3-planner/src/llm.rs:158
↓ 1 callers
Function
generate_requirements_summary
Generate a summary of requirements for planner_history.txt Uses the planner LLM to generate a concise summary of the requirements. The summary is at
crates/g3-planner/src/llm.rs:112
↓ 1 callers
Function
generate_short_id
Generate a short unique ID (first 8 chars of UUID v4).
crates/g3-core/src/paths.rs:120
↓ 1 callers
Function
generate_summary
Generate a summary of the pipeline run
crates/studio/src/sdlc.rs:407
↓ 1 callers
Function
get_agent_language_prompts_for_workspace
( workspace_dir: &Path, agent_name: &str, )
crates/g3-cli/src/language_prompts.rs:147
↓ 1 callers
Method
get_anthropic_config
Get Anthropic config by name
crates/g3-config/src/lib.rs:676
↓ 1 callers
Method
get_api_url
(&self, stream: bool)
crates/g3-providers/src/gemini.rs:100
↓ 1 callers
Method
get_authorization_url
(&self)
crates/g3-providers/src/oauth.rs:195
↓ 1 callers
Function
get_available_agents
Get a map of all available agents (both embedded and from workspace).
crates/g3-cli/src/embedded_agents.rs:60
↓ 1 callers
Function
get_background_processes_dir
Get the path to the background processes directory. Returns `.g3/background_processes/` in the workspace or current directory.
crates/g3-core/src/paths.rs:46
↓ 1 callers
Function
get_chrome_version
(config_binary: Option<&str>)
crates/g3-computer-control/src/webdriver/diagnostics.rs:516
↓ 1 callers
Function
get_chromedriver_version
()
crates/g3-computer-control/src/webdriver/diagnostics.rs:507
↓ 1 callers
Method
get_coach_provider
Get the provider reference for coach mode in autonomous execution
crates/g3-config/src/lib.rs:635
↓ 1 callers
Method
get_config
(&self)
crates/g3-core/src/lib.rs:1567
↓ 1 callers
Function
get_current_branch
Get the current git branch name
crates/g3-planner/src/git.rs:67
↓ 1 callers
Method
get_databricks_config
Get Databricks config by name
crates/g3-config/src/lib.rs:686
↓ 1 callers
Function
get_embedded_skill
Get an embedded skill by name.
crates/g3-core/src/skills/embedded.rs:35
↓ 1 callers
Function
get_errors_dir
Get the path to the errors directory. Returns `.g3/errors/` in the workspace or current directory.
crates/g3-core/src/paths.rs:39
↓ 1 callers
Function
get_file_modified_time
Get the modified time of a file as a formatted string
crates/g3-planner/src/state.rs:88
↓ 1 callers
Function
get_head_commit
Get the current HEAD commit hash
crates/studio/src/main.rs:792
↓ 1 callers
Function
get_initial_discovery_messages
Generates initial discovery messages for fast codebase exploration. This function: 1. Runs explore_codebase to get a codebase report 2. Sends the rep
crates/g3-planner/src/lib.rs:51
↓ 1 callers
Function
get_latest_continuation_path
Get the path to the latest.json continuation file This follows the symlink to get the actual path
crates/g3-core/src/session_continuation.rs:114
↓ 1 callers
Function
get_memory_path
Get the path to the memory file. Memory is stored at `analysis/memory.md` in the working directory (version controlled).
crates/g3-core/src/tools/memory.rs:18
↓ 1 callers
Function
get_oauth_token_async
( host: &str, client_id: &str, redirect_url: &str, scopes: &[String], )
crates/g3-providers/src/oauth.rs:353
↓ 1 callers
Method
get_openai_config
Get OpenAI config by name
crates/g3-config/src/lib.rs:681
↓ 1 callers
Function
get_or_create_verification_key
Read or create the verification key at `~/.g3/verification.key`. - If the key file exists, reads and returns it. - If it doesn't exist, generates 32
crates/g3-core/src/tools/envelope.rs:59
↓ 1 callers
Function
get_or_init_backend
Get or initialize the global llama.cpp backend
crates/g3-providers/src/embedded/provider.rs:39
↓ 1 callers
Method
get_player_provider
Get the provider reference for player mode in autonomous execution
crates/g3-config/src/lib.rs:643
↓ 1 callers
Method
get_provider
Get the default LLM provider
crates/g3-core/src/lib.rs:786
↓ 1 callers
Method
get_requests
Get all requests that were made to this provider
crates/g3-providers/src/mock.rs:397
↓ 1 callers
Method
get_stop_sequences
Get stop sequences based on model type.
crates/g3-providers/src/embedded/provider.rs:201
↓ 1 callers
Function
get_system_prompt_for_non_native_with_skills
System prompt for providers without native tool calling, with skills support.
crates/g3-core/src/prompts.rs:152
↓ 1 callers
Method
get_text_before_tool_calls
Get only the text content before the first JSON tool call. Returns the full buffer if no tool calls are found. This is used to save the "preamble" tex
crates/g3-core/src/streaming_parser.rs:466
↓ 1 callers
Function
get_tools_output_dir
Get the tools output directory for a session. Returns .g3/sessions/<session_id>/tools/
crates/g3-core/src/paths.rs:115
↓ 1 callers
Function
greet
(name string)
examples/test_code/example.go:10
↓ 1 callers
Function
greet
examples/test_code/example.c:3
↓ 1 callers
Method
greet
examples/test_code/example.cpp:12
↓ 1 callers
Method
greet
()
examples/test_code/Example.java:8
↓ 1 callers
Method
handle_block_delta
Returns chunks to send for a content_block_delta event.
crates/g3-providers/src/anthropic.rs:207
↓ 1 callers
Method
handle_block_start
Returns chunks to send for a content_block_start event.
crates/g3-providers/src/anthropic.rs:178
↓ 1 callers
Method
handle_block_stop
Returns chunks to send when a content block finishes.
crates/g3-providers/src/anthropic.rs:223
↓ 1 callers
Function
handle_buffering_char
Handle a character in Buffering state
crates/g3-cli/src/filter_json.rs:292
↓ 1 callers
Function
handle_command
( input: &str, output: &SimpleOutput, accumulated_requirements: &[String], cli: &Cli, comb
crates/g3-cli/src/accumulative.rs:238
↓ 1 callers
Function
handle_command
Handle a control command. Returns true if the command was handled and the loop should continue.
crates/g3-cli/src/commands.rs:29
↓ 1 callers
Method
handle_delimiter
Handle a detected delimiter.
crates/g3-cli/src/streaming_markdown.rs:394
↓ 1 callers
Function
handle_execution_error
Handle execution errors with detailed logging and user-friendly output.
crates/g3-cli/src/task_execution.rs:109
↓ 1 callers
Method
handle_message_delta
(&mut self, event: &AnthropicStreamEvent)
crates/g3-providers/src/anthropic.rs:246
↓ 1 callers
Method
handle_message_start
(&mut self, event: &AnthropicStreamEvent)
crates/g3-providers/src/anthropic.rs:162
↓ 1 callers
Method
handle_message_stop
(&mut self)
crates/g3-providers/src/anthropic.rs:255
↓ 1 callers
Method
handle_newline
Handle a newline character.
crates/g3-cli/src/streaming_markdown.rs:445
↓ 1 callers
Function
handle_recovery
Handle recovery situation
crates/g3-planner/src/planner.rs:210
↓ 1 callers
Function
handle_streaming_char
Handle a character in Streaming state
crates/g3-cli/src/filter_json.rs:195
↓ 1 callers
Function
handle_suppressing_char
Handle a character in Suppressing state (string-aware brace counting)
crates/g3-cli/src/filter_json.rs:341
↓ 1 callers
Method
handles
(&self, model_type: &str)
crates/g3-providers/src/embedded/adapters/glm.rs:361
↓ 1 callers
Method
has_any
Check if any content was loaded.
crates/g3-cli/src/display.rs:150
↓ 1 callers
Function
has_consecutive_assistant_messages
Check if conversation history has consecutive assistant messages. Returns the indices of the first consecutive pair found, if any.
crates/g3-core/tests/assistant_message_test.rs:28
← previous
next →
701–800 of 3,053, ranked by callers