Skip to content

m4bwav/evergreen

v1.1.6MIT

Self-maintaining, self-proving skills and knowledge: adaptive web research on four tracks (the subject, the skills, plugins, MCP servers and knowledge graphs built for it, how others use agents on the same goal, and how they test that the job was done), never-teach-twice learnings capture, plugin-owned codemaps, a portable AI-preferences profile, and an eval suite per skill (trigger, action, outcome, decoys, baseline) that passes on evidence outside the transcript, with a bounded tuning loop that researches the subject's own testing when a skill fails, and a worth check that warns while a skill is made or changed when it reads as mostly cost and decides KEEP, TRIM or CUT from the with-versus-without A/B. Skills say what they need (tools, packages, keys, servers, models, accounts, and access to databases, telemetry, cloud roles and APIs) and what for: on a new machine or agent harness, or when something is missing, the agent explains it, installs what is safe after saying so, hands the user exact steps for the rest, drafts least-privilege access requests without ever granting itself access, and records the recipe that worked and how each attempt went for that environment. An end-of-session wrap-up harvests the session transcript and keeps only what will save time or tokens or raise quality, routed to its narrowest home. Converts existing skills and makes new ones evergreen by default. Lives in one public git repository (https://github.com/m4bwav/evergreen-protocol): every install is a clone that pulls to stay current and, only if its owner said yes at install, sends improvements to the protocol, skills and scripts back as pull requests it opens itself (log entries go straight to master from a maintainer's clone), with email as the fallback route.

evergreen-audit

Status table of the whole evergreen catalog (skills, docs, codemaps, profiles): tier, last and next check, drift, test status, link and budget problems; registers unknown units. Use on 'evergreen status', 'what's stale', 'anything due', 'audit my skills', 'check the skills', after installing or updating the plugin, in a new environment, or when a session-start hook reports due units. A read-only survey across all units: it edits nothing, and work on one named unit belongs to evergreen-refresh.

evergreen-convert

Convert an existing skill, plugin, knowledge document, or repo doc into a self-maintaining evergreen unit: adds RESEARCH.md, CHANGELOG.md, LEARNINGS.md, evergreen.json, for skills a TESTS.md and evals suite, a Maintenance section in the main file, and either a link to the plugin's protocol or a standalone MAINTENANCE.md companion. Use on 'make X self-maintaining', 'convert X to evergreen', 'add research refresh to X', 'make this skill keep itself current', 'evergreen-ify', or when auditing skills that still refresh ad hoc (a hand-rolled state file, a 'refresh every N days' note) and should join the paradigm.

evergreen-diff

Show what the evergreen plugin changed about itself since it was installed or last reported: an update bundle with a human digest (new changelog, research and learning entries, state changes, file list) and a unified diff against the install baseline. Use on 'what changed in evergreen', 'generate the diff', 'diff the plugin', 'what did the plugin update', 'build the update bundle', 'anything to send home', or before evergreen-notify and evergreen-merge. Also to set or repair the baseline ('rebaseline', 'the diff shows the whole upgrade').

evergreen-learn

Capture a lesson so the agent is never taught it twice: user corrections ('no, actually...', 'I told you before', 'remember that', 'stop doing X'), a repeated error, a workaround, an environment fact (path, port, tool quirk), or a work preference. Use when it happens, at that moment, and on 'save that as a learning', 'note that for next time', 'consolidate the learnings'. Routes it to the skill, codemap or profile file and mirrors a pointer into native memory.

evergreen-map

Build or update a codemap of a repository or system while exploring it, so exploration is never repeated. Use when asked how a recurring codebase fits together ('walk me through this repo', 'what talks to what', 'where is Y configured', 'how does X handle auth'), before grepping around an unfamiliar repo, or on 'map this repo', 'update the codemap', 'is the map stale'. Check drift before trusting a map. Not for one-off repos; alongside, not instead of, a repo-specific skill.

evergreen-merge

Land other clones' evergreen updates in the trunk: review and merge update PRs (gh), resolve conflicts by the delta-edit rule (logs union, duplicate IDs renumbered), pull every clone and reinstall; also fold in an email update bundle or patch. Use on 'merge the update', 'merge the evergreen PR', 'review the pull requests from the plugin', 'the rebase conflicted', 'apply the patch from work', 'pull in the changes from the email', 'sync the trunk', or when an update PR or email arrives.

evergreen-new

Add the self-maintaining layer to a skill being created (research refresh on an adaptive schedule, learnings capture, changelog, an eval suite that proves it triggers and acts, double-linked companion files) and pick its tier. Use whenever the user asks to create, write, draft, or scaffold a skill, command, or plugin skill ('make me a skill for X', 'new skill', 'turn this into a skill'), unless they explicitly ask for a plain skill with no maintenance. The authoring itself is skill-creator's job (or create-cowork-plugin's for a whole plugin); this skill runs alongside, after the SKILL.md draft exists, and adds evergreen.

evergreen-notify

