freshcrate
Home > AI Agents > tokenman

tokenman

A self-evolving scaffold for autonomous web projects. 9 workflows, hourly self-evolution, self-healing pipeline, feedback learning loop. The repo is the system.

Description

A self-evolving scaffold for autonomous web projects. 9 workflows, hourly self-evolution, self-healing pipeline, feedback learning loop. The repo is the system.

README

Tokenman

A self-evolving scaffold for autonomous web projects. The repo is the system. The scaffold's first project is itself.

Deploy Self-Evolve Pipeline Watcher

Live site ยท Agent log


What it is

Tokenman is a harness of GitHub Actions workflows that make any web project fully autonomous. The agent researches improvements, triages issues, writes code, reviews PRs, and deploys โ€” all without human intervention.

No server. No daemon. No database. GitHub IS the infrastructure.

Key features

  • Self-evolution every 6 hours โ€” researches 6 Active sources with posture-based rotation, creates issues for actionable improvements
  • Full autonomous pipeline โ€” evolve โ†’ triage โ†’ coder โ†’ reviewer โ†’ deploy, with explicit workflow chaining
  • Self-healing watcher โ€” monitors the pipeline every 2 hours, re-triggers broken chains, creates fix issues
  • Feedback learning loop โ€” human corrections are extracted into persistent rules that shape all future agent behavior
  • Blacklist policy โ€” agents can modify anything (including their own workflows) unless it's a hard block (secrets, infinite loops, build failures)
  • Smart triage โ€” elaborates vague issues into structured specs with acceptance criteria and affected files

How it works

Every 6h            โ†’ evolve.yml   โ†’ research + ideas  โ†’ create issues
Issue created       โ†’ triage.yml   โ†’ classify + elaborate โ†’ label
agent-ready label   โ†’ coder.yml    โ†’ implement          โ†’ open PR
PR opened           โ†’ reviewer.yml โ†’ review + merge     โ†’ deploy
Every 2h            โ†’ watcher.yml  โ†’ health check       โ†’ self-heal
Human feedback      โ†’ feedback-learner.yml โ†’ extract lesson โ†’ permanent rule
Every 6 hours       โ†’ analyze.yml  โ†’ strategic review   โ†’ priorities
Your instruction    โ†’ claude-task  โ†’ Claude acts         โ†’ commit

Each link in the chain is an explicit gh workflow run call โ€” no reliance on GitHub event propagation.


Interacting with the pipeline

You can steer the agent at any time using these actions:

Action What happens
Comment on an issue Feedback learner extracts lessons; if actionable, re-triggers coder
Close a PR without merging Rejection detected โ€” agent-ready re-added to linked issue, coder re-triggered with rejection context
Close an issue as "not planned" Feedback learner records an AVOID rule โ€” agent won't create similar issues
Write "Always do X" or "Never do Y" in a comment Extracted as a permanent learned rule that shapes all future agent behavior
Add agent-ready label to an issue Coder picks it up on next run
Run claude-task.yml manually Your dev channel โ€” type any instruction

Human corrections compound. Say it once and the system remembers permanently.


The fourteen workflows

Workflow Trigger What it does
evolve.yml Every 6 hours Researches 6 Active repos with posture-based rotation, creates improvement issues
triage.yml Issue opened / dispatched Classifies, elaborates with acceptance criteria, routes to coder
coder.yml agent-ready label / dispatched Implements fix on feature branch, opens PR
reviewer.yml PR opened / dispatched Reviews code, runs build, merges or blocks
watcher.yml Every 2 hours Monitors pipeline health, re-triggers broken chains
growth.yml Twice daily Discovers distribution opportunities, creates releases, measures impact
feedback-learner.yml Human comment/review Extracts lasting lessons into learned rules
deploy.yml Source files pushed to main Astro build โ†’ GitHub Pages
analyze.yml Every 6 hours Strategic analysis of past activity
discover.yml Manual dispatch Scans apps/ folders, generates project CLAUDE.md
claude-task.yml Manual dispatch Your dev channel โ€” type any instruction
test-evolve.yml Issue event Test Evolve
sync-labels.yml Issue event Sync Labels
security-scan.yml PR event Security Scan โ€” Workflow YAML

Self-evolution

The scaffold improves itself continuously:

  1. Research โ€” checks 6 Active sources (Claude Code, Astro, Citadel, and others) every 6 hours
  2. Detect โ€” pipeline watcher catches failures and broken chains every 2 hours
  3. Act โ€” creates issues that flow through the full triage โ†’ code โ†’ review โ†’ deploy pipeline
  4. Learn โ€” every human correction becomes a permanent rule that shapes future behavior
  5. Heal โ€” watcher re-triggers stalled workflows, coder fixes pipeline bugs

The system can modify its own workflows, skills, and rules. Only hard blocks (secrets in code, infinite loops, build failures) stop a merge.


Quick start

  1. Fork this repo
  2. Settings โ†’ Secrets โ†’ Add CLAUDE_CODE_OAUTH_TOKEN (get one)
  3. Settings โ†’ Pages โ†’ Source: GitHub Actions
  4. Settings โ†’ Actions โ†’ General โ†’ Allow GitHub Actions to create and approve pull requests
  5. The scaffold starts evolving itself immediately

Adding a project

Create a folder in apps/ with your code. Run discover.yml. The agent will:

  • Scan your files and infer the stack
  • Generate apps/your-project/CLAUDE.md with tailored rules
  • Generate apps/your-project/FEATURE_STATUS.md
  • Open a PR for your review

Architecture

state/                    # Committed state (read/write every run)
โ”œโ”€โ”€ project_state.md      # Current priorities (overwritten each run)
โ”œโ”€โ”€ agent_log.md          # Append-only action log
โ”œโ”€โ”€ research_log.md       # Append-only research findings
โ””โ”€โ”€ learned_rules.md      # Human feedback โ†’ permanent rules

apps/                     # Projects managed by the scaffold
โ”œโ”€โ”€ scaffold/             # The scaffold manages itself
โ””โ”€โ”€ profile/              # Additional projects

.github/workflows/        # The fourteen autonomous workflows
skills/                   # Agent skill files (markdown prompts)
src/                      # Astro site source

Philosophy

The model is the agent. The code is the harness. The git log is the audit trail.

Every agent mistake becomes a learned rule. The constitution grows with the project. The Issues tab is the event bus. The Actions tab is the dashboard. Human corrections compound โ€” say it once, never repeat it.


Research sources

The evolve agent monitors external repos using a posture-based rotation across four modes: PATTERN_HUNT (deep-dive Active sources), PIPELINE_WATCH (CI health), HORIZON_SCAN (discover new repos), and SYNTHESIS (cross-reference findings). See state/research_sources.md for the full, Claude-managed source portfolio.

Active sources: anthropics/claude-code ยท hesreallyhim/awesome-claude-code ยท SethGammon/Citadel ยท actions/runner ยท withastro/astro ยท verkyyi/tokenman (self)

Plus 12 repos on the Watch List under evaluation for promotion or removal.


References

Built on patterns from:


License

MIT โ€” fork it, adapt it, build on it.

Release History

VersionChangesUrgencyDate
v0.5.1Two fixes identified, implemented, and merged entirely by the autonomous pipeline โ€” zero human intervention required. ### Fixes - **Node.js 20 migration** (#163): Upgraded all 14 workflow files (23 action refs) from v4 to v5/v6 ahead of GitHub's June 2026 Node.js 20 deprecation deadline. Pipeline Watch detected the deprecation notice, created the issue, Coder fixed it, Reviewer approved, auto-merged. - **Evolve operational tuning** (#161): Reduced evolve max-turns from 55โ†’45 and added 0-yieldHigh4/13/2026
v0.5.0## What's New The scaffold now tests its own scripts, lints its own shell code, manages its own dependencies, and optimizes its own operating costs. ### Self-Testing Infrastructure - **ShellCheck linting** for all `scripts/` shell code (#130) - **BATS-Core tests** for script validation (#140) - Scripts are now linted and tested on every PR, catching issues before merge ### Self-Optimization - **Autonomous cost reduction**: The system detected that its evolve workflow had 0 pattern yield over High4/7/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

ai-git-hooksAutomate git workflows with AI-powered hooks that review code, generate and validate commit messages, and scan for bugs and security issues.main@2026-04-21
claude-code-skillforgeBuild, upgrade, and validate Claude Code and Antigravity SKILL.md files with live best practices and multi-marketplace discovery tools.main@2026-04-21
clensCapture and analyze Claude Code sessions locally to track every tool call, decision, and reasoning step without external dependencies.main@2026-04-21
clayTurn Claude Code into a team workspace. Any device, one command.v2.32.0
GENesis-AGIAutonomous AI agent with persistent memory, self-learning, and earned autonomy. Cognitive partner that remembers, learns, and evolves.v3.0a7