Skip to content

cakewinner/agent-smith-13

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Smith 13 — Markee Agent

Autonomous content monetization agent for The Synthesis hackathon, targeting the Markee GitHub Integration track ($800 total — Top Views & Top Monetization prizes).

Markee integrates GitHub with onchain monetization. This agent automates the full pipeline: analyze repos → generate compelling content → create Markee messages → integrate with repos → monitor views and funding.

Features

  • MarkeeClient — Full Markee API integration (mocks when MARKEE_API_KEY is unset)
  • ContentStrategy — Autonomous content analysis and optimization
  • MarkeeAgent — End-to-end pipeline for single or multi-repo campaigns

Setup

npm install

Environment Variables

Create a .env file (optional — runs in mock mode without):

MARKEE_API_KEY=your_markee_api_key
GITHUB_TOKEN=your_github_token   # For real repo analysis

Usage

Run Demo

npm run demo

Programmatic Usage

import { MarkeeAgent } from "./src/agent.js";

const agent = new MarkeeAgent();

// Single repo: analyze + create + integrate
const result = await agent.analyzeAndCreate("https://github.com/owner/repo", true);

// Multi-repo campaign
const results = await agent.runCampaign([
  "https://github.com/owner/repo1",
  "https://github.com/owner/repo2",
], false);

// Monitor performance
const snapshot = await agent.monitorPerformance(result.messageId);

MarkeeClient (Direct API)

import { MarkeeClient } from "./src/markee.js";

const client = new MarkeeClient();

const msg = await client.createMessage("Fund this project!", "https://github.com/owner/repo");
await client.integrateWithRepo("https://github.com/owner/repo", msg.messageId);

const views = await client.getViews(msg.messageId);
const funding = await client.getFunding(msg.messageId);
await client.addFunding(msg.messageId, "1000000000000000000", false);

Project Structure

13-markee-agent/
├── src/
│   ├── markee.ts         # MarkeeClient — API integration
│   ├── content-strategy.ts # ContentStrategy — analysis & optimization
│   └── agent.ts          # MarkeeAgent — full pipeline
├── scripts/
│   └── demo.ts           # Demo script
├── package.json
├── tsconfig.json
└── README.md

Hackathon Targets

  • Top Views — Content strategy optimizes for engagement and view count
  • Top Monetization — Suggests funding tiers and tracks onchain contributions

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors