Skip to content

Dev - #25

Merged
rekabytes merged 2 commits into
mainfrom
dev
Mar 11, 2026
Merged

Dev#25
rekabytes merged 2 commits into
mainfrom
dev

Conversation

@rekabytes

@rekabytes rekabytes commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Implemented XP carry-over mechanics for leveling progression across all agents.
    • Added comprehensive Level-Up Rules with cumulative XP thresholds for Novice to Grandmaster progression.
  • Bug Fixes

    • Improved error handling for corrupted XP data; system now gracefully handles and reports issues instead of crashing.
    • Enhanced security with SHA-256 file hashing.
  • Documentation

    • Expanded agent documentation with level-specific focus areas and progression guidance.

- Wrap all JSON.parse calls in merge.js and stats.js with try/catch
  to give friendly error messages when xp.json is corrupted
- Replace MD5 with SHA-256 in hashFile() for file change detection
- Update README to reflect all 4 agents and current v1.3.2 state
…nd skills

Agents on fresh installs had no instruction to reset XP on level-up or carry overflow forward. Also corrects the Level Thresholds table in all 4 agent files from cumulative XP to per-level XP to match xp.json.
@rekabytes
rekabytes merged commit 23f95ec into main Mar 11, 2026
2 of 3 checks passed
@coderabbitai

coderabbitai Bot commented Mar 11, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 999dc4eb-d9c3-431c-9f70-3f7cbf3071ff

📥 Commits

Reviewing files that changed from the base of the PR and between 6f92e16 and 2bd807a.

📒 Files selected for processing (12)
  • README.md
  • package.json
  • src/merge.js
  • src/stats.js
  • templates/agents/code-review.md
  • templates/agents/docs.md
  • templates/agents/security.md
  • templates/agents/testing.md
  • templates/skills/code-review/SKILL.md
  • templates/skills/docs/SKILL.md
  • templates/skills/security/SKILL.md
  • templates/skills/testing/SKILL.md

📝 Walkthrough

Walkthrough

This PR updates the XP progression system across agent and skill templates with a mandatory Level-Up Rule featuring carry-over mechanics and revised thresholds. It enhances code robustness with defensive JSON parsing in merge and stats modules, upgrades file hashing from MD5 to SHA-256, expands README documentation of the OpenCode XP system, and bumps the package version to 1.3.3.

Changes

Cohort / File(s) Summary
Documentation & Metadata
README.md, package.json
README significantly expanded with OpenCode XP system, agent framework descriptions, level thresholds, XP awards, and CLI reference sections; version bumped to 1.3.3.
Core Robustness Enhancements
src/merge.js, src/stats.js
Added defensive try-catch blocks around JSON.parse calls for xp.json files; MD5 hashing in merge.js switched to SHA-256 for improved security; both changes prevent unhandled exceptions on corrupted or unreadable files.
Agent Templates - XP Progression
templates/agents/code-review.md, templates/agents/docs.md, templates/agents/security.md, templates/agents/testing.md
Updated Level Thresholds table headers and values to cumulative "XP to Next Level" format; introduced mandatory Level-Up Rule sections detailing carry-over calculation, level/title updates, and persistence; expanded Level-Specific Focus sections with unlocks tables for levels 1–6.
Skill Templates - XP Rules
templates/skills/code-review/SKILL.md, templates/skills/docs/SKILL.md, templates/skills/security/SKILL.md, templates/skills/testing/SKILL.md
Added mandatory Level-Up Rule (MANDATORY) sections to each SKILL.md, detailing XP carry-over mechanics, level increment, title updates, and JSON persistence; includes worked examples and support for chained level-ups; inserted in multiple locations (XP progression and Fix-First Process sections).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

Poem

🐰 Levels leap with carry-over care,
SHA-256 hashes everywhere!
JSON guarded 'gainst corruption's snare,
XP chains ascend the stair.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dev

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.

@coderabbitai coderabbitai Bot mentioned this pull request Mar 11, 2026
Merged
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