DEV Community

Cover image for Agent Snape - your GitHub manager
Insaf
Insaf

Posted on

Agent Snape - your GitHub manager

Auth0 for AI Agents Challenge Submission

This is a submission for the Auth0 for AI Agents Challenge

What I Built

I build an AI agent named Snape that can supervise your GitHub account seamlessly.

Just enter List my repositories and the Snape will summarize your all GitHub repositories

Demo

Live demo: Agent Snape
Repository:

This is a submission for the Auth0 for AI Agents Challenge

What I Built

I build an AI agent named Snape that can supervise your GitHub account seamlessly.

Just enter List my repositories and the Snape will summarize your all GitHub repositories

Demo

Live demo: Agent Snape

Here's some screenshots:

Image description

Image description

How I Used Auth0 for AI Agents

  • Authentication and session management: I used Auth0's login and logout functionalities to manage users identification. And also getSession function and useUser hook for session management.
  • Secure AI on user's behalf: I used Auth0's token vault to get users GitHub token
const github = new Octokit({ auth: token });

const { data } = await github.request("GET /user/repos", {
  visibility: "all",
});
Enter fullscreen mode Exit fullscreen mode

Snape has a check-point protected by auth0. It can't do anything without Auth0 permission given by…

Here's some screenshots:

How I Used Auth0 for AI Agents

  • Authentication and session management: I used Auth0's login and logout functionalities to manage users identification. And also getSession function and useUser hook for session management.
  • Secure AI on user's behalf: I used Auth0's token vault to get users GitHub token
const github = new Octokit({ auth: token });

const { data } = await github.request("GET /user/repos", {
  visibility: "all",
});
Enter fullscreen mode Exit fullscreen mode

Snape has a check-point protected by auth0. It can't do anything without Auth0 permission given by Auth0 token vault.

Lessons Learned and Takeaways

By doing this project I have learn the importance of securing AI agent and how Auth0's features simplify the overall process.

Takeaways

  1. Manage which APIs the agent can use on the user's behalf.
  2. Limit agent's knowledge.

Tech stack I used during the project

  • Next.js 15
  • Vercels AI-SDK
  • Auth0 for AI agents
  • HuggingFace free inference provider
  • Github's Octokit SDK

Top comments (0)