Skip to content

docs: add skills architecture reference and OpenCode resource comparison#19

Merged
pavelanni merged 1 commit into
mainfrom
docs/skills-architecture-and-resource-comparison
Apr 13, 2026
Merged

docs: add skills architecture reference and OpenCode resource comparison#19
pavelanni merged 1 commit into
mainfrom
docs/skills-architecture-and-resource-comparison

Conversation

@pavelanni
Copy link
Copy Markdown
Collaborator

@pavelanni pavelanni commented Apr 12, 2026

Summary

  • Add skills architecture reference doc capturing key insights from Barry Zhang & Mahesh Murag's Anthropic talk on building effective agents with tool-use patterns
  • Add OpenCode vs DocsClaw resource comparison showing DocsClaw's 9Mi memory footprint vs OpenCode's 487Mi on OpenShift

Context

These docs support the OCI-based skill distribution work planned in #4 by documenting the architectural rationale for the skills approach.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Added resource comparison documentation for agent deployments on OpenShift, including memory consumption analysis and performance metrics across different implementations
    • Added skills architecture reference guide documenting system design patterns, capabilities, and enhancement opportunities

Capture key arguments from Anthropic's "Don't Build Agents, Build
Skills Instead" talk (Barry Zhang & Mahesh Murag) that validate
DocsClaw's general-purpose agent + skills architecture. Add OpenCode
resource comparison showing 23x memory overhead (487Mi vs 9Mi) that
justifies building a Go-based agent for multi-instance OpenShift
deployments.

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Pavel Anni <panni@redhat.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 12, 2026

📝 Walkthrough

Walkthrough

Two new documentation files are added to record empirical resource comparisons between OpenCode and DocsClaw agents on OpenShift, and to establish an architectural reference for a skills-based agent design pattern using reusable domain-specific components and external connectivity.

Changes

Cohort / File(s) Summary
Documentation: Resource Comparison and Architecture Reference
docs/dev/2026-04-11-opencode-resource-comparison.md, docs/dev/2026-04-11-skills-architecture-reference.md
Added observational deployment data for OpenCode vs. DocsClaw on OpenShift (memory usage, OOMKilled events, filesystem permission corrections) and architectural guidance for skills-based agent design (core thesis, layer comparisons, current DocsClaw capabilities, enhancement opportunities).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the two main documentation additions in the changeset: a skills architecture reference and an OpenCode resource comparison.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/skills-architecture-and-resource-comparison

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@docs/dev/2026-04-11-opencode-resource-comparison.md`:
- Around line 34-38: The takeaway mixes baselines: it compares OpenCode (487Mi)
to "both DocsClaw instances combined" (21Mi) then projects 50 agents at ~10Mi
each (500Mi) which is inconsistent; pick one normalization (per-runtime,
per-skill-service pair, or shared-service topology), update the math
consistently, and recompute the 50-agent estimate using the chosen baseline
(adjust the 487Mi vs 21Mi comparison accordingly), then revise the sentence(s)
mentioning OpenCode, DocsClaw, and the 50-agent total so the numbers and
baseline are internally consistent.
- Around line 58-59: The line "Full evaluation report: external experiment at
`~/work/experiments/opencode/REPORT.md`" uses a local filesystem path that
reviewers can't access; replace that literal local path with a repo-relative
path or a permanent URL (e.g., a link to the REPORT.md checked into the
repository or an external permalink) so the report is accessible to others, and
update the Markdown link text accordingly to point to the new location.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 28e5d76c-0ec7-4926-ae18-0f3e90cf95ae

📥 Commits

Reviewing files that changed from the base of the PR and between 210f827 and e55e0ad.

📒 Files selected for processing (2)
  • docs/dev/2026-04-11-opencode-resource-comparison.md
  • docs/dev/2026-04-11-skills-architecture-reference.md

Comment on lines +34 to +38
OpenCode uses **~23x more memory** than both DocsClaw instances
combined (487Mi vs 21Mi). For deploying multiple specialized agents
for business users on OpenShift, the Go-based approach is significantly
more efficient. A cluster running 50 specialized DocsClaw agents would
use roughly 500Mi total — about the same as a single OpenCode instance.
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Inconsistent capacity math in the takeaway section

Lines 34-38 mix two different baselines: you compare OpenCode to both DocsClaw components combined (21Mi), but then project 50 agents using ~10Mi each (500Mi). This can materially skew deployment planning. Please normalize the model (either per-runtime, per-skill-service pair, or shared-service topology) and recompute the 50-agent estimate accordingly.

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/dev/2026-04-11-opencode-resource-comparison.md` around lines 34 - 38,
The takeaway mixes baselines: it compares OpenCode (487Mi) to "both DocsClaw
instances combined" (21Mi) then projects 50 agents at ~10Mi each (500Mi) which
is inconsistent; pick one normalization (per-runtime, per-skill-service pair, or
shared-service topology), update the math consistently, and recompute the
50-agent estimate using the chosen baseline (adjust the 487Mi vs 21Mi comparison
accordingly), then revise the sentence(s) mentioning OpenCode, DocsClaw, and the
50-agent total so the numbers and baseline are internally consistent.

Comment on lines +58 to +59
Full evaluation report: external experiment at
`~/work/experiments/opencode/REPORT.md`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor

Replace local filesystem source path with a repo/URL-accessible reference

Line 59 points to ~/work/experiments/opencode/REPORT.md, which is not accessible to reviewers or future maintainers. Use a repository-relative path or a permanent URL so readers can validate the measurements.

As per coding guidelines, "Focus on major issues impacting performance, readability, maintainability and security."

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@docs/dev/2026-04-11-opencode-resource-comparison.md` around lines 58 - 59,
The line "Full evaluation report: external experiment at
`~/work/experiments/opencode/REPORT.md`" uses a local filesystem path that
reviewers can't access; replace that literal local path with a repo-relative
path or a permanent URL (e.g., a link to the REPORT.md checked into the
repository or an external permalink) so the report is accessible to others, and
update the Markdown link text accordingly to point to the new location.

@pavelanni pavelanni merged commit 1449249 into main Apr 13, 2026
3 checks passed
@pavelanni pavelanni deleted the docs/skills-architecture-and-resource-comparison branch April 13, 2026 19:07
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.

1 participant