Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/c4pt0r/pie
/ functions
Functions
2,618 in github.com/c4pt0r/pie
⨍
Functions
2,618
◇
Types & classes
570
↓ 1 callers
Method
did_open
Send a textDocument/didOpen notification.
crates/coding-agent/src/lsp.rs:183
↓ 1 callers
Function
direct_inject_action_hook
Wrap a `before_trigger_action` hook so triggers from configured MCP servers bypass the sub-agent. Two structural opt-ins, matched on the MCP `server_n
crates/coding-agent/src/triggers/dynamic.rs:609
↓ 1 callers
Function
dismiss_all_new
Dismiss every `new` entry; returns how many changed.
crates/coding-agent/src/inbox.rs:132
↓ 1 callers
Method
dispatch_slash
( &mut self, input: &str, terminal: &mut Terminal<CrosstermBackend<std::io::Stdout>>,
crates/coding-agent/src/ui/mod.rs:1158
↓ 1 callers
Method
dispatch_web_slash
(&mut self, input: &str, turn: &mut TurnState)
crates/coding-agent/src/ui/web.rs:436
↓ 1 callers
Function
downgrade_unsupported_images
(messages: Vec<Message>, model: &Model)
crates/ai/src/providers/transform_messages.rs:46
↓ 1 callers
Function
drain_bytes_or_abort
( resp: reqwest::Response, abort: Option<&CancellationToken>, )
crates/ai/src/utils/abort.rs:60
↓ 1 callers
Method
drain_lines
(&mut self)
crates/ai/src/utils/sse.rs:45
↓ 1 callers
Function
ds4_base_url
(cli_base_url: Option<&str>)
crates/coding-agent/src/local_models.rs:75
↓ 1 callers
Function
ds4_model
(base_url: String)
crates/coding-agent/src/local_models.rs:92
↓ 1 callers
Function
dynamic_trigger_poll_interval_secs
()
crates/coding-agent/src/triggers/dynamic.rs:256
↓ 1 callers
Method
effective_resume_id
Session id to resume, merging both spellings: `--resume-id <id>` wins, then `--resume <id>`. Bare `--resume` (the picker) yields `None`.
crates/coding-agent/src/main.rs:209
↓ 1 callers
Function
empty
()
crates/ai/src/utils/json_parse.rs:103
↓ 1 callers
Function
enqueue_response_body
( response: reqwest::Response, body_cap_bytes: usize, tx: mpsc::Sender<Result<String, McpError>>,
crates/mcp/src/http.rs:287
↓ 1 callers
Method
ensure_open
Open the file in the relevant LSP if not already open. Returns the matching language id (for did_open's required `languageId`).
crates/coding-agent/src/lsp_supervisor.rs:146
↓ 1 callers
Function
env_for
(payload: &HookPayload, payload_path: &Path)
crates/coding-agent/src/hooks.rs:749
↓ 1 callers
Function
evaluate_stop_hook
( harness: Arc<AgentHarness>, ctx: OnTurnEndContext, cancel: tokio_util::sync::CancellationToken,
crates/coding-agent/src/goal.rs:237
↓ 1 callers
Function
evaluator_system_prompt
()
crates/coding-agent/src/goal.rs:370
↓ 1 callers
Function
evaluator_user_prompt
(condition: &str, transcript: &str)
crates/coding-agent/src/goal.rs:366
↓ 1 callers
Method
event_loop
( &mut self, terminal: &mut Terminal<CrosstermBackend<std::io::Stdout>>, )
crates/coding-agent/src/ui/mod.rs:368
↓ 1 callers
Function
exchange_authorization_code
Exchange an authorization code for tokens.
crates/ai/src/utils/oauth/anthropic.rs:75
↓ 1 callers
Method
execute
( &self, _id: &str, params: serde_json::Value, cancel: CancellationToken,
crates/coding-agent/src/tools/mcp_adapter.rs:53
↓ 1 callers
Method
execute
( &self, _id: &str, params: Value, _cancel: CancellationToken, _on_upd
crates/coding-agent/src/tools/set_skill_state.rs:127
↓ 1 callers
Method
execute
( &self, _id: &str, params: Value, _cancel: CancellationToken, _on_upd
crates/coding-agent/src/tools/skill_builder.rs:170
↓ 1 callers
Method
execute
( &self, _id: &str, params: Value, cancel: CancellationToken, _on_upda
crates/coding-agent/src/tools/install_skill.rs:165
↓ 1 callers
Method
execute
( &self, _id: &str, params: Value, _cancel: CancellationToken, _on_upd
crates/coding-agent/src/tools/remove_skill.rs:99
↓ 1 callers
Method
execute
( &self, _id: &str, params: serde_json::Value, _cancel: Cancel
crates/agent/tests/agent_loop.rs:170
↓ 1 callers
Function
execute_tools
Execute every tool-call block in the assistant's content. Returns the per-call results (in assistant content order) and `all_terminate = true` when ev
crates/agent/src/agent_loop.rs:331
↓ 1 callers
Method
execution_mode
(&self)
crates/coding-agent/src/tools/ls.rs:28
↓ 1 callers
Method
execution_mode
Per-tool execution mode override; `None` means "use the loop default".
crates/agent/src/types.rs:201
↓ 1 callers
Function
extract_dedup_key
Pull a dedup key out of a custom notification's params, preferring the new `_meta.pie_dedup_key` location and falling back to the older top-level `_pi
crates/coding-agent/src/triggers/mcp_notification_hook.rs:314
↓ 1 callers
Function
extract_dynamic_rule_ids
(text: &str)
crates/coding-agent/src/triggers/dynamic.rs:723
↓ 1 callers
Function
extract_shell_command
Try to extract the shell command from a bash tool call's argument JSON. Tools accept slightly different field names, so try `command`, `cmd`, `bash`,
crates/agent/src/harness/permission.rs:181
↓ 1 callers
Function
extract_tag_all
Every `<tag>…</tag>` block in order, capped at `max`.
crates/coding-agent/src/triggers/cron.rs:829
↓ 1 callers
Function
extract_tag_block
Last `<tag>…</tag>` block in `text`, trimmed. Unclosed tags are ignored.
crates/coding-agent/src/triggers/cron.rs:819
↓ 1 callers
Function
extract_user_prompt_text
Extract the text payload from the `AgentMessage` the caller passed into `prompt_with_message`. Returns `None` for non-LLM or non-user messages and for
crates/agent/src/harness/agent_harness.rs:3433
↓ 1 callers
Function
fake_model
()
crates/coding-agent/src/tools/set_skill_state.rs:345
↓ 1 callers
Function
fake_model
()
crates/coding-agent/src/tools/skill_builder.rs:402
↓ 1 callers
Function
fake_model
()
crates/coding-agent/src/tools/install_skill.rs:828
↓ 1 callers
Function
fake_model
()
crates/coding-agent/src/tools/skill.rs:139
↓ 1 callers
Function
fake_model
()
crates/coding-agent/src/tools/remove_skill.rs:349
↓ 1 callers
Function
faux_model
()
crates/coding-agent/src/agent_session.rs:250
↓ 1 callers
Function
faux_model
()
crates/coding-agent/tests/bug_report_e2e.rs:25
↓ 1 callers
Function
faux_model
()
crates/coding-agent/tests/cli_skills.rs:70
↓ 1 callers
Function
faux_model
()
crates/coding-agent/tests/spinner_e2e.rs:29
↓ 1 callers
Function
faux_model
()
crates/agent/tests/skills_loader.rs:250
↓ 1 callers
Function
faux_model_for_skill_test
()
crates/coding-agent/tests/tools.rs:555
↓ 1 callers
Function
faux_stream
(text: &'static str)
crates/coding-agent/tests/bug_report_e2e.rs:43
↓ 1 callers
Function
faux_stream
(text: &'static str)
crates/coding-agent/tests/commands.rs:1241
↓ 1 callers
Function
fetch_inline
(content: &str)
crates/coding-agent/src/tools/install_skill.rs:487
↓ 1 callers
Function
fetch_path
(path: &str)
crates/coding-agent/src/tools/install_skill.rs:455
↓ 1 callers
Function
fetch_source
( source: &Source, cancel: &CancellationToken, )
crates/coding-agent/src/tools/install_skill.rs:378
↓ 1 callers
Function
fetch_url
(url: &str, cancel: &CancellationToken)
crates/coding-agent/src/tools/install_skill.rs:389
↓ 1 callers
Function
fetch_weather
(location: str)
examples/mcp-weather-python/weather-server.py:74
↓ 1 callers
Function
find_byte
(buf: &[u8], from: usize, b: u8)
crates/coding-agent/src/markdown.rs:83
↓ 1 callers
Function
find_double_star
(buf: &[u8], from: usize)
crates/coding-agent/src/markdown.rs:87
↓ 1 callers
Method
find_entries
(&self, entry_type: &str)
crates/agent/src/harness/session/jsonl_storage.rs:238
↓ 1 callers
Function
find_headers_end
(buf: &[u8])
crates/coding-agent/tests/hooks_e2e.rs:136
↓ 1 callers
Function
find_path_by_id
Resolve a session id (full UUIDv7 or unique prefix) to its transcript path.
crates/coding-agent/src/session/mod.rs:222
↓ 1 callers
Function
find_single_star
(buf: &[u8], from: usize)
crates/coding-agent/src/markdown.rs:98
↓ 1 callers
Function
find_turn_start_index
Walk backward from `entry_index` until we hit a user-message entry — the turn boundary. Returns that user-message's index. If no user message exists i
crates/agent/src/harness/compaction/compaction.rs:216
↓ 1 callers
Function
finish_persisted_run
( result: Result<(), AgentRunError>, persist_errors: Arc<Mutex<Vec<super::types::SessionError>>>, )
crates/agent/src/harness/agent_harness.rs:2350
↓ 1 callers
Function
first_model_for_provider
(provider: &str)
crates/coding-agent/src/model.rs:124
↓ 1 callers
Function
first_user_text
(session: &Session)
crates/coding-agent/src/session/mod.rs:128
↓ 1 callers
Method
forget
(&self, params: &Value)
crates/coding-agent/src/tools/memory.rs:190
↓ 1 callers
Function
format_timestamp_label
(timestamp: DateTime<Utc>, _now: DateTime<Local>)
crates/coding-agent/src/ui/feed.rs:601
↓ 1 callers
Method
forwardPrompt
(request: Request)
workers/fefe-hub/src/relay.ts:251
↓ 1 callers
Method
forwardResolve
(request: Request)
workers/fefe-hub/src/relay.ts:268
↓ 1 callers
Method
forwardSetModel
(request: Request)
workers/fefe-hub/src/relay.ts:283
↓ 1 callers
Function
general_help_text
(registry: &Registry, skills: &[Skill])
crates/coding-agent/src/commands.rs:1153
↓ 1 callers
Method
generate
( &self, _model: &ImagesModel, _context: &ImagesContext, )
crates/ai/src/images_api_registry.rs:43
↓ 1 callers
Function
generate_pkce
()
crates/ai/src/utils/oauth/pkce.rs:12
↓ 1 callers
Function
get_images_api_provider
(_api: &ImagesApi)
crates/ai/src/images_api_registry.rs:35
↓ 1 callers
Method
get_label
(&self, id: &str)
crates/agent/src/harness/session/jsonl_storage.rs:247
↓ 1 callers
Method
get_metadata_json
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:159
↓ 1 callers
Method
handle
(&mut self, evt: AnthropicStreamEvent)
crates/ai/src/bedrock_anthropic.rs:75
↓ 1 callers
Method
handleAgentUpgrade
(request: Request)
workers/fefe-hub/src/relay.ts:165
↓ 1 callers
Method
handleEvents
()
workers/fefe-hub/src/relay.ts:221
↓ 1 callers
Method
handle_control_plane_prompt_key
(&mut self, key: &KeyEvent)
crates/coding-agent/src/ui/mod.rs:801
↓ 1 callers
Method
handle_ctrl_d
(&mut self, turn: &mut TurnState)
crates/coding-agent/src/ui/mod.rs:1319
↓ 1 callers
Function
handle_event
( ev: &crate::utils::sse::SseEvent, partial: &mut AssistantMessage, sender: &mut AssistantMessageE
crates/ai/src/providers/openai_responses.rs:274
↓ 1 callers
Method
handle_event
(&self, event: &AgentEvent)
crates/coding-agent/src/tui.rs:119
↓ 1 callers
Method
handle_harness_event
(&self, event: &HarnessEvent)
crates/coding-agent/src/tui.rs:124
↓ 1 callers
Method
handle_key
( &mut self, key: KeyEvent, turn: &mut TurnState, terminal: &mut Terminal<Cros
crates/coding-agent/src/ui/mod.rs:726
↓ 1 callers
Method
handle_model_picker_key
(&mut self, key: &KeyEvent)
crates/coding-agent/src/ui/mod.rs:857
↓ 1 callers
Function
handle_notification
(method: str, params: dict)
examples/mcp-notify-python/notify-server.py:89
↓ 1 callers
Function
handle_notification
(method: str, params: dict)
examples/mcp-weather-python/weather-server.py:171
↓ 1 callers
Function
handle_request
(method: str, params: dict, request_id)
examples/mcp-notify-python/notify-server.py:59
↓ 1 callers
Function
handle_request
(method: str, params: dict, request_id)
examples/mcp-weather-python/weather-server.py:144
↓ 1 callers
Function
handle_sse
Returns `false` after pushing a terminal event so the caller stops draining the stream.
crates/ai/src/providers/anthropic.rs:308
↓ 1 callers
Function
harness_listener
Build the harness listener for trigger lifecycle lines. Keeps the same "stay quiet unless a dynamic periodic check actually matched" behavior the old
crates/coding-agent/src/ui/listener.rs:95
↓ 1 callers
Function
heading_level
(line: &str)
crates/coding-agent/src/markdown.rs:28
↓ 1 callers
Method
history_next
(&mut self)
crates/coding-agent/src/ui/mod.rs:1416
↓ 1 callers
Method
history_prev
(&mut self)
crates/coding-agent/src/ui/mod.rs:1398
↓ 1 callers
Function
host_with_port
(url: &url::Url)
crates/ai/src/sigv4.rs:108
↓ 1 callers
Function
human_bytes
(bytes: usize)
crates/coding-agent/src/ui/mod.rs:2191
↓ 1 callers
Method
idFromName
(name: string)
workers/fefe-hub/src/workers-shim.d.ts:27
↓ 1 callers
Function
idempotency_for
Derive `(idempotency_key, replacement_policy)` for a given method + params per RFC 1 §4.2.3 / PR #35 QA follow-up. Returns `None` for custom methods t
crates/coding-agent/src/triggers/mcp_notification_hook.rs:259
↓ 1 callers
Function
image_attachment_display
(image_count: usize)
crates/coding-agent/src/ui/mod.rs:2184
↓ 1 callers
Function
infer_mime
Detect a supported image's mime type from its leading bytes. Supported: PNG, JPEG, WebP, GIF — matches the providers' general intersection.
crates/coding-agent/src/images.rs:15
← previous
next →
901–1,000 of 2,618, ranked by callers