{"id":21037311,"url":"https://github.com/hlf20010508/gpts-code-analyst","last_synced_at":"2025-06-20T10:10:27.884Z","repository":{"id":208077515,"uuid":"720446277","full_name":"hlf20010508/gpts-code-analyst","owner":"hlf20010508","description":"Github Code Analyst over GPTs","archived":false,"fork":false,"pushed_at":"2024-06-12T08:46:16.000Z","size":118,"stargazers_count":20,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T14:45:11.555Z","etag":null,"topics":["analyst","code","github","gpts"],"latest_commit_sha":null,"homepage":"https://chat.openai.com/g/g-KgRSRVuUn-code-analyst","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hlf20010508.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-11-18T14:11:44.000Z","updated_at":"2025-03-24T05:54:35.000Z","dependencies_parsed_at":"2023-12-31T15:29:33.742Z","dependency_job_id":"c586fd83-0863-451b-9040-c2fc5776267f","html_url":"https://github.com/hlf20010508/gpts-code-analyst","commit_stats":null,"previous_names":["hlf20010508/gpts-code-analyst"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/hlf20010508/gpts-code-analyst","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlf20010508%2Fgpts-code-analyst","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlf20010508%2Fgpts-code-analyst/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlf20010508%2Fgpts-code-analyst/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlf20010508%2Fgpts-code-analyst/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hlf20010508","download_url":"https://codeload.github.com/hlf20010508/gpts-code-analyst/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hlf20010508%2Fgpts-code-analyst/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260924535,"owners_count":23083524,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analyst","code","github","gpts"],"created_at":"2024-11-19T13:25:33.584Z","updated_at":"2025-06-20T10:10:22.859Z","avatar_url":"https://github.com/hlf20010508.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gpts-code-analyst\nGithub Code Analyst over GPTs\n\n- 使用中文的代码分析师\n- 完全调用Github API，不在本地存储文件\n- 传入格式为`user/repo`，获取仓库结构，并在解决问题的过程中查阅具体代码\n- 后端支持所有大小的仓库，但是GPT不支持过大的响应数据，所以无法查看巨型仓库，但可以通过提供具体文件路径来查阅文件\n\n体验链接：[Code Analyst](https://chat.openai.com/g/g-KgRSRVuUn-code-analyst)\n\n## Docker部署\n```sh\nPORT=8080 # 改成你的端口号\nGITHUB_TOKEN=xxxxxxxxxxxxxx # 改成你的Github Token\ndocker run -d --name code-analyst -p $PORT:8080 hlf01/gpts-code-analyst --token $GITHUB_TOKEN\n```\n\n## Docker构建\n```sh\ndocker build --tag gpts-code-analyst --no-cache .\n```\n\n## Rust构建\n```sh\ncargo build --release\n# 运行\n./target/release/gpts-code-analyst --token $GITHUB_TOKEN\n```\n\n## GPTs\n- 名称：Code Analyst\n- 描述：阅读并分析Github仓库代码，传入格式：`user/repo`\n- 指导：`Code Explorer 的主要功能是分析来自 GitHub 仓库的代码。当用户提供以‘user/repo’格式的仓库名称，它会立即调用‘GetStructure’命令来获取仓库的结构。如果用户只提供了仓库名称，在没有经过用户同意的情况下不要输出仓库的任何信息，只询问是否需要输出仓库的结构信息或是否希望查看特定文件。在获取仓库结构后，如果用户请求阅读，Code Explorer 将不再询问是否需要输出仓库的结构信息或是否希望查看特定文件，而是直接调用 ‘GetDetails’ 命令来查看和分析文件。当需要阅读超过 5 个文件时，Code Explorer 会主动多次调用 ‘GetDetails’ 来阅读这些文件，每阅读 5 个文件，就再次调用 ‘GetDetails’ ，直到阅读完所有文件。Code Explorer 使用技术性的中文语言进行回答，提供深入、准确的分析。如果遇到的问题是需要阅读具体代码后才能回答的，Code Explorer必须主动调用‘GetDetails’阅读Code Explorer认为可能相关的文件。如遇到无法完全回答的问题，将进行评估并说明。此 GPT 特别适用于需要深入分析仓库代码的编程专业人士。`\n- Actions：通过`/schema`导入，导入后在`servers.url`处修改为自己的服务器地址\n- 隐私协议：填写路径为`/privacy`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlf20010508%2Fgpts-code-analyst","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhlf20010508%2Fgpts-code-analyst","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhlf20010508%2Fgpts-code-analyst/lists"}