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
↓ 13 callers
Function
test_tool
(cell: SkillHarnessCell, dir: &tempfile::TempDir)
crates/coding-agent/src/tools/install_skill.rs:897
↓ 13 callers
Function
user_message
(text: &str)
crates/agent/tests/session_storage.rs:10
↓ 12 callers
Function
assistant
(content: Vec<ContentBlock>)
crates/coding-agent/tests/tui_render_e2e.rs:22
↓ 12 callers
Function
estimate_text_tokens
Conservative char-class-aware text estimate: ~4 chars per token for ASCII, ~1 token per char for non-ASCII (CJK and similar scripts tokenize close to
crates/agent/src/harness/compaction/compaction.rs:102
↓ 12 callers
Method
is_terminal
(&self)
crates/ai/src/types.rs:539
↓ 12 callers
Function
redact
Apply every secret-pattern regex to `input`. Each match is replaced with a fixed placeholder that names which class of secret was caught so the user c
crates/coding-agent/src/bug_report.rs:115
↓ 12 callers
Method
resolve
(&self, path: &str)
crates/agent/src/harness/env/native.rs:36
↓ 11 callers
Function
before_trigger_action_hook
(registry: DynamicTriggerRegistry)
crates/coding-agent/src/triggers/dynamic.rs:557
↓ 11 callers
Function
env_lock
()
crates/coding-agent/src/local_models.rs:150
↓ 11 callers
Method
handleAgentMessage
(raw: string)
workers/fefe-hub/src/relay.ts:50
↓ 11 callers
Method
notification_status_snapshot
Point-in-time view of the harness's notification surface — the [`TriggerRuntimeSnapshot`] plus a `Vec<NotificationHookStatus>` collected from each reg
crates/agent/src/harness/agent_harness.rs:1393
↓ 11 callers
Method
queue_user_prompt
(&mut self, display: String, prompt: String, images: Vec<ImageContent>)
crates/coding-agent/src/ui/mod.rs:1082
↓ 11 callers
Method
reload_skills_from_disk
Hot-reload the skill catalog from disk via the embedder-supplied [`AgentHarnessOptions::reload_skills_fn`] closure. Used by `InstallSkillTool`, `/skil
crates/agent/src/harness/agent_harness.rs:1538
↓ 11 callers
Function
starts_with_at
(bytes: &[u8], i: usize, pat: &[u8])
crates/coding-agent/src/tools/web_fetch.rs:224
↓ 11 callers
Function
unregister_custom_model
(provider: &Provider, id: &str)
crates/ai/src/models.rs:47
↓ 10 callers
Function
apply
Apply the overlay to a freshly-loaded skill catalog: for each skill that has an explicit `{source, name}` override, set `disable_model_invocation = !e
crates/coding-agent/src/skills_state.rs:124
↓ 10 callers
Method
branch
( &self, from_id: Option<&str>, )
crates/agent/src/harness/session/session.rs:398
↓ 10 callers
Function
createTestApp
( version = DEFAULT_VERSION, relay?: DurableObjectNamespace, )
workers/fefe-hub/src/index.ts:107
↓ 10 callers
Function
import_session
( repo: &JsonlSessionRepo, archive_path: &Path, cwd: &Path, activate_triggers: ActivateTrigger
crates/coding-agent/src/session_archive.rs:202
↓ 10 callers
Function
load_all_from_paths
(paths: &[PathBuf])
crates/coding-agent/src/local_models.rs:34
↓ 10 callers
Function
parse_partial_json
Parse a (potentially incomplete) JSON document, closing any open structures and trailing strings so the result is still valid JSON. Returns `Value::Nu
crates/ai/src/utils/json_parse.rs:11
↓ 10 callers
Function
promoting_action_hook
( template: Option<String>, require_approval: bool, )
crates/agent/tests/harness_e2e.rs:3011
↓ 10 callers
Method
set
Upsert an explicit `{source, name} -> enabled` override.
crates/coding-agent/src/skills_state.rs:54
↓ 10 callers
Method
stop_sync
Idempotent stop. Flips the flag, then synchronously emits the line-clear escape so any subsequent write by the caller lands on a clean line.
crates/coding-agent/src/spinner.rs:100
↓ 9 callers
Function
build_args
(name: &str, confirm: bool)
crates/coding-agent/src/tools/skill_builder.rs:465
↓ 9 callers
Function
build_client
Build a `reqwest::Client` honoring proxy env vars and pie-ai defaults.
crates/ai/src/utils/node_http_proxy.rs:19
↓ 9 callers
Function
current
(harness: &Arc<AgentHarness>)
crates/coding-agent/src/goal.rs:69
↓ 9 callers
Function
export_session
( session_path: &Path, output_path: &Path, exclude_triggers: bool, )
crates/coding-agent/src/session_archive.rs:115
↓ 9 callers
Function
get_env_api_key
(provider: &str)
crates/ai/src/env_api_keys.rs:30
↓ 9 callers
Method
get_leaf_id
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:163
↓ 9 callers
Method
is_aborted
(&self)
crates/ai/src/utils/retry.rs:34
↓ 9 callers
Method
name
(&self)
crates/coding-agent/src/commands.rs:311
↓ 9 callers
Method
parse
(s: &str)
crates/coding-agent/src/hooks.rs:583
↓ 9 callers
Function
plain_text
(lines: &[Line<'_>])
crates/coding-agent/src/ui/feed.rs:788
↓ 9 callers
Function
read_custom_entries
( storage: Arc<MemorySessionStorage>, kind: &str, )
crates/agent/tests/harness_e2e.rs:5024
↓ 9 callers
Function
resolve_builtins
Build the union of CLI-requested + config-requested built-in skills. `cli_requested` is treated as authoritative: an unknown name is an error returne
crates/coding-agent/src/builtin_skills.rs:74
↓ 9 callers
Function
response_text_or_abort
( resp: reqwest::Response, abort: Option<&CancellationToken>, )
crates/ai/src/utils/abort.rs:78
↓ 9 callers
Method
send_line
(&self, line: String)
crates/mcp/tests/client_fixture.rs:20
↓ 9 callers
Function
send_with_retry
Send a `reqwest::RequestBuilder` with retries. Internally uses `try_clone` to rebuild the request between attempts. For JSON / form / text bodies this
crates/ai/src/utils/retry.rs:42
↓ 9 callers
Function
start_with
( label: impl Into<String>, sink: Arc<dyn SpinnerSink>, enabled: bool, )
crates/coding-agent/src/spinner.rs:132
↓ 9 callers
Method
text
(text: impl Into<String>)
crates/ai/src/types.rs:269
↓ 9 callers
Function
unregister_ds4_default
()
crates/coding-agent/src/local_models.rs:184
↓ 8 callers
Function
allow_all_control_plane_hook
Auto-approve `on_control_plane_prompt` for tests that exercise tools whose `permission_classification` returns `Prompt` (issue #110 sub-PR 3 — `NewTri
crates/coding-agent/tests/dynamic_trigger_e2e.rs:51
↓ 8 callers
Function
append
Append a finding. Text is trimmed and capped at [`MAX_ENTRY_TEXT_CHARS`].
crates/coding-agent/src/inbox.rs:47
↓ 8 callers
Method
append_typed
(&self, entry: SessionTreeEntry)
crates/agent/src/harness/session/session.rs:434
↓ 8 callers
Method
build_context
(&self)
crates/agent/src/harness/session/session.rs:409
↓ 8 callers
Method
create_entry_id
(&self)
crates/agent/src/harness/session/jsonl_storage.rs:178
↓ 8 callers
Function
current_time_label
()
crates/coding-agent/src/ui/feed.rs:589
↓ 8 callers
Method
down
(&mut self)
crates/coding-agent/src/model_picker.rs:101
↓ 8 callers
Method
drain
(&mut self)
crates/agent/src/agent.rs:90
↓ 8 callers
Method
exec
(&self, command: &str, options: ExecOptions)
crates/agent/src/harness/env/native.rs:304
↓ 8 callers
Function
faux_model
()
crates/coding-agent/tests/dynamic_trigger_e2e.rs:56
↓ 8 callers
Function
frame
(payload_json: &str)
crates/ai/src/bedrock_anthropic.rs:337
↓ 8 callers
Method
ingest
Feed one event-stream EventMessage. Returns zero or more typed events. Returning `Ok(vec![])` is normal — many incoming frames don't need to be surfac
crates/ai/src/bedrock_anthropic.rs:59
↓ 8 callers
Function
list_models
()
crates/ai/src/models.rs:34
↓ 8 callers
Method
load_from_path
(&self, path: impl Into<PathBuf>)
crates/coding-agent/src/triggers/cron.rs:86
↓ 8 callers
Function
log
(msg: str)
examples/mcp-weather-python/weather-server.py:49
↓ 8 callers
Function
model_json
(provider: &str, id: &str, api: &str, base_url: &str)
crates/coding-agent/src/local_models.rs:188
↓ 8 callers
Method
move_to
Move the session leaf to a specific entry id (or root). When `summary` is provided, records a branch_summary entry so siblings see the fork's contribu
crates/agent/src/harness/agent_harness.rs:1616
↓ 8 callers
Method
push_plain_untimed
(&mut self, text: impl Into<String>, level: Level)
crates/coding-agent/src/ui/feed.rs:237
↓ 8 callers
Function
resolve_compat
(model: &Model)
crates/ai/src/providers/openai_responses.rs:44
↓ 8 callers
Method
spawn
Spawn the server, wire stdio, and start the read pump. Caller must then call [`Self::initialize`] before any other method.
crates/coding-agent/src/lsp.rs:69
↓ 8 callers
Method
tools_list
Fetch the server's tool catalog and cache it.
crates/mcp/src/client.rs:213
↓ 8 callers
Function
uuidv7
Mint a fresh UUIDv7 string (lowercase, hyphenated).
crates/agent/src/harness/session/uuid.rs:6
↓ 7 callers
Method
agentConnected
Reset per-connection state when a fresh agent socket attaches.
workers/fefe-hub/src/relay.ts:46
↓ 7 callers
Function
assistant_tool_call
(id: &str, name: &str, args: serde_json::Value)
crates/coding-agent/tests/dynamic_trigger_e2e.rs:355
↓ 7 callers
Function
build
Build a harness whose catalog is `seed` and whose `reload_skills_from_disk` re-derives the catalog from `seed` with the overlay at `base_dir` applied
crates/coding-agent/src/tools/set_skill_state.rs:377
↓ 7 callers
Function
build
Harness whose `reload_skills_from_disk` re-scans `<base>/skills` from disk (so a removed dir actually disappears from the reloaded catalog) and applie
crates/coding-agent/src/tools/remove_skill.rs:391
↓ 7 callers
Function
build_request_body
( model: &Model, context: &Context, options: &StreamOptions, compat: &Compat, )
crates/ai/src/providers/openai_responses.rs:570
↓ 7 callers
Function
dynamic_trigger_stream
()
crates/coding-agent/tests/dynamic_trigger_e2e.rs:215
↓ 7 callers
Method
enqueue_turn
(&mut self, job: QueuedTurn)
crates/coding-agent/src/ui/mod.rs:1090
↓ 7 callers
Function
env
()
crates/agent/src/harness/env/native.rs:512
↓ 7 callers
Method
evaluate
Evaluate a single tool call against the policy in the default [`PermissionCategory::Tool`] category. Preserved for backwards compatibility — new calle
crates/agent/src/harness/permission.rs:101
↓ 7 callers
Function
exec
( tool: &RemoveSkillTool, params: Value, )
crates/coding-agent/src/tools/remove_skill.rs:427
↓ 7 callers
Function
execute
( tool: &SkillBuilderTool, params: Value, )
crates/coding-agent/src/tools/skill_builder.rs:457
↓ 7 callers
Method
exists
(&self, path: &str, _cancel: CancellationToken)
crates/agent/src/harness/env/native.rs:212
↓ 7 callers
Method
input_text
(&self)
crates/coding-agent/src/ui/mod.rs:1344
↓ 7 callers
Method
is_closed
True when the consumer has dropped the stream. Providers can short-circuit on this.
crates/ai/src/utils/event_stream.rs:49
↓ 7 callers
Method
is_streaming
(&self)
crates/agent/src/agent.rs:146
↓ 7 callers
Method
list
(&self)
crates/agent/src/harness/prompt_templates.rs:27
↓ 7 callers
Function
load
Load the overlay. A missing file is an empty overlay; a malformed file is treated as empty (the disable/enable state simply isn't applied) rather than
crates/coding-agent/src/skills_state.rs:88
↓ 7 callers
Method
load_from_path
( &self, path: impl Into<PathBuf>, )
crates/coding-agent/src/triggers/dynamic.rs:75
↓ 7 callers
Method
matches
Completions for the current input. Returns matching `/command` strings when `line` is a bare slash token (`/`, `/he`, …) with no whitespace yet; other
crates/coding-agent/src/readline.rs:43
↓ 7 callers
Function
next_or_abort
( stream: &mut S, abort: Option<&CancellationToken>, )
crates/ai/src/utils/abort.rs:93
↓ 7 callers
Function
pair
()
crates/mcp/tests/client_fixture.rs:35
↓ 7 callers
Method
push
(&mut self, chunk: &[u8])
crates/mcp/src/http.rs:422
↓ 7 callers
Method
register_notification_hook
Register a [`super::notification_hook::NotificationHook`] with the harness. Spawns two detached tokio tasks: - **Driver**: calls `hook.run(sink)` and
crates/agent/src/harness/agent_harness.rs:1460
↓ 7 callers
Method
remove
( &self, path: &str, recursive: bool, _force: bool, _cancel: Cancellat
crates/agent/src/harness/env/native.rs:244
↓ 7 callers
Method
run
(&self, sink: TriggerSink)
crates/coding-agent/src/triggers/mcp_notification_hook.rs:122
↓ 7 callers
Method
storage_path
(&self)
crates/coding-agent/src/triggers/cron.rs:102
↓ 7 callers
Function
write_skill
(root: &Path, name: &str, description: &str, body: &str)
crates/coding-agent/tests/cli_skills.rs:63
↓ 6 callers
Method
abort
Abort the active run, if any. Subsequent calls are no-ops.
crates/agent/src/agent.rs:159
↓ 6 callers
Method
aliases
(&self)
crates/coding-agent/src/commands.rs:862
↓ 6 callers
Function
anthropic_model
(base_url: String)
crates/ai/tests/anthropic_sse_e2e.rs:39
↓ 6 callers
Function
attach_skill_prompt
(text: impl Into<String>, skill_name: Option<&str>)
crates/coding-agent/src/commands.rs:845
↓ 6 callers
Function
build_request_body
(context: &Context, options: &StreamOptions)
crates/ai/src/providers/google.rs:417
↓ 6 callers
Function
crc32
IEEE 802.3 CRC32 (polynomial 0xEDB88320). Hand-rolled with a 256-entry lookup table built at first use.
crates/ai/src/event_stream.rs:213
↓ 6 callers
Function
emit
(tx: &UnboundedSender<FeedUpdate>, text: impl Into<String>)
crates/coding-agent/src/debug.rs:83
↓ 6 callers
Function
exec
( tool: &SetSkillStateTool, params: Value, )
crates/coding-agent/src/tools/set_skill_state.rs:403
↓ 6 callers
Method
execute
( &self, _id: &str, params: Value, cancel: CancellationToken, _on_upda
crates/coding-agent/src/tools/bash.rs:64
← previous
next →
101–200 of 2,618, ranked by callers