{"id":16391801,"url":"https://github.com/williamfzc/devrewind","last_synced_at":"2026-05-17T18:01:35.599Z","repository":{"id":204101334,"uuid":"705702641","full_name":"williamfzc/DevRewind","owner":"williamfzc","description":"Binding real-world businesses to code files by rewinding dev log. Built with LLM and langchain.","archived":false,"fork":false,"pushed_at":"2023-10-31T15:12:06.000Z","size":1156,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-18T11:42:38.623Z","etag":null,"topics":["codebase","langchain","llm"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/williamfzc.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}},"created_at":"2023-10-16T14:27:34.000Z","updated_at":"2024-12-07T20:11:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"75d9a3d0-dd2c-4853-82b0-cb4afe3fa781","html_url":"https://github.com/williamfzc/DevRewind","commit_stats":null,"previous_names":["williamfzc/devrewind"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/williamfzc/DevRewind","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfzc%2FDevRewind","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfzc%2FDevRewind/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfzc%2FDevRewind/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfzc%2FDevRewind/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/williamfzc","download_url":"https://codeload.github.com/williamfzc/DevRewind/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/williamfzc%2FDevRewind/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33149519,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["codebase","langchain","llm"],"created_at":"2024-10-11T04:47:23.379Z","updated_at":"2026-05-17T18:01:35.571Z","avatar_url":"https://github.com/williamfzc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DevRewind\n \n\u003e This is an experimental Python library designed to establish a relationship between code and actual business by mining development logs, and analyzing with LLM and langchain.\n\nAt the current stage, we provide two typical capabilities:\n\n1. Summarizing the functionality of a specific code file.\n2. Searching for files related to a specific functionality.\n\nIn simple terms, our goal is to establish a connection between code and real-world business scenarios and support bidirectional search, **without touching the real code**.\n\n## Example\n\nWith a simple script:\n\n```shell\nimport click\n\nfrom dev_rewind import DevRewind, DevRewindConfig\n\nconfig = DevRewindConfig()\n\n# on your codebase path\nconfig.repo_root = \"../requests\"\n\napi = DevRewind(config)\nagent = api.create_agent()\n\nwhile True:\n    question = click.prompt(\"Question\")\n    if question == \"exit\":\n        break\n    response = agent.run(input=question)\n    click.echo(f\"Answer: {response}\")\n```\n\nand setting a valid `OPENAI_API_KEY` like https://github.com/openai/openai-python#usage:\n\n```shell\nexport OPENAI_API_KEY=sk-xxxxxxxx\n```\n\nAnd you will get an interactive agent:\n\n```shell\n2023-10-31 22:29:17.576 | DEBUG    | dev_rewind.core.agent:create_agent:111 - file docs/user/authentication.rst keywords: ['blacked', 'requires', 'benefit', 'project', 'read', 'openid', 'connect', 'formatted', 'protocol', 'https', 'directly', 'highlighting', 'netrc', 'flow', 'oauth', 'guides', 'malformed', 'kwpolska', 'v1', 'supports', 'meth', 'discoverability', 'images', 'wrap', 'urls', 'required', 'underpinning', 'improve', 'api', 'oauthlib', '1471', 'header', 'twitter', 'folks', 'authentication', 'prefer', 'couple', 'add', 'impression', 'credentials', 'split', 'gmail', 'streaming', 'test_basicauth_with_netrc', 'long', 'test_requests', 'ages', 'server', 'pypi', 'precedence', 'digest', 'spent', '2nd', 'separate', 'ie38844a40ec7a483e6ce5e56077be344242bcd99', 'remove', '2062', 'xauth', 'color', 'basic', 'simple', 'underlying', 'grammar', 'schemes', 'custom', 'explicitly', 'clarifying', 'analytics', 'lines']\n2023-10-31 22:29:18.279 | DEBUG    | dev_rewind.core.agent:create_agent:111 - file docs/_static/custom.css keywords: ['compact', 'broken', 'zone', 'footer', 'padding', 'reitz', 'org', 'double', 'css', 'overlap', 'button', 'human', 'request', 'ads', 'framework', 'official', 'expanded', 'carbon', 'moved', 'install', 'correct', 'cpc', 'integrate', 'native', 'space', 'adjust', 'integration', 'vertical', 'width', 'kenneth', 'key', 'direct', 'buysellads', 'placements', 'kennethreitz', 'site', 'design', 'things', 'white', 'custom', 'cta', 'image', 'attempt']\n2023-10-31 22:29:18.899 | DEBUG    | dev_rewind.core.agent:create_agent:111 - file docs/community/vulnerabilities.rst keywords: ['red', 'markup', 'early', 'vulnerabilities', 'contact', 'info', 'note', 'clarify', 'cve', 'images', 'urls', 'disclosure', 'longer', 'valid', 'process', '5369', 'fixing', 'jeremycline', 'remove', 'ship', 'vulnerability', 'hat', '5881', 'analytics', 'subdomain']\n2023-10-31 22:29:18.970 | DEBUG    | dev_rewind.core.agent:create_agent:114 - keywords ready\nQuestion: \n```\n\n### Ask about a file\n\n```text\nQuestion: Tell me about the feature of tests/test_utils.py\n```\n\nBased on the fact we have extracted, it can answer well:\n\n```text\nAnswer: The file tests/test_utils.py contains keywords related to setting environment variables, bypassing proxies, extracting zipped paths, and comparing uri. It also contains keywords related to renaming, formatting, and parsing files.\n```\n\n### Ask about a feature\n\n```text\nQuestion: Which files talk about environment variables?\n```\n\nAnd it should work vice versa.\n\n```text\nAnswer: The response to your last comment is that the files related to environment variables are tests/utils.py, tests/conftest.py, tests/test_packages.py, .pre-commit-config.yaml, tests/test_hooks.py, tests/__init__.py, tests/test_structures.py, docs/user/advanced.rst, tests/testserver/server.py, and .coveragerc.\n```\n\n## Installtion\n\n```bash\npip install DevRewind\n```\n\nor just clone this repo. See the \"Contribution\" part.\n\n## How it works?\n\n\u003cimg width=\"625\" alt=\"image\" src=\"https://github.com/openai/openai-python/assets/13421694/58c90007-845b-4658-be4c-f32db072e718\"\u003e\n\nThe key of this repo is that, it will create a topic list for each file to represent them.\n\n## Contribution\n\n1. clone this repo\n2. install [poetry](https://python-poetry.org/)\n3. run `poetry install`\n4. run `poetry run devr`, which will start an interactive shell\n\nAlso, [dev_rewind/test_core.py](dev_rewind/test_core.py) should help.\n\n## License\n\n[Apache 2.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfzc%2Fdevrewind","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwilliamfzc%2Fdevrewind","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwilliamfzc%2Fdevrewind/lists"}