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
↓ 2 callers
Function
reprint_formatted_input
Reprint user input in place with formatting (TTY only). Moves cursor up to overwrite original input, then prints formatted version.
crates/g3-cli/src/input_formatter.rs:115
↓ 2 callers
Method
reset
(&mut self)
crates/g3-providers/src/embedded/adapters/glm.rs:454
↓ 2 callers
Function
resize_image_if_needed
Resize an image to be under the target size using ImageMagick. Returns the resized image bytes, or the original bytes if resizing fails or isn't neede
crates/g3-core/src/tools/file_ops.rs:743
↓ 2 callers
Function
resize_image_to_dimensions
Resize an image to fit within max_dimension pixels (longest edge) and target_size bytes. This is the primary resize function that handles both dimensi
crates/g3-core/src/tools/file_ops.rs:672
↓ 2 callers
Function
resolve_max_tokens
Resolve the max_tokens to use for a given provider, applying fallbacks.
crates/g3-core/src/provider_config.rs:66
↓ 2 callers
Function
resolve_temperature
Resolve the temperature to use for a given provider, applying fallbacks.
crates/g3-core/src/provider_config.rs:93
↓ 2 callers
Method
resolve_temperature
Resolve the temperature to use for a given provider, applying fallbacks.
crates/g3-core/src/lib.rs:624
↓ 2 callers
Method
resume
Resume from the first incomplete stage
crates/studio/src/sdlc.rs:332
↓ 2 callers
Method
retry_stage
(&mut self)
crates/studio/src/sdlc.rs:301
↓ 2 callers
Function
scale_bar
Scale a value to a bar length proportional to max.
crates/g3-cli/src/metrics.rs:83
↓ 2 callers
Method
set_acd_enabled
Enable or disable aggressive context dehydration (ACD)
crates/g3-core/src/lib.rs:1654
↓ 2 callers
Method
set_agent_mode
(&self, is_agent_mode: bool)
crates/g3-cli/src/ui_writer_impl.rs:1107
↓ 2 callers
Method
set_auto_memory
Enable auto-memory reminders after turns with tool calls
crates/g3-core/src/lib.rs:1645
↓ 2 callers
Method
should_thin
Check if we should trigger context thinning. Triggers at 50%, 60%, 70%, and 80% thresholds.
crates/g3-core/src/context_window.rs:274
↓ 2 callers
Function
stage_files
Stage files for commit, excluding temporary/artifact files Stages all files in the specified directory plus any modified/new code files
crates/g3-planner/src/git.rs:245
↓ 2 callers
Function
stage_plan_dir
Re-stage the g3-plan directory to capture any changes made after initial staging. This is specifically needed because `planner_history.txt` is modifi
crates/g3-planner/src/git.rs:316
↓ 2 callers
Method
stream
(&self, request: CompletionRequest)
crates/g3-providers/src/mock.rs:452
↓ 2 callers
Method
stream_completion_with_tools
( &mut self, mut request: CompletionRequest, show_timing: bool, )
crates/g3-core/src/lib.rs:2178
↓ 2 callers
Method
stream_with_retry
Create tool definitions for native tool calling providers Helper method to stream with retry logic
crates/g3-core/src/lib.rs:2125
↓ 2 callers
Method
strip_quotes
(&self, word: &'a str)
crates/g3-cli/src/completion.rs:102
↓ 2 callers
Method
thin_context_all
Thin entire context (all messages).
crates/g3-core/src/context_window.rs:424
↓ 2 callers
Method
thin_context_with_scope
Perform context thinning: scan messages and replace large tool results with file references. # Arguments `session_id` - If provided, thinned content
crates/g3-core/src/context_window.rs:433
↓ 2 callers
Method
to_display_string
(&self)
crates/g3-planner/src/git.rs:138
↓ 2 callers
Method
to_loaded_items
Build a list of loaded item names in load order.
crates/g3-cli/src/display.rs:155
↓ 2 callers
Method
to_tool_call
(&self)
crates/g3-providers/src/openai.rs:492
↓ 2 callers
Function
try_extract_from_native_tool_call
Try to extract feedback from native tool call JSON in response
crates/g3-core/src/feedback_extraction.rs:229
↓ 2 callers
Method
try_parse_tool_call_json
(&self, json_str: &str)
crates/g3-core/src/streaming_parser.rs:438
↓ 2 callers
Function
update_header
Update or add the header with timestamp and size.
crates/g3-core/src/tools/memory.rs:117
↓ 2 callers
Method
update_tool_output_line
(&self, _line: &str)
crates/g3-core/src/ui_writer.rs:181
↓ 2 callers
Function
verify_test_reference
Verify a test reference evidence (test function exists in file). This checks that the test file exists and contains a function with the given name. I
crates/g3-core/src/tools/plan.rs:521
↓ 2 callers
Method
workspace
Get the workspace directory
crates/g3-core/src/project.rs:94
↓ 2 callers
Method
worktree_path
Get the worktree path for a session
crates/studio/src/git.rs:27
↓ 2 callers
Method
worktrees_base
Get the base directory for all worktrees
crates/studio/src/git.rs:22
↓ 2 callers
Function
write_attempting_recovery
Write an "ATTEMPTING RECOVERY" entry
crates/g3-planner/src/history.rs:107
↓ 2 callers
Function
write_completed_requirements
Write a "COMPLETED REQUIREMENTS" entry
crates/g3-planner/src/history.rs:123
↓ 2 callers
Function
write_envelope
Write an action envelope to the session's envelope.yaml file.
crates/g3-core/src/tools/invariants.rs:769
↓ 2 callers
Function
write_git_head
Write a "GIT HEAD" entry with the current SHA
crates/g3-planner/src/history.rs:76
↓ 2 callers
Function
write_refining_requirements
Write a "REFINING REQUIREMENTS" entry
crates/g3-planner/src/history.rs:68
↓ 2 callers
Function
write_start_implementing
Write a "START IMPLEMENTING" entry with a summary block
crates/g3-planner/src/history.rs:85
↓ 2 callers
Function
yaml_to_display
Convert a YAML value to a display string.
crates/g3-core/src/tools/invariants.rs:723
↓ 2 callers
Function
yaml_value_to_string
Convert a YAML value to a string for datalog comparison.
crates/g3-core/src/tools/datalog.rs:172
↓ 1 callers
Function
add
examples/test_code/example.c:7
↓ 1 callers
Method
add_message_with_tokens
Add a message with optional token count from the provider
crates/g3-core/src/context_window.rs:111
↓ 1 callers
Method
all_passed
Check if all predicates passed.
crates/g3-core/src/tools/datalog.rs:326
↓ 1 callers
Method
all_passed
Check if all predicates passed.
crates/g3-core/src/tools/invariants.rs:819
↓ 1 callers
Function
append_summary_statistics
Append summary statistics to the histogram output.
crates/g3-cli/src/metrics.rs:105
↓ 1 callers
Method
apply_delta
Update accumulator with a streaming delta.
crates/g3-providers/src/databricks.rs:90
↓ 1 callers
Method
apply_fallback_sequence_impl
Unified implementation of the fallback sequence for freeing context space. If `initial_max_tokens` is Some, uses preflight_validate_max_tokens for val
crates/g3-core/src/lib.rs:554
↓ 1 callers
Method
apply_max_tokens_fallback_sequence
Apply the fallback sequence to free up context space for thinking budget.
crates/g3-core/src/lib.rs:538
↓ 1 callers
Function
apply_summary_fallback_sequence
Apply the fallback sequence for summary requests to free up context space. Sequence: thinnify -> skinnify -> hard-coded minimum
crates/g3-core/src/compaction.rs:212
↓ 1 callers
Method
apply_thin_modifications
Apply collected modifications and return counts.
crates/g3-core/src/context_window.rs:538
↓ 1 callers
Function
args_contain_prose_fragments
Detect malformed tool calls where LLM prose leaked into JSON keys.
crates/g3-core/src/streaming_parser.rs:180
↓ 1 callers
Function
assistant_msg_with_tool_calls
Helper to create a Message with tool_calls
crates/g3-core/src/context_window.rs:948
↓ 1 callers
Function
available_width_after_prefix
Utility function for future use
crates/g3-cli/src/terminal_width.rs:115
↓ 1 callers
Function
build_coach_prompt
(requirements: &str)
crates/g3-cli/src/autonomous.rs:296
↓ 1 callers
Function
build_player_prompt
(requirements: &str, requirements_sha: &str, coach_feedback: &str)
crates/g3-cli/src/autonomous.rs:282
↓ 1 callers
Function
calculate_autonomous_retry_delay
Calculate retry delay for autonomous mode with better distribution over 10 minutes
crates/g3-core/src/error_handling.rs:258
↓ 1 callers
Function
calculate_read_limit
Calculate the maximum bytes we should read based on context window state. Returns None if no limit needed, Some(max_bytes) if limiting required.
crates/g3-core/src/tools/file_ops.rs:45
↓ 1 callers
Function
calculate_visual_lines
Calculate the number of visual lines that text occupies in a terminal. Accounts for line wrapping and the cursor position after typing. For multi-line
crates/g3-cli/src/input_formatter.rs:91
↓ 1 callers
Function
call_refinement_llm_with_tools
Call LLM to refine requirements using a full Agent with tool execution
crates/g3-planner/src/llm.rs:335
↓ 1 callers
Method
can_restore_full_context
Check if the context can be fully restored (< 80% used)
crates/g3-core/src/session_continuation.rs:79
↓ 1 callers
Function
canonical_rulespec_yaml
Compute a canonical YAML representation of the rulespec.
crates/g3-core/src/tools/envelope.rs:137
↓ 1 callers
Method
check_and_toggle_fence
(&mut self)
crates/g3-core/src/streaming_parser.rs:55
↓ 1 callers
Function
check_chrome_for_testing
Check for Chrome for Testing installation
crates/g3-computer-control/src/webdriver/diagnostics.rs:371
↓ 1 callers
Function
check_chrome_installed
Check if Chrome is installed
crates/g3-computer-control/src/webdriver/diagnostics.rs:216
↓ 1 callers
Function
check_chromedriver_executable
Check if ChromeDriver is executable (macOS quarantine issue)
crates/g3-computer-control/src/webdriver/diagnostics.rs:421
↓ 1 callers
Function
check_chromedriver_installed
Check if ChromeDriver is installed and in PATH
crates/g3-computer-control/src/webdriver/diagnostics.rs:168
↓ 1 callers
Function
check_chromedriver_running
Check if chromedriver is already running on the given port.
crates/g3-core/src/tools/webdriver.rs:79
↓ 1 callers
Function
check_config_chrome_binary
Check config.toml chrome_binary setting
crates/g3-computer-control/src/webdriver/diagnostics.rs:310
↓ 1 callers
Function
check_current_requirements_tag
Check if requirements have CURRENT REQUIREMENTS tag after LLM refinement
crates/g3-planner/src/planner.rs:317
↓ 1 callers
Method
check_delimiter
Check if current char (possibly with lookahead in buffer) forms a delimiter.
crates/g3-cli/src/streaming_markdown.rs:322
↓ 1 callers
Function
check_dirty_files
Check for untracked, uncommitted, or dirty files Optionally ignores files matching a given path pattern
crates/g3-planner/src/git.rs:168
↓ 1 callers
Method
check_duplicate_in_previous_message
Check if a tool call is a duplicate of the last tool call in the previous assistant message. Returns Some("DUP IN MSG") if it's a duplicate, None othe
crates/g3-core/src/lib.rs:1370
↓ 1 callers
Function
check_git_repo
Check if the given path is within a git repository
crates/g3-planner/src/git.rs:36
↓ 1 callers
Function
check_git_status
Check git repository status (if git is enabled)
crates/g3-planner/src/planner.rs:144
↓ 1 callers
Function
check_version_compatibility
Check Chrome and ChromeDriver version compatibility
crates/g3-computer-control/src/webdriver/diagnostics.rs:267
↓ 1 callers
Method
cleanup_injected
Clear all completed and injected tasks (cleanup)
crates/g3-core/src/pending_research.rs:284
↓ 1 callers
Method
clear_project
(&self)
crates/g3-cli/src/ui_writer_impl.rs:1120
↓ 1 callers
Method
clear_session
Clear session state and continuation artifacts (for /clear command)
crates/g3-core/src/lib.rs:1983
↓ 1 callers
Method
click
Click the element
crates/g3-computer-control/src/webdriver/mod.rs:50
↓ 1 callers
Method
close
(&mut self)
crates/g3-computer-control/src/webdriver/chrome.rs:419
↓ 1 callers
Method
close
(&mut self)
crates/g3-computer-control/src/webdriver/safari.rs:223
↓ 1 callers
Method
close_window
Close the current window
crates/g3-computer-control/src/webdriver/chrome.rs:277
↓ 1 callers
Method
close_window
Close the current window
crates/g3-computer-control/src/webdriver/safari.rs:83
↓ 1 callers
Function
cmd_accept
Accept a session: merge to main and cleanup
crates/studio/src/main.rs:471
↓ 1 callers
Function
cmd_cli
Start a new interactive g3 session
crates/studio/src/main.rs:133
↓ 1 callers
Function
cmd_discard
Discard a session: delete without merging
crates/studio/src/main.rs:512
↓ 1 callers
Function
cmd_exec
Execute a g3 session in detached mode (placeholder for future)
crates/studio/src/main.rs:387
↓ 1 callers
Function
cmd_list
List all sessions
crates/studio/src/main.rs:398
↓ 1 callers
Function
cmd_resume
Resume a paused interactive session
crates/studio/src/main.rs:180
↓ 1 callers
Function
cmd_run
Run a new g3 session (foreground, tails output)
crates/studio/src/main.rs:275
↓ 1 callers
Function
cmd_sdlc_reset
Reset SDLC pipeline state
crates/studio/src/main.rs:752
↓ 1 callers
Function
cmd_sdlc_run
Run the SDLC pipeline
crates/studio/src/main.rs:544
↓ 1 callers
Function
cmd_sdlc_status
Show SDLC pipeline status
crates/studio/src/main.rs:720
↓ 1 callers
Function
cmd_status
Show status of a specific session
crates/studio/src/main.rs:430
↓ 1 callers
Method
collect_thin_modifications
Collect all modifications needed for thinning without mutating.
crates/g3-core/src/context_window.rs:498
↓ 1 callers
Function
colorize_str_replace_summary
Colorize a str_replace summary (e.g., "+5 | -3" -> green "+5" | red "-3")
crates/g3-cli/src/ui_writer_impl.rs:21
↓ 1 callers
Method
common_flags
Extract common flags that apply across all execution modes. This ensures flags like --project, --acd, --include-prompt work consistently.
crates/g3-cli/src/cli_args.rs:169
↓ 1 callers
Function
complete_implementation
Complete the implementation - rename files and prepare for commit
crates/g3-planner/src/planner.rs:411
↓ 1 callers
Function
compute_keyed_hash
Compute a keyed SipHash over the canonical content. Uses the first 16 bytes of the key as SipHash key (k0, k1). The message is: facts_yaml + NUL sepa
crates/g3-core/src/tools/envelope.rs:164
← previous
next →
501–600 of 3,053, ranked by callers