Skip to content

feat: research inspection tools — export_jobs, get_cost_report, search_jobs#106

Merged
Gonzih merged 1 commit into
mainfrom
feat/research-inspection-tools
May 20, 2026
Merged

feat: research inspection tools — export_jobs, get_cost_report, search_jobs#106
Gonzih merged 1 commit into
mainfrom
feat/research-inspection-tools

Conversation

@Gonzih
Copy link
Copy Markdown
Owner

@Gonzih Gonzih commented May 20, 2026

Summary

  • export_jobs: Export job records as JSONL or JSON for statistical analysis (id, status, repo_url, task snippet, timestamps, exit_code, output_lines, score, duration_seconds). Supports days, format, and status filters.
  • get_cost_report: Longitudinal cost breakdown grouped by repo, day, or status. Returns total_usd, job_count, avg_cost_usd, avg_score per group — sorted by spend descending.
  • search_jobs: Full-text search over task prompts (case-insensitive). Returns matching jobs with a context snippet showing ±50 chars around the match.

All three tools read from the existing jobStore (Redis/disk) — no new dependencies, same pattern as cost_summary and list_jobs.

Test plan

  • 9 new tests added to src/index.test.ts covering all three tools and edge cases (empty results, format variants, missing query)
  • All 38 tests in src/index.test.ts pass
  • Pre-existing meta-agent.test.ts failures are unrelated (redis.del mock issue predating this PR)

🤖 Generated with Claude Code

…earch_jobs

Three new MCP tools for agentic systems researchers:
- export_jobs: JSONL/JSON trace export with day/status filtering
- get_cost_report: longitudinal cost breakdown grouped by repo, day, or status
- search_jobs: full-text search over task prompts with snippet context

All tools use the existing jobStore (Redis/disk) — no new dependencies.
9 new tests in index.test.ts, all passing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Gonzih Gonzih merged commit 5a9299a into main May 20, 2026
1 check failed
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