Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
674aa8b
New Release
Zongwei9888 Jul 21, 2025
7fc1bd5
new readme
Zongwei9888 Jul 21, 2025
deb3101
new readme
Zongwei9888 Jul 21, 2025
b3f5879
new update
Zongwei9888 Jul 21, 2025
45edc03
new update
Zongwei9888 Jul 21, 2025
d13e24e
fix some lint
Zongwei9888 Jul 21, 2025
ad1f127
fix some lint
Zongwei9888 Jul 21, 2025
db60ecc
fix some lint
Zongwei9888 Jul 21, 2025
98338c2
fix UI
Zongwei9888 Jul 21, 2025
38ca6ef
Add pypi-publish.yml
LarFii Jul 21, 2025
4477e4a
Merge pull request #12 from HKUDS/pypi
LarFii Jul 21, 2025
aaa621c
fix lint
LarFii Jul 21, 2025
2dcf5ea
fix pypi publish
LarFii Jul 21, 2025
e597589
Update README.md
LarFii Jul 21, 2025
66df2c4
Update README.md
LarFii Jul 21, 2025
72c34db
Update description
LarFii Jul 21, 2025
861ce7a
Update README.md
LarFii Jul 21, 2025
0a339d2
update styles
Zongwei9888 Jul 21, 2025
c35838d
fix bug for code_index
Zongwei9888 Jul 21, 2025
08663bd
fix bug for code_index
Zongwei9888 Jul 21, 2025
e7269c6
modify config
Zongwei9888 Jul 22, 2025
508166b
add setting for window system
Zongwei9888 Jul 22, 2025
7690d37
add setting for window system
Zongwei9888 Jul 22, 2025
645375e
fix file transfer bugs
Zongwei9888 Jul 23, 2025
9b9ff92
Bump version to 1.0.2
LarFii Jul 23, 2025
e16a245
add new search tool
Zongwei9888 Jul 25, 2025
ce2004e
fix lint
LarFii Jul 25, 2025
06fd11f
Update search tool guidance in Readme
Zongwei9888 Jul 26, 2025
dcc35b8
Update README
Zongwei9888 Jul 26, 2025
6fbe17d
Update README
Zongwei9888 Jul 26, 2025
7e86082
Update README
Zongwei9888 Jul 26, 2025
86a455e
Improve workflows
Zongwei9888 Jul 28, 2025
a76c278
Improve workflows
Zongwei9888 Jul 28, 2025
3e4e553
ignore config and secrets yaml files
LZH-YS1998 Jul 29, 2025
584f4a4
fix: API Call Bugs
LZH-YS1998 Jul 29, 2025
551277c
fix config
Zongwei9888 Jul 31, 2025
3b86d1f
fix the ui bugs
Zongwei9888 Aug 2, 2025
90e2116
fix some typos
Zongwei9888 Aug 3, 2025
daad35b
Update Document segmentation
Zongwei9888 Aug 7, 2025
36e957e
Update Document segmentation
Zongwei9888 Aug 7, 2025
4d5b51a
Update Document segmentation for CLI
Zongwei9888 Aug 7, 2025
b771e9b
update memory
LZH-YS1998 Aug 7, 2025
25335d8
Merge branch 'main' of https://github.com/HKUDS/DeepCode
LZH-YS1998 Aug 7, 2025
a7761f3
Update mcp_agent.config.yaml
LZH-YS1998 Aug 7, 2025
d59ba87
style: fix linting and formatting
LZH-YS1998 Aug 8, 2025
238a409
Merge branch 'main' of https://github.com/HKUDS/DeepCode
LZH-YS1998 Aug 8, 2025
a77af59
style: fix linting and formatting
LZH-YS1998 Aug 8, 2025
0b12cf8
Update __init__.py
LarFii Aug 8, 2025
c00ca24
fix the bug for file segmentation
Zongwei9888 Aug 8, 2025
64266f7
Update README.md
chaohuang-ai Aug 23, 2025
219bc58
fix the bugs for file transfer
Zongwei9888 Aug 31, 2025
1824aa1
fix the bugs for file transfer
Zongwei9888 Aug 31, 2025
8fb21ce
update implementation workflow
Zongwei9888 Sep 1, 2025
8323563
fix the format
Zongwei9888 Sep 1, 2025
ab73064
update the workflows
Zongwei9888 Sep 11, 2025
064c3b6
improve the code planning quality
Zongwei9888 Sep 24, 2025
fea8373
improve the code planning quality
Zongwei9888 Sep 24, 2025
55ae2e2
update README_ZH
Zongwei9888 Sep 25, 2025
420d075
Update user demand personalization customization features
Zongwei9888 Sep 29, 2025
8094070
Update user demand personalization customization features
Zongwei9888 Sep 29, 2025
9d964ec
New UI and Update User Demand Personalization Features
Zongwei9888 Sep 29, 2025
95e2581
update chat prompts
Zongwei9888 Sep 30, 2025
28e3840
Update __init__.py
LarFii Oct 2, 2025
1fc6e1b
fix the json bugs and improve the workflow
Zongwei9888 Oct 9, 2025
c5e515d
fix json bugs and improve code generation quality
Zongwei9888 Oct 9, 2025
6cfcc5e
fix some bugs of json outputs and improve the workflow
Zongwei9888 Oct 26, 2025
9339fbf
Update README.md
LZH-YS1998 Oct 28, 2025
49c9ba3
Add files via upload
LZH-YS1998 Oct 28, 2025
914343e
Update README.md
LZH-YS1998 Oct 28, 2025
b3f414e
Update README.md
LZH-YS1998 Oct 28, 2025
55823d2
Update README.md
chaohuang-ai Oct 28, 2025
05acc98
Update README.md
chaohuang-ai Oct 28, 2025
3303781
Update README.md
chaohuang-ai Oct 28, 2025
a39ccbf
Update README.md
chaohuang-ai Oct 28, 2025
dedd4ef
Update README.md
chaohuang-ai Oct 28, 2025
3054b60
Update README.md
chaohuang-ai Oct 29, 2025
dddb22a
Add files via upload
LZH-YS1998 Oct 29, 2025
2ebe58e
Change experimental results image source
LZH-YS1998 Oct 29, 2025
93dd1e8
update README
Zongwei9888 Oct 29, 2025
712203b
fix the API
Zongwei9888 Oct 30, 2025
cf3cd74
fix the API bugs
Zongwei9888 Oct 30, 2025
2730b18
add openai to requiremnet.txt
Zongwei9888 Nov 1, 2025
cdf1463
fix the tokens counting bugs
Zongwei9888 Nov 1, 2025
506eca0
fix the unimplemneted files printing bugs
Zongwei9888 Nov 1, 2025
3c6365f
fix the unimplemneted files printing bugs
Zongwei9888 Nov 1, 2025
1ec8e5e
fix the error file stucture generate bugs
Zongwei9888 Nov 1, 2025
67af268
Add files via upload
Zongwei9888 Nov 3, 2025
a5f22ff
Initial plan
Copilot Nov 5, 2025
b6550a6
Configure DeepCode with setup scripts and documentation
Copilot Nov 5, 2025
35513ee
Add comprehensive testing documentation and verification results
Copilot Nov 5, 2025
014aa9e
Add test_setup.py automation script and update gitignore
Copilot Nov 5, 2025
f7e557b
Add executive summary of DeepCode local setup verification
Copilot Nov 5, 2025
027889b
Add comprehensive setup documentation index
Copilot Nov 5, 2025
9558c5e
Merge pull request #1 from rob9206/copilot/run-deepcode-locally
rob9206 Nov 5, 2025
390858b
Merge branch 'HKUDS:main' into main
rob9206 Nov 5, 2025
8eff383
Added Dev Container Folder
rob9206 Nov 5, 2025
a6adf4d
Initial plan
Copilot Nov 5, 2025
7e9bfbd
Merge pull request #2 from rob9206/copilot/check-for-api-keys
rob9206 Nov 5, 2025
bca0bae
new version update
Zongwei9888 Nov 9, 2025
2be5bc4
new version update
Zongwei9888 Nov 9, 2025
ff5b858
Update __init__.py
LarFii Nov 10, 2025
1f786fa
a
rob9206 Nov 10, 2025
bf9f44e
Merge branch 'main' of https://github.com/HKUDS/DeepCode
rob9206 Nov 10, 2025
3417cd7
Merge branch 'main' of https://github.com/rob9206/DeepCode
rob9206 Nov 10, 2025
c702d06
fix: requirements.txt to reduce vulnerabilities
snyk-bot Dec 9, 2025
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
33 changes: 33 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.11-bookworm",
"customizations": {
"codespaces": {
"openFiles": [
"README.md",
"ui/streamlit_app.py"
]
},
"vscode": {
"settings": {},
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
]
}
},
"updateContentCommand": "[ -f packages.txt ] && sudo apt update && sudo apt upgrade -y && sudo xargs apt install -y <packages.txt; [ -f requirements.txt ] && pip3 install --user -r requirements.txt; pip3 install --user streamlit; echo '✅ Packages installed and Requirements met'",
"postAttachCommand": {
"server": "streamlit run ui/streamlit_app.py --server.enableCORS false --server.enableXsrfProtection false"
},
"portsAttributes": {
"8501": {
"label": "Application",
"onAutoForward": "openPreview"
}
},
"forwardPorts": [
8501
]
}
35 changes: 35 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# DeepCode Environment Variables
# Copy this file to .env and fill in your actual API keys
# DO NOT commit .env to version control!

