Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,4 @@ pyrightconfig.json

# spec-workflow tool artifacts
.spec-workflow
.code-review/
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@ skill_tool_set = SkillToolSet(repository=repository, run_tool_kwargs=tool_kwargs
Recommended first:

- [examples/code_executors](./examples/code_executors/README.md) - `UnsafeLocalCodeExecutor` / `ContainerCodeExecutor`
- [examples/code_review_agent](./examples/code_review_agent/README.md) - Local/GitHub App code review with Skills, sandboxed analyzers, and SQL persistence

Related docs: [code_executor.md](./docs/mkdocs/en/code_executor.md)

Expand Down
1 change: 1 addition & 0 deletions README.zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ skill_tool_set = SkillToolSet(repository=repository, run_tool_kwargs=tool_kwargs
建议先看:

- [examples/code_executors](./examples/code_executors/README.md) - UnsafeLocalCodeExecutor / ContainerCodeExecutor
- [examples/code_review_agent](./examples/code_review_agent/README.md) - 支持本地/GitHub App、Skills、沙箱分析和 SQL 持久化的代码评审 Agent

相关文档:[code_executor.md](./docs/mkdocs/zh/code_executor.md)

Expand Down
4 changes: 4 additions & 0 deletions examples/code_review_agent/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
TRPC_AGENT_API_KEY=replace-me
TRPC_AGENT_BASE_URL=https://api.example.com/v1
TRPC_AGENT_MODEL_NAME=replace-me
CODE_REVIEW_DATABASE_URL=sqlite:////absolute/path/to/reviews.db
19 changes: 19 additions & 0 deletions examples/code_review_agent/.env.github.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
GITHUB_WEBHOOK_SECRET=replace-with-a-high-entropy-secret
GITHUB_APP_ID=123456
GITHUB_APP_PRIVATE_KEY_PATH=/absolute/path/to/github-app.private-key.pem
GITHUB_API_URL=https://api.github.com
GITHUB_CLONE_HOSTS=github.com
GITHUB_REVIEW_WORKSPACE_ROOT=.code-review/workspaces
GITHUB_REVIEW_STATIC_RUNTIME=docker
GITHUB_REVIEW_DOCKER_IMAGE=trpc-code-review:latest
GITHUB_REVIEW_MINIMUM_CONFIDENCE=0.75
GITHUB_REVIEW_PUBLISH_COMMENTS=true
GITHUB_REVIEW_MAX_COMMENTS=20
GITHUB_REVIEW_MAX_ATTEMPTS=5
GITHUB_REVIEW_WORKER_CONCURRENCY=1
GITHUB_REVIEW_POLL_SECONDS=2
GITHUB_REVIEW_LEASE_SECONDS=300
GITHUB_REVIEW_RETRY_BASE_SECONDS=5
GITHUB_REVIEW_RETRY_MAX_SECONDS=300
GITHUB_WEBHOOK_HOST=127.0.0.1
GITHUB_WEBHOOK_PORT=8080
Loading
Loading