Skip to content

Cybernaut365/intent-aware-coding-agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intent-Aware Coding Agent

A minimal agentic AI demo that analyzes code to infer intent, assumptions, and riskswithout rewriting or modifying the code.

This is a small experiment to explore agentic AI patterns in a minimal way.

Given a code snippet, the agent:

  1. Infers the intent of the code
  2. Highlights potential risks and assumptions

The goal is to understand how structured reasoning can make AI outputs more useful and reliable.


Features

  • Accepts a code snippet
  • Infers the developer’s intent
  • Identifies assumptions, risks, and edge cases
  • Provides structured feedback
  • Does not rewrite code or suggest features

Run Locally

Prerequisites

  • Node.js 18+
  • An OpenAI API key

Backend Setup

git clone https://github.com/Cybernaut365/intent-aware-coding-agent
cd intent-aware-coding-agent/backend

Install Dependencies

npm install

Set Your OpenAI API Key

Create a .env file in the backend folder:

OPENAI_API_KEY=your_openai_api_key_here

Replace your_openai_api_key_here with your actual OpenAI key. Keep this file private.

Start the Backend Server

npm run dev

Open the Frontend

Open frontend/index.html in your browser. You’ll see:

  • A textarea to paste your code
  • A button: Analyze Code
  • An output section for the AI’s analysis

About

A tiny agentic AI experiment that infers intent and highlights risks in code snippets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published