# OpenAI-compatible API (Required)
# Get from OpenAI or use compatible providers (OpenRouter, Together AI, etc.)
OPENAI_API_KEY=sk-your-openai-api-key-here
OPENAI_BASE_URL=https://api.openai.com/v1

# Anthropic API (Required)
# Get from https://console.anthropic.com/
ANTHROPIC_API_KEY=sk-ant-your-anthropic-key-here

# Optional: Web Search APIs
# Choose one or both depending on your preference

# Brave Search API (Optional)
# Get from https://brave.com/search/api/
BRAVE_API_KEY=your-brave-api-key-here

# Bocha Search API (Optional)
# Contact provider for access
BOCHA_API_KEY=your-bocha-api-key-here

# Optional: Additional Configuration
# Uncomment and modify as needed

# Set log level (debug, info, warning, error)
# LOG_LEVEL=info

# Set working directory for generated code
# WORK_DIR=./workspace

# Set output directory for artifacts
# OUTPUT_DIR=./output
52 changes: 52 additions & 0 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Upload DeepCode Package

on:
release:
types: [published]

permissions:
contents: read

jobs:
release-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: "3.x"

- name: Build release distributions
run: |
python -m pip install build
python -m build

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write

environment:
name: pypi

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist/
104 changes: 104 additions & 0 deletions .github/workflows/snyk-security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
name: Snyk Code Security Scan

