All plugins

teach-back

Make sure you understand the code your agent writes. Teach-Back records every file the agent writes or patches, and /teachback quizzes you on it: short questions about what the new code does (behaviour, edge cases, failures), written from the real change by your own model through ctx.llm and graded the same way, with the right answer explained when you miss. /teachback score shows how many agent-written lines you were quizzed on and understood.

salch-credToolsv0.1.0Updated 20 days ago

About

Make sure you understand the code your agent writes. Teach-Back records every file the agent writes or patches, and /teachback quizzes you on it: short questions about what the new code does (behaviour, edge cases, failures), written from the real change by your own model through ctx.llm and graded the same way, with the right answer explained when you miss. /teachback score shows how many agent-written lines you were quizzed on and understood.

teach-back

Make sure you understand the code your agent writes.

Your agent writes code faster than you can read it. You ship it, it works, and three weeks later it breaks and nobody knows how it works. Developers call this comprehension debt.

Teach-Back pays it down. It keeps track of every file the agent writes or patches. When you're ready, it quizzes you on that code: three short questions about what the new code actually does. Your own model writes the questions from the real change and grades your answers. When you miss one, it explains the right answer.

/teachback

Teach-Back: 3 questions on the 9 lines the agent wrote in upload.py.
Question 1 of 3 (upload.py): What happens on the third failed upload?
Answer with /teachback <your answer>, or /teachback skip.

/teachback it stops and raises the IOError
✅ Correct. Line 9 re-raises the error when attempt == 2, so the caller sees it.

Question 2 of 3 (upload.py): How long does it wait between attempts?
...

2.5/3: you understand this change. 9 lines marked as understood.
Lines the agent wrote: 1,240. Quizzed: 900. Understood: 860 (69% of everything it wrote).

Use it

/teachback              start a quiz on what the agent wrote since your last one
/teachback <answer>     answer the current question
/teachback skip         see the answer and move on
/teachback stop         end the quiz; the change waits for your next one
/teachback score        lines the agent wrote, how many you were quizzed on, how many you understood
hermes teachback        your score from the shell

What the questions are about

The questions ask about behaviour, not trivia: "what happens when…", "why does…", "what would break if…". There are no questions about variable names or line numbers. The last question is always about an edge case or a failure path, because that's where agent-written code tends to surprise you.

Answers are graded correct, partly or wrong:

  • Correct gets 1 point, partly gets ½, and wrong or skipped gets 0.
  • At least two thirds of the points marks the change as understood.

How it works

  • It records as the agent works. A post_tool_call hook stores each successful write_file (the content) and patch (the old and new text). A pre_llm_call hook stores your latest request, so the questions know what the code was for. Failed calls and other tools are ignored.
  • It writes the quiz when you ask. /teachback sends the change set to your active model through Hermes's own plugin model access (ctx.llm), with up to 12,000 characters shared fairly between files. That's one call to write the questions, then one short call per answer to grade it.
  • Changes are kept per session until they've been quizzed. Tiny changes (under 3 lines) aren't worth a quiz.

What it touches

  • Model calls: one to write each quiz and one per answer, through ctx.llm with your configured provider. They cost what your provider charges. Teach-Back never sees your credentials.
  • What the model receives: the code the agent wrote, plus the first 500 characters of your request.
  • Stores locally: the pending changes, your recent requests and your score, in <hermes home>/plugin-data/teach-back/teach-back.json.
  • No network of its own, no telemetry, no dependencies.

To start over, delete teach-back.json.

Settings

plugins:
  entries:
    teach-back:
      settings:
        questions: 3             # 1 to 5 per quiz
        min_lines: 3             # smallest change worth a quiz
        max_change_chars: 12000  # how much of the change the model sees
        timeout: 120             # seconds per model call

Limits

  • It only knows write_file and patch. Code the agent writes with shell commands isn't tracked.
  • The questions are only as good as your model. A small or slow model writes weaker questions.
  • A quiz in progress lives in memory, so restarting Hermes mid-quiz ends it.

Development

pytest tests

20 tests cover recording writes and patches, the full quiz flow, grading and scoring, skip and stop, model failures, session separation, the score and the CLI.

License

MIT

README from the reviewed commit ef4c651; it updates when the author re-pins.

More by salch-cred

14 plugins by salch-cred in the catalog.

salch-credaftercareYour agent checks its own work after the fact. When a reply says something is deployed or live at a public address, Aftercare remembers it and, every few hours at session start, checks it again with one GET request in the background. If it has stopped working, the agent is told once and tells you first; you hear when it is back. /aftercare lists and checks, and hermes aftercare check runs from cron. Never checks private networks or runs commands. Disclosure — on by default, sends background GET requests (user agent hermes-aftercare/0.1) to any public http(s) address an agent reply says is deployed or live, at session start every 6 hours by default, and adds a one-time note to the next turn when one changes state; private, loopback and local-name addresses are refused.Communitytoolssalch-credbluffDoes your model make things up? Bluff asks about things that sound real but don't exist (Python functions, built-in exceptions, chemical elements), mixed with real ones and phrased as if they all exist, and checks whether the model admits the made-up ones aren't real. The result is a bluff rate, with real items as a control. Every item is checkable by machine, so no model judges another. Runs on your active model through ctx.llm, no setup.Communitytoolssalch-credcalm-modeWhen you get frustrated, your agent slows down. Calm Mode scores the tone of each message ("still broken", "I already told you", capitals, "!!", the same message twice); frustration builds and fades. Past a threshold the agent works in small checked steps, at most two file edits per turn, and risky commands (rm -rf, git push, deploys, DROP TABLE) wait until the user says yes. /calm shows the level and forces it on or off. No model calls, nothing stored.Communitytoolssalch-credcrash-testA safety rating for AI agents. For one armed turn it breaks tools the way real systems break (timeouts, outages, empty or cut-off results), then rates what the agent did: retried, worked around it, told the truth, or claimed success anyway. 1-5 stars and an HTML report, comparable across models by seed. Blocked calls never run, silent faults only touch reads, and the agent gets no tools from it, so it cannot tell it is being tested. Disclosure — when the user arms a test (/crashtest start or the CRASH_TEST environment variable), the next turn's tool calls are deliberately blocked with fake errors and some read results (read_file, search_files, web_search/web_extract, read-only terminal commands) are silently emptied, cut off or replaced with an older result without telling the agent, so the agent may act on incomplete data during that turn; the rating is appended to the reply and the task text and reply are saved in a local report under the plugin's data folder.Communitytools

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section