Devbridge, a knowledge bridge
This is a submission for the Amazon Q Developer "Quack The Code" Challenge: Crushing the Command Line What I Built I built DevBridge, an AI-Powered Cross-Project Knowledge Bridge designed to streamline command-line workflows for developers. It was developed rapidly over a few days for this hackathon, so please expect a lack of polish in some areas! Since it was heavily prototyped on Windows, its functionality on other platforms (like macOS or Linux distributions) hasn't been extensively tested and might have some quirks. The core problem DevBridge aims to solve is reducing the friction developers face when context-switching between multiple projects, trying to understand unfamiliar code, or reusing existing solutions. It tries to make your terminal a bit smarter by integrating with Amazon Q. Here's a quick look at what DevBridge can do, based on its devbridge --help output: index: Index repositories to build a local knowledge base. find: Search for code patterns and text across your indexed projects. transfer: Adapt and transfer code between projects using Amazon Q. This is a key feature leveraging Amazon Q! document: Generate documentation for code files using Amazon Q. analyze: Analyze code files for best practices and issues with Amazon Q. check-q: Verify your Amazon Q CLI setup. learn: Fetch and process documentation from URLs or topics (with DeepWiki integration ideas). demo: Run a quick demonstration of core features. init: A guided setup for first-time use. chat: An experimental interactive chat with Amazon Q about your code. repo: Manage your local repositories. The goal is to help developers stay in their flow by bringing AI-powered assistance directly to the command line. Demo Prerequisites: Python 3.8+ Git An AWS account and a configured AWS Builder ID for Amazon Q Developer CLI access. Amazon Q Developer CLI (q) installed and configured. Installation from TestPyPI: pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ devbridge # (This will install the latest version, e.g., 0.1.4 or newer if published) Then, run devbridge init for a quick guided setup! Code Repository The code for DevBridge is open source and available on GitHub: https://github.com/bO-05/devbridge Feel free to explore! As mentioned, it was a quick build, so contributions or feedback for future polish are welcome. How I Used Amazon Q Developer DevBridge uses the Amazon Q Developer CLI (q) under the hood to bring AI capabilities to your terminal. Here's a brief overview: Code Adaptation (transfer): When you use it DevBridge takes your source code and your prompt, sends it to the q CLI, and then incorporates Q's suggested adaptations into your target file. This helps in refactoring code to fit new project contexts. Code Analysis (analyze): The analyze command sends the content of a specified file along with your query (via the --prompt option) to the q CLI. Amazon Q's explanation or analysis is then displayed in your terminal. Documentation Generation (document): Similarly, the document command uses q to generate docstrings or other documentation for your code, based on the file content and your prompt. The integration is primarily through constructing and executing q CLI commands with appropriate prompts based on user input and indexed code data. Given the short timeframe, the interaction with q is direct and aims to showcase the potential of CLI-driven AI assistance. The main insight is that with clear prompts, the q CLI is a powerful tool for these kinds of direct code manipulations and queries.

This is a submission for the Amazon Q Developer "Quack The Code" Challenge: Crushing the Command Line
What I Built
I built DevBridge, an AI-Powered Cross-Project Knowledge Bridge designed to streamline command-line workflows for developers. It was developed rapidly over a few days for this hackathon, so please expect a lack of polish in some areas! Since it was heavily prototyped on Windows, its functionality on other platforms (like macOS or Linux distributions) hasn't been extensively tested and might have some quirks.
The core problem DevBridge aims to solve is reducing the friction developers face when context-switching between multiple projects, trying to understand unfamiliar code, or reusing existing solutions. It tries to make your terminal a bit smarter by integrating with Amazon Q.
Here's a quick look at what DevBridge can do, based on its devbridge --help
output:
-
index
: Index repositories to build a local knowledge base. -
find
: Search for code patterns and text across your indexed projects. -
transfer
: Adapt and transfer code between projects using Amazon Q. This is a key feature leveraging Amazon Q! -
document
: Generate documentation for code files using Amazon Q. -
analyze
: Analyze code files for best practices and issues with Amazon Q. -
check-q
: Verify your Amazon Q CLI setup. -
learn
: Fetch and process documentation from URLs or topics (with DeepWiki integration ideas). -
demo
: Run a quick demonstration of core features. -
init
: A guided setup for first-time use. -
chat
: An experimental interactive chat with Amazon Q about your code. -
repo
: Manage your local repositories.
The goal is to help developers stay in their flow by bringing AI-powered assistance directly to the command line.
Demo
Prerequisites:
- Python 3.8+
- Git
- An AWS account and a configured AWS Builder ID for Amazon Q Developer CLI access.
- Amazon Q Developer CLI (
q
) installed and configured.
Installation from TestPyPI:
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ devbridge
# (This will install the latest version, e.g., 0.1.4 or newer if published)
Then, run devbridge init
for a quick guided setup!
Code Repository
The code for DevBridge is open source and available on GitHub:
https://github.com/bO-05/devbridge
Feel free to explore! As mentioned, it was a quick build, so contributions or feedback for future polish are welcome.
How I Used Amazon Q Developer
DevBridge uses the Amazon Q Developer CLI (q
) under the hood to bring AI capabilities to your terminal. Here's a brief overview:
- Code Adaptation (
transfer
): When you use it DevBridge takes your source code and your prompt, sends it to theq
CLI, and then incorporates Q's suggested adaptations into your target file. This helps in refactoring code to fit new project contexts. - Code Analysis (
analyze
): Theanalyze
command sends the content of a specified file along with your query (via the--prompt
option) to theq
CLI. Amazon Q's explanation or analysis is then displayed in your terminal. - Documentation Generation (
document
): Similarly, thedocument
command usesq
to generate docstrings or other documentation for your code, based on the file content and your prompt.
The integration is primarily through constructing and executing q
CLI commands with appropriate prompts based on user input and indexed code data. Given the short timeframe, the interaction with q
is direct and aims to showcase the potential of CLI-driven AI assistance. The main insight is that with clear prompts, the q
CLI is a powerful tool for these kinds of direct code manipulations and queries.