Skip to content

feat(agent): copy workspace skills into image#52

Merged
feloy merged 1 commit into
mainfrom
skills
Jun 2, 2026
Merged

feat(agent): copy workspace skills into image#52
feloy merged 1 commit into
mainfrom
skills

Conversation

@feloy

@feloy feloy commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Adds skills_dir() to the Agent trait so each agent declares where skills are loaded from (/sandbox/.claude/skills for Claude, /sandbox/.opencode/skills for OpenCode). Skills listed under workspace.json "skills" are staged to the build context and COPYed into the agent's skills directory during image build, owned by sandbox. Agents without a skills_dir (or builds with no --agent) skip the step silently.

Also adds README documentation and integration tests for the feature.

Closes #51

Adds skills_dir() to the Agent trait so each agent declares where
skills are loaded from (/sandbox/.claude/skills for Claude,
/sandbox/.opencode/skills for OpenCode). Skills listed under
workspace.json "skills" are staged to the build context and COPYed
into the agent's skills directory during image build, owned by
sandbox. Agents without a skills_dir (or builds with no --agent) skip
the step silently.

Also adds README documentation and integration tests for the feature.

Closes #51

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Philippe Martin <phmartin@redhat.com>
@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 91.97080% with 22 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (main@1c02fbc). Learn more about missing BASE report.

Files with missing lines Patch % Lines
src/main.rs 81.81% 22 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main      #52   +/-   ##
=======================================
  Coverage        ?   84.97%           
=======================================
  Files           ?       16           
  Lines           ?     2237           
  Branches        ?        0           
=======================================
  Hits            ?     1901           
  Misses          ?      336           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@feloy feloy merged commit f475020 into main Jun 2, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

copy skills defined in workspace.json to image

1 participant