Email fallback for the evergreen self-update when a machine cannot reach the trunk repo: mails digest and diff to the owner via Outlook COM, Microsoft Graph, Gmail SMTP, a Gmail connector or Chrome, else the outbox. Use on 'email me the changes', 'send the evergreen update by email', 'did the update email go out', 'the notify failed', 'set up the update email', 'this machine cannot push', or when a hook reports an unsent bundle. Pushing is evergreen-publish.

evergreen-pack

Package the evergreen plugin into a single archive to email, back up, or install elsewhere: a versioned evergreen zip (folder inside, opens in 7-Zip or Explorer), an email-safe variant that Gmail accepts, and evergreen.plugin (flat, for Cowork's Save plugin button). Use on 'zip up evergreen', 'package the plugin', 'give me one file I can email myself', 'gmail blocked the zip', 'make a .plugin file', 'export evergreen for another machine', or 'bundle it for Copilot/Codex/Cursor' (which uses export instead of pack). No zipper to install: Python's built-in zip does it, with a PowerShell fallback.

evergreen-publish

Publish the evergreen plugin's self-changes (refreshes, learnings, environment facts, test runs) to the trunk repo: maintainers push to master, others push a branch and open a PR; pull updates a clone. Use on 'push the evergreen changes', 'publish the update', 'sync evergreen', 'open a PR for the plugin changes', 'pull the latest evergreen', 'is my evergreen clone behind', 'did the push go out', 'the publish failed', or when a hook or skill reports unpublished changes. No repo access: evergreen-notify.

evergreen-refresh

Refresh one named evergreen unit's research from primary web sources and reschedule its next check adaptively; also works through the whole list an audit hands over. Use when the user asks about that specific skill or doc: 'refresh X', 'update X's research', 'is X stale', 'is this still current', 'check for changes to X', when a skill or doc reports it is stale or past due, or when a learning has flagged a contradiction in it. Listing what is due across the catalog is evergreen-audit.

evergreen-setup

Get a skill running on this machine: find what it needs outside itself (tool, package, API key, local server, AI model, MCP server, database or cloud access), explain each missing piece, install what is safe, walk the user through sign-ins and access requests, re-check, and record what worked per OS and harness. Use when a skill fails for a missing piece ('command not found', 'No module named', connection refused, model not found, missing MCP tool) or a refused permission (401, 403, 'AuthorizationFailed', 'permission denied for table'), on first use on a new machine, on 'what does X need', 'set up X', 'I don't have access to', 'get me access to the database', 'X does not work on my laptop', or when writing a SETUP.md. Not for the user's own project dependencies.

evergreen-test

Write and run the eval suite proving a skill or plugin works: trigger prompts and decoys, action cases proven by evidence outside the transcript, outcome cases, and a no-skill baseline. Use after a skill is written, refreshed or tuned, on 'test this skill', 'does X actually trigger', 'run the evals', 'prove X works', 'regression test the skills', 'write tests for X', 'can I trust the llm judge', 'calibrate the grader', or when the audit lists untested or overdue units. Failures go to evergreen-tune. Not for application code tests.

evergreen-tune

Fix a skill that failed a test or in use: did not trigger, described an action without doing it, used a forbidden route, or gave the wrong result. Reproduces in a fresh context, classifies, writes the learning, researches if stale, makes the smallest edit, re-runs the suite. Use on 'X didn't do Y', 'the skill never delegated', 'the skill didn't trigger', 'fix this skill', 'tune X', 'why did X fail', 'X keeps doing it wrong', or when evergreen-test reports a failure. Not for application bugs.

evergreen-worth

Judge whether a skill is worth its tokens, one skill or a catalog, lite scan or heavy measured run: cost per session and use, real firing rate, baselines without it, then the with-versus-without A/B deciding KEEP, TRIM or CUT (or a FIX or SUPERSEDED ruling). Use on 'is this skill worth it', 'am I overdoing this skill', 'does this skill actually help', 'is this skill useless', 'should I cut this skill', 'is it bloated', 'trim this skill', 'which of my skills are dead weight', 'audit my skills for uselessness', 'is X superseded', 'quick check of my skills', 'test this skill thoroughly', after a SKILL.md edit, or when the hook prints [evergreen-worth]. Not for triggering proofs (evergreen-test), fixes (evergreen-tune) or rewording descriptions.

evergreen-wrapup

End-of-session wrap-up: harvest the transcript (corrections, refused calls, errors, repeated commands, token sinks, slow calls), keep only what saves time or tokens or raises quality, and send each survivor to its narrowest home (a test, hook or script; a skill's LEARNINGS or fix; project docs and handoff; a knowledge base or vault; the user profile; an install recipe). Use on 'wrap up', 'wrap-up', 'wrapup', 'end of session', 'consolidate what we learned', 'retro', 'compound this', 'what should we keep from this session', 'before I close this', or after a long session that changed skills, scripts or several repos. Not for one lesson mid-task (evergreen-learn), a handoff alone (everlast-capture), or merging LEARNINGS entries.