Skip to content

Add support for Junie#1831

Open
preigile wants to merge 1 commit intogithub:mainfrom
preigile:support_junie
Open

Add support for Junie#1831
preigile wants to merge 1 commit intogithub:mainfrom
preigile:support_junie

Conversation

@preigile
Copy link

Description

Adds support for Junie, an AI agent from JetBrains

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)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds Junie as a supported AI agent throughout Specify CLI’s initialization/configuration surfaces, along with documentation, packaging, and devcontainer updates so Junie templates can be generated and released consistently.

Changes:

  • Add junie to runtime agent configuration (AGENT_CONFIG) so specify init --ai junie is supported.
  • Update agent-context update scripts (bash/PowerShell) and release packaging scripts to include Junie artifacts.
  • Update docs (README + AGENTS.md) and devcontainer provisioning to reflect/install Junie.

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/specify_cli/__init__.py Adds Junie to core agent metadata used by specify init and tool-check logic.
scripts/powershell/update-agent-context.ps1 Adds Junie to supported agent types for context updates.
scripts/bash/update-agent-context.sh Adds Junie to supported agent types for context updates.
README.md Documents Junie as a supported agent and updates CLI option examples/tool-check list.
AGENTS.md Documents Junie in the supported agent table and categorization lists.
.github/workflows/scripts/create-release-packages.sh Generates Junie template packages in .junie/commands.
.github/workflows/scripts/create-release-packages.ps1 PowerShell equivalent Junie packaging support.
.github/workflows/scripts/create-github-release.sh Publishes Junie zip artifacts in the GitHub release step.
.devcontainer/post-create.sh Installs Junie CLI in the devcontainer setup.
Comments suppressed due to low confidence (1)

scripts/bash/update-agent-context.sh:725

  • This block updates $AGENTS_FILE (AGENTS.md) earlier and then updates $JUNIE_FILE as well, but $JUNIE_FILE currently resolves to the same AGENTS.md path. That results in two sequential updates to the same file in one run, which can introduce duplicate "Recent Changes" entries. Ensure Junie uses a distinct context file path, or remove this second update when the target is shared.

    if [[ -f "$JUNIE_FILE" ]]; then
        update_agent_file "$JUNIE_FILE" "Junie"
        found_agent=true
    fi

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

QWEN_FILE="$REPO_ROOT/QWEN.md"
AGENTS_FILE="$REPO_ROOT/AGENTS.md"
WINDSURF_FILE="$REPO_ROOT/.windsurf/rules/specify-rules.md"
JUNIE_FILE="$REPO_ROOT/AGENTS.md"
$QWEN_FILE = Join-Path $REPO_ROOT 'QWEN.md'
$AGENTS_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
$WINDSURF_FILE = Join-Path $REPO_ROOT '.windsurf/rules/specify-rules.md'
$JUNIE_FILE = Join-Path $REPO_ROOT 'AGENTS.md'
Comment on lines +184 to +190
"junie": {
"name": "Junie",
"folder": ".junie/",
"commands_subdir": "commands",
"install_url": "https://junie.jetbrains.com/",
"requires_cli": True,
},
Copy link
Collaborator

@mnriem mnriem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address Copilot feedback and resolve conflicts

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.

3 participants