Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
9da3dc7
docs: add development documentation and build plans
burgercrisis Jan 3, 2026
e5c90ad
.gitignore
burgercrisis Jan 6, 2026
54c56a6
feat(opencode): add Git-specific environment builder function
burgercrisis Jan 7, 2026
fd698e0
feat(opencode): migrate to Bun.spawn with Git environment handling
burgercrisis Jan 7, 2026
42d8e2a
docs: add Git Bash fork issues investigation devplan
burgercrisis Jan 7, 2026
b9884df
docs: add Git Bash Windows fix devplan
burgercrisis Jan 7, 2026
e9a631e
feat(lsp): migrate child_process.spawn to Bun.spawn
burgercrisis Jan 7, 2026
2c73050
feat: use buildGitEnv for git environment handling
burgercrisis Jan 7, 2026
6ae376a
fix: improve Windows bash compatibility with stream reader
burgercrisis Jan 7, 2026
403ceff
fix: convert symlink to reference comment
burgercrisis Jan 7, 2026
9daeb0a
shell.ts
burgercrisis Jan 7, 2026
0acc9e9
feat(bash): Add shell detection and bypass for Windows commands
burgercrisis Jan 7, 2026
754ffdc
docs(bash): Add Windows command execution best practices
burgercrisis Jan 7, 2026
b8b0e68
chore: Add architecture overview files
burgercrisis Jan 7, 2026
4b82ff3
chore: remove consolidated devplan files
burgercrisis Jan 7, 2026
42f9768
chore: add GitHub instructions to gitignore
burgercrisis Jan 7, 2026
90c0b16
docs: add investigation and planning documents
burgercrisis Jan 7, 2026
67d7867
fix(bash): fix PowerShell command handling and stream reading
burgercrisis Jan 7, 2026
7d26ca8
feat(prompt): add shell detection and command parsing for Windows
burgercrisis Jan 7, 2026
c4d8aa3
test(bash): update test expectations for PowerShell command handling
burgercrisis Jan 7, 2026
51e1e76
test: add bash stream and bash test files
burgercrisis Jan 7, 2026
7d39d76
docs: update windows command execution issues document
burgercrisis Jan 7, 2026
6e9c95c
docs: update windows command execution issues document
burgercrisis Jan 7, 2026
3ec27e4
docs: update windows command execution issues
burgercrisis Jan 7, 2026
367e4ec
chore: remove pre-push hook, keep typecheck as test script
burgercrisis Jan 8, 2026
188cffc
chore: add desktop server fix devplan and lib updates
burgercrisis Jan 8, 2026
5fd5135
feat(edit): add edit tool fixes and validation
burgercrisis Jan 8, 2026
7a24cb8
docs: add testing agent prompt and edit tool test plan
burgercrisis Jan 8, 2026
210e158
docs: update Windows command execution issues tracking
burgercrisis Jan 8, 2026
e5aae90
danked: fixed a lot. stable.
burgercrisis Jan 8, 2026
729cacc
feat: Fix Windows command execution and edit tool issues -- Stable an…
burgercrisis Jan 8, 2026
6503857
clean
burgercrisis Jan 8, 2026
6043af3
kek
burgercrisis Jan 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/instructions/codacy.instructions.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
description: Configuration for AI behavior when interacting with Codacy's MCP Server
applyTo: '**'
---
---
# Codacy Rules
Configuration for AI behavior when interacting with Codacy's MCP Server

## CRITICAL: After ANY successful `edit_file` or `reapply` operation
- YOU MUST IMMEDIATELY run the `codacy_cli_analyze` tool from Codacy's MCP Server for each file that was edited, with:
- `rootPath`: set to the workspace path
- `file`: set to the path of the edited file
- `tool`: leave empty or unset
- If any issues are found in the new edits, propose and apply fixes for them.
- > NOTE: Failure to follow this rule is considered a critical error.

## When you tried to run the `codacy_cli_analyze` tool and the Codacy CLI is not installed
- Ask the user 'Codacy CLI is not installed. Would you like me to install it now?'
- If the user responds with "yes", run the `codacy_cli_install` tool and then continue with the original task
- If the user responds with "no", instruct the user that they can disable automatic analysis in the extension settings
- Wait for the user to respond before proceeding with any other actions

## After every response
- If you made any file edits in this conversation, verify you ran `codacy_cli_analyze` tool from Codacy's MCP Server

## When there are no Codacy MCP Server tools available, or the MCP Server is not reachable
- Suggest the user the following troubleshooting steps:
- Try to reset the MCP on the extension
- If the user is using VSCode, suggest them to review their Copilot > MCP settings in Github, under their organization or personal account. Refer them to Settings > Copilot > Enable MCP servers in Copilot. Suggested URL (https://github.com/settings/copilot/features) or https://github.com/organizations/{organization-name}/settings/copilot/features (This can only be done by their organization admins / owners)
- If none of the above steps work, suggest the user to contact Codacy support

## Trying to call a tool that needs a rootPath as a parameter
- Always use the standard, non-URL-encoded file system path

## CRITICAL: Dependencies and Security Checks
- IMMEDIATELY after ANY of these actions:
- Running npm/yarn/pnpm install
- Adding dependencies to package.json
- Adding requirements to requirements.txt
- Adding dependencies to pom.xml
- Adding dependencies to build.gradle
- Any other package manager operations
- You MUST run the `codacy_cli_analyze` tool with:
- `rootPath`: set to the workspace path
- `tool`: set to "trivy"
- `file`: leave empty or unset
- If any vulnerabilities are found because of the newly added packages:
- Stop all other operations
- Propose and apply fixes for the security issues
- Only continue with the original task after security issues are resolved
- EXAMPLE:
- After: npm install react-markdown
- Do: Run codacy_cli_analyze with trivy
- Before: Continuing with any other tasks

## General
- Repeat the relevant steps for each modified file.
- "Propose fixes" means to both suggest and, if possible, automatically apply the fixes.
- You MUST NOT wait for the user to ask for analysis or remind you to run the tool.
- Do not run `codacy_cli_analyze` looking for changes in duplicated code or code complexity metrics.
- Complexity metrics are different from complexity issues. When trying to fix complexity in a repository or file, focus on solving the complexity issues and ignore the complexity metric.
- Do not run `codacy_cli_analyze` looking for changes in code coverage.
- Do not try to manually install Codacy CLI using either brew, npm, npx, or any other package manager.
- If the Codacy CLI is not installed, just run the `codacy_cli_analyze` tool from Codacy's MCP Server.
- When calling `codacy_cli_analyze`, only send provider, organization and repository if the project is a git repository.

## Whenever a call to a Codacy tool that uses `repository` or `organization` as a parameter returns a 404 error
- Offer to run the `codacy_setup_repository` tool to add the repository to Codacy
- If the user accepts, run the `codacy_setup_repository` tool
- Do not ever try to run the `codacy_setup_repository` tool on your own
- After setup, immediately retry the action that failed (only retry once)
---
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,14 @@ target
# Local dev files
opencode-dev
logs/

# MCP coordination files
*mcp-coord*
*mcp-coordination*
.mcp-coord/
.mcp-coordination/


#Ignore vscode AI rules
.github\instructions\codacy.instructions.md
github-issue-6488.png
9 changes: 0 additions & 9 deletions .husky/pre-push

This file was deleted.

46 changes: 46 additions & 0 deletions dev_output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@

▄
█▀▀█ █▀▀█ █▀▀█ █▀▀▄ █▀▀▀ █▀▀█ █▀▀█ █▀▀█
█░░█ █░░█ █▀▀▀ █░░█ █░░░ █░░█ █░░█ █▀▀▀
▀▀▀▀ █▀▀▀ ▀▀▀▀ ▀ ▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀

Commands:
opencode completion generate shell completion script
opencode acp start ACP (Agent Client Protocol) server
opencode [project] start opencode tui [default]
opencode attach <url> attach to a running opencode server
opencode run [message..] run opencode with a message
opencode auth manage credentials
opencode agent manage agents
opencode upgrade [target] upgrade opencode to the latest or a specific version
opencode uninstall uninstall opencode and remove all related files
opencode serve starts a headless opencode server
opencode web starts a headless opencode server
opencode models [provider] list all available models
opencode stats show token usage and cost statistics
opencode export [sessionID] export session data as JSON
opencode import <file> import session data from JSON file or URL
opencode github manage GitHub agent
opencode pr <number> fetch and checkout a GitHub PR branch, then run opencode
opencode session manage sessions

Positionals:
project path to start opencode in [string]

Options:
-h, --help show help [boolean]
-v, --version show version number [boolean]
--print-logs print logs to stderr [boolean]
--log-level log level [string] [choices: "DEBUG", "INFO", "WARN", "ERROR"]
--port port to listen on [number] [default: 0]
--hostname hostname to listen on [string] [default: "127.0.0.1"]
--mdns enable mDNS service discovery (defaults hostname to 0.0.0.0)
[boolean] [default: false]
--cors additional domains to allow for CORS [array] [default: []]
-m, --model model to use in the format of provider/model [string]
-c, --continue continue the last session [boolean]
-s, --session session id to continue [string]
--prompt prompt to use [string]
--agent agent to use [string]

e:\code\OpenCode\opencode>
15 changes: 0 additions & 15 deletions logs/.2c5480b3b2480f80fa29b850af461dce619c0b2f-audit.json

This file was deleted.

48 changes: 0 additions & 48 deletions logs/mcp-puppeteer-2025-10-07.log

This file was deleted.

2 changes: 1 addition & 1 deletion packages/app/src/custom-elements.d.ts
2 changes: 1 addition & 1 deletion packages/desktop/scripts/predev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { $ } from "bun"

import { copyBinaryToSidecarFolder, getCurrentSidecar } from "./utils"

const RUST_TARGET = Bun.env.TAURI_ENV_TARGET_TRIPLE
const RUST_TARGET = Bun.env.TAURI_ENV_TARGET_TRIPLE || Bun.env.RUST_TARGET

const sidecarConfig = getCurrentSidecar(RUST_TARGET)

Expand Down
Loading