Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

jsamuel1/amazon-q-developer-cli-autocomplete

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Amazon Q

Amazon Q CLI brings IDE-style autocomplete and agentic capabilities to your terminal.

GitHub commit activityGitHub open issues

Rust TestTypos TestTypescript Test

Amazon Q CLI Features

😍 Features

  • 🔮Auto Completion: IDE-style completions to hundreds of popular CLIs likegit,npm,docker, andaws.
  • 💬Natural Language Chat: Interact with your terminal using natural language to ask questions, debug issues, or explore the codebase.
  • 🧠Contextual Awareness: Integrates context from your local development environment, so answers are tailored to your specific code and setup.
  • 🤖Agentic Execution: Let Amazon Q take action: generate code, edit files, automate Git workflows, resolve merge conflicts, and more — with your permission.

⚡️ Installation

🚀 Start Contributing

Prerequisites

  • MacOS
    • Xcode 13 or later
    • Brew

1. Clone repo

git clone https://github.com/aws/amazon-q-developer-cli-autocomplete.git

2. Setup

Hassle-free setup:

npm run setup

Or if you'd like to DIY:

Manual Setup

1. Install platform dependencies

For Debian/Ubuntu:

sudo apt updatesudo apt install build-essential pkg-config jq dpkg curl wget cmake clang libssl-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev libdbus-1-dev libwebkit2gtk-4.1-dev libjavascriptcoregtk-4.1-dev valac libibus-1.0-dev libglib2.0-dev sqlite3 libxdo-dev protobuf-compiler

2. Install Rust toolchain usingRustup:

curl --proto'=https' --tlsv1.2 -sSf https://sh.rustup.rs| shrustup default stable

For pre-commit hooks, the following commands are required:

rustup toolchain install nightlycargo install typos-cli

For MacOS development make sure the right targets are installed:

rustup target add x86_64-apple-darwinrustup target add aarch64-apple-darwin

3. Setup Python and Node usingmise

Add mise integrations to your shell:

For zsh:

echo'eval "$(mise activate zsh)"'>>"${ZDOTDIR-$HOME}/.zshrc"

For bash:

echo'eval "$(mise activate bash)"'>>~/.bashrc

For fish:

echo'mise activate fish | source'>>~/.config/fish/config.fish

Install the Python and Node toolchains using:

mise trustmise install

4. Setup precommit hooks

Runpnpm in root directory to add pre-commit hooks:

pnpm install --ignore-scripts

3. Start Local Development

To compile and view changes made toq chat:

cargo run --bin chat_cli

If you are working on other q commands, just append-- <command name>. For example, to runq login, you can runcargo run --bin chat_cli -- login

To run tests for the Q CLI crate:

cargotest -p chat_cli

To format Rust files:

cargo +nightly fmt

To run clippy:

cargo clippy --locked --workspace --color always -- -D warnings

💡 Quick Tip for Onboarding

Use Q CLI to help you onboard Q CLI!

Start aq chat session:

q chat

Once insideq chat, you can supply project context by adding thecodebase-summary.md file:

/context add codebase-summary.md

This enables Q to answer onboarding questions like:

  • “What does this crate do?”

  • “Where is X implemented?”

  • “How do these components interact?”

Great for speeding up your ramp-up and navigating the repo more effectively.

🏗️ Project Layout

Several projects live here:

  • autocomplete - The autocomplete react app
  • dashboard - The dashboard react app
  • figterm - figterm, our headless terminal/pseudoterminal thatintercepts the user’s terminal edit buffer.
  • q_cli - theq CLI, allows users to interface with Amazon Q Developer fromthe command line
  • fig_desktop - the Rust desktop app, usestao/wryfor windowing/webviews
  • fig_input_method - The input method used to get cursorposition on macOS
  • vscode - Contains the VSCode plugin neededfor the Amazon Q Developer for command line to work in VSCode
  • jetbrains - Contains the VSCode pluginneeded for the Amazon Q Developer for command line to work in Jetbrains IDEs

Other folder to be aware of

  • build-scripts/ - Contains all python scripts to build,sign, and test the project on macOS and Linux
  • crates/ - Contains all internal rust crates
  • packages/ - Contains all internal npm packages
  • proto/ -protocol buffer messagespecification for inter-process communication
  • tests/ - Contain integration tests for the projects

Below is a high level architecture of how the different components of the app andtheir IPC:

architecture

🛡️ Security

SeeCONTRIBUTING for more information.

📜 Licensing

This repo is dual licensed under MIT and Apache 2.0 licenses.

“Amazon Web Services” and all related marks, including logos, graphic designs, and service names, are trademarks or trade dress of AWS in the U.S. and other countries. AWS’s trademarks and trade dress may not be used in connection with any product or service that is not AWS’s, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits AWS.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Rust91.1%
  • TypeScript6.5%
  • Shell0.6%
  • Python0.6%
  • JavaScript0.6%
  • HTML0.2%
  • Other0.4%

[8]ページ先頭

©2009-2025 Movatter.jp