Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .changeset/remove-git-analytics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
"@lytics/dev-agent-cli": minor
"@lytics/dev-agent-core": patch
"@lytics/dev-agent": patch
---

Remove git analytics commands to refocus on semantic value

**BREAKING CHANGES:**

- Remove `dev owners` command - use `git log` or GitHub contributors instead
- Remove `dev activity` command - use `git log --since` for activity analysis

**What's Changed:**

- Removed 891 lines from `dev owners` command
- Removed 175 lines from `dev activity` command
- Cleaned up dead code in `change-frequency.ts` (calculateFileAuthorContributions)
- Simplified metrics collection to focus on code structure introspection

**What's Kept:**

- `code_metadata` table for debugging/introspection of indexed code
- `calculateChangeFrequency` for `dev_map` MCP tool (shows commit activity in codebase structure)

**Why:**

Dev-agent's unique value is semantic search (embeddings + AST), not git analytics which GitHub/git already provide. This change reduces complexity by ~1,200 lines and refocuses on MCP tools for AI context.

**Migration:**

For contributor/ownership analytics, use:
- `git log --format="%ae" <path> | sort | uniq -c | sort -rn` for ownership
- `git log --since="1 month" --name-only | sort | uniq -c | sort -rn` for activity
- GitHub's Contributors page for visualization

4 changes: 0 additions & 4 deletions packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import chalk from 'chalk';
import { Command } from 'commander';
import { activityCommand } from './commands/activity.js';
import { cleanCommand } from './commands/clean.js';
import { compactCommand } from './commands/compact.js';
import { dashboardCommand } from './commands/dashboard.js';
Expand All @@ -13,7 +12,6 @@ import { indexCommand } from './commands/index.js';
import { initCommand } from './commands/init.js';
import { mapCommand } from './commands/map.js';
import { mcpCommand } from './commands/mcp.js';
import { ownersCommand } from './commands/owners.js';
import { planCommand } from './commands/plan.js';
import { searchCommand } from './commands/search.js';
import { statsCommand } from './commands/stats.js';
Expand Down Expand Up @@ -42,8 +40,6 @@ program.addCommand(gitCommand);
program.addCommand(mapCommand);
program.addCommand(updateCommand);
program.addCommand(statsCommand);
program.addCommand(ownersCommand);
program.addCommand(activityCommand);
program.addCommand(dashboardCommand);
program.addCommand(compactCommand);
program.addCommand(cleanCommand);
Expand Down
174 changes: 0 additions & 174 deletions packages/cli/src/commands/activity.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/cli/src/commands/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ export const indexCommand = new Command('index')
'documents',
embeddingStartTime
);
} else {
// Scanning phase
} else if (progress.phase === 'scanning') {
// Scanning phase - show file progress
progressRenderer.updateSectionWithRate(
progress.filesProcessed,
progress.totalFiles,
Expand Down
Loading