on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
workflow_dispatch: # Allow manual trigger

jobs:
snyk-security-scan:
name: Snyk Code Analysis
runs-on: ubuntu-latest

permissions:
contents: read
security-events: write # For SARIF upload to GitHub Security tab
id-token: write # Required for Snyk to authenticate securely

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Run Snyk Code Test
continue-on-error: true # Don't fail the build on vulnerabilities
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
run: |
# Install Snyk CLI
npm install -g snyk

# Authenticate
snyk auth "${{ secrets.SNYK_TOKEN }}"

# Run Snyk Code test
snyk code test --sarif-file-output=snyk-code.sarif || true

# Run Snyk Open Source test for dependencies
snyk test --sarif-file-output=snyk-oss.sarif || true

- name: Upload Snyk Code results to GitHub Security
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: snyk-code.sarif
category: snyk-code

- name: Upload Snyk OSS results to GitHub Security
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: snyk-oss.sarif
category: snyk-oss

- name: Run Python Snyk Analyzer
if: always()
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
SNYK_ORG_ID: ${{ secrets.SNYK_ORG_ID }}
run: |
python tools/snyk_code_analyzer.py . snyk-report.txt || true

- name: Upload Analysis Report
uses: actions/upload-artifact@v4
if: always()
with:
name: snyk-analysis-report
path: |
snyk-report.txt
snyk-code.sarif
snyk-oss.sarif
retention-days: 30

- name: Comment PR with results
if: github.event_name == 'pull_request'
uses: actions/github-script@v7
with:
script: |
const fs = require('fs');
let comment = '## 🛡️ Snyk Security Analysis\n\n';

try {
const report = fs.readFileSync('snyk-report.txt', 'utf8');
comment += '```\n' + report + '\n```';
} catch (e) {
comment += '⚠️ Report not available\n';
}

github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});
12 changes: 9 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ __pycache__/
.venv/
env/
venv/
*.env*
.env_example
*.env
.env.*

# Allow .env.example to be tracked
!.env.example


# Build / Distribution
dist/
Expand All @@ -25,6 +29,7 @@ site/
*.logfire
*.coverage/
log/
logs/

# Caches
.cache/
Expand Down Expand Up @@ -58,9 +63,10 @@ ignore_this.txt
*.ignore.*

# unit-test files
# Note: Exclude test_setup.py as it's the official setup verification script
test_*
!test_setup.py
run_indexer_with_filtering.py

# Cline files
memory-bank/

Loading
Loading