Skip to content

[1/5] Support remote project skills#11459

Merged
moirahuang merged 5 commits into
masterfrom
moira/skills
May 29, 2026
Merged

[1/5] Support remote project skills#11459
moirahuang merged 5 commits into
masterfrom
moira/skills

Conversation

@moirahuang
Copy link
Copy Markdown
Contributor

@moirahuang moirahuang commented May 21, 2026

Description

PR 1/5 of the remote-aware skills stack.

This PR is largely just rewiring to represent skill identity using LocalOrRemotePath through common skill management logic so remote skills remain distinguishable by host, while retaining local/remote branching only at concrete boundaries. This layer also consolidates task message conversion context to avoid expanding task update call signatures.

Plan: https://staging.warp.dev/drive/notebook/EAngN0Hb9BqY5WiPMTXFV5
Agent run: https://staging.warp.dev/conversation/88702634-8ffe-46a4-b868-1efae92630eb

Linked Issue

  • The linked issue is labeled ready-to-spec or ready-to-implement.
  • Where appropriate, screenshots or a short video of the implementation are included below (especially for user-visible or UI changes).

Testing

  • cargo fmt --manifest-path Cargo.toml -p warp_util -p ai -p warp

  • cargo test -p warp active_skill_by_reference --lib

  • Full workspace clippy was started on the cumulative stack tip but not completed before submission.

  • I have manually tested my changes locally with ./script/run

Agent Mode

  • Warp Agent Mode - This PR was created via Warp's AI Agent Mode

Co-Authored-By: Oz oz-agent@warp.dev

@cla-bot cla-bot Bot added the cla-signed label May 21, 2026
Copy link
Copy Markdown
Contributor Author

moirahuang commented May 21, 2026

return;
};
let repo_metadata = RepoMetadataModel::as_ref(ctx);
let skill_paths = find_skill_files_in_tree(repo_id, repo_metadata, ctx);
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lmk if this approach makes sense to get the remote skills scan_remote_repository_for_skills -> find_skill_files_in_tree -> spawn_read_remote_skills

@moirahuang moirahuang marked this pull request as ready for review May 21, 2026 18:56
@moirahuang moirahuang requested a review from kevinyang372 May 21, 2026 18:56
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 21, 2026

@moirahuang

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR threads LocalOrRemotePath through skill discovery/invocation and adds remote project skill hydration from remote repo metadata.

Concerns

  • Remote project skills are only scanned on the initial remote repository update; later remote file-tree updates and repository removals are ignored, so the skill cache can become stale.
  • Remote skill hydration reads every discovered remote SKILL.md without a cumulative batch limit.

Security

  • The remote skill-content read has no cumulative byte budget, allowing a repository with many large skill files to drive unbounded network and memory work during metadata updates.

Verdict

Found: 0 critical, 2 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread app/src/ai/skills/file_watchers/skill_watcher.rs Outdated
Comment thread app/src/ai/skills/file_watchers/skill_watcher.rs Outdated
Comment thread app/src/ai/agent/api/convert_from.rs Outdated
Comment thread app/src/ai/blocklist/block/view_impl/output.rs Outdated
Comment thread app/src/ai/blocklist/block/view_impl/output.rs Outdated
Comment thread app/src/ai/blocklist/inline_action/code_diff_view.rs Outdated
Comment thread app/src/ai/skills/file_watchers/skill_watcher.rs Outdated
Comment thread app/src/ai/skills/file_watchers/skill_watcher.rs Outdated
@moirahuang moirahuang changed the base branch from master to graphite-base/11459 May 22, 2026 23:45
@moirahuang moirahuang changed the base branch from graphite-base/11459 to moira/skills-acquisition-repometadata May 22, 2026 23:46
@moirahuang moirahuang force-pushed the moira/skills-acquisition-repometadata branch from 565ce4b to 809eb44 Compare May 27, 2026 23:10
Base automatically changed from moira/skills-acquisition-repometadata to master May 28, 2026 19:12
@moirahuang moirahuang changed the title Support remote project skills Use local-or-remote locations for skills May 29, 2026
@moirahuang moirahuang changed the title Use local-or-remote locations for skills [1/5] Support remote project skills May 29, 2026
@moirahuang moirahuang requested a review from oz-agent May 29, 2026 17:31
@oz-for-oss
Copy link
Copy Markdown
Contributor

oz-for-oss Bot commented May 29, 2026

@moirahuang

I'm starting a first review of this pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown
Contributor

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR rewires skill identity to carry LocalOrRemotePath through skill management, API conversion, and related action/UI paths so remote project skills can remain distinguishable by host.

Concerns

  • This changes user-facing skill discovery, invocation, and open-skill flows, but the PR description does not include screenshots or a screen recording demonstrating the behavior end to end. Please attach visual evidence for the local and remote skill UI path before merging.

Verdict

Found: 0 critical, 1 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Co-Authored-By: Oz <oz-agent@warp.dev>
Comment thread app/src/ai/skills/global_skills.rs Outdated
Comment thread app/src/ai/skills/global_skills.rs Outdated
Comment thread crates/ai/src/skills/parse_skill.rs Outdated
moirahuang and others added 2 commits May 29, 2026 14:53
@moirahuang moirahuang enabled auto-merge (squash) May 29, 2026 22:08
@moirahuang moirahuang merged commit a79721a into master May 29, 2026
26 checks passed
@moirahuang moirahuang deleted the moira/skills branch May 29, 2026 23:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants