Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arsenyinfo/nitpicker
/ functions
Functions
451 in github.com/arsenyinfo/nitpicker
⨍
Functions
451
◇
Types & classes
117
↓ 2 callers
Function
from_def
(def: &'static ProviderDef, source: &'static str)
src/detect.rs:124
↓ 2 callers
Function
gemini_completion
(max_tokens: Option<u64>, additional_params: Option<Value>)
crates/nitpicker-agent/src/llm.rs:1046
↓ 2 callers
Function
get_exponential_delay_with_jitter
(attempt: u32)
src/gemini_proxy/retry.rs:221
↓ 2 callers
Function
get_head_commit
(repo: &Path)
src/pr.rs:251
↓ 2 callers
Function
get_valid_token
(state: &ProxyState)
src/gemini_proxy/proxy.rs:566
↓ 2 callers
Function
handle_request
( state: Arc<ProxyState>, path: String, _headers: HeaderMap, body: Bytes, _version: &str,
src/gemini_proxy/proxy.rs:310
↓ 2 callers
Function
history_for_initial_request
(input: &CompactionInput<'_>)
crates/nitpicker-agent/src/compact.rs:252
↓ 2 callers
Function
init_model_for_detected
(d: &detect::Detected, prefer_openrouter_free: bool)
src/main.rs:570
↓ 2 callers
Function
init_project
(state: &ProxyState, token: &TokenData)
src/gemini_proxy/proxy.rs:101
↓ 2 callers
Method
is_complete
(&self)
src/reflect.rs:42
↓ 2 callers
Function
is_gemini_proxy_auth
(auth: &Option<String>)
crates/nitpicker-agent/src/config.rs:402
↓ 2 callers
Function
is_local_server
(base_url: Option<&str>)
crates/nitpicker-agent/src/config.rs:358
↓ 2 callers
Function
is_retryable_status
(status: reqwest::StatusCode)
src/gemini_proxy/retry.rs:204
↓ 2 callers
Function
jittered_backoff
(attempt: usize, base_backoff_ms: u64, max_backoff_ms: u64)
crates/nitpicker-agent/src/llm.rs:597
↓ 2 callers
Function
lmstudio_detected
(model: String, source: &'static str)
src/detect.rs:379
↓ 2 callers
Function
lock_path
(repo: &Path)
src/pr.rs:10
↓ 2 callers
Function
log_compaction
( config: &AgentConfig, turn: usize, reason: &'static str, outcome: Option<&CompactionOutcome>
crates/nitpicker-agent/src/agent.rs:1002
↓ 2 callers
Method
log_trajectories
(&self)
crates/nitpicker-agent/src/config.rs:207
↓ 2 callers
Function
long_flag_matches
True if `token` is a long option `--<stem>` (optionally `--<stem>=value`) whose stem is a non-empty prefix of `name`. git accepts unambiguous long-opt
crates/nitpicker-agent/src/tools.rs:49
↓ 2 callers
Function
long_flag_stem
(token: &str)
crates/nitpicker-agent/src/tools.rs:53
↓ 2 callers
Function
make_sub_spinner
(mp: &MultiProgress, pb: &ProgressBar)
src/debate.rs:299
↓ 2 callers
Function
match_think_tag
match `<think` (or `</think` when `close`) + optional whitespace + `>` at the start of `s`, case-insensitively; return the matched byte length. `<thin
crates/nitpicker-agent/src/llm.rs:212
↓ 2 callers
Function
needs_gemini_proxy
(provider: &ProviderType, auth: Option<&str>)
crates/nitpicker-agent/src/provider.rs:13
↓ 2 callers
Function
now_unix
()
crates/nitpicker-agent/src/azure.rs:311
↓ 2 callers
Function
now_unix_ms
()
crates/nitpicker-agent/src/session.rs:117
↓ 2 callers
Function
ollama_detected
(model: String, source: &'static str)
src/detect.rs:326
↓ 2 callers
Function
openrouter_headers
()
crates/nitpicker-agent/src/llm.rs:761
↓ 2 callers
Method
output_format
(&self)
src/pr.rs:116
↓ 2 callers
Function
parse_provider_type
(s: &str)
src/main.rs:578
↓ 2 callers
Function
post_comment
(url: Option<&str>, repo: &Path, body: &str)
src/pr.rs:444
↓ 2 callers
Function
probe_candidates
Probes candidates in batches of SMOKE_TEST_BATCH_SIZE, returning indices of the first `needed` passing models. Stops as soon as enough are found.
crates/nitpicker-agent/src/openrouter.rs:328
↓ 2 callers
Function
push_env_service_principal
Add a service-principal credential built from `AZURE_TENANT_ID` / `AZURE_CLIENT_ID` / `AZURE_CLIENT_SECRET` if all three are set (the Azure SDK's "env
crates/nitpicker-agent/src/azure.rs:298
↓ 2 callers
Function
reflect_tools
()
crates/nitpicker-agent/src/tools.rs:163
↓ 2 callers
Method
refresh
Refresh after a 401 and replace the cache. Unlike `ensure_client`, this can't gate on expiry — the token was rejected *despite* our clock thinking it
crates/nitpicker-agent/src/azure.rs:92
↓ 2 callers
Method
refresh_locked
Refresh under the held lock. If the refresh token was rejected (4xx) the Codex CLI may have rotated it on disk concurrently — reload `auth.json` once
crates/nitpicker-agent/src/codex.rs:311
↓ 2 callers
Function
refresh_remote_branches
Refreshes remote-tracking branches so `detect_base_branch` doesn't operate on stale state. Fatal: if origin can't be fetched, the diff base would be s
src/pr.rs:354
↓ 2 callers
Function
refresh_tokens
Exchange a refresh token for a fresh access token. Expiry comes from the response's `expires_in` (authoritative — a token without an `exp` claim never
crates/nitpicker-agent/src/codex.rs:229
↓ 2 callers
Method
reset
(&mut self)
crates/nitpicker-agent/src/llm.rs:152
↓ 2 callers
Function
resolve_base_branch
(repo: &Path, branch: &str)
src/main.rs:736
↓ 2 callers
Function
restore_head
(repo: &Path, head: &HeadState)
src/pr.rs:296
↓ 2 callers
Function
run_compaction
( semaphore: &Semaphore, client: &Arc<dyn LLMClientDyn>, model: &str, system_prompt: &str,
crates/nitpicker-agent/src/compact.rs:131
↓ 2 callers
Function
run_debate_turn
(request: DebateTurnRequest<'_>)
src/debate.rs:145
↓ 2 callers
Function
search_file
( path: &PathBuf, regex: &Regex, work_dir: &Path, results: &mut Vec<String>, )
crates/nitpicker-agent/src/tools.rs:487
↓ 2 callers
Function
set_active_progress
(progress: &Arc<MultiProgress>)
src/progress.rs:16
↓ 2 callers
Function
set_retry_cooldown
( cooldowns: &Arc<Mutex<HashMap<String, Instant>>>, key: &str, delay_ms: u64, )
src/gemini_proxy/retry.rs:188
↓ 2 callers
Function
shared_client
Process-wide shared Codex client (retry-wrapped), built once on first use. The token store is inherently process-global — there is a single `~/.codex
crates/nitpicker-agent/src/codex.rs:414
↓ 2 callers
Method
source
(&self)
crates/nitpicker-agent/src/azure.rs:453
↓ 2 callers
Function
stderr_supports_color
()
src/progress.rs:37
↓ 2 callers
Function
terminal_columns
()
src/progress.rs:106
↓ 2 callers
Function
truncate_single_line
(message: &str, max_columns: usize)
src/progress.rs:114
↓ 2 callers
Method
usage
the agent's accumulated token usage (preserving its reported `total_tokens` verbatim rather than recomputing from input+output).
crates/nitpicker-agent/src/agent.rs:43
↓ 2 callers
Method
usage
(&self)
crates/nitpicker-agent/src/llm.rs:141
↓ 2 callers
Function
validate_free_model
(label: &str, provider: &ProviderType, model: &str)
crates/nitpicker-agent/src/config.rs:221
↓ 2 callers
Function
with_active_progress
(f: impl FnOnce() -> io::Result<T>)
src/progress.rs:61
↓ 2 callers
Method
write_aggregation
(&self, record: &AggregationRecord)
crates/nitpicker-agent/src/session.rs:77
↓ 1 callers
Method
actor_role
(&self)
src/prompts.rs:173
↓ 1 callers
Method
actor_system
(&self)
src/prompts.rs:187
↓ 1 callers
Method
aggregator_preamble
(&self)
src/prompts.rs:123
↓ 1 callers
Function
analyze_session
( session_md: String, model: String, client: Arc<dyn LLMClientDyn>, semaphore: Arc<Semaphore>,
src/reflect.rs:198
↓ 1 callers
Function
antigravity_platform
antigravity platform enum. must be one of {DARWIN,LINUX,WINDOWS}_{AMD64,ARM64}.
src/gemini_proxy/mod.rs:50
↓ 1 callers
Method
append_tool_call
(&self, record: &ToolCallRecord)
crates/nitpicker-agent/src/session.rs:95
↓ 1 callers
Function
auth_available
True when a usable Codex CLI OAuth token file is present (CODEX_HOME or `~/.codex/auth.json`). Used by `init` detection; reuses the same parse the cli
crates/nitpicker-agent/src/codex.rs:174
↓ 1 callers
Function
bar_message_for_columns
(message: &str, columns: usize)
src/progress.rs:81
↓ 1 callers
Function
blocked_fs_reading_flag_matches
(token: &str, name: &str)
crates/nitpicker-agent/src/tools.rs:60
↓ 1 callers
Function
build_agent_config
( config: &Config, reviewer: &ReviewerConfig, system_prompt: &str, max_turns: usize, proxy
src/review.rs:323
↓ 1 callers
Function
build_analysis_prompt
(path: Option<&Path>, custom_prompt: Option<&str>)
src/main.rs:639
↓ 1 callers
Function
build_azure_client
Build a refreshing Azure AD client for an OpenAI- or Anthropic-shaped Foundry endpoint. `base_url` is the Foundry endpoint (e.g. `https://<resource>.
crates/nitpicker-agent/src/azure.rs:140
↓ 1 callers
Function
build_compaction_prompt
(input: &CompactionInput<'_>, turn: usize, usage: TokenUsage)
crates/nitpicker-agent/src/compact.rs:284
↓ 1 callers
Function
build_credential_chain
Build the ordered credential chain for the requested mode. Mirrors the Azure SDK's `AZURE_TOKEN_CREDENTIALS` convention: explicit config wins, then th
crates/nitpicker-agent/src/azure.rs:246
↓ 1 callers
Function
build_http_client
Shared reqwest client for the Codex endpoints, configured so a hung connection can't pin a shared concurrency permit forever (`reqwest::Client::new()`
crates/nitpicker-agent/src/codex.rs:51
↓ 1 callers
Function
build_init_config
( detected: &[&detect::Detected], prefer_openrouter_free: bool, )
src/main.rs:456
↓ 1 callers
Function
build_openrouter_client
(api_key: &str)
crates/nitpicker-agent/src/openrouter.rs:248
↓ 1 callers
Function
build_pr_prompt
( meta: &PrMeta, comments: &[PrComment], diff_context: &str, extra: Option<&str>, )
src/pr.rs:459
↓ 1 callers
Function
build_retry_throttle_key
(url: &str, project: Option<&str>, model: Option<&str>)
src/gemini_proxy/retry.rs:160
↓ 1 callers
Method
call
( &self, args: Value, work_dir: PathBuf, )
crates/nitpicker-agent/src/tools.rs:211
↓ 1 callers
Method
call
( &self, args: Value, _work_dir: PathBuf, )
crates/nitpicker-agent/src/agent.rs:171
↓ 1 callers
Function
check_gh
()
src/pr.rs:145
↓ 1 callers
Function
classify_quota_response_from_status
Classify from headers + status when we can't consume the response body. Uses Retry-After header as a fallback for delay.
src/gemini_proxy/retry.rs:256
↓ 1 callers
Function
client_from_env
Build a retry-wrapped client for a provider, reading its API key from the environment.
crates/nitpicker-agent/src/lib.rs:67
↓ 1 callers
Function
clone_pr
(repo_slug: &str, pr_number: u32, dir: &Path)
src/pr.rs:428
↓ 1 callers
Function
correction_history
( input: &CompactionInput<'_>, original_prompt: String, assistant_message: Message, )
crates/nitpicker-agent/src/compact.rs:259
↓ 1 callers
Function
correction_mode
(input: &CompactionInput<'_>)
crates/nitpicker-agent/src/compact.rs:270
↓ 1 callers
Function
correction_prompt
(mode: &CorrectionMode)
crates/nitpicker-agent/src/compact.rs:277
↓ 1 callers
Function
create_activity_request_id
create a short request-scoped activity id for backend tracing. mirrors Gemini CLI behavior (short random string, not full UUID).
src/gemini_proxy/mod.rs:67
↓ 1 callers
Method
critic_role
(&self)
src/prompts.rs:180
↓ 1 callers
Method
critic_system
(&self)
src/prompts.rs:241
↓ 1 callers
Method
current_access
Current access token + account id, refreshing first if within the expiry skew. Double-checked under the lock so a concurrent wave of subagents trigger
crates/nitpicker-agent/src/codex.rs:344
↓ 1 callers
Method
default_max_turns
(&self)
crates/nitpicker-agent/src/config.rs:189
↓ 1 callers
Method
definition
(&self)
crates/nitpicker-agent/src/tools.rs:181
↓ 1 callers
Function
detail_message_for_columns
(prefix: &str, detail: Option<&str>, columns: usize)
src/progress.rs:90
↓ 1 callers
Function
detect_agy_keyring
()
src/detect.rs:225
↓ 1 callers
Function
detect_all
()
src/detect.rs:144
↓ 1 callers
Function
detect_base_branch
(repo: &Path)
src/main.rs:720
↓ 1 callers
Function
detect_codex
()
src/detect.rs:242
↓ 1 callers
Function
detect_databricks
()
src/detect.rs:402
↓ 1 callers
Function
detect_lmstudio
()
src/detect.rs:349
↓ 1 callers
Function
detect_ollama
()
src/detect.rs:291
↓ 1 callers
Function
detect_opencode
()
src/detect.rs:264
↓ 1 callers
Function
detect_tool_call_cycle
Returns the cycle period (1, 2, or 3) if the tail of `history` forms a repeated cycle, or 0 if no cycle is detected. Period-1 maps to the existing con
crates/nitpicker-agent/src/agent.rs:754
↓ 1 callers
Function
discover_sessions
(dir: &Path, n: usize)
src/reflect.rs:175
← previous
next →
101–200 of 451, ranked by callers