A self-evolving scaffold for autonomous web projects. The repo is the system. The scaffold's first project is itself.
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.
- 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
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.
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.
| 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 |
The scaffold improves itself continuously:
- Research โ checks 6 Active sources (Claude Code, Astro, Citadel, and others) every 6 hours
- Detect โ pipeline watcher catches failures and broken chains every 2 hours
- Act โ creates issues that flow through the full triage โ code โ review โ deploy pipeline
- Learn โ every human correction becomes a permanent rule that shapes future behavior
- 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.
- Fork this repo
- Settings โ Secrets โ Add
CLAUDE_CODE_OAUTH_TOKEN(get one) - Settings โ Pages โ Source: GitHub Actions
- Settings โ Actions โ General โ Allow GitHub Actions to create and approve pull requests
- The scaffold starts evolving itself immediately
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.mdwith tailored rules - Generate
apps/your-project/FEATURE_STATUS.md - Open a PR for your review
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
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.
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.
Built on patterns from:
- garrytan/gstack โ Garry Tan's Claude Code harness
- godagoo/claude-code-always-on
- mitchellh.com โ harness engineering
- Anthropic โ Effective Harnesses
- humanlayer/12-factor-agents
MIT โ fork it, adapt it, build on it.
