DEV Community

B G Adam
B G Adam Subscriber

Posted on

2 2 3 3 2

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.

devbridge help

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.

devbridge learn

The goal is to help developers stay in their flow by bringing AI-powered assistance directly to the command line.

Demo

Prerequisites:

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)
Enter fullscreen mode Exit fullscreen mode

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.

devbridge demo

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.

Sentry image

Make it make sense

Make sense of fixing your code with straight-forward application monitoring.

Start debugging →

Top comments (0)

Tiger Data image

🐯 🚀 Timescale is now TigerData: Building the Modern PostgreSQL for the Analytical and Agentic Era

We’ve quietly evolved from a time-series database into the modern PostgreSQL for today’s and tomorrow’s computing, built for performance, scale, and the agentic future.

So we’re changing our name: from Timescale to TigerData. Not to change who we are, but to reflect who we’ve become. TigerData is bold, fast, and built to power the next era of software.

Read more

👋 Kindness is contagious

Dive into this thoughtful piece, beloved in the supportive DEV Community. Coders of every background are invited to share and elevate our collective know-how.

A sincere "thank you" can brighten someone's day—leave your appreciation below!

On DEV, sharing knowledge smooths our journey and tightens our community bonds. Enjoyed this? A quick thank you to the author is hugely appreciated.

Okay