Date: 2025-11-26
Status: ✅ Complete
evals/framework/
├── check-agent.mjs
├── debug-claude-session.mjs
├── debug-session.mjs
├── debug-session.ts
├── inspect-session.mjs
├── run-tests-batch.sh
├── test-agent-direct.ts
├── test-event-inspector.js
├── test-session-reader.mjs
├── test-simplified-approach.mjs
├── test-timeline.ts
├── verify-timeline.ts
└── ... (other framework files)
Issues:
evals/framework/
├── scripts/
│ ├── debug/ # Debugging scripts (4 files)
│ │ ├── debug-session.mjs
│ │ ├── debug-session.ts
│ │ ├── debug-claude-session.mjs
│ │ └── inspect-session.mjs
│ │
│ ├── test/ # Test scripts (6 files)
│ │ ├── test-agent-direct.ts
│ │ ├── test-event-inspector.js
│ │ ├── test-session-reader.mjs
│ │ ├── test-simplified-approach.mjs
│ │ ├── test-timeline.ts
│ │ └── verify-timeline.ts
│ │
│ ├── utils/ # Utility scripts (2 files)
│ │ ├── run-tests-batch.sh
│ │ └── check-agent.mjs
│ │
│ └── README.md # Script documentation
│
└── ... (other framework files)
Benefits:
Scripts for debugging sessions, events, and agent behavior.
| Script | Purpose | Lines |
|---|---|---|
debug-session.mjs |
Debug session data and timeline | ~40 |
debug-session.ts |
TypeScript version of session debugger | ~100 |
debug-claude-session.mjs |
Debug Claude-specific sessions | ~50 |
inspect-session.mjs |
Inspect most recent session events | ~80 |
Usage:
node scripts/debug/inspect-session.mjs
node scripts/debug/debug-session.mjs <session-id>
npx tsx scripts/debug/debug-session.ts <session-id>
Scripts for testing framework components during development.
| Script | Purpose | Lines |
|---|---|---|
test-agent-direct.ts |
Direct agent execution test | ~150 |
test-event-inspector.js |
Test event capture system | ~40 |
test-session-reader.mjs |
Test session reader | ~60 |
test-simplified-approach.mjs |
Test simplified test approach | ~100 |
test-timeline.ts |
Test timeline builder | ~90 |
verify-timeline.ts |
Verify timeline accuracy | ~100 |
Usage:
npx tsx scripts/test/test-agent-direct.ts
node scripts/test/test-event-inspector.js
npx tsx scripts/test/verify-timeline.ts
General utility scripts for running tests and managing the framework.
| Script | Purpose | Lines |
|---|---|---|
run-tests-batch.sh |
Run tests in batches | ~100 |
check-agent.mjs |
Check agent availability | ~30 |
Usage:
./scripts/utils/run-tests-batch.sh openagent 3 10
node scripts/utils/check-agent.mjs
evals/README.md
run-tests-batch.sh path referencesevals/GETTING_STARTED.md
evals/agents/openagent/README.md
evals/agents/openagent/IMPLEMENTATION_SUMMARY.md
evals/DOCUMENTATION_CLEANUP.md
evals/framework/README.md
evals/framework/scripts/README.md (NEW - 200 lines)
| Old Path | New Path |
|---|---|
run-tests-batch.sh |
scripts/utils/run-tests-batch.sh |
check-agent.mjs |
scripts/utils/check-agent.mjs |
debug-session.mjs |
scripts/debug/debug-session.mjs |
debug-session.ts |
scripts/debug/debug-session.ts |
debug-claude-session.mjs |
scripts/debug/debug-claude-session.mjs |
inspect-session.mjs |
scripts/debug/inspect-session.mjs |
test-agent-direct.ts |
scripts/test/test-agent-direct.ts |
test-event-inspector.js |
scripts/test/test-event-inspector.js |
test-session-reader.mjs |
scripts/test/test-session-reader.mjs |
test-simplified-approach.mjs |
scripts/test/test-simplified-approach.mjs |
test-timeline.ts |
scripts/test/test-timeline.ts |
verify-timeline.ts |
scripts/test/verify-timeline.ts |
If you have scripts or documentation referencing the old paths:
# Old
./run-tests-batch.sh openagent 3 10
# New
./scripts/utils/run-tests-batch.sh openagent 3 10
If you have custom scripts importing from these files:
// Old
import { SessionReader } from './dist/collector/session-reader.js';
// New (from scripts directory)
import { SessionReader } from '../../dist/collector/session-reader.js';
Determine category:
scripts/debug/scripts/test/scripts/utils/Create script in appropriate directory
Update scripts/README.md:
Test the script:
npm run build
node scripts/debug/my-script.mjs
Delete the script file
Update scripts/README.md:
Check for references:
rg "my-script" --type md
Make changes to script
Test changes:
npm run build
node scripts/debug/my-script.mjs
Update documentation if usage changed
Add more debug scripts
Add more test scripts
Add more utilities
✅ 12 scripts organized into 3 categories
✅ Framework root cleaned (0 scripts remaining)
✅ Comprehensive documentation (200+ lines)
✅ All references updated (6 files)
✅ Clear structure for future additions
Organization is now:
Organization Completed: 2025-11-26
Scripts Organized: 12
Documentation Created: 1 README (200+ lines)
Files Updated: 6