RepositoryAnalyser
RepositoryAnalyser: The autonomous AI agent built
Created on 10th November 2025
•
RepositoryAnalyser
RepositoryAnalyser: The autonomous AI agent built
The problem RepositoryAnalyser solves
The Problem Solved by RepositoryAnalyserThe modern software landscape is defined by large, rapidly evolving codebases and a high rate of technical churn. RepositoryAnalyser addresses the resulting challenges by using AI to automate the most time-consuming and expertise-heavy aspects of repository maintenance and evaluation.What Can People Use It For? (Core Use Cases)User RoleExisting Pain PointHow RepositoryAnalyser Helps (The Solution)New Developer OnboardingTakes weeks to understand the purpose, structure, and core dependencies of a new repository.Instant Context: Provides an immediate, summarized report covering the project's purpose, primary language, and key dependencies in seconds.Tech Lead / ManagerManually checking the health of numerous repositories for technical debt and outdated dependencies.Proactive Health Check: Gives objective metrics (stars, issues, recent activity) combined with an AI-generated summary of potential issues (e.g., “This project is actively maintained, but lacks clear documentation and dependency locks.”).Security/Compliance TeamAuditing new open-source libraries or internal dependencies for potential risks.Automated Pre-Scan: Immediately identifies the full dependency stack and highlights potential architectural concerns mentioned by the AI before manual security tools are run.Open Source MaintainerWriting up project summaries and status reports for community updates.Effortless Documentation: Generates comprehensive, well-structured analysis reports that can be copied directly into READMEs, status updates, or internal wikis.How It Makes Existing Tasks Easier/SaferThe system directly improves efficiency and security by shifting the burden of research from human effort to an autonomous AI agent:⏱️ Efficiency and SpeedReplaces Manual Code Exploration: Instead of cloning a repository, running setup, and sifting through dependency files (package.json, requirements.txt), the agent extracts, processes, and summarizes this data in a single API call (the Observe $\rightarrow$ Reason loop).Accelerates Decision Making: By providing an immediate, high-level summary and risk assessment, teams can quickly decide whether a repository is stable enough to integrate or if it requires a deeper investment of time.🛡️ Safer DevelopmentIdentifies Vulnerable Practices: The AI is instructed to look for common red flags (e.g., hardcoded secrets, outdated library references, lack of a clear license) within the fetched data, adding a crucial early-warning layer to the development process.Improves Code Quality Conversations: By providing an objective, third-party analysis of project health, it facilitates clearer conversations about necessary refactoring or documentation priorities, reducing team friction and technical debt accumulation
Challenges we ran into
Our project faced significant environmental restrictions imposed by the AWS Workshop Studio, which directly challenged the standard approach to serverless development. Overcoming these hurdles became a major technical feature of the submission.
- The "Blocked Deployment" Hurdle (IAM & CDK)
The Problem: We were prevented from deploying our initial infrastructure-as-code (CDK) stack because our user role lacked the necessary permissions:
We could not use CloudShell or local CLI tools.
We repeatedly encountered the Access denied to iam:PassRole error when trying to create a Lambda.
We also could not modify our Lambda's permissions using iam:PutRolePolicy.
The Solution (The Golden Path): We used focused reverse-engineering to find the system's "golden path."
Manual Infrastructure: We completely abandoned CDK and manually created the API Gateway and DynamoDB table (RepoInsights) through the console.
Role Exploitation: We discovered that the pre-existing role, lambda-iam-role-cfn-ImageEditBackendRole-G68zNHL3jbn3, was the only role we could successfully pass to a new Lambda function. We proceeded with the hypothesis that this "golden role" already contained the required bedrock:InvokeModel and dynamodb:PutItem permissions (which proved correct).
- The "Handler Mismatch" Bug
The Problem: Once the Lambda was deployed, we could not get the code to run. Every test (via the API Gateway) returned a fast failure with Runtime.HandlerNotFound: Handler 'handler' missing on module 'lambda_function'.
The Solution: This was a pure configuration mismatch. The error log proved the Lambda runtime setting was set to look for lambda_function.handler, but our code had been inconsistently named.
We stopped fighting the Lambda's configuration.
We explicitly renamed our main function to def handler(event, context): in the Python code (Version 8) to match the exact handler setting required by the service's error log. This immediately solved the startup crash.
- The "Dependency Blackout" Hurdle (GitHub API)
The Problem: Our Lambda code needed the external requests library to make the necessary calls to the GitHub API. However, we were blocked from creating new Lambda Layers with the lambda:PublishLayerVersion error.
The Solution (Built-in Resourcefulness): We pivoted to use a built-in Python module:
The entire GitHub API fetching logic was refactored from using the external requests library to using Python's built-in urllib.request module.
This allowed the application to perform secure, authenticated outbound calls to GitHub without requiring any external dependencies or layers, satisfying the full Observe phase of the agent loop.