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
↓ 4 callers
Method
badge
Short badge for session listings: enabled counts ("2 cron, 1 trigger"), or "automation off" when everything present is disabled. `None` when there is
crates/coding-agent/src/session/mod.rs:255
↓ 4 callers
Function
bind_addr
(options: &WebOptions)
crates/coding-agent/src/ui/web.rs:831
↓ 4 callers
Function
build_session_context
(path_entries: &[SessionTreeEntry])
crates/agent/src/harness/session/session.rs:259
↓ 4 callers
Method
clear_input
(&mut self)
crates/coding-agent/src/ui/mod.rs:1352
↓ 4 callers
Method
close
Shut down the transport. Subsequent calls fail with `NotInitialized` / transport error.
crates/mcp/src/client.rs:249
↓ 4 callers
Function
compact
Top-level compaction entry point. Picks a cut point, summarizes the prefix, returns the summary plus metadata for the harness to record on the session
crates/agent/src/harness/compaction/compaction.rs:635
↓ 4 callers
Function
context
(tools: Option<Vec<Tool>>)
crates/coding-agent/src/local_models.rs:618
↓ 4 callers
Function
create
Create a brand-new session under the current cwd's sessions dir.
crates/coding-agent/src/session/mod.rs:77
↓ 4 callers
Function
custom_registry
()
crates/ai/src/models.rs:14
↓ 4 callers
Method
definition
(&self)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:106
↓ 4 callers
Function
delete_by_id
Delete a session by id (full UUIDv7) or a unique prefix.
crates/coding-agent/src/session/mod.rs:164
↓ 4 callers
Function
encode_rgba_clipboard_image
( width: usize, height: usize, rgba_bytes: Vec<u8>, )
crates/coding-agent/src/clipboard_image.rs:49
↓ 4 callers
Function
ensure_block
(partial: &mut AssistantMessage, idx: usize, default: ContentBlock)
crates/ai/src/providers/anthropic.rs:549
↓ 4 callers
Method
enter
Enter: descend at provider level (returns `None`), select at model level (returns the `provider:id` spec).
crates/coding-agent/src/model_picker.rs:109
↓ 4 callers
Function
error_stream
Construct an instantly-errored stream. Per the TS contract, providers must encode failures in the returned stream rather than throw — same applies to
crates/ai/src/api_registry.rs:147
↓ 4 callers
Function
faux_model
()
crates/coding-agent/tests/task_tool_e2e.rs:21
↓ 4 callers
Function
faux_stream_fn_classifier_then_stop
Two-shot stream_fn: first message asks for `prompter` tool call, second is plain stop. Used by the audit tests below to drive the classifier → prompt
crates/agent/tests/harness_e2e.rs:5456
↓ 4 callers
Method
file_info
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:174
↓ 4 callers
Method
force_compact
Force a compaction immediately, regardless of token thresholds. Useful for `/compact`- style slash commands.
crates/agent/src/harness/agent_harness.rs:1946
↓ 4 callers
Method
forward
(frame: { type: string; [k: string]: unknown })
workers/fefe-hub/src/relay.ts:297
↓ 4 callers
Function
get_api_provider
Lookup. Returns a handle that delegates to the registered provider while holding no lock — we clone-by-reference using a shim because trait objects in
crates/ai/src/api_registry.rs:77
↓ 4 callers
Method
get_entry
(&self, id: &str)
crates/agent/src/harness/session/session.rs:390
↓ 4 callers
Function
goal_payload
(state: &GoalState, ok: Option<bool>)
crates/coding-agent/src/goal.rs:354
↓ 4 callers
Method
initialize
Send the initialize request and the matching `initialized` notification.
crates/coding-agent/src/lsp.rs:163
↓ 4 callers
Function
isValidToken
(token: string)
workers/fefe-hub/src/relay.ts:111
↓ 4 callers
Method
leaf_id
(&self)
crates/agent/src/harness/session/session.rs:386
↓ 4 callers
Function
list_entries
List sessions for this cwd, oldest → newest, with a short preview from the first user message when available.
crates/coding-agent/src/session/mod.rs:100
↓ 4 callers
Method
load
()
crates/coding-agent/src/auth.rs:76
↓ 4 callers
Function
load_all
(cwd: &Path, base_dir: &Path)
crates/coding-agent/tests/cli_skills.rs:34
↓ 4 callers
Function
load_bytes
Build an image attachment from already-read bytes. Used by both `--image` paths and clipboard paste, so format and size validation stay identical.
crates/coding-agent/src/images.rs:41
↓ 4 callers
Function
load_templates
Load templates from each directory. Missing directories are silently skipped. `.md` files at the directory root become templates; directory recursion
crates/agent/src/harness/prompt_templates.rs:74
↓ 4 callers
Function
loop_state_path
`<sess>.cron.toml` + `cron-abcdef…` → `<sess>.loop-cron-abcdef12.md` (8-char id prefix after the `cron-` marker keeps names short but unambiguous in p
crates/coding-agent/src/triggers/cron.rs:735
↓ 4 callers
Function
make_trigger_at
( idempotency: &str, trace: &str, policy: ReplacementPolicy, received_at: Date
crates/agent/src/harness/trigger_runtime.rs:309
↓ 4 callers
Method
mark_rules_fired
( &self, ids: &[String], )
crates/coding-agent/src/triggers/dynamic.rs:210
↓ 4 callers
Method
matches
(&self, dt: DateTime<Utc>)
crates/coding-agent/src/triggers/cron.rs:1004
↓ 4 callers
Function
message_kind
(message: &AgentMessage)
crates/coding-agent/src/hooks.rs:793
↓ 4 callers
Function
message_summary
(message: &AgentMessage)
crates/coding-agent/src/hooks.rs:802
↓ 4 callers
Method
metadata
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:93
↓ 4 callers
Function
model_credential_hint
(provider: &str)
crates/coding-agent/src/commands.rs:941
↓ 4 callers
Function
model_groups
()
crates/coding-agent/src/commands.rs:1331
↓ 4 callers
Function
new_textarea
()
crates/coding-agent/src/ui/mod.rs:2220
↓ 4 callers
Function
new_token
Generate a URL-safe 160-bit random token (40 lowercase hex chars). Sourced from two v4 UUIDs (OS RNG) so no extra dependency is needed.
crates/coding-agent/src/ui/relay.rs:126
↓ 4 callers
Function
persist_state_best_effort
(harness: &Arc<AgentHarness>, state: &GoalState)
crates/coding-agent/src/goal.rs:341
↓ 4 callers
Function
picker_groups
()
crates/coding-agent/src/ui/mod.rs:3311
↓ 4 callers
Function
preview_for_banner
Bounded preview text for status banners. Avoids panicking on multi-byte char boundaries by walking char count, not byte count.
crates/agent/src/harness/agent_harness.rs:3392
↓ 4 callers
Method
push_plain
(&mut self, text: impl Into<String>, level: Level)
crates/coding-agent/src/ui/feed.rs:233
↓ 4 callers
Function
read_archive
(path: &Path)
crates/coding-agent/src/session_archive.rs:534
↓ 4 callers
Function
read_trigger_poll_interval_secs
Resolve the local dynamic trigger poll interval. CLI overrides config; config overrides the built-in default. A malformed config reports a diagnostic
crates/coding-agent/src/main.rs:1284
↓ 4 callers
Method
record_turn_end_decision
Persist a `turn_end_decision` audit entry and emit the matching [`HarnessEvent::TurnEnded`] event. Best-effort: persistence failures do not abort the
crates/agent/src/harness/agent_harness.rs:1911
↓ 4 callers
Method
rehydrate_from_session
Replace the agent's in-memory state with the session's active branch. Messages, model, and thinking level are restored from `Session::build_context()`
crates/agent/src/harness/agent_harness.rs:1639
↓ 4 callers
Method
render_line
(&mut self, line: &str)
crates/coding-agent/src/markdown.rs:124
↓ 4 callers
Function
render_lines
Render the full menu (header, entries in the window, scroll indicators, footer) for a terminal of `width` columns with `height` entry rows visible.
crates/coding-agent/src/resume_picker.rs:72
↓ 4 callers
Function
render_skill_md
Render the canonical `SKILL.md`. Frontmatter goes through `serde_yaml` so special characters in `description` are escaped correctly; the description i
crates/coding-agent/src/tools/skill_builder.rs:78
↓ 4 callers
Method
replace_skills
Replace the skill catalog. Rebuilds the system prompt so the in-flight Agent state has the new `<skills>` block on its next LLM call.
crates/agent/src/harness/agent_harness.rs:1517
↓ 4 callers
Method
replay_message
(&mut self, message: &AgentMessage)
crates/coding-agent/src/ui/mod.rs:304
↓ 4 callers
Method
request_abort
(&mut self, turn: &mut TurnState)
crates/coding-agent/src/ui/mod.rs:1311
↓ 4 callers
Method
resolve_control_plane_prompt
( &mut self, decision: pie_agent_core::ControlPlanePromptDecision, )
crates/coding-agent/src/ui/mod.rs:655
↓ 4 callers
Function
response_queue
()
crates/ai/src/providers/faux.rs:20
↓ 4 callers
Method
result
Resolve the final `AssistantMessage`. Returns the message stored by the terminal event; if the sender was dropped without emitting a terminal event, r
crates/ai/src/utils/event_stream.rs:87
↓ 4 callers
Function
run
( model: Model, context: Context, options: StreamOptions, mut sender: AssistantMessageEventSen
crates/ai/src/providers/google.rs:93
↓ 4 callers
Function
sample_event_trigger
()
crates/coding-agent/tests/dynamic_trigger_e2e.rs:427
↓ 4 callers
Method
save_to
Atomic write: rename-temp + chmod 600. Best-effort on platforms without unix perms.
crates/coding-agent/src/auth.rs:99
↓ 4 callers
Function
send_response
(request_id, result=None, error=None)
examples/mcp-notify-python/notify-server.py:46
↓ 4 callers
Function
send_response
(request_id, result=None, error=None)
examples/mcp-weather-python/weather-server.py:61
↓ 4 callers
Method
set_model
Switch model. Persists a `ModelChange` session entry so resume sees the right one.
crates/agent/src/harness/agent_harness.rs:1593
↓ 4 callers
Function
skill_shortcuts
(skills: &[Skill], registry: &Registry)
crates/coding-agent/src/commands.rs:3068
↓ 4 callers
Function
snapshot_context
(inner: &Arc<AgentInner>)
crates/agent/src/agent_loop.rs:196
↓ 4 callers
Method
subscribe
Subscribe to lifecycle events. Returns an unsubscribe closure.
crates/agent/src/agent.rs:130
↓ 4 callers
Method
system_prompt
(&self)
crates/agent/src/harness/agent_harness.rs:1511
↓ 4 callers
Method
take_notifications
Take ownership of the server-notification receiver. Returns `Some(rx)` on the first call and `None` on every call thereafter. Intended for `McpNotific
crates/mcp/src/client.rs:179
↓ 4 callers
Function
target_model
()
crates/ai/src/providers/transform_messages.rs:224
↓ 4 callers
Function
test_app_with_model
(model: pie_ai::Model)
crates/coding-agent/src/ui/mod.rs:2338
↓ 4 callers
Function
transform_messages
Rewrite `messages` for the destination `model`.
crates/ai/src/providers/transform_messages.rs:73
↓ 4 callers
Function
two_groups
()
crates/coding-agent/src/model_picker.rs:264
↓ 4 callers
Function
user
(text: &str)
crates/agent/src/harness/compaction/compaction.rs:706
↓ 4 callers
Function
web_prompt_text
(text: &str, cap: usize)
crates/coding-agent/src/ui/web.rs:798
↓ 4 callers
Function
write_user_skill
Write a `<base>/skills/<name>/SKILL.md` on disk and return the absolute SKILL.md path.
crates/coding-agent/src/tools/remove_skill.rs:368
↓ 3 callers
Method
abort_trigger
Cancel the in-flight sub-agent for `trace_id`. No-op if the trigger has already completed or was never accepted. The spawned task will observe the can
crates/agent/src/harness/agent_harness.rs:1420
↓ 3 callers
Function
activate_imported
Re-enable the given trigger/cron ids on an imported session's sidecars — the second half of the interactive "activate imported automation now?" flow.
crates/coding-agent/src/session_archive.rs:321
↓ 3 callers
Method
api
(&self)
crates/ai/src/api_registry.rs:220
↓ 3 callers
Method
append_model_change
( &self, provider: impl Into<String>, model_id: impl Into<String>, )
crates/agent/src/harness/session/session.rs:467
↓ 3 callers
Function
args
(cmd: &str)
crates/agent/src/harness/permission.rs:385
↓ 3 callers
Method
as_before_tool_call
Convert this policy into a `BeforeToolCallHook` ready to assign to [`crate::agent::AgentOptions::before_tool_call`].
crates/agent/src/harness/permission.rs:155
↓ 3 callers
Method
as_str
(self)
crates/coding-agent/src/hooks.rs:600
↓ 3 callers
Function
assert_full_timestamp_prefix
(row: &str, rendered: &str)
crates/coding-agent/src/ui/mod.rs:3304
↓ 3 callers
Function
assistant_text
(text: &str)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:365
↓ 3 callers
Function
auth_path
()
crates/coding-agent/src/auth.rs:21
↓ 3 callers
Function
automation_elsewhere_hint
When other sessions in this repo hold *enabled* automation, return a one-line hint naming the newest such session so the user can resume it. `current`
crates/coding-agent/src/session/mod.rs:315
↓ 3 callers
Function
available_builtin_names
List every built-in name in stable alphabetical order. Used by error/diagnostic messages so the `Available: ...` list is reproducible across runs.
crates/coding-agent/src/builtin_skills.rs:50
↓ 3 callers
Method
bearer
(mut self, token: impl Into<String>)
crates/mcp/src/http.rs:93
↓ 3 callers
Function
build_request_body
(model: &Model, context: &Context, options: &StreamOptions)
crates/ai/src/providers/openai_completions.rs:472
↓ 3 callers
Function
cap_control_plane_audit_label
(label: &str)
crates/agent/src/harness/agent_harness.rs:2237
↓ 3 callers
Function
cap_trigger_prompt_reason
(reason: &str)
crates/agent/src/harness/agent_harness.rs:2338
↓ 3 callers
Function
capture_one_request
()
crates/coding-agent/tests/hooks_e2e.rs:101
↓ 3 callers
Function
catalog
Filtered + grouped catalog with live credential detection.
crates/coding-agent/src/model_picker.rs:33
↓ 3 callers
Function
catalog_with
Testable core: credential detection injected.
crates/coding-agent/src/model_picker.rs:38
↓ 3 callers
Method
check_budget_cap
Shared budget-cap precondition used by every entry path (`prompt` / `prompt_with_images` / `continue_` / continuation iterations).
crates/agent/src/harness/agent_harness.rs:1884
↓ 3 callers
Function
close_open_block
( open: u8, partial: &mut AssistantMessage, sender: &mut AssistantMessageEventSender, )
crates/ai/src/providers/google.rs:363
↓ 3 callers
Method
close_thinking
(&self, out: &mut dyn std::io::Write)
crates/coding-agent/src/tui.rs:328
↓ 3 callers
Function
collect_turn_end_decisions
( received: &Arc<parking_lot::Mutex<Vec<HarnessEvent>>>, )
crates/agent/tests/harness_e2e.rs:5006
← previous
next →
301–400 of 2,618, ranked by callers