Skip to content

docs: update AGENTS.md and README.md to match current architecture#22

Merged
starknetdev merged 1 commit intonextfrom
docs/update-agents-and-readme
Jan 29, 2026
Merged

docs: update AGENTS.md and README.md to match current architecture#22
starknetdev merged 1 commit intonextfrom
docs/update-agents-and-readme

Conversation

@starknetdev
Copy link
Member

Summary

  • Fix build/test commands: replace non-existent packages/test_starknet path with correct snforge test -p <package> syntax
  • Fix CI matrix fuzzer runs in AGENTS.md: token=32 (was 50), minigame=64 (was 256)
  • Add callback system (IMetagameCallback) to architecture diagrams and game lifecycle docs
  • Add missing packages to README: leaderboard, registry, tokenomics, presets, interfaces, and testing infrastructure
  • Update deployment scripts section: add deploy_stream_token_factory.sh, remove empty create_objectives.sh
  • Add Registry relationship to MinigameToken architecture (multi-game mode)

Test plan

  • Documentation-only changes, no code modified

🤖 Generated with Claude Code

- Fix build/test commands: replace non-existent `packages/test_starknet`
  with correct `snforge test -p <package>` syntax
- Fix CI matrix fuzzer runs: token=32, minigame=64 (not 50/256)
- Add callback system to architecture diagrams and lifecycle docs
- Add missing packages to README: leaderboard, registry, tokenomics,
  presets, interfaces, testing infrastructure
- Add deploy_stream_token_factory.sh, remove empty create_objectives.sh
  from scripts section
- Add Registry to MinigameToken architecture (multi-game mode)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Jan 29, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

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.

@claude
Copy link

claude bot commented Jan 29, 2026

Claude finished @starknetdev's task —— View job


PR Review: Documentation Updates

Todo List:

  • Read and analyze AGENTS.md changes
  • Read and analyze README.md changes
  • Verify build/test commands are accurate
  • Check CI matrix information against workflow files
  • Review architecture documentation updates
  • Provide comprehensive feedback

Review Summary

This is a well-structured documentation update that addresses several important issues. The changes are accurate and improve the overall quality of the documentation.

Positive Changes

1. Corrected Build/Test Commands (AGENTS.md:32-34, README.md:74-78)

  • Fixed: Replaced non-existent packages/test_starknet path references with correct snforge test -p <package> syntax
  • Impact: Users can now actually run the documented commands successfully

2. Accurate CI Matrix Information (AGENTS.md:107-116)

  • Fixed: Updated fuzzer runs to match actual CI configuration:
    • token: 32 (was 50) ✅
    • minigame: 64 (was 256) ✅
  • Verified: All values now match .github/workflows/test.yml:140,143

3. Enhanced Architecture Documentation

  • Added: IMetagameCallback system to architecture diagram (AGENTS.md:62, README.md:52)
  • Added: Registry relationship in multi-game mode (README.md:36)
  • Improved: Game lifecycle now explains callback dispatch mechanism

4. Comprehensive Package Documentation (README.md:147-197)

  • Added: Missing packages (interfaces, leaderboard, registry, tokenomics, presets, testing)
  • Organized: Clear categorization between core components and supporting packages
  • Detailed: Each package now has clear purpose and usage information

5. Updated Deployment Scripts Section (README.md:255-270)

  • Added: deploy_stream_token_factory.sh (verified exists in filesystem)
  • Accurate: All listed scripts exist and are properly documented

🔍 Technical Accuracy Verification

CI Configuration Consistency

  • Matrix count: 8 packages in .github/workflows/test.yml
  • Codecov config: after_n_builds: 8 in codecov.yml
  • AGENTS.md table: Lists 8 packages with correct fuzzer runs
  • All configurations are synchronized

Script References

  • Verified: All deployment scripts referenced in README exist in scripts/ directory
  • Note: create_objectives.sh still exists but was removed from documentation (reasonable as it may be empty/deprecated)

📝 Minor Suggestions

  1. AGENTS.md Line 102: The comment states "9" builds but should be "8" to match the actual configuration:

    after_n_builds: 9 # ← Must equal total package count in matrix

    Should be:

    after_n_builds: 8 # ← Must equal total package count in matrix
  2. Architecture Diagram Consistency: The ASCII diagrams in both files are slightly different but both are correct for their context. This is acceptable.

🎯 Overall Assessment

  • Code Quality: ✅ Documentation-only changes, well-structured
  • Accuracy: ✅ All technical details verified against actual codebase
  • Completeness: ✅ Addresses all missing documentation gaps
  • Consistency: ✅ Information synchronized across files and with CI configuration
  • No Security Concerns: ✅ Documentation-only changes
  • Test Coverage: N/A - Documentation-only PR

Recommendation: APPROVE

This PR significantly improves the documentation quality and removes several pain points for developers trying to use the documented commands. All technical details have been verified for accuracy.


@gemini-code-assist
Copy link

Summary of Changes

Hello @starknetdev, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request focuses on comprehensively updating the project's documentation, specifically AGENTS.md and README.md, to accurately reflect the current architecture, development workflows, and component structure. The changes ensure that build and test instructions are up-to-date, new architectural elements like the IMetagameCallback are properly described, and all relevant packages are documented, providing a clearer and more complete understanding of the system for developers.

Highlights

  • Documentation Updates for Build and Test Commands: The documentation in AGENTS.md and README.md has been updated to reflect the current snforge usage, specifically transitioning to package-specific test commands like snforge test -p <package_name>.
  • CI Matrix Fuzzer Run Adjustments: The fuzzer run counts for game_components_minigame and game_components_token have been adjusted in the CI matrix documentation within AGENTS.md.
  • Introduction of IMetagameCallback System: A new IMetagameCallback system has been introduced and documented, enhancing the game lifecycle and architecture diagrams in both AGENTS.md and README.md to include automatic callback dispatch.
  • Expanded Package Documentation in README.md: The README.md now includes comprehensive descriptions for several previously undocumented core and supporting packages, such as Leaderboard, Registry, Tokenomics, Presets, Interfaces, and Testing Infrastructure.
  • Revised Deployment Script Documentation: The deployment script section in README.md has been updated to include deploy_stream_token_factory.sh and remove the outdated create_objectives.sh.
  • Clarified MinigameToken Architecture: The MinigameToken architecture diagram in README.md has been updated to explicitly show its relationship with the Registry for multi-game mode support.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request provides a comprehensive update to the project's documentation, primarily in AGENTS.md and README.md. The changes accurately reflect the current architecture, including the new callback system, updated package structure, and revised build/test commands. The documentation is now more complete and aligned with the codebase. I have one suggestion to improve the consistency of the package descriptions in the README.md file.

Comment on lines +195 to +196
- **`testing`**: Shared test constants and addresses
- **`test_common`**: Shared mock contracts and example implementations

Choose a reason for hiding this comment

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

medium

For consistency with other package descriptions in this section (e.g., Utils), consider adding the package paths to the testing and test_common list items. This would make it clearer where to find these packages in the repository structure.

Suggested change
- **`testing`**: Shared test constants and addresses
- **`test_common`**: Shared mock contracts and example implementations
- **`testing`** (`packages/testing/`): Shared test constants and addresses
- **`test_common`** (`packages/test_common/`): Shared mock contracts and example implementations

@codecov
Copy link

codecov bot commented Jan 29, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@starknetdev starknetdev merged commit a979d85 into next Jan 29, 2026
16 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.

1 participant