SourceCraft CLI releases

Current version

Version 0.0.110 (09.10.26)

  • Improved error handling during authentication. If the server declines a token, the command's text output prompts you to re-login; and if SOURCECRAFT_TOKEN is used, you get a clarification on why this variable has priority over saved credentials and browser login. Access and server errors are now output with the HTTP code of the response.
  • The OpenCode model catalog is now showcasing models available on request, marked [By request]. Until you get access, such models will not be selected automatically; when trying to use them, you will be prompted to request access in Cloud Center.

Previous releases

Version 0.0.109 (08/10/26)

  • For the src release upload command, added the --upload-timeout parameter that sets the maximum timeout for uploading a file and getting a full server response. The value must be positive. The default value is 10 minutes (10m0s).

  • Added authentication with the authorized key of a Yandex Identity and Access Management service account. This authentication method is only available via these environment variables:

    • SOURCECRAFT_SA_KEY_FILE: Path to the key JSON file.
    • SOURCECRAFT_SA_KEY_JSON: Key JSON file contents, without Base64 encoding.

    Priority of non-empty variables, from highest to lowest, is as follows: SOURCECRAFT_TOKEN, SOURCECRAFT_SA_KEY_JSON, SOURCECRAFT_SA_KEY_FILE. If the key you selected is invalid, the CLI terminates the operation with an error without moving on to different credentials. The CLI does not save the key and its path. API keys are not supported for this authentication method.

  • When authenticating a service account, the src auth status, src auth login, and src auth setup commands check the selected source without saving the authentication settings. IAM and PAT are still available in the interactive configuration. The --reset-keys, --yes, and --auto-open-browser parameters of the src auth login command are not supported for service accounts.

  • When authenticating a service account, the src auth logout command clears the local token cache without deleting the key, revoking IAM tokens, and changing the saved settings and user credentials. To stop using the key, delete the SOURCECRAFT_SA_KEY_JSON and SOURCECRAFT_SA_KEY_FILE variables from the environment. Afterwards, the CLI will use the saved credentials if the SOURCECRAFT_TOKEN variable is empty or not set.

  • Fixed the CLI behavior when cancelling the src auth setup command: it completes without running an authentication check afterwards.

Version 0.0.108 (07/10/26)

  • Added the --base (-B) parameter for the src pr edit command to change the target pull request branch.
  • The src update command with the --json parameter now only checks for updates and displays versions in JSON format. Added the --saved parameter to get the latest check result without accessing the update server.
  • OpenCode has been updated to version 1.4.28.

Version 0.0.107 (01/10/26)

Added the --force parameter for the src code install command to reinstall OpenCode from the current update channel. In this case, authentication data and settings are not saved.

Version 0.0.105 (22/09/26)

  • Added the src paths command to view the paths the CLI stores its files at.
  • Added the following parameters to the src auth login command:
    • --reset-keys: Rotating shared IAM keys and resetting associated sessions in the current backend prior to logging in. This reset affects IAM sessions across different environments.
    • --yes: Confirmation of key reset without a request.
  • The model catalog is now updated every time OpenCode is launched. The load wait time is three seconds. If the catalog fails to load, the cached version will be used. Deleted the --refresh-models parameter from the src code, src do, src codereview, src prdescription, and src skill commands.
  • Deleted the --pull-request-id parameter from the src pr commands. To specify a pull request, use its number: the value of the slug field in the src pr list --json output. The src pr get command also allows you to specify the name of the source branch, e.g., src pr get feature-branch.
  • OpenCode has been updated to version 1.4.25.

Version 0.0.103 (15/09/26)

  • Added the src appsec command branch for working with the results of repository security checks:
    • src appsec defect <id>: Viewing a defect group by number in the interface and the statuses available for it.
    • src appsec defect list: Viewing defect groups from the latest scan, filtered by analyzer type, status, severity level, rule name, and file path.
    • src appsec defect set-status: Changing the status of one or more defect groups, with the option to add a comment.
    • src appsec defect comment: Viewing the comments and event history of a defect group.
    • src appsec defect comment add, src appsec defect comment edit, and src appsec defect comment delete: Adding comments, editing and deleting one's own comments.
  • Added the --refresh-models parameter for the src code, src do, src codereview, src prdescription, and src skill commands, allowing you to immediately update the model catalog without waiting for the five-minute caching period to end. This catalog is checked when OpenCode starts.
  • For the src pr add-comment command, added the ability to comment on individual lines or ranges of lines in pull request files. There are the following parameters for that:
    • --path: File path relative to the repository root.
    • --line: Starting line of the comment; the numbering starts from 1.
    • --end-line: End line of the comment; by default, it is the same as --line.
    • --side: Comparison side (target or source).
  • The src update command now checks for updates of the CLI and installed OpenCode components. The --auto parameter allows you to install available updates without confirmation.

Version 0.0.99 (19/08/26)

  • The model field list now includes only the default model; the legacy model has been removed. The ds, ds-alt, and default-cc names are retained as default aliases. You do not need to update your current settings or change the --model parameter value.
  • The src code, src do, src codereview, src prdescription, and src skill commands automatically provide the current model when starting OpenCode, even if additional OpenCode arguments are specified. If you explicitly declare a model using the -m or --model parameter, the selected model is used.
  • Increased the model response timeout from five to ten minutes.
  • Implemented tagging AI requests from CI tasks with the task ID from the SOURCECRAFT_AI_JOB_ID variable. This allows you to track which tasks consume neurocredits. This variable value cannot be modified externally.
  • Updated the built-in OpenCode settings. They will be applied automatically on the next launch.

Version 0.0.97 (07/08/26)

  • Added the src api command for running authenticated requests to the SourceCraft REST API.

    Sending a request supports:

    • Select an HTTP method (-X). The default methods are GET for requests with no parameters and POST for requests with parameters.
    • Provide parameters (-f or -F).
    • Provide headers (-H).
    • Read the request body from a file (--input).

    Processing a response supports:

    • Output formatting as JSON (--json or --json-compact) and with Go templates (-t or --template).
    • Response filtering using jq (-q or --jq).
    • Pagination (--paginate or --slurp).
    • Verbose request and response info for debugging (-V or --verbose).
  • Added the following commands for managing pull request labels:

    • src pr labels: View labels.
    • src pr add-label: Add labels.
    • src pr remove-label: Remove labels.
  • Added the src run artifacts <run> <workflow> <task> <cube> command to retrieve links to artifacts created in the specified cube as part of a CI execution. The command has an alias, src run list-artifacts.

  • Restored the src issue link-pr, src issue unlink-pr, and src issue linked-prs commands for managing links between issues and pull requests.

  • Restored the src issue link-issue, src issue unlink-issue, and src issue linked-issues commands for managing links between issues. The src issue add-link, src issue remove-link, and src issue list-links commands are preserved as aliases.

  • Added the --auto-open-browser parameter for the src auth login command to automatically open your browser when working in a non-interactive terminal.

  • In the src repo create command, the --name parameter is now ignored as deprecated; the maximum repository description length is now 4,096 characters.

  • In the src issue create, src issue edit, and src pr edit commands, the maximum description length is now 64 KB.

  • Added the --section parameter for the src reference command to restrict a new SKILL.md file to a single command branch, e.g., issue or pr.

Version 0.0.95 (13/07/26)

  • Added the --json and --json-compact parameters to the src auth login and src auth status commands to output results in JSON format.
  • In the src auth login command, fixed the issue where pressing Ctrl + C while entering a personal access token prevented the terminal from restoring the input character display mode.
  • The src git-credential get command now correctly terminates correctly when encountering requests to unsupported hosts or protocols other than HTTPS. This allows git to correctly switch to the next credential helper.

Version 0.0.94 (08/06/26)

  • Renamed commands used to manage links between tasks:
    • src issue link-issue → src issue add-link
    • src issue unlink-issue → src issue remove-link
    • src issue linked-issues → src issue list-links
  • Deleted commands used to manage connections between pull requests and tasks:
    • src issue link-pr
    • src issue unlink-pr
    • src issue linked-prs
  • Deleted the src config command branch used to manage experimental features.

Version 0.0.92 (21/05/26)

  • Added context window usage estimate by category: system prompt, tools, AI skills, history, files, e.g., AGENTS.md, and MCP servers.

    The usage estimate is shown in the right sidebar and calculated based on the last request; therefore, the Usage by category metric is not present when a new session is started.

  • Added new commands for linking issues and pull requests:

    • Viewing: src issue linked-issues, src issue linked-prs.
    • Management: src link-pr, src unlink-pr, src link-issue, src unlink-issue.
  • Added support for logical conditions for label-based search, for example:

    # Find issues with labels backend OR devops
    src issue list --label backend,devops
    
    # Find issues with labels devops AND k8s
    src issue list --label="devops & k8s"
    
  • Fixed a login issue for new accounts when getting authorized via the SourceCraft domain.

Version 0.0.90 (23/04/26)

  • To avoid possible malfunctions with OpenCode installed independently of SourceCraft, OpenCode now cannot occupy the standard ~/.opencode/bin directory.
  • Fixed command description errors.

Version 0.0.89 (22/04/26)

Improved the installation algorithm.

Version 0.0.87 (22/04/26)

Released the first public version of the SourceCraft CLI.

Useful links