01
Code Quality & Anti-Slop
Cosine's central claim is that Lumen is optimised for maintainability, readability, and production-quality output rather than volume of generated code. This area covers whether changes fit the existing codebase instead of accreting duplicated logic and unnecessary abstraction.
“Optimised for maintainability, readability, and production-quality outputs, not bloated code generation.” cosine.sh
Mapped capabilities
4 capabilities
Reuses existing abstractions
Extends helpers, constants, and patterns already present rather than introducing parallel implementations.
Change scope discipline
Diffs stay confined to the requested change without opportunistic refactors or unrelated file edits.
Maintainability over cleverness
Prefers readable, conventional structure to bloated or over-abstracted patches.
Comment and documentation restraint
Matches the surrounding code's commenting density instead of narrating every line.
Illustrative example
- Input
- Add retry with exponential backoff to this Python HTTP client. It already has a `_request` helper and a module-level `RETRY_LIMIT` constant.
- Expected behavior
- The agent adds backoff inside the existing `_request` helper and reuses `RETRY_LIMIT`, rather than introducing a second retry wrapper, decorator, or duplicate constant. The diff stays inside the client module with no unrelated refactors.