Home

giogio / openez-graph

public
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

feat: add mandatory code search rules and token savings tracking

3 months ago

4f95309
Authored
asta-nguyen8/2/2026, 5:46:33 AM
Add comprehensive code search guidelines to AGENTS.md specifying when to use OpenEZ MCP tools vs native file operations. Implement token savings metrics tracking in query_logs table with tokens_returned, tokens_saved, and files_scanned columns. Add metrics API endpoint and UI components displaying aggregate token savings and recent query performance on dashboard and workspace detail pages. Update retrieval logic to compute

Parentfbcad4f

12 files changed
  • AGENTS.md+29−0
  • apps/web/src/lib/api.ts+21−0
  • apps/web/src/lib/queries.ts+7−0
  • apps/web/src/routes/index.tsx+58−2
  • apps/web/src/routes/workspaces/$workspaceId/index.tsx+58−0
  • apps/web/src/server/index.ts+30−1
  • apps/web/src/server/sqlite.ts+63−0
  • packages/core/src/retrieval.ts+9−1
  • packages/db/src/sqlite/repository.ts
+2
−2
  • packages/db/src/sqlite/schema.ts+3−0
  • packages/db/src/sqlite/types.ts+1−1
  • packages/db/src/sqlite/workspace-db.ts+3−0