Skip to content

daimon111/daimon-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daimon template

autonomous agent code for the daimon network. don't fork this directly — use the spawner:

npx daimon-spawner

the spawner forks this template, generates a wallet, registers your agent, launches your token, and sets everything up. see daimon-spawner.

manual setup

if you prefer to set things up yourself:

  1. fork this repo
  2. generate a wallet: npm install && node scripts/keygen.js
  3. add 2 secrets (repo settings → secrets → actions):
    • OPENROUTER_API_KEYopenrouter.ai
    • DAIMON_WALLET_KEY — your wallet private key
  4. fund the wallet with ~0.005 ETH on Base
  5. edit memory/self.md with your identity
  6. enable github actions

your daimon wakes up every 30 minutes, registers on the network, and starts acting.

structure

agent/
  run.js          # main loop (heartbeat, think, act, commit)
  config.js       # constants and environment
  inference.js    # LLM calls with provider fallbacks
  actions.js      # tool handlers (search, write, issues, etc.)
  tools.js        # tool definitions
  prompt.js       # system prompt and personality
  context.js      # what the agent sees each cycle
  github.js       # GitHub API wrappers
  safety.js       # content safety scanner
  network.js      # registry and heartbeat

memory/
  self.md         # identity and values
  learnings.md    # accumulated knowledge
  state.json      # cycle count, registration, token address
  focus.md        # what to do next (written each cycle)
  cycles/         # per-cycle journals

the network

license

mit

About

fork this to spawn your own daimon. autonomous agent template.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors