MCPcopy Create free account

hub / github.com/dhanji/g3 / functions

Functions3,053 in github.com/dhanji/g3

↓ 1 callersMethodquit
(self)
crates/g3-core/src/webdriver_session.rs:89
↓ 1 callersMethodquit
(mut self)
crates/g3-computer-control/src/webdriver/chrome.rs:424
↓ 1 callersFunctionread_current_requirements
Read current requirements content
crates/g3-planner/src/planner.rs:361
↓ 1 callersMethodread_requirements
Read the requirements file content
crates/g3-core/src/project.rs:105
↓ 1 callersFunctionread_todo
Read todo file content
crates/g3-planner/src/planner.rs:368
↓ 1 callersFunctionread_verification_key
Read the verification key. Returns None if it doesn't exist.
crates/g3-core/src/tools/envelope.rs:99
↓ 1 callersMethodrefresh
(&mut self)
crates/g3-core/src/webdriver_session.rs:113
↓ 1 callersMethodrefresh_token
(&self, refresh_token: &str)
crates/g3-providers/src/oauth.rs:247
↓ 1 callersFunctionregister_anthropic_providers
Register Anthropic providers from configuration.
crates/g3-core/src/provider_registration.rs:143
↓ 1 callersFunctionregister_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 callersFunctionregister_embedded_providers
Register embedded providers from configuration.
crates/g3-core/src/provider_registration.rs:75
↓ 1 callersFunctionregister_gemini_providers
Register Gemini providers from configuration.
crates/g3-core/src/provider_registration.rs:167
↓ 1 callersFunctionregister_openai_compatible_providers
Register OpenAI-compatible providers (e.g., OpenRouter, Groq) from configuration.
crates/g3-core/src/provider_registration.rs:121
↓ 1 callersFunctionregister_openai_providers
Register OpenAI providers from configuration.
crates/g3-core/src/provider_registration.rs:99
↓ 1 callersFunctionregister_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 callersMethodreload_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 callersMethodreset
(&mut self)
crates/g3-cli/src/filter_json.rs:91
↓ 1 callersFunctionresolve_commit
Resolve a commit reference (hash, branch, tag, etc.) to a full hash
crates/studio/src/main.rs:777
↓ 1 callersFunctionresolve_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 callersFunctionresolve_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 callersFunctionresolve_variable
Resolve a template variable to its value.
crates/g3-cli/src/template.rs:40
↓ 1 callersMethodresponses
(&self)
crates/g3-core/tests/streaming_completion_test.rs:270
↓ 1 callersFunctionrule_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 callersFunctionrun
()
crates/g3-cli/src/lib.rs:52
↓ 1 callersFunctionrun_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 callersFunctionrun_agent_in_worktree
Run a g3 agent in a worktree
crates/studio/src/main.rs:828
↓ 1 callersFunctionrun_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 callersFunctionrun_autonomous
Run autonomous mode with coach-player feedback loop (console output).
crates/g3-cli/src/autonomous.rs:20
↓ 1 callersFunctionrun_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 callersFunctionrun_console_mode
( cli: Cli, config: Config, project: Project, combined_content: Option<String>, workspace_
crates/g3-cli/src/lib.rs:156
↓ 1 callersFunctionrun_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 callersFunctionrun_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 callersMethodsave
(&self, path: &str)
crates/g3-config/src/lib.rs:519
↓ 1 callersFunctionsave_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 callersMethodsave_to_file
Save error context to a file for later analysis
crates/g3-core/src/error_handling.rs:126
↓ 1 callersFunctionscan_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 callersMethodscreenshot
(&mut self, path: &str)
crates/g3-core/src/webdriver_session.rs:75
↓ 1 callersMethodscreenshot
(&mut self, path: &str)
crates/g3-computer-control/src/webdriver/chrome.rs:401
↓ 1 callersMethodsearch_single
( &mut self, spec: &SearchSpec, max_matches: usize, )
crates/g3-core/src/code_search/searcher.rs:204
↓ 1 callersMethodselect_recursive
(&self, value: &YamlValue, segment_idx: usize)
crates/g3-core/src/tools/invariants.rs:481
↓ 1 callersMethodsend_keys
Send keys/text to the element
crates/g3-computer-control/src/webdriver/mod.rs:56
↓ 1 callersMethodset_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 callersMethodset_default
(&mut self, provider_name: &str)
crates/g3-providers/src/lib.rs:392
↓ 1 callersMethodset_requirements_sha
(&mut self, sha: String)
crates/g3-core/src/lib.rs:1571
↓ 1 callersMethodset_session_id
Set the session ID (useful for testing)
crates/g3-core/src/lib.rs:796
↓ 1 callersMethodset_working_dir
Set the working directory (useful for testing)
crates/g3-core/src/lib.rs:801
↓ 1 callersFunctionsetup_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 callersFunctionsetup_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 callersFunctionshell_escape_command
(command: &str)
crates/g3-core/src/utils.rs:367
↓ 1 callersFunctionshould_exclude
Check if a file should be excluded from staging based on patterns
crates/g3-planner/src/git.rs:219
↓ 1 callersFunctionsplit_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 callersFunctionstage_and_commit
Stage files and make git commit
crates/g3-planner/src/planner.rs:443
↓ 1 callersFunctionstamp_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 callersFunctionstart_chrome_driver
(ctx: &ToolContext<'_, W>)
crates/g3-core/src/tools/webdriver.rs:198
↓ 1 callersFunctionstart_safari_driver
(ctx: &ToolContext<'_, W>)
crates/g3-core/src/tools/webdriver.rs:144
↓ 1 callersMethodstream
(&self, _request: CompletionRequest)
crates/g3-core/tests/streaming_completion_test.rs:78
↓ 1 callersFunctionstrip_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 callersMethodsubscribe
Subscribe to completion notifications. Returns None if notifications are not enabled (manager created with `new()`).
crates/g3-core/src/pending_research.rs:135
↓ 1 callersMethodsupports_cache_control
Check if the provider supports cache control
crates/g3-providers/src/lib.rs:33
↓ 1 callersFunctionsuppress_llama_logging
()
crates/g3-providers/src/embedded/provider.rs:56
↓ 1 callersMethodswitch_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 callersMethodtemperature
(&self)
crates/g3-providers/src/mock.rs:507
↓ 1 callersMethodtitle
(&self)
crates/g3-core/src/webdriver_session.rs:30
↓ 1 callersMethodtitle
(&self)
crates/g3-computer-control/src/webdriver/chrome.rs:366
↓ 1 callersFunctiontoken_indicator
Pick a single Unicode indicator for token magnitude (maps to color bands).
crates/g3-core/src/session.rs:37
↓ 1 callersMethodtool_call_count
(&self)
crates/g3-core/tests/streaming_completion_test.rs:265
↓ 1 callersFunctiontrack_code_fence
Track code fence state (``` markers)
crates/g3-cli/src/filter_json.rs:264
↓ 1 callersFunctiontruncate_query
Truncate a query for display
crates/g3-core/src/tools/research.rs:274
↓ 1 callersFunctiontry_extract_anthropic_tool_use
Extract Anthropic-style tool use block
crates/g3-core/src/feedback_extraction.rs:280
↓ 1 callersFunctiontry_extract_from_conversation_history
Try to extract from conversation history in session log
crates/g3-core/src/feedback_extraction.rs:339
↓ 1 callersFunctiontry_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 callersFunctiontry_extract_from_session_log
Try to extract feedback from session log file
crates/g3-core/src/feedback_extraction.rs:202
↓ 1 callersFunctiontry_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 callersFunctiontry_extract_openai_function_call
Extract OpenAI-style function call
crates/g3-core/src/feedback_extraction.rs:309
↓ 1 callersMethodtry_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 callersMethodunescape_path
Unescape backslash-escaped chars: "~/My\ Files" -> "~/My Files"
crates/g3-cli/src/completion.rs:108
↓ 1 callersMethodupdate_pid
Update session with PID
crates/studio/src/session.rs:111
↓ 1 callersFunctionupdate_session_symlink
Update the .g3/session symlink to point to the given session directory
crates/g3-core/src/session_continuation.rs:129
↓ 1 callersFunctionvalidate_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 callersFunctionvalue_contains
Check if a YAML value contains another value.
crates/g3-core/src/tools/invariants.rs:700
↓ 1 callersFunctionverify_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 callersFunctionverify_single_evidence
Verify a single piece of evidence.
crates/g3-core/src/tools/plan.rs:655
↓ 1 callersMethodwants_full_output
(&self)
crates/g3-core/src/ui_writer.rs:192
↓ 1 callersMethodwith_include_prompt_filename
Used in tests, may be useful for future callers
crates/g3-cli/src/display.rs:142
↓ 1 callersMethodwith_request
(mut self, request: String)
crates/g3-core/src/error_handling.rs:89
↓ 1 callersFunctionwrite_code_report
Write the codebase report to discovery directory
crates/g3-planner/src/lib.rs:200
↓ 1 callersFunctionwrite_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 callersMethodwrite_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 callersFunctionwrite_discovery_commands
Write the discovery commands to discovery directory
crates/g3-planner/src/lib.rs:229
↓ 1 callersFunctionwrite_skipped_recovery
Write a "USER SKIPPED RECOVERY" entry
crates/g3-planner/src/history.rs:115
MethodExample
(String name)
examples/test_code/Example.java:4
MethodPerson
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
Methodadd_cookie
Add a cookie
crates/g3-computer-control/src/webdriver/chrome.rs:294
Methodadd_cookie
Add a cookie
crates/g3-computer-control/src/webdriver/safari.rs:101
Methodall_passed
Check if all verifications passed (no errors or warnings).
crates/g3-core/src/tools/plan.rs:377
Functionall_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
Functionapply_diff_within_range_only
()
crates/g3-core/src/utils.rs:624
Functionapply_multi_hunk_unified_diff_to_string
()
crates/g3-core/src/utils.rs:614
← previousnext →901–1,000 of 3,053, ranked by callers