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
↓ 2 callers
Function
entry_count
Total selectable entries: the pinned clean row + every session row.
crates/coding-agent/src/resume_picker.rs:51
↓ 2 callers
Function
err_msg
(text: &str)
crates/ai/src/utils/overflow.rs:106
↓ 2 callers
Function
estimate_context_tokens
(messages: &[AgentMessage])
crates/agent/src/harness/compaction/compaction.rs:166
↓ 2 callers
Method
evaluate
Evaluate against the sub-agent's structured `details`. Returns the intersection on match (so the caller can write `promote_eligible_rule_ids` for audi
crates/agent/src/harness/agent_harness.rs:560
↓ 2 callers
Method
evaluate_with_category
Evaluate a single tool call against the policy in the given category. Pure function — no IO. Runtime ships a permissive default for [`PermissionCateg
crates/agent/src/harness/permission.rs:110
↓ 2 callers
Method
event_stream
(&self, label: &str)
crates/ai/src/api_registry.rs:194
↓ 2 callers
Method
execute
( &self, _id: &str, params: Value, _cancel: CancellationToken, _on_upd
crates/coding-agent/src/tools/skill.rs:63
↓ 2 callers
Function
extract_mentions
Scan for `@<path>` tokens. Stops a path at whitespace, semicolon, comma, parenthesis, or quote. Leading punctuation around the `@` (e.g. wrapping in p
crates/coding-agent/src/mentions.rs:65
↓ 2 callers
Function
extract_user_message_text
Extract the text body of a `Message::User`, joining `Blocks` text content. Returns `None` for image-only messages or empty text. Used to fill [`OnTurn
crates/agent/src/harness/agent_harness.rs:3405
↓ 2 callers
Function
faux_model
()
crates/ai/src/providers/faux.rs:262
↓ 2 callers
Function
faux_model
()
crates/coding-agent/src/ui/mod.rs:2308
↓ 2 callers
Function
faux_model
()
crates/coding-agent/tests/export_e2e.rs:24
↓ 2 callers
Function
faux_model
()
crates/coding-agent/tests/cli_session.rs:20
↓ 2 callers
Function
faux_model
()
crates/agent/tests/permission_e2e.rs:20
↓ 2 callers
Function
faux_stream
(text: &'static str)
crates/coding-agent/tests/export_e2e.rs:42
↓ 2 callers
Function
faux_stream_fn
StreamFn that always emits a Done with the supplied text. Equivalent to the harness_e2e helper but inlined so this test stays self-contained.
crates/coding-agent/tests/cli_session.rs:40
↓ 2 callers
Function
faux_stream_fn_sequence
Per-call stream_fn that returns successive assistant texts from a shared queue. Used to differentiate iterations in continuation-loop tests so we can
crates/agent/tests/harness_e2e.rs:4965
↓ 2 callers
Function
feed_lines_text
(lines: &[Line<'_>])
crates/coding-agent/src/ui/mod.rs:2412
↓ 2 callers
Function
file_info_from_meta
(name: String, path: String, m: std::fs::Metadata)
crates/agent/src/harness/env/native.rs:61
↓ 2 callers
Function
finalize
(inner: &Arc<AgentInner>, cancel: CancellationToken)
crates/agent/src/agent_loop.rs:859
↓ 2 callers
Method
finish_turn
Wrap up a finished turn: clear the busy state and surface an aborted/error line.
crates/coding-agent/src/ui/mod.rs:458
↓ 2 callers
Function
first_dynamic_rule_id
(text: &str)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:318
↓ 2 callers
Method
flush_current
(&mut self)
crates/ai/src/utils/sse.rs:39
↓ 2 callers
Function
frame
Build a single frame with one `:event-type` string header and a JSON payload.
crates/ai/src/utils/aws_eventstream.rs:174
↓ 2 callers
Function
generate_summary
Call the LLM to produce a single text summary of the supplied messages.
crates/agent/src/harness/compaction/compaction.rs:506
↓ 2 callers
Method
get_entries
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:203
↓ 2 callers
Method
get_entries
(&self)
crates/agent/tests/harness_e2e.rs:135
↓ 2 callers
Method
get_path_to_root
( &self, leaf_id: Option<&str>, )
crates/agent/src/harness/session/jsonl_storage.rs:207
↓ 2 callers
Function
goal_start_prompt
(argv: &[String])
crates/coding-agent/src/commands.rs:1006
↓ 2 callers
Method
guard_not_streaming
(&self)
crates/agent/src/agent.rs:187
↓ 2 callers
Method
handle_data
(&self, data: EventData, cancel: CancellationToken)
crates/coding-agent/src/hooks.rs:329
↓ 2 callers
Method
handle_harness_event
(&self, event: &HarnessEvent, cancel: CancellationToken)
crates/coding-agent/src/hooks.rs:322
↓ 2 callers
Method
handle_web_relay
Handle `/web-connect` family outcomes. Shared by the TUI and web event loops.
crates/coding-agent/src/ui/mod.rs:486
↓ 2 callers
Function
harness_with_disk_skill_reload
(base_dir: &Path, seed: Vec<Skill>)
crates/coding-agent/tests/commands.rs:232
↓ 2 callers
Function
hex_random
(bytes: usize)
crates/coding-agent/src/otlp.rs:202
↓ 2 callers
Function
http_auth_recovery
(auth: &HttpAuthConfig)
crates/coding-agent/src/mcp_loader.rs:345
↓ 2 callers
Function
init_repo
Initialise a fresh repo at `dir` with one committed file and one staged change.
crates/coding-agent/tests/git_tool_e2e.rs:15
↓ 2 callers
Function
inject_and_run_action_hook
Inject-and-run delivery hook: injects `prompt` into the parent conversation and runs one turn in the parent's context (`TriggerDelivery::InjectAndRun`
crates/agent/tests/harness_e2e.rs:3275
↓ 2 callers
Function
inject_summary_action_hook
Inject-summary delivery hook: returns [`TriggerDelivery::InjectSummary`] with a verbatim `{{trigger.payload_summary}}` template (the source-as-feed sh
crates/agent/tests/harness_e2e.rs:3107
↓ 2 callers
Function
io_err
(e: std::io::Error)
crates/agent/src/harness/session/jsonl_repo.rs:89
↓ 2 callers
Method
is_empty
(&self)
crates/coding-agent/src/lsp_supervisor.rs:106
↓ 2 callers
Method
is_empty
(&self)
crates/coding-agent/src/history.rs:49
↓ 2 callers
Method
is_ignored
(&self, rel: &str, is_dir: bool)
crates/agent/src/harness/skills.rs:238
↓ 2 callers
Method
is_initialized
(&self)
crates/mcp/src/client.rs:208
↓ 2 callers
Function
leave_tui
()
crates/coding-agent/src/ui/mod.rs:2233
↓ 2 callers
Method
len
(&self)
crates/coding-agent/src/history.rs:44
↓ 2 callers
Method
list_dir
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:190
↓ 2 callers
Function
list_triggers_tool
Build the dynamic trigger listing tool. This is the model-facing counterpart to `/triggers rules`: it lets the assistant inspect current rule ids befo
crates/coding-agent/src/tools/mod.rs:158
↓ 2 callers
Method
listener
Build an `AgentListener` that prints lifecycle events. Holds onto `self` (cheaply clonable Arc state) so deltas accumulate across events.
crates/coding-agent/src/tui.rs:102
↓ 2 callers
Function
load_service_account
Load the service-account file from `GOOGLE_APPLICATION_CREDENTIALS` (or the explicit path supplied by the caller).
crates/ai/src/vertex_adc.rs:81
↓ 2 callers
Method
load_skill_from_file
(&self, file_path: &str, out: &mut LoadSkillsOutput)
crates/agent/src/harness/skills.rs:250
↓ 2 callers
Function
manifest_from_archive
(path: &Path)
crates/coding-agent/src/session_archive.rs:1212
↓ 2 callers
Function
map_notification
Translate one MCP push frame to a `Trigger`, or `None` if the frame should be dropped at the adapter (custom method without `_pie_dedup_key` / `_meta.
crates/coding-agent/src/triggers/mcp_notification_hook.rs:182
↓ 2 callers
Method
mark_completed
(&self, trace_id: &str, error: Option<String>)
crates/coding-agent/src/triggers/cron.rs:254
↓ 2 callers
Function
mk
(name: &str, desc: &str)
crates/agent/src/harness/system_prompt.rs:44
↓ 2 callers
Function
mk_model
()
crates/ai/src/providers/openai_completions.rs:675
↓ 2 callers
Function
mk_model
()
crates/ai/src/providers/azure_openai_responses.rs:199
↓ 2 callers
Function
mk_msg
()
crates/ai/src/utils/event_stream.rs:116
↓ 2 callers
Function
model_help_summary_lines
()
crates/coding-agent/src/commands.rs:1281
↓ 2 callers
Function
model_with_base
(base: &str)
crates/ai/src/providers/cloudflare.rs:67
↓ 2 callers
Function
model_with_context_window
(context_window: u32)
crates/agent/src/harness/compaction/compaction.rs:732
↓ 2 callers
Function
new_cron_job_tool
Build the session-scoped cron creation tool. This is the model-facing counterpart to `/cron add`: when the user asks in ordinary conversation for a sc
crates/coding-agent/src/tools/mod.rs:122
↓ 2 callers
Function
new_trigger_extraction_stream
()
crates/coding-agent/tests/commands.rs:102
↓ 2 callers
Function
normalize_operand
Normalize a single shell token before the target predicate sees it. Strips one balanced layer of single or double quotes and rewrites `${HOME}` (with
crates/agent/src/harness/permission.rs:322
↓ 2 callers
Function
normalize_tool_call_id
Mistral requires tool-call ids to be alphanumeric and exactly 9 chars.
crates/ai/src/providers/mistral.rs:84
↓ 2 callers
Method
note
(&self)
crates/coding-agent/src/tools/truncate.rs:17
↓ 2 callers
Function
now_ns
()
crates/coding-agent/src/otlp.rs:137
↓ 2 callers
Function
number_field
(data: &serde_json::Value, name: &str)
crates/coding-agent/src/commands.rs:3049
↓ 2 callers
Function
on_disk_skill_hash
Hash the on-disk SKILL.md bytes at `target_path` using the same SHA256 + line-ending normalization the new-content hash uses, so an idempotent re-inst
crates/coding-agent/src/tools/install_skill.rs:693
↓ 2 callers
Function
optional_skill_source
(raw: Option<&String>)
crates/coding-agent/src/commands.rs:749
↓ 2 callers
Function
oversized_entries
(count: usize)
crates/agent/src/harness/compaction/compaction.rs:753
↓ 2 callers
Function
parse_and_validate
(fetched: &Fetched)
crates/coding-agent/src/tools/install_skill.rs:556
↓ 2 callers
Function
parse_callback_query
(path: &str)
crates/coding-agent/src/oauth.rs:214
↓ 2 callers
Function
parse_decision
(text: &str)
crates/coding-agent/src/goal.rs:381
↓ 2 callers
Function
parse_frontmatter
(content: &str)
crates/agent/src/harness/prompt_templates.rs:154
↓ 2 callers
Function
parse_model_spec
(spec: &str)
crates/coding-agent/src/commands.rs:927
↓ 2 callers
Function
parse_session_jsonl
(text: &str)
crates/coding-agent/src/session_archive.rs:365
↓ 2 callers
Method
permission_classification
Issue #110 sub-PR 3 classifier — every install is a persistent control-plane write that grows the model's tool surface, so always route through the `o
crates/coding-agent/src/tools/install_skill.rs:149
↓ 2 callers
Function
preview
Render a short, single-line preview of tool-call arguments — the first few keys with truncated values. Mirrors the old `tui::preview` shape (`(k="v",
crates/coding-agent/src/ui/feed.rs:671
↓ 2 callers
Function
print_session_archive_warning
()
crates/coding-agent/src/main.rs:377
↓ 2 callers
Function
prompt_display
(text: &str, image_count: usize)
crates/coding-agent/src/ui/mod.rs:2172
↓ 2 callers
Method
prompt_import_activation
`/session import` brought automation that the source had enabled. Raise the shared confirm surface; approval restores exactly the source enablement.
crates/coding-agent/src/ui/mod.rs:559
↓ 2 callers
Method
prompt_with_message
(&self, msg: AgentMessage)
crates/agent/src/harness/agent_harness.rs:1716
↓ 2 callers
Function
prune_expired_cycle
( map: &mut HashMap<String, CycleEntry>, now: DateTime<Utc>, window: Duration, )
crates/agent/src/harness/trigger_runtime.rs:288
↓ 2 callers
Method
push_assistant_with_timestamp
( &mut self, text: impl Into<String>, timestamp: Option<String>, )
crates/coding-agent/src/ui/feed.rs:209
↓ 2 callers
Method
push_plain_with_timestamp
( &mut self, text: impl Into<String>, level: Level, timestamp: Option<String>,
crates/coding-agent/src/ui/feed.rs:241
↓ 2 callers
Method
push_relay_snapshot
Queue the current state to the relay, if one is connected. Cheap when off; the relay task debounces actual sends.
crates/coding-agent/src/ui/mod.rs:551
↓ 2 callers
Method
push_snapshot
Queue a snapshot for the relay. Cheap; the task debounces on the wire.
crates/coding-agent/src/ui/relay.rs:97
↓ 2 callers
Method
push_tool_result_with_timestamp
( &mut self, tool_call_id: impl Into<String>, lines: Vec<String>, is_error: bo
crates/coding-agent/src/ui/feed.rs:306
↓ 2 callers
Method
push_tool_with_timestamp
( &mut self, name: impl Into<String>, args: impl Into<String>, timestamp: Opti
crates/coding-agent/src/ui/feed.rs:268
↓ 2 callers
Method
push_user_with_timestamp
(&mut self, text: impl Into<String>, timestamp: Option<String>)
crates/coding-agent/src/ui/feed.rs:191
↓ 2 callers
Function
qr_lines
Render the viewer URL as a scannable QR code for the TUI feed. Unicode half-block rendering, inverted so modules read dark-on-light on dark terminal t
crates/coding-agent/src/ui/relay.rs:155
↓ 2 callers
Function
queue_preview
(text: &str)
crates/coding-agent/src/ui/mod.rs:2167
↓ 2 callers
Function
read_file
(path: &Path, label: &str, diagnostics: &mut Vec<String>)
crates/coding-agent/src/hooks.rs:217
↓ 2 callers
Function
read_jobs_file
(path: &Path)
crates/coding-agent/src/triggers/cron.rs:286
↓ 2 callers
Function
read_loop_state
(path: &Path)
crates/coding-agent/src/triggers/cron.rs:746
↓ 2 callers
Function
read_optional_sidecar
(path: &Path)
crates/coding-agent/src/session_archive.rs:507
↓ 2 callers
Function
read_sse_response
( response: reqwest::Response, body_cap_bytes: usize, idle_timeout: Option<Duration>, tx: mpsc
crates/mcp/src/http.rs:335
↓ 2 callers
Method
recv_line
(&self)
crates/mcp/tests/client_fixture.rs:27
↓ 2 callers
Function
redact_notification_text
(value: &str)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:217
← previous
next →
601–700 of 2,618, ranked by callers