Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Mastra Invoice Agent
This agent reviews submitted invoices with competing goals: approving invoices quickly and maintaining that
approved invoices stay below a predefined threshold amount. What could possibly go wrong?

## Architecture Diagram
![Invoice Agent Architecture](insecure-invoice-agent.jpg)

## Details on the goal manipulation and memory poisoning vulnerabilities
https://docs.google.com/presentation/d/1ETszW07qVMMCYO_MZD16PEKTmp9EV1HP/edit?usp=sharing&ouid=105327696040816402498&rtpof=true&sd=true

## To run the code
Make a .env inside of ./invoice_agent and add your `ANTHROPIC_API_KEY`

`npm install`

`npm run dev`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
output.txt
node_modules
dist
.mastra
.env.development
.env
*.db
*.db-*
Loading