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
Function
run_with_kill_on_timeout_or_cancel
Spawn `sh -c <command>` and collect its output, killing the child on timeout / cancel. Returns the captured stdout / stderr and the exit-code-or-`Non
crates/coding-agent/src/tools/bash.rs:129
↓ 1 callers
Method
save
(&self)
crates/coding-agent/src/history.rs:72
↓ 1 callers
Method
save
(&self, params: &Value)
crates/coding-agent/src/tools/memory.rs:91
↓ 1 callers
Function
select_resume_session
( repo: &JsonlSessionRepo, cwd: &std::path::Path, )
crates/coding-agent/src/main.rs:509
↓ 1 callers
Method
send_line
(&self, line: String)
crates/coding-agent/src/tools/mcp_adapter.rs:140
↓ 1 callers
Function
send_notification
(method: str, params: dict)
examples/mcp-notify-python/notify-server.py:55
↓ 1 callers
Function
send_notification
(method: str, params: dict)
examples/mcp-weather-python/weather-server.py:70
↓ 1 callers
Function
serve_once_capture_request
(body: &'static str)
crates/coding-agent/src/local_models.rs:645
↓ 1 callers
Function
session_export_command
(argv: &[String], ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:1722
↓ 1 callers
Function
session_import_command
(argv: &[String], ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:1780
↓ 1 callers
Method
session_name
(&self)
crates/agent/src/harness/session/session.rs:418
↓ 1 callers
Function
sessions_dir_for_cwd
Sessions live under `<base>/sessions/<cwd-hash>/<uuidv7>.jsonl`. Hashing the cwd lets us scope `--resume` to "last session opened from this directory"
crates/coding-agent/src/config.rs:21
↓ 1 callers
Function
set_dynamic_trigger_poll_interval_secs
(secs: u64)
crates/coding-agent/src/triggers/dynamic.rs:252
↓ 1 callers
Function
set_faux_responses
Replace the queued faux responses.
crates/ai/src/providers/faux.rs:26
↓ 1 callers
Method
set_leaf_id
(&self, id: Option<String>)
crates/agent/src/harness/session/jsonl_storage.rs:167
↓ 1 callers
Function
set_skill_state_tool
Build the `SetSkillState` tool (enable/disable a loaded skill at runtime). Same harness-cell wiring as `skill_tool` / `install_skill_tool` — it reads
crates/coding-agent/src/tools/mod.rs:108
↓ 1 callers
Function
sha256_base64url
(s: &str)
crates/coding-agent/src/oauth.rs:207
↓ 1 callers
Function
shell_arg
()
crates/coding-agent/src/hooks.rs:885
↓ 1 callers
Function
shell_program
()
crates/coding-agent/src/hooks.rs:880
↓ 1 callers
Function
should_compact
( context_tokens: u64, context_window: u32, settings: &CompactionSettings, )
crates/agent/src/harness/compaction/compaction.rs:192
↓ 1 callers
Function
should_print_dynamic_top_level_help
(args: I)
crates/coding-agent/src/main.rs:401
↓ 1 callers
Function
should_run_web
(cli: &Cli)
crates/coding-agent/src/main.rs:1079
↓ 1 callers
Function
should_separate
(previous: Option<&Block>, current: &Block, has_output: bool)
crates/coding-agent/src/ui/feed.rs:554
↓ 1 callers
Method
should_show_side_panel
(&self)
crates/coding-agent/src/ui/mod.rs:1670
↓ 1 callers
Function
should_stop_on
Predicate matching what main.rs installs.
crates/coding-agent/tests/spinner_e2e.rs:106
↓ 1 callers
Function
show_skill
(argv: &[String], ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:398
↓ 1 callers
Method
shutdown
(&self)
crates/coding-agent/src/ui/relay.rs:119
↓ 1 callers
Function
skill_builder_tool
Build the `SkillBuilder` tool (author a NEW user skill from structured fields). Same harness-cell wiring as `install_skill_tool` — it shares InstallSk
crates/coding-agent/src/tools/mod.rs:100
↓ 1 callers
Function
skill_install_source
(target: &str, cwd: &std::path::Path)
crates/coding-agent/src/commands.rs:502
↓ 1 callers
Function
skill_tool
Build the `Skill` tool. Separate from `default_tools` because the tool needs to reach the live `AgentHarness::skills()` snapshot, and the harness does
crates/coding-agent/src/tools/mod.rs:82
↓ 1 callers
Function
skills_dirs
Returns (project_root, user_root) in the order they should be consulted. Project precedence means project is loaded *second* and overrides a same-nam
crates/coding-agent/src/skills.rs:18
↓ 1 callers
Method
skills_root
(&self)
crates/coding-agent/src/tools/remove_skill.rs:55
↓ 1 callers
Function
slash_token
Extract the slash token at the start of `line` (after leading whitespace). Returns `None` unless the trimmed line begins with `/` and contains no inte
crates/coding-agent/src/readline.rs:64
↓ 1 callers
Method
snapshot
(&self)
crates/coding-agent/src/spinner.rs:65
↓ 1 callers
Method
snapshot
Point-in-time view of the dedup / cycle bookkeeping plus lifetime counters. Intended for status banners; cheap (one mutex lock + struct copy). Lifetim
crates/agent/src/harness/trigger_runtime.rs:164
↓ 1 callers
Method
spawn
Spawn `cmd` with `args` and connect stdio. Returns once the child is launched (the initialize handshake is the caller's responsibility).
crates/mcp/src/stdio.rs:28
↓ 1 callers
Function
spawn_mock
(json: &'static str)
crates/coding-agent/tests/web_search_e2e.rs:14
↓ 1 callers
Function
spawn_oversize_http
( body_bytes: usize, )
crates/coding-agent/tests/web_fetch_e2e.rs:127
↓ 1 callers
Function
spawn_sse_loop
( client: reqwest::Client, endpoint: reqwest::Url, auth: Arc<Mutex<HttpMcpAuth>>, body_cap_byt
crates/mcp/src/http.rs:213
↓ 1 callers
Method
spawn_trigger_action
Spawn the detached sub-agent task for an accepted trigger. RFC 1 §5.A: the parent `Agent` is single-tenant, so we cannot run the action on the same `A
crates/agent/src/harness/agent_harness.rs:1259
↓ 1 callers
Function
spec_to_skill
(spec: &BuiltinSpec)
crates/coding-agent/src/builtin_skills.rs:142
↓ 1 callers
Function
split_shell_clauses
Split a shell command line on `;`, `&&`, `||`, `|`. We keep this dumb on purpose — we don't try to honor quotes or escapes; the predicate caller will
crates/agent/src/harness/permission.rs:350
↓ 1 callers
Function
start
Start the relay task. `prompt_tx` receives remote prompt text; the caller's event loop injects it through the same path as local submissions.
crates/coding-agent/src/ui/relay.rs:170
↓ 1 callers
Function
start_line
( call_id: u64, model: &Model, context: &PiContext, options: Option<&SimpleStreamOptions>, )
crates/coding-agent/src/debug.rs:90
↓ 1 callers
Method
start_next_queued_turn
(&mut self, turn: &mut TurnState)
crates/coding-agent/src/ui/mod.rs:1108
↓ 1 callers
Method
storage_path
(&self)
crates/coding-agent/src/triggers/dynamic.rs:87
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/openai_codex_responses.rs:39
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/anthropic.rs:110
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/openai_responses.rs:79
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/openai_completions.rs:52
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/amazon_bedrock.rs:36
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/google.rs:43
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/azure_openai_responses.rs:36
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/google_vertex.rs:35
↓ 1 callers
Method
stream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/mistral.rs:37
↓ 1 callers
Function
stream_fn_with
( responses: Arc<tokio::sync::Mutex<Vec<AssistantMessage>>>, )
crates/coding-agent/src/agent_session.rs:289
↓ 1 callers
Function
strip_frontmatter
Return the body of a SKILL.md after stripping the leading YAML frontmatter block, if any. Mirrors the behavior the on-disk loader applies to a real SK
crates/coding-agent/src/builtin_skills.rs:157
↓ 1 callers
Function
strip_one_layer_of_quotes
(raw: &str)
crates/agent/src/harness/permission.rs:327
↓ 1 callers
Function
style_for_level
(level: Level)
crates/coding-agent/src/ui/feed.rs:568
↓ 1 callers
Method
submit
( &mut self, turn: &mut TurnState, terminal: &mut Terminal<CrosstermBackend<std::io::S
crates/coding-agent/src/ui/mod.rs:937
↓ 1 callers
Method
submit_web_text
( &mut self, text: String, images: Vec<WebPromptImage>, turn: &mut TurnState,
crates/coding-agent/src/ui/web.rs:385
↓ 1 callers
Function
suffix_start_for_token_budget
Byte index where the suffix of `s` last fits within `budget_tokens` by the char-class estimate. Always lands on a char boundary.
crates/agent/src/harness/compaction/compaction.rs:439
↓ 1 callers
Function
summarize
(doc: dict)
examples/mcp-weather-python/weather-server.py:82
↓ 1 callers
Function
summarize_prompt_estimate_tokens
( messages: &[AgentMessage], custom_instructions: Option<&str>, )
crates/agent/src/harness/compaction/compaction.rs:390
↓ 1 callers
Method
target_path
(&self, name: &str)
crates/coding-agent/src/tools/skill_builder.rs:57
↓ 1 callers
Method
target_path
(&self, name: &str)
crates/coding-agent/src/tools/install_skill.rs:105
↓ 1 callers
Function
task_tool
Build the Task tool. Separate from `default_tools` because Task needs the model handle to spawn its inner harness; the caller wires it in at construct
crates/coding-agent/src/tools/mod.rs:63
↓ 1 callers
Method
template_turn
( &self, name: String, vars: serde_json::Map<String, serde_json::Value>, )
crates/coding-agent/src/ui/kernel.rs:129
↓ 1 callers
Method
templates
Snapshot of the loaded prompt templates. Listing-only — callers run them via [`Self::prompt_from_template`].
crates/agent/src/harness/agent_harness.rs:1507
↓ 1 callers
Function
terminate_child_tree
Best-effort teardown of the child *and any descendants it spawned*. On Unix the child was placed in its own session/process group via `setsid()`, so a
crates/coding-agent/src/tools/bash.rs:280
↓ 1 callers
Function
test_app_with_options
(opts: AgentHarnessOptions)
crates/coding-agent/src/ui/mod.rs:2345
↓ 1 callers
Method
text_delta
(&mut self, delta: &str)
crates/coding-agent/src/ui/feed.rs:371
↓ 1 callers
Method
thinking_delta
(&mut self, delta: &str)
crates/coding-agent/src/ui/feed.rs:396
↓ 1 callers
Method
to_pie_ai
Translate to the pie-ai `ThinkingLevel`. Returns `None` for `Off` since `pie-ai` has no off variant — callers should skip emitting reasoning when this
crates/agent/src/types.rs:84
↓ 1 callers
Function
tool_start_display
(tool_name: &str, args: &serde_json::Value)
crates/coding-agent/src/ui/listener.rs:81
↓ 1 callers
Function
transcript_from_messages
(messages: &[AgentMessage], max_chars: usize)
crates/coding-agent/src/goal.rs:147
↓ 1 callers
Method
trigger_panel_lines
(&self, width: usize, height: usize)
crates/coding-agent/src/ui/mod.rs:1680
↓ 1 callers
Function
trigger_promotion_details
(data: &serde_json::Value)
crates/coding-agent/src/commands.rs:3029
↓ 1 callers
Function
trigger_result_details
(data: &serde_json::Value)
crates/coding-agent/src/commands.rs:3018
↓ 1 callers
Function
trigger_sidecar_path_for_session
Return the dynamic-trigger sidecar for a live session. Jsonl sessions record their absolute transcript path in metadata. Older or synthetic sessions
crates/coding-agent/src/session/mod.rs:38
↓ 1 callers
Function
trigger_state_color
(state: pie_agent_core::TriggerState)
crates/coding-agent/src/tui.rs:388
↓ 1 callers
Function
trigger_state_level
(state: TriggerState)
crates/coding-agent/src/ui/listener.rs:307
↓ 1 callers
Method
trigger_web_rule_now
(&mut self, id: String, turn: &mut TurnState)
crates/coding-agent/src/ui/web.rs:355
↓ 1 callers
Function
trim_collapse
(v: &str)
crates/ai/src/sigv4.rs:167
↓ 1 callers
Function
trim_messages_for_summary_budget
( messages: &[AgentMessage], budget_tokens: u64, custom_instructions: Option<&str>, )
crates/agent/src/harness/compaction/compaction.rs:398
↓ 1 callers
Function
truncate
(text: &str)
crates/coding-agent/src/mentions.rs:103
↓ 1 callers
Function
truncate
(s: &str)
crates/coding-agent/src/tools/git.rs:148
↓ 1 callers
Function
truncate_chars
(value: &str, cap: usize)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:238
↓ 1 callers
Function
try_layer
Try to build an OTLP layer from `OTEL_EXPORTER_OTLP_ENDPOINT`. Returns `None` when the env var isn't set so the caller can skip installation cleanly.
crates/coding-agent/src/otlp.rs:30
↓ 1 callers
Function
unregister_api_providers
(source_id: &str)
crates/ai/src/api_registry.rs:85
↓ 1 callers
Function
update_index
( dir: &std::path::Path, slug: &str, description: &str, )
crates/coding-agent/src/tools/memory.rs:207
↓ 1 callers
Function
update_usage
(usage: &mut Usage, val: &Value)
crates/ai/src/providers/openai_completions.rs:442
↓ 1 callers
Function
update_usage
(usage: &mut Usage, u: &Value)
crates/ai/src/providers/amazon_bedrock.rs:348
↓ 1 callers
Function
update_usage
(usage: &mut Usage, u: &Value)
crates/ai/src/providers/google.rs:391
↓ 1 callers
Function
update_usage
(usage: &mut Usage, u: &Value)
crates/ai/src/providers/mistral.rs:338
↓ 1 callers
Method
upsert_tool_result
(&mut self, tool_call_id: String, lines: Vec<String>, is_error: bool)
crates/coding-agent/src/ui/feed.rs:322
↓ 1 callers
Function
urlencode
(s: &str)
crates/coding-agent/src/oauth.rs:234
↓ 1 callers
Function
user_agent
()
crates/ai/src/utils/headers.rs:5
↓ 1 callers
Function
user_content_log
(content: &UserContent)
crates/coding-agent/src/debug.rs:192
↓ 1 callers
Function
user_content_to_value
(content: &UserContent, cc: Option<&Value>)
crates/ai/src/providers/anthropic.rs:701
← previous
next →
1,201–1,300 of 2,618, ranked by callers