Skip to content

Latest commit

 

History

History
74 lines (59 loc) · 3.58 KB

camp_leverage.md

File metadata and controls

74 lines (59 loc) · 3.58 KB

camp leverage

Compute leverage scores for a repository or camp

Synopsis

Compute productivity leverage scores by comparing scc COCOMO estimates against actual development effort.

Leverage score measures how much more output you produce versus what traditional estimation models predict for the same team and time.

FullLeverage = (EstimatedPeople x EstimatedMonths) / (ActualPeople x ElapsedMonths) SimpleLeverage = EstimatedPeople / ActualPeople

Pass a repository path for a read-only report without initializing a camp. The default view is a repository summary; --author selects personal leverage, and --by-author shows surviving line ownership by contributor. All three views support --json. Ignore rules used by scc also control contributor attribution. Uncommitted lines are accounted for separately. Commit spans estimate effort; they do not measure hours worked or AI use.

Camp-wide aggregate leverage commands commit the data they write under .campaign/leverage so the score history stays versioned without extra steps. Nothing outside that directory is staged. Pass --no-commit to skip it once, or run 'camp leverage config --autocommit=false' to turn it off for the camp.

Examples: camp leverage Show team leverage (auto-detect authors from git) camp leverage --author lance@example.com Show personal leverage camp leverage --project camp Show score for specific project camp leverage --json Output as JSON camp leverage --people 2 Override team size camp leverage --verbose Show diagnostic details camp leverage . Score current directory only camp leverage /repo --by-author Show repository contributors camp leverage /repo --author alice@co Show personal repository leverage camp leverage /repo --by-author --author-threshold 0 --json Export all owners camp leverage --dir /path/to/repo Score a specific directory

camp leverage [directory] [flags]

Options

      --author string            filter by author email (git substring match: 'alice@co' matches 'alice@co.com')
      --author-threshold float   minimum ownership percentage shown with --by-author (0 shows all) (default 1)
      --by-author                show a read-only per-author leverage breakdown
      --dir string               score a specific directory (skips camp project resolution)
  -h, --help                     help for leverage
      --json                     output as JSON
      --no-commit                skip the automatic commit of .campaign/leverage data
      --no-legend                hide the leverage formula legend
      --people int               override team size (0 = auto-detect from git)
  -p, --project string           filter by project name
  -v, --verbose                  show diagnostic details (config, project resolution, exclusions)

Options inherited from parent commands

      --no-color   disable colored output

SEE ALSO