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
quit
(self)
crates/g3-core/src/webdriver_session.rs:89
↓ 1 callers
Method
quit
(mut self)
crates/g3-computer-control/src/webdriver/chrome.rs:424
↓ 1 callers
Function
read_current_requirements
Read current requirements content
crates/g3-planner/src/planner.rs:361
↓ 1 callers
Method
read_requirements
Read the requirements file content
crates/g3-core/src/project.rs:105
↓ 1 callers
Function
read_todo
Read todo file content
crates/g3-planner/src/planner.rs:368
↓ 1 callers
Function
read_verification_key
Read the verification key. Returns None if it doesn't exist.
crates/g3-core/src/tools/envelope.rs:99
↓ 1 callers
Method
refresh
(&mut self)
crates/g3-core/src/webdriver_session.rs:113
↓ 1 callers
Method
refresh_token
(&self, refresh_token: &str)
crates/g3-providers/src/oauth.rs:247
↓ 1 callers
Function
register_anthropic_providers
Register Anthropic providers from configuration.
crates/g3-core/src/provider_registration.rs:143
↓ 1 callers
Function
register_databricks_providers
Register Databricks providers from configuration. This is async because OAuth authentication requires async operations.
crates/g3-core/src/provider_registration.rs:190
↓ 1 callers
Function
register_embedded_providers
Register embedded providers from configuration.
crates/g3-core/src/provider_registration.rs:75
↓ 1 callers
Function
register_gemini_providers
Register Gemini providers from configuration.
crates/g3-core/src/provider_registration.rs:167
↓ 1 callers
Function
register_openai_compatible_providers
Register OpenAI-compatible providers (e.g., OpenRouter, Groq) from configuration.
crates/g3-core/src/provider_registration.rs:121
↓ 1 callers
Function
register_openai_providers
Register OpenAI providers from configuration.
crates/g3-core/src/provider_registration.rs:99
↓ 1 callers
Function
register_providers
Registers all configured providers based on the providers_to_register list. This is an async function because Databricks OAuth registration requires
crates/g3-core/src/provider_registration.rs:50
↓ 1 callers
Method
reload_readme
Reload README.md and AGENTS.md and replace the first system message Returns Ok(true) if README was found and reloaded, Ok(false) if no README was pres
crates/g3-core/src/lib.rs:1446
↓ 1 callers
Method
reset
(&mut self)
crates/g3-cli/src/filter_json.rs:91
↓ 1 callers
Function
resolve_commit
Resolve a commit reference (hash, branch, tag, etc.) to a full hash
crates/studio/src/main.rs:777
↓ 1 callers
Function
resolve_log_path
Resolve the log file path, trying new path first then falling back to old.
crates/g3-cli/src/coach_feedback.rs:56
↓ 1 callers
Function
resolve_paths_in_shell_command
Resolve file paths within a shell command, handling Unicode space normalization. This function finds quoted file paths in a shell command and resolve
crates/g3-core/src/utils.rs:128
↓ 1 callers
Function
resolve_variable
Resolve a template variable to its value.
crates/g3-cli/src/template.rs:40
↓ 1 callers
Method
responses
(&self)
crates/g3-core/tests/streaming_completion_test.rs:270
↓ 1 callers
Function
rule_body_for_predicate
Generate the Soufflé rule body for a single predicate. Returns the clause after `predicate_pass(id) :- `.
crates/g3-core/src/tools/datalog.rs:634
↓ 1 callers
Function
run
()
crates/g3-cli/src/lib.rs:52
↓ 1 callers
Function
run_accumulative_mode
Run accumulative autonomous mode - accumulates requirements from user input and runs autonomous mode after each input.
crates/g3-cli/src/accumulative.rs:24
↓ 1 callers
Function
run_agent_in_worktree
Run a g3 agent in a worktree
crates/studio/src/main.rs:828
↓ 1 callers
Function
run_agent_mode
Run agent mode - loads a specialized agent prompt and executes a single task. Uses `CommonFlags` for flags that apply across all modes, ensuring cons
crates/g3-cli/src/agent_mode.rs:23
↓ 1 callers
Function
run_autonomous
Run autonomous mode with coach-player feedback loop (console output).
crates/g3-cli/src/autonomous.rs:20
↓ 1 callers
Function
run_coach_player_loop
Run the coach/player implementation loop This function runs the actual implementation phase using g3-core's Agent in a coach/player feedback loop sim
crates/g3-planner/src/planner.rs:572
↓ 1 callers
Function
run_console_mode
( cli: Cli, config: Config, project: Project, combined_content: Option<String>, workspace_
crates/g3-cli/src/lib.rs:156
↓ 1 callers
Function
run_planning_mode
Main entry point for planning mode This function orchestrates the entire planning workflow: 1. Initialize the planning directory 2. Check git status
crates/g3-planner/src/planner.rs:747
↓ 1 callers
Function
run_scout_agent
Run the scout agent and return the research report. This is the blocking part that runs in a background task.
crates/g3-core/src/tools/research.rs:101
↓ 1 callers
Method
save
(&self, path: &str)
crates/g3-config/src/lib.rs:519
↓ 1 callers
Function
save_context_window
Save the context window to a session file. If session_id is provided, saves to `.g3/sessions/<session_id>/session.json`. Otherwise, saves to `.g3/ses
crates/g3-core/src/session.rs:94
↓ 1 callers
Method
save_to_file
Save error context to a file for later analysis
crates/g3-core/src/error_handling.rs:126
↓ 1 callers
Function
scan_directory_for_extensions
Recursively scan a directory for files with given extensions, up to max_depth.
crates/g3-cli/src/language_prompts.rs:57
↓ 1 callers
Method
screenshot
(&mut self, path: &str)
crates/g3-core/src/webdriver_session.rs:75
↓ 1 callers
Method
screenshot
(&mut self, path: &str)
crates/g3-computer-control/src/webdriver/chrome.rs:401
↓ 1 callers
Method
search_single
( &mut self, spec: &SearchSpec, max_matches: usize, )
crates/g3-core/src/code_search/searcher.rs:204
↓ 1 callers
Method
select_recursive
(&self, value: &YamlValue, segment_idx: usize)
crates/g3-core/src/tools/invariants.rs:481
↓ 1 callers
Method
send_keys
Send keys/text to the element
crates/g3-computer-control/src/webdriver/mod.rs:56
↓ 1 callers
Method
set_agent_mode
Set agent mode information for session tracking Called when running with --agent flag to enable agent-specific session resume
crates/g3-core/src/lib.rs:1638
↓ 1 callers
Method
set_default
(&mut self, provider_name: &str)
crates/g3-providers/src/lib.rs:392
↓ 1 callers
Method
set_requirements_sha
(&mut self, sha: String)
crates/g3-core/src/lib.rs:1571
↓ 1 callers
Method
set_session_id
Set the session ID (useful for testing)
crates/g3-core/src/lib.rs:796
↓ 1 callers
Method
set_working_dir
Set the working directory (useful for testing)
crates/g3-core/src/lib.rs:801
↓ 1 callers
Function
setup_complete_plan_with_envelope
Helper: write a complete plan, approve it, and set up envelope. Returns the actual session ID (which has a unique suffix).
crates/g3-core/tests/tool_execution_roundtrip_test.rs:506
↓ 1 callers
Function
setup_workspace_directory
Set up the workspace directory for autonomous mode. Uses G3_WORKSPACE environment variable or defaults to ~/tmp/workspace.
crates/g3-cli/src/utils.rs:75
↓ 1 callers
Function
shell_escape_command
(command: &str)
crates/g3-core/src/utils.rs:367
↓ 1 callers
Function
should_exclude
Check if a file should be excluded from staging based on patterns
crates/g3-planner/src/git.rs:219
↓ 1 callers
Function
split_frontmatter
Split content into frontmatter and body. Frontmatter must be delimited by `---` lines at the start.
crates/g3-core/src/skills/parser.rs:118
↓ 1 callers
Function
stage_and_commit
Stage files and make git commit
crates/g3-planner/src/planner.rs:443
↓ 1 callers
Function
stamp_envelope
Stamp an envelope with a verification token and re-write it to disk. This is called only when all rulespec predicates pass. It: 1. Gets or creates th
crates/g3-core/src/tools/envelope.rs:463
↓ 1 callers
Function
start_chrome_driver
(ctx: &ToolContext<'_, W>)
crates/g3-core/src/tools/webdriver.rs:198
↓ 1 callers
Function
start_safari_driver
(ctx: &ToolContext<'_, W>)
crates/g3-core/src/tools/webdriver.rs:144
↓ 1 callers
Method
stream
(&self, _request: CompletionRequest)
crates/g3-core/tests/streaming_completion_test.rs:78
↓ 1 callers
Function
strip_ansi_codes
Strip ANSI escape codes from a string. Handles common ANSI sequences like: - CSI sequences: \x1b[...m (colors, styles) - OSC sequences: \x1b]...\x07
crates/g3-core/src/tools/research.rs:346
↓ 1 callers
Method
subscribe
Subscribe to completion notifications. Returns None if notifications are not enabled (manager created with `new()`).
crates/g3-core/src/pending_research.rs:135
↓ 1 callers
Method
supports_cache_control
Check if the provider supports cache control
crates/g3-providers/src/lib.rs:33
↓ 1 callers
Function
suppress_llama_logging
()
crates/g3-providers/src/embedded/provider.rs:56
↓ 1 callers
Method
switch_to_session
Switch to a different session, saving the current one first. This discards the current in-memory state and loads the new session.
crates/g3-core/src/lib.rs:2079
↓ 1 callers
Method
temperature
(&self)
crates/g3-providers/src/mock.rs:507
↓ 1 callers
Method
title
(&self)
crates/g3-core/src/webdriver_session.rs:30
↓ 1 callers
Method
title
(&self)
crates/g3-computer-control/src/webdriver/chrome.rs:366
↓ 1 callers
Function
token_indicator
Pick a single Unicode indicator for token magnitude (maps to color bands).
crates/g3-core/src/session.rs:37
↓ 1 callers
Method
tool_call_count
(&self)
crates/g3-core/tests/streaming_completion_test.rs:265
↓ 1 callers
Function
track_code_fence
Track code fence state (``` markers)
crates/g3-cli/src/filter_json.rs:264
↓ 1 callers
Function
truncate_query
Truncate a query for display
crates/g3-core/src/tools/research.rs:274
↓ 1 callers
Function
try_extract_anthropic_tool_use
Extract Anthropic-style tool use block
crates/g3-core/src/feedback_extraction.rs:280
↓ 1 callers
Function
try_extract_from_conversation_history
Try to extract from conversation history in session log
crates/g3-core/src/feedback_extraction.rs:339
↓ 1 callers
Function
try_extract_from_log
Extract feedback from a session log file. Searches backwards for the last assistant message with substantial text content.
crates/g3-cli/src/coach_feedback.rs:63
↓ 1 callers
Function
try_extract_from_session_log
Try to extract feedback from session log file
crates/g3-core/src/feedback_extraction.rs:202
↓ 1 callers
Function
try_extract_last_assistant_message
Try to extract the last assistant message from session log (PRIMARY method) This is the preferred extraction method - looks for the last substantial a
crates/g3-core/src/feedback_extraction.rs:144
↓ 1 callers
Function
try_extract_openai_function_call
Extract OpenAI-style function call
crates/g3-core/src/feedback_extraction.rs:309
↓ 1 callers
Method
try_parse_streaming_json_tool_call
Try to parse a JSON tool call, tracking partial state across chunks.
crates/g3-core/src/streaming_parser.rs:344
↓ 1 callers
Method
unescape_path
Unescape backslash-escaped chars: "~/My\ Files" -> "~/My Files"
crates/g3-cli/src/completion.rs:108
↓ 1 callers
Method
update_pid
Update session with PID
crates/studio/src/session.rs:111
↓ 1 callers
Function
update_session_symlink
Update the .g3/session symlink to point to the given session directory
crates/g3-core/src/session_continuation.rs:129
↓ 1 callers
Function
validate_name
Validate skill name format. Must be 1-64 chars, lowercase alphanumeric + hyphens, no leading/trailing/consecutive hyphens.
crates/g3-core/src/skills/parser.rs:144
↓ 1 callers
Function
value_contains
Check if a YAML value contains another value.
crates/g3-core/src/tools/invariants.rs:700
↓ 1 callers
Function
verify_envelope
Verify the action envelope against the compiled rulespec using datalog. Returns a `VerifyResult` with pipeline stages and verification counts. Stages
crates/g3-core/src/tools/envelope.rs:326
↓ 1 callers
Function
verify_single_evidence
Verify a single piece of evidence.
crates/g3-core/src/tools/plan.rs:655
↓ 1 callers
Method
wants_full_output
(&self)
crates/g3-core/src/ui_writer.rs:192
↓ 1 callers
Method
with_include_prompt_filename
Used in tests, may be useful for future callers
crates/g3-cli/src/display.rs:142
↓ 1 callers
Method
with_request
(mut self, request: String)
crates/g3-core/src/error_handling.rs:89
↓ 1 callers
Function
write_code_report
Write the codebase report to discovery directory
crates/g3-planner/src/lib.rs:200
↓ 1 callers
Function
write_context_window_summary
Write a human-readable context window summary to file. Format: message_id, role, token_count, indicator, first_120_chars
crates/g3-core/src/session.rs:149
↓ 1 callers
Method
write_context_window_summary
Write context window summary to file Format: date&time, token_count, message_id, role, first_100_chars
crates/g3-core/src/lib.rs:1154
↓ 1 callers
Function
write_discovery_commands
Write the discovery commands to discovery directory
crates/g3-planner/src/lib.rs:229
↓ 1 callers
Function
write_skipped_recovery
Write a "USER SKIPPED RECOVERY" entry
crates/g3-planner/src/history.rs:115
Method
Example
(String name)
examples/test_code/Example.java:4
Method
Person
examples/test_code/example.cpp:10
Function
_assert_send
This test just verifies the enum structure compiles correctly Actual WebDriver tests would require a running browser
crates/g3-core/src/webdriver_session.rs:127
Function
_assert_sync
()
crates/g3-core/src/webdriver_session.rs:128
Method
add_cookie
Add a cookie
crates/g3-computer-control/src/webdriver/chrome.rs:294
Method
add_cookie
Add a cookie
crates/g3-computer-control/src/webdriver/safari.rs:101
Method
all_passed
Check if all verifications passed (no errors or warnings).
crates/g3-core/src/tools/plan.rs:377
Function
all_todos_complete
Tests for TODO completion detection and file deletion behavior Helper to check if all TODOs are complete (same logic as in lib.rs)
crates/g3-core/tests/test_todo_completion.rs:4
Function
apply_diff_within_range_only
()
crates/g3-core/src/utils.rs:624
Function
apply_multi_hunk_unified_diff_to_string
()
crates/g3-core/src/utils.rs:614
← previous
next →
901–1,000 of 3,053, ranked by callers