tern
A small, sandboxed coding agent for your terminal. Describe what you want; tern reads the code, runs commands, edits files, and checks its work.
curl -fsSL https://tern.xwlou.com/install.sh | sh
Version 0.3.0 · macOS and Linux · needs Python 3.11+
youthe slugify tests fail. fix it
ternI'll run the tests first to see what's failing.
runpython3 -m unittest
│ AssertionError: '--many---spaces--here-' != 'many-spaces-here'
editslugify.py · +2 −1
│ 6 - return text.lower().replace(" ", "-")
│ 6 + text = re.sub(r"[^a-z0-9]+", "-", text.lower())
│ 7 + return text.strip("-")
runpython3 -m unittest
│ OK
done✓ finished 5s · 4 steps · $0.01
Get started
- Install with the command above.
- Open a project folder and run
tern.
- Choose xwlou cloud and create an account with your account code. You don't need an API key.
What it does
- Sandboxed. Commands can only write inside your project, and the network is off unless you allow it.
- Plans and goals.
/plan researches first and starts once you approve. /goal keeps working until the goal is actually met.
- Undo. Every turn is checkpointed.
/undo and /diff cover everything tern changed.
- Your usage.
/usage shows this month's spend against your $10 monthly allowance.
- Saved chats. Conversations are saved and backed up to your account.
tern -c picks up where you left off.