cocomo_estimate
Estimate software effort in person-months from KLOC using LLM-adjusted COCOMO II factors, returning nominal and AI-adjusted results for planning codebase work.
Instructions
LLM-adapted COCOMO II parametric effort estimation.
Replaces traditional 17 human-labor cost drivers with 5 LLM-specific factors: reasoning complexity, context completeness, transformation impact, iterative cycles, and human oversight. Returns both nominal and LLM-adjusted person-months. Use when estimating effort for a codebase you can size in KLOC. iterative_cycles: values <= 2.0 are literal multipliers (0.5 = one-shot, 1.0 = typical debug loop, 2.0 = heavy back-and-forth); values above 2.0 are literal cycle counts, each additional cycle adding 0.1 of multiplier anchored at 2.0 (2.0 -> 2.0x, 3 -> 2.1x, 10 -> 2.8x) — monotonic with no cliff at 2.0.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"kloc": "<kloc>"
},
"name": "cocomo_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kloc | Yes | Estimated thousands of lines of code. Count actual code, not comments/blank lines. | |
| project | No | Optional project/repo identifier this estimate belongs to, for cross-project analytics. | |
| ai_native | No | Degree of AI assistance: 0.0 = fully human, 1.0 = fully AI-native, 0.5 = hybrid. Accepts boolean for backward compatibility (true=1.0, false=0.0). | |
| task_type | No | Optional task type for feedback matching. | |
| session_id | No | Optional session identifier (minted by a calling agent/hook) used to deduplicate repeated estimate calls for the same task within a session. | |
| task_label | No | Optional free-text label identifying the task this estimate is for (e.g. an issue key or short title). Surfaced on get_pending_estimates output for triage. | |
| human_oversight | No | Human review overhead multiplier. 0.5 = auto-merged, 1.0 = standard PR review, 2.0 = compliance/security review. | |
| iterative_cycles | No | Iteration overhead multiplier or literal cycle count. Multiplier scale: 0.5 = one-shot, 1.0 = typical debug loop, 2.0 = heavy back-and-forth. Values above 2.0 are accepted as literal cycle counts and normalized internally. | |
| context_completeness | No | How complete is the context provided to the LLM? 0.5 = exhaustive specs, 1.0 = typical, 2.0 = vague requirements. | |
| reasoning_complexity | No | Multiplier for reasoning complexity of the codebase. 0.5 = trivial CRUD, 1.0 = average, 2.0 = novel algorithm/R&D. | |
| transformation_impact | No | Scale of transformation relative to existing code. 0.5 = small patch, 1.0 = new module, 2.0 = architectural rewrite. |