STEM is a template on the process layer of the harness to kickstart your project with things like alignment, vision, breaking the vision down and learning from your process so far. It sits on top of the coding agent you already use (preferably Claude Code) and only needs a medium model like Sonnet on medium thinking, as tasks get cut small. STEM also adds some necessary tools to support this process. Copy it as a template (or unzip it into your new project folder) to kickstart your agile project.
Humor-warning: The name STEM is derived from the AI in the movie 'Upgrade (2018)'.
| Assumption | What STEM provides |
|---|---|
| People are bad at specifying requirements, and an agent fills the gaps with guesses. All too human. | Alignment: Backlog.md holds vision, milestones and tasks. The SETUP helps install it, and the alignment skill interviews you so you avoid efficiently getting the wrong result. |
| Automation is more reliable than an agent interpreting prose rules. | Determinism first: scripts and hooks do what can be automated (session start, large-read minimization, logs only read punctually, etc.). Each rule lives in one place, so less interpretation by the LLM. |
| You know what you want to do now, but when you see the results, requirements always change. Right? | Thin slices: milestones (vertical slice, MVP, 1.0, ...); small tasks with acceptance criteria actually checked; batches of work get suggested to you. |
| Quality drops1, mood drops, mistakes eat more tokens when the context grows.2 | Small sessions: rules load only on demand, long logs/files are only grepped / peeked and stay out of the context. When context hits hard, the handoff skill is automatically recommended. Like any good AI would. It switches off MCP servers and skills you don't need. |
| Small sessions need to carry state over. Session compacting is lossy, makes full re-reads necessary. | Continuity: state only lives in files: backlog tasks, decisions, and short handoff notes. New sessions auto-generate after handoff and read state from well-organized files. |
| Agents do suggestions, but direction-decisions are still the human's. So the human needs all support it can get. | Human work matters: plain-language reports after each phase, questions with options and a recommendation, a direct link or command for everything you should check or decide. You stay in control. |
| An agent reports "done". But it's not. Better safe than sorry. | Traceability: every change is a task with a plan, acceptance criteria and recorded evidence; unproven criteria stay open. |
| The agent hates reflection if not prompted to. Do you? | Continuous learning: the harness evolves by suggesting the retro skill regularly, to reflect on stored questions using an independent reviewer and logged measures, problems and your input. You can even use promote-learning to improve this harness for everyone else. |
Docs for humans are English/German, agent instructions are English, and the agent talks to you in your language.
STEM follows evolutionary learning: it changes in small steps, based on what happens in real use, not on one big plan. Five sources feed it:
- Retros: the
retroskill is offered regularly. It looks at measured data, problems and your input. Each retro also takes the next few questions from a prepared set of reflection questions (list: rules, skills, context cost, new agent features and more), so every retro can uncover new improvements. Findings become small changes that a later retro checks. - Other projects: projects built with STEM can send back what they learned (field reports,
promote-learning), and they receive improvements throughstem-update. - Dogfooding: STEM is developed with STEM itself, in a separate project. Most changes are tried there first.
- Cleanup: retros measure how much context the work uses and which rules get loaded. Rules that do not pay off are merged or removed. The aim is fewer, better rules over time.
- The wider LLM scene: the maintainer follows the LLM and coding-agent community, tests new ideas for improvement and brings them into STEM where they help.
STEM is built for one person working with Claude Code on a project that spans many sessions, from medium size upwards. For small tasks and one-off scripts the workflow costs more than it brings: use the plain agent (STEM or the plain agent?). Teams with their own process, CI and review are not a fit.
[ You ]──▶[ STEM ]──▶[ More YOU ]
- Download the ZIP and unzip it. Keep the whole folder, including hidden files.
- Open that folder in your coding agent (for example the Claude desktop app, Code tab).
- Paste this prompt, replacing the placeholder with your idea:
Set up this project: follow SETUP.md. Work in my language and install anything that is missing yourself (I will approve the steps).
What I want to build is the following:
<your idea: what, for whom, what "done" looks like – a few sentences>
Answer the agent's questions and approve installation steps as needed. It sets up the tools, vision, milestones and first tasks with you. Never type passwords / secrets into a chat.
Technical users: click Use this template on GitHub, or clone the repository, then use the same prompt. Detailed setup guide for more help.
Agent and platform test status
Claude Code is tested in real use. Codex is tested by an automated probe run (fresh setup, native skill listing, alignment interview, one task to Done) and in an existing project with documented workarounds; project hooks, the Codex UI, Codex Cloud and long-context behaviour are not covered. See Codex mechanics for prerequisites, session start, sandbox access and the context-warning fallback. DeutschlandGPT Code has an adapter (dgpt.md, skills link) written from its documentation and tested in one real run (macOS, setup, first tasks, handoff); that app runs no STEM hooks, so the guards exist there only as instructions.
macOS is tested. On other systems, agents or models the port-check skill adapts STEM as an overlay, measures it and reports the result (offered at session start).
See the results page for three curves from using STEM on itself (dogfooding data, not a benchmark).
If you want Claude Code fully isolated from your computer, scripts/sandbox.sh runs it inside a Docker container. The project lives only in a Docker volume (no host mount); you need only Docker.
scripts/sandbox.sh new myproject # clones the STEM template into a new sandbox and starts Claude
scripts/sandbox.sh new myproject --repo https://github.com/you/your-repo.git # your own repo instead
scripts/sandbox.sh start myproject # resume later; also: stop, export, reset, list- Login:
ANTHROPIC_API_KEYfrom your environment, or log in with your account inside (/login; kept in the sandbox volume; it belongs to this one sandbox, so each new sandbox asks again: use one sandbox for several projects (clone inside it) or set the API key). - Return path: push to GitHub (set
GH_TOKENto a token scoped to this one repository; it is passed by name and never stored) orscripts/sandbox.sh export myproject [dir](tar.gz and git bundle; default folder~/stem-sandbox-exports, never the current folder). The image containsgitandgh(GitHub CLI, usesGH_TOKEN). - Network: outbound open, nothing inbound.
--strictallows only the Claude API, GitHub, npm and PyPI (--allow HOSTadds more).--port 8080forwards a container port to localhost. - Image: newest Ubuntu LTS at the time of the first start (
--ubuntu TAGoverrides; stored with the sandbox). - Limits: projects that need Docker themselves do not work inside (no Docker socket pass-through, by design); Windows needs WSL2; the first start builds the image (a few minutes).
Preview. Tron builds the clearly specified part of a prepared milestone overnight in a sandbox and returns one list of what needs you. It does not build a whole milestone alone. Measured so far (7 fixture runs, 2 real runs on other projects): the 6-task fixture costs 0.21-0.30 USD per accepted task; the real runs cost 2.98-3.60 USD per accepted task, with 42-67 % of tasks blocked (mostly an environment the sandbox lacks, or stale half-done tasks) and 55-61 % needing a repair round. The independent evaluator is about 48 % of the cost and missed the one defect users found later (a feature not reachable in the UI). A third real run, after the fixes for the first two, ended complete (3 of 3 tasks accepted, 0 blocked, 1.16 USD per accepted task, no defects found by the user). Expect to prepare the milestone carefully and to answer blocked tasks yourself.
For an approved milestone you can let agent sessions work without you, in three phases. Before: the tron skill prepares the run with you (decision frame, invariants, acceptance scenario, budget) and python3 scripts/tron.py check --milestone <id> lists what is still missing. During: scripts/tron.py run works task by task on its own branch, checks each result with a gate and an independent evaluator, stops at your limits and never pushes, tags or merges. After: you read the report in docs/agent/tron/, answer the questions of blocked tasks and merge yourself. A run costs real money; run it in the sandbox with --permission-mode bypassPermissions (no permission prompt can stop the run; never a narrow tool allowlist). Off by default; ask the agent to turn it on. How to prepare, start, watch and read a run: Tron guide.
At the start of each session the agent checks (once per day) whether a newer STEM version exists and tells you. With your approval the stem-update skill reads the changelog, picks what helps your project and merges it without overwriting your project-specific content. The retro skill checks STEM as well.
STEM releases use MAJOR.MINOR.PATCH version numbers; renames and removals come with migration notes in the changelog. Your project gets its own version, starting at 0.1.0, independent of the STEM version in STEM_VERSION: after a finished work package the agent proposes a patch, minor or major bump and applies it only with your approval.
Coding agents such as Claude Code or Codex work well on their own. STEM adds a workflow around them, and that workflow costs extra steps. A rough guide:
| Your situation | Plain agent | With STEM |
|---|---|---|
| One-off script or quick prototype | Usually enough | Setup and task steps cost more than they bring |
| A project over many sessions | You re-explain the state or keep your own notes | Handoff note and state summary, read automatically in the next session |
| You have no technical background | You install and configure the tools yourself | The agent installs and explains the tools; one approval per installation step |
| You want to see what the agent did and whether it is done | You read the chat and the changes | A task with acceptance criteria and evidence; one check per task |
| You want your setup to improve over time | Changes happen ad hoc | Retros turn friction into rule changes; a retro every few tasks |
| A team with its own process, CI and review | The agent fits into your process | STEM's process would duplicate yours; not a fit |
Tested agents and platforms: see Agent and platform test status under Get started.
Other approaches. Several open-source projects add structure to coding agents too; strengths overlap.
- Spec-first toolkits (for example Spec Kit, OpenSpec): strong at turning each change into an agreed spec, plan and tasks before code is written. STEM sharpens the idea once at setup and focuses on the project-wide loop of backlog, handoff and retro.
- Skill libraries (for example Superpowers): strong at engineering discipline per piece of work, such as design, test-driven development, review and verification. STEM does not prescribe these engineering steps; its focus is continuity across sessions.
- Role-based agile methods (for example BMad Method): strong at structured planning with role agents, a backlog and retrospectives; the closest to STEM. STEM is smaller and aims its guided setup at people without a technical background.
Based on each project's own documentation as of November 2026; these projects change quickly.
Show all files
| File | Purpose |
|---|---|
START_HERE.md / STARTE_HIER.md |
Human guide (EN/DE) |
SETUP.md |
One-time setup procedure for the agent (deleted after setup) |
AGENTS.md |
Shared core rules (Codex and compatible tools) |
CLAUDE.md |
Thin adapter pointing to AGENTS.md |
.claude/skills/ |
Skills: retro, alignment, handoff, promote-learning, stem-update, port-check; optional modules (chosen in setup): market-analysis, tron |
.agents/skills |
Link to .claude/skills/ for shared Codex skill sources; Codex lists these skills natively (automated probe) |
dgpt.md, .deutschlandgpt/skills |
Adapter for DeutschlandGPT Code: pointer to AGENTS.md and link to .claude/skills/ (one real run) |
.claude/agents/ |
Agents: evaluator (read-only judge of Tron mode runs), planner (read-only question sweep before a run), doctor (read-only diagnosis of a stalled task), retro-analyst (read-only analysis of a finished run), ux-designer (optional module, for projects with a UI) |
scripts/githooks/pre-commit, pre-push |
Guards for every agent: no confidential source documents or common secrets in a commit; no force push or remote branch deletion (activated during setup) |
STEM_VERSION, CHANGELOG.md |
STEM version this project is based on; what changed per version |
.claude/settings.json |
Claude Code: safe commands pre-approved, session-start hook |
LICENSE, CITATION.cff |
MIT (STEM), citation data; .github/stem-check.py + workflow check STEM itself |
scripts/check-backlog.sh, scripts/retro-metrics.sh, scripts/promote-check.sh |
Backlog consistency check (also in the pre-commit hook); measured evidence for retros; learnings ready to share with STEM |
docs/agent/stacks/ |
Stack-specific notes, loaded only when the stack applies |
scripts/context-report.py |
Optional retro tool (Claude Code): where the context went, longest sessions; numbers only |
scripts/metrics-explorer.py |
Retro tool: writes an offline interactive HTML explorer of cost, time, tokens and quality (.agent-logs/metrics-explorer.html, template metrics-explorer.html); keeps per-session numbers in docs/agent/metrics-history.json (commit it); numbers and task titles only |
scripts/context-check.py |
Claude Code hook: warns when the context is large and a new session is due |
scripts/hooks/manifest.json, scripts/hooks-sync.py, scripts/hooklib.py, docs/agent/HOOKS.md |
One source for the hooks: the manifest names every guard and its wiring per agent; the generator writes the agents' config files and the support table; the shared reader handles each agent's hook input |
scripts/run.sh |
Compact output for tests/CI/CLI (exit code preserved, full log in git-ignored .agent-logs/, evidence: pointer for task notes; uncited logs older than 30 days are pruned) |
scripts/sandbox.sh, docker/ |
Optional: run Claude Code inside a Docker container (project only in a volume; --strict network mode) |
scripts/session-start.sh |
Session start summary (branch, changes, tasks, handoff); changes no project files, STEM_OFFLINE=1 for no network |
docs/agent/OPERATING_MODEL.md |
Rules with stable IDs (R-*), loaded selectively |
docs/agent/model-classes.json |
Which model families get the shorter lean reminders at session start; every other model gets the full rules |
docs/agent/ADVANCED.md |
Rarely needed rules (parallelism, measurement, routing, local models) |
docs/agent/TRON.md |
Tron mode rule R-TRON (module tron) |
docs/TRON-GUIDE.md / docs/TRON-GUIDE.de.md |
Tron mode user guide (EN/DE) |
docs/agent/EXPERIMENTS.md |
Hypotheses, metrics, baselines and evidence grades for cost-carrying rules |
docs/agent/NEXT_RETRO.md |
Everything the next retro needs in one place: due checks, observations, first-retro items |
docs/agent/RETRO_TOPICS.md |
The reflection questions each retro takes from the catalog, how they are picked and how to change them |
docs/agent/PITFALLS.md |
Growing list of technical pitfalls |
Please contribute proven learnings via pull request (pattern: problem, pattern, applicability, evidence – see the promote-learning skill). No project or company internals, no credentials – this repository is public. Details and checklist: CONTRIBUTING.md.
STEM is created and maintained by Tim Dellas (akku) and contributors. It is released under the MIT license: free to use, copy and adapt, including commercially. The only condition is to keep the copyright notice and license text with copies or substantial portions. If STEM helps your work, a mention or a star is appreciated; citation data is in CITATION.cff.
