Skip to content

Move CLAUDE.md contents to AGENTS.md#2888

Open
pdrobnjak wants to merge 6 commits intopd/benchmark-profiling-improvementsfrom
pd/move-to-agents-for-agentic-context
Open

Move CLAUDE.md contents to AGENTS.md#2888
pdrobnjak wants to merge 6 commits intopd/benchmark-profiling-improvementsfrom
pd/move-to-agents-for-agentic-context

Conversation

@pdrobnjak
Copy link
Contributor

@pdrobnjak pdrobnjak commented Feb 13, 2026

Summary

  • Created AGENTS.md files alongside each CLAUDE.md (root, benchmark/, giga/tests/) containing the original instructions
  • Replaced each CLAUDE.md with a reference to its co-located AGENTS.md
  • AGENTS.md is recognized by multiple agentic coding tools, making context available beyond just Claude Code

Test plan

  • Verify AGENTS.md files contain correct content in each directory
  • Verify CLAUDE.md files reference their respective AGENTS.md

🤖 Generated with Claude Code

pdrobnjak and others added 4 commits February 13, 2026 15:19
Baseline: 8600 TPS median with GIGA_EXECUTOR=true GIGA_OCC=true.

Key findings:
- CacheMultiStore snapshot allocation is #1 target (15 GB, 27% of function)
- cachekv.NewStore creates 9 GB of sync.Map objects per 30s sample
- GC overhead (~24% CPU) is driven by allocation pressure
- Lock contention (30.7% CPU) partially secondary to GC/alloc

Candidate optimizations: sync.Pool for cachekv.Store, lazy per-store
creation, replace sync.Map with regular map in giga path, cache
block-level constants.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace per-tx cachekv.Store allocation with sync.Pool recycling for both
standard and giga variants. Add CacheMultiStore.Release() and ReleaseDB()
to return stores to pools at lifecycle boundaries (Cleanup,
RevertToSnapshot, CleanupForTracer). Release replaced stores in
SetKVStores/SetGigaKVStores and unused db store in OCC scheduler.

Reset() replaces sync.Map fields with fresh instances (not Clear(), which
is slower due to internal trie node walking and causes more allocations
when repopulated).

Targeting the #1 flat allocator from profiling: cachekv.NewStore at
9 GB / 157M objects over 30s at 8600 TPS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CLAUDE.md is only read by Claude Code, while AGENTS.md is recognized by
multiple agentic coding tools. Each CLAUDE.md now references its
co-located AGENTS.md so the context is available to all agents.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link

github-actions bot commented Feb 13, 2026

The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedFeb 13, 2026, 3:33 PM

Instructs agents to always keep content in AGENTS.md files and only
references in CLAUDE.md files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@pdrobnjak pdrobnjak changed the base branch from main to pd/benchmark-profiling-improvements February 13, 2026 15:25
@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.17%. Comparing base (d22930c) to head (39b8378).
⚠️ Report is 1 commits behind head on pd/benchmark-profiling-improvements.

Additional details and impacted files

Impacted file tree graph

@@                           Coverage Diff                           @@
##           pd/benchmark-profiling-improvements    #2888      +/-   ##
=======================================================================
- Coverage                                57.20%   57.17%   -0.03%     
=======================================================================
  Files                                     2091     2091              
  Lines                                   171173   171173              
=======================================================================
- Hits                                     97912    97861      -51     
- Misses                                   64551    64602      +51     
  Partials                                  8710     8710              
Flag Coverage Δ
sei-chain 52.62% <ø> (-0.04%) ⬇️
sei-cosmos 48.16% <ø> (+<0.01%) ⬆️
sei-db 68.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 42 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant