MCPcopy Create free account

hub / github.com/c4pt0r/pie / functions

Functions2,618 in github.com/c4pt0r/pie

↓ 1 callersFunctionrun_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 callersMethodsave
(&self)
crates/coding-agent/src/history.rs:72
↓ 1 callersMethodsave
(&self, params: &Value)
crates/coding-agent/src/tools/memory.rs:91
↓ 1 callersFunctionselect_resume_session
( repo: &JsonlSessionRepo, cwd: &std::path::Path, )
crates/coding-agent/src/main.rs:509
↓ 1 callersMethodsend_line
(&self, line: String)
crates/coding-agent/src/tools/mcp_adapter.rs:140
↓ 1 callersFunctionsend_notification
(method: str, params: dict)
examples/mcp-notify-python/notify-server.py:55
↓ 1 callersFunctionsend_notification
(method: str, params: dict)
examples/mcp-weather-python/weather-server.py:70
↓ 1 callersFunctionserve_once_capture_request
(body: &'static str)
crates/coding-agent/src/local_models.rs:645
↓ 1 callersFunctionsession_export_command
(argv: &[String], ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:1722
↓ 1 callersFunctionsession_import_command
(argv: &[String], ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:1780
↓ 1 callersMethodsession_name
(&self)
crates/agent/src/harness/session/session.rs:418
↓ 1 callersFunctionsessions_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 callersFunctionset_dynamic_trigger_poll_interval_secs
(secs: u64)
crates/coding-agent/src/triggers/dynamic.rs:252
↓ 1 callersFunctionset_faux_responses
Replace the queued faux responses.
crates/ai/src/providers/faux.rs:26
↓ 1 callersMethodset_leaf_id
(&self, id: Option<String>)
crates/agent/src/harness/session/jsonl_storage.rs:167
↓ 1 callersFunctionset_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 callersFunctionsha256_base64url
(s: &str)
crates/coding-agent/src/oauth.rs:207
↓ 1 callersFunctionshell_arg
()
crates/coding-agent/src/hooks.rs:885
↓ 1 callersFunctionshell_program
()
crates/coding-agent/src/hooks.rs:880
↓ 1 callersFunctionshould_compact
( context_tokens: u64, context_window: u32, settings: &CompactionSettings, )
crates/agent/src/harness/compaction/compaction.rs:192
↓ 1 callersFunctionshould_print_dynamic_top_level_help
(args: I)
crates/coding-agent/src/main.rs:401
↓ 1 callersFunctionshould_run_web
(cli: &Cli)
crates/coding-agent/src/main.rs:1079
↓ 1 callersFunctionshould_separate
(previous: Option<&Block>, current: &Block, has_output: bool)
crates/coding-agent/src/ui/feed.rs:554
↓ 1 callersMethodshould_show_side_panel
(&self)
crates/coding-agent/src/ui/mod.rs:1670
↓ 1 callersFunctionshould_stop_on
Predicate matching what main.rs installs.
crates/coding-agent/tests/spinner_e2e.rs:106
↓ 1 callersFunctionshow_skill
(argv: &[String], ctx: &CommandCtx<'_>)
crates/coding-agent/src/commands.rs:398
↓ 1 callersMethodshutdown
(&self)
crates/coding-agent/src/ui/relay.rs:119
↓ 1 callersFunctionskill_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 callersFunctionskill_install_source
(target: &str, cwd: &std::path::Path)
crates/coding-agent/src/commands.rs:502
↓ 1 callersFunctionskill_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 callersFunctionskills_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 callersMethodskills_root
(&self)
crates/coding-agent/src/tools/remove_skill.rs:55
↓ 1 callersFunctionslash_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 callersMethodsnapshot
(&self)
crates/coding-agent/src/spinner.rs:65
↓ 1 callersMethodsnapshot
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 callersMethodspawn
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 callersFunctionspawn_mock
(json: &'static str)
crates/coding-agent/tests/web_search_e2e.rs:14
↓ 1 callersFunctionspawn_oversize_http
( body_bytes: usize, )
crates/coding-agent/tests/web_fetch_e2e.rs:127
↓ 1 callersFunctionspawn_sse_loop
( client: reqwest::Client, endpoint: reqwest::Url, auth: Arc<Mutex<HttpMcpAuth>>, body_cap_byt
crates/mcp/src/http.rs:213
↓ 1 callersMethodspawn_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 callersFunctionspec_to_skill
(spec: &BuiltinSpec)
crates/coding-agent/src/builtin_skills.rs:142
↓ 1 callersFunctionsplit_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 callersFunctionstart
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 callersFunctionstart_line
( call_id: u64, model: &Model, context: &PiContext, options: Option<&SimpleStreamOptions>, )
crates/coding-agent/src/debug.rs:90
↓ 1 callersMethodstart_next_queued_turn
(&mut self, turn: &mut TurnState)
crates/coding-agent/src/ui/mod.rs:1108
↓ 1 callersMethodstorage_path
(&self)
crates/coding-agent/src/triggers/dynamic.rs:87
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/openai_codex_responses.rs:39
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/anthropic.rs:110
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/openai_responses.rs:79
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/openai_completions.rs:52
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/amazon_bedrock.rs:36
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/google.rs:43
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/azure_openai_responses.rs:36
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/google_vertex.rs:35
↓ 1 callersMethodstream
( &self, model: &Model, context: &Context, options: Option<&StreamOptions>,
crates/ai/src/providers/mistral.rs:37
↓ 1 callersFunctionstream_fn_with
( responses: Arc<tokio::sync::Mutex<Vec<AssistantMessage>>>, )
crates/coding-agent/src/agent_session.rs:289
↓ 1 callersFunctionstrip_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 callersFunctionstrip_one_layer_of_quotes
(raw: &str)
crates/agent/src/harness/permission.rs:327
↓ 1 callersFunctionstyle_for_level
(level: Level)
crates/coding-agent/src/ui/feed.rs:568
↓ 1 callersMethodsubmit
( &mut self, turn: &mut TurnState, terminal: &mut Terminal<CrosstermBackend<std::io::S
crates/coding-agent/src/ui/mod.rs:937
↓ 1 callersMethodsubmit_web_text
( &mut self, text: String, images: Vec<WebPromptImage>, turn: &mut TurnState,
crates/coding-agent/src/ui/web.rs:385
↓ 1 callersFunctionsuffix_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 callersFunctionsummarize
(doc: dict)
examples/mcp-weather-python/weather-server.py:82
↓ 1 callersFunctionsummarize_prompt_estimate_tokens
( messages: &[AgentMessage], custom_instructions: Option<&str>, )
crates/agent/src/harness/compaction/compaction.rs:390
↓ 1 callersMethodtarget_path
(&self, name: &str)
crates/coding-agent/src/tools/skill_builder.rs:57
↓ 1 callersMethodtarget_path
(&self, name: &str)
crates/coding-agent/src/tools/install_skill.rs:105
↓ 1 callersFunctiontask_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 callersMethodtemplate_turn
( &self, name: String, vars: serde_json::Map<String, serde_json::Value>, )
crates/coding-agent/src/ui/kernel.rs:129
↓ 1 callersMethodtemplates
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 callersFunctionterminate_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 callersFunctiontest_app_with_options
(opts: AgentHarnessOptions)
crates/coding-agent/src/ui/mod.rs:2345
↓ 1 callersMethodtext_delta
(&mut self, delta: &str)
crates/coding-agent/src/ui/feed.rs:371
↓ 1 callersMethodthinking_delta
(&mut self, delta: &str)
crates/coding-agent/src/ui/feed.rs:396
↓ 1 callersMethodto_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 callersFunctiontool_start_display
(tool_name: &str, args: &serde_json::Value)
crates/coding-agent/src/ui/listener.rs:81
↓ 1 callersFunctiontranscript_from_messages
(messages: &[AgentMessage], max_chars: usize)
crates/coding-agent/src/goal.rs:147
↓ 1 callersMethodtrigger_panel_lines
(&self, width: usize, height: usize)
crates/coding-agent/src/ui/mod.rs:1680
↓ 1 callersFunctiontrigger_promotion_details
(data: &serde_json::Value)
crates/coding-agent/src/commands.rs:3029
↓ 1 callersFunctiontrigger_result_details
(data: &serde_json::Value)
crates/coding-agent/src/commands.rs:3018
↓ 1 callersFunctiontrigger_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 callersFunctiontrigger_state_color
(state: pie_agent_core::TriggerState)
crates/coding-agent/src/tui.rs:388
↓ 1 callersFunctiontrigger_state_level
(state: TriggerState)
crates/coding-agent/src/ui/listener.rs:307
↓ 1 callersMethodtrigger_web_rule_now
(&mut self, id: String, turn: &mut TurnState)
crates/coding-agent/src/ui/web.rs:355
↓ 1 callersFunctiontrim_collapse
(v: &str)
crates/ai/src/sigv4.rs:167
↓ 1 callersFunctiontrim_messages_for_summary_budget
( messages: &[AgentMessage], budget_tokens: u64, custom_instructions: Option<&str>, )
crates/agent/src/harness/compaction/compaction.rs:398
↓ 1 callersFunctiontruncate
(text: &str)
crates/coding-agent/src/mentions.rs:103
↓ 1 callersFunctiontruncate
(s: &str)
crates/coding-agent/src/tools/git.rs:148
↓ 1 callersFunctiontruncate_chars
(value: &str, cap: usize)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:238
↓ 1 callersFunctiontry_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 callersFunctionunregister_api_providers
(source_id: &str)
crates/ai/src/api_registry.rs:85
↓ 1 callersFunctionupdate_index
( dir: &std::path::Path, slug: &str, description: &str, )
crates/coding-agent/src/tools/memory.rs:207
↓ 1 callersFunctionupdate_usage
(usage: &mut Usage, val: &Value)
crates/ai/src/providers/openai_completions.rs:442
↓ 1 callersFunctionupdate_usage
(usage: &mut Usage, u: &Value)
crates/ai/src/providers/amazon_bedrock.rs:348
↓ 1 callersFunctionupdate_usage
(usage: &mut Usage, u: &Value)
crates/ai/src/providers/google.rs:391
↓ 1 callersFunctionupdate_usage
(usage: &mut Usage, u: &Value)
crates/ai/src/providers/mistral.rs:338
↓ 1 callersMethodupsert_tool_result
(&mut self, tool_call_id: String, lines: Vec<String>, is_error: bool)
crates/coding-agent/src/ui/feed.rs:322
↓ 1 callersFunctionurlencode
(s: &str)
crates/coding-agent/src/oauth.rs:234
↓ 1 callersFunctionuser_agent
()
crates/ai/src/utils/headers.rs:5
↓ 1 callersFunctionuser_content_log
(content: &UserContent)
crates/coding-agent/src/debug.rs:192
↓ 1 callersFunctionuser_content_to_value
(content: &UserContent, cc: Option<&Value>)
crates/ai/src/providers/anthropic.rs:701
← previousnext →1,201–1,300 of 2,618, ranked by callers