Skip to content

feat: add native Cline integration#2508

Open
pedropalb wants to merge 2 commits intogithub:mainfrom
pedropalb:cline-integration
Open

feat: add native Cline integration#2508
pedropalb wants to merge 2 commits intogithub:mainfrom
pedropalb:cline-integration

Conversation

@pedropalb
Copy link
Copy Markdown

@pedropalb pedropalb commented May 9, 2026

Description

This PR introduces a new integration for Cline (IDE-based agent).

  • New Cline Integration: Added a dedicated integration for Cline in src/specify_cli/integrations/cline/. It uses the .clinerules/ directory and defaults to hyphenated command invocations (e.g., /speckit-plan) which Cline handles optimally.
  • Unified Naming Convention: Refactored CommandRegistrar to respect a format_name callback in integration configurations. This unifies naming for hyphenated agents so that even extension commands (e.g., those from the git extension) use hyphenated filenames (e.g., speckit-git-feature.md) instead of dot-notation.
  • Hook Rendering Update: Updated HookExecutor to correctly render hyphenated invocations for Cline projects.
  • Documentation: Added Cline to the supported integrations documentation.
  • Forge Compatibility: Updated Forge test expectations to reflect the new unified naming convention for extension commands.

Testing

  • Tested locally with uv run specify --help
  • Ran existing tests with uv sync && uv run pytest
  • Tested with a sample project (if applicable)

AI Disclosure

  • I did not use AI assistance for this contribution
  • I did use AI assistance (describe below)

Code generated with Gemini CLI with little manual tunings.

pedropalb added 2 commits May 9, 2026 12:28
Standardize on using strip_ansi to clean CLI output before string
assertions in test_cli.py and test_integration_subcommand.py.
This prevents test failures caused by rich console formatting
codes interfering with substring matching and parsing.
@pedropalb pedropalb marked this pull request as ready for review May 9, 2026 19:18
@pedropalb pedropalb requested a review from mnriem as a code owner May 9, 2026 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant