euron-code 1.0.2__tar.gz → 1.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {euron_code-1.0.2 → euron_code-1.1.0}/CHANGELOG.md +58 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/PKG-INFO +93 -6
- {euron_code-1.0.2 → euron_code-1.1.0}/README.md +92 -5
- {euron_code-1.0.2 → euron_code-1.1.0}/pyproject.toml +1 -1
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/__init__.py +1 -1
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/agent.py +560 -70
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/api.py +41 -7
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/auth.py +4 -3
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/cli.py +167 -15
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/config.py +10 -1
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/context.py +30 -4
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/credentials.py +71 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/doctor.py +9 -1
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/errorlog.py +23 -0
- euron_code-1.1.0/src/euron_code/llm/__init__.py +271 -0
- euron_code-1.1.0/src/euron_code/llm/anthropic.py +441 -0
- euron_code-1.1.0/src/euron_code/llm/base.py +206 -0
- euron_code-1.1.0/src/euron_code/llm/openai_compat.py +193 -0
- euron_code-1.1.0/src/euron_code/llm/setup.py +238 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/memory.py +5 -3
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/prompts.py +23 -16
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/repl.py +158 -56
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/background.py +40 -10
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/base.py +66 -5
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/document.py +5 -2
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/fs.py +187 -47
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/ignore.py +75 -75
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/oss.py +22 -4
- euron_code-1.1.0/src/euron_code/tools/pathfind.py +245 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/search.py +6 -6
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/symbols.py +3 -3
- euron_code-1.1.0/src/euron_code/tools/task.py +49 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/todo.py +9 -2
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/ui.py +13 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/usage_view.py +2 -2
- euron_code-1.1.0/tests/fake_providers.py +204 -0
- euron_code-1.1.0/tests/measure_floor.py +41 -0
- euron_code-1.1.0/tests/sim_long_session.py +115 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_agent_mock.py +11 -5
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_api_shell.py +162 -161
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_cli_e2e.py +4 -3
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_permissions.py +91 -91
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_tools_fs.py +11 -10
- euron_code-1.1.0/tests/test_v11_byo.py +366 -0
- euron_code-1.1.0/tests/test_v11_speed.py +247 -0
- euron_code-1.1.0/tests/test_v11_tool_fixes.py +346 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v2_usage_headers.py +1 -1
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v3_live_repl.py +10 -5
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v4.py +6 -1
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v5.py +58 -12
- euron_code-1.0.2/src/euron_code/tools/pathfind.py +0 -95
- euron_code-1.0.2/src/euron_code/tools/task.py +0 -38
- {euron_code-1.0.2 → euron_code-1.1.0}/.gitignore +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/LICENSE +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/__main__.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/activity.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/attachments.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/builtin_skills/build-from-reference/SKILL.md +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/builtin_skills/explain-codebase/SKILL.md +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/builtin_skills/review/SKILL.md +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/builtin_skills/test-writer/SKILL.md +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/cache.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/checkpoints.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/contextforge/LICENSE +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/contextforge/__init__.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/contextforge/text.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/contextforge/toolout.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/documents.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/error_hints.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/frontmatter.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/hooks.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/keys.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/knowledge.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/licensing.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/logo.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/markdown_view.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/osscache.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/ossgithub.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/permissions.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/project_setup.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/repomap.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/rules.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/security_scan.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/sessions.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/skills.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/textsafe.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/__init__.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/db.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/erie.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/normalize.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/reuse.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/shell.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/skill.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/tools/web.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/transcript.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/trust.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/src/euron_code/update_check.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/conftest.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/helpers.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/mock_gateway.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/serve_helper.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_bench.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_context_memory_sessions.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_dashboard_fixes.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_dashboard_fixes_102.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_db.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_erie.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_knowledge_security.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_markdown_view.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_oss_local.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_powershell_exit_codes.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_qa_attach_secrets.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_qa_long_task.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_qa_print_output.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_qa_reuse_unrelated.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_qa_yolo_outside.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_repl.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_reuse_honesty.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_search.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_textsafe.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_transcript_ui.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_update_check.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v2_rules_skills_hooks.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v2_tokens_shortcuts.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v31_security.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v3_accounts_value_setup.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v3_activity.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v3_attachments.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v3_context.py +0 -0
- {euron_code-1.0.2 → euron_code-1.1.0}/tests/test_v3_single_login.py +0 -0
|
@@ -1,5 +1,63 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.1.0 (2026-11-07)
|
|
4
|
+
|
|
5
|
+
Bring your own model, and fixes for the errors users hit most in the last week.
|
|
6
|
+
|
|
7
|
+
**Use your own model**
|
|
8
|
+
- Connect OpenAI, Claude (Anthropic, native API with tool use and prompt caching), Ollama on your computer,
|
|
9
|
+
Google Gemini, OpenRouter, Groq, Together, DeepSeek, Mistral, LM Studio, the EURI API, or any
|
|
10
|
+
OpenAI-compatible endpoint. Guided setup: `euron models add` or `/model add`; switch with `/model`,
|
|
11
|
+
`euron --model provider:model` or `euron models use`. See "Use your own model" in the README.
|
|
12
|
+
- Keys stay on your computer (keychain or a file only you can read), are typed hidden, and are sent only to
|
|
13
|
+
that provider: never printed, logged or sent to Euron. Your own model's tokens do not count against your
|
|
14
|
+
Euron tokens.
|
|
15
|
+
- Any signed-in Euron account may use its own model. The Euron model stays included with Euron Plus and
|
|
16
|
+
Super 30; without Plus, `euron login` still works and says how to add your own model.
|
|
17
|
+
- The default model is always shown as "Euron model" (status line, /model, /status, JSON output, exports).
|
|
18
|
+
- A model that cannot call tools is refused with a clear message. Context size is set per model.
|
|
19
|
+
|
|
20
|
+
**Faster, and finishes the task**
|
|
21
|
+
- No more summary loop: compaction thresholds now leave room for the fixed part of every request (system
|
|
22
|
+
prompt and tools), a summary never runs on consecutive steps or before the conversation has grown again,
|
|
23
|
+
and it is budgeted to land well under the trigger. A simulated 150-step session went from 60 summaries
|
|
24
|
+
(one every 2 steps) to 5. Summaries no longer think and are shorter.
|
|
25
|
+
- A lighter fixed prompt for models with a small context (like the Euron model): lean tool schemas and a capped project memory and
|
|
26
|
+
code map (about 17% fewer tokens on every step).
|
|
27
|
+
- Effort where it pays: full reasoning on the first step and after a failure, little or none on routine
|
|
28
|
+
steps that just continue after successful edits.
|
|
29
|
+
- A soft budget per request (40 minutes or 120 steps): then it wraps up with what is done, what is left and
|
|
30
|
+
the next step. Repeated errors make it stop and re-plan. Plans first for big tasks.
|
|
31
|
+
- Up to 3 sub-agents in parallel (several task calls in one step), and builder sub-agents that each own their
|
|
32
|
+
files, so two parts of a build go at once without touching each other's files.
|
|
33
|
+
|
|
34
|
+
**Fixes**
|
|
35
|
+
- Paths: a doubled folder (`app/app/.env`), the project's own folder name in front, `<project>\...`, an
|
|
36
|
+
absolute path that points into the project, or a path relative to the folder the shell moved to, now find
|
|
37
|
+
the file; so does the only file with that name. The result says which file was used. Applies to read_file,
|
|
38
|
+
edit_file, multi_edit, list_dir, grep, glob, find_symbol and read_document; write_file fixes a doubled
|
|
39
|
+
folder.
|
|
40
|
+
- Edits: a unique match that differs only in line endings, trailing spaces, indentation or blank lines is
|
|
41
|
+
applied, also when the file was not read first (the text is verifiably there); the replacement is
|
|
42
|
+
re-indented to the file. edit_file with an empty old_string on a missing or empty file creates it. When
|
|
43
|
+
nothing matches, the current content comes back and counts as a read, so the retry works. "Matches N
|
|
44
|
+
places" lists the lines.
|
|
45
|
+
- write_file never refuses a file Euron Code created in this session, and a refusal (not read, or changed
|
|
46
|
+
since) shows the content and lets the immediate retry through.
|
|
47
|
+
- A file another program holds open (Windows "Access is denied") is retried and then written in place; if
|
|
48
|
+
it still fails the model gets a clear message instead of a crash. Bad values become tool errors too.
|
|
49
|
+
- todo_write accepts Python-style lists; oss_grep defaults to the repo used last; bash says what to send when
|
|
50
|
+
the command is missing; background processes can be given a name (backend-dev) and found by it.
|
|
51
|
+
- Busy servers: no capacity, queue timeouts, upstream timeouts (502/504) and a full queue are retried
|
|
52
|
+
patiently (about four minutes, Esc stops) with a calm status line. An answer that fails part-way is asked
|
|
53
|
+
again automatically, since nothing was applied yet. If it still fails, your message is kept: `/retry`.
|
|
54
|
+
- Context: every request is checked before it is sent; when it would not fit, old tool output is cleared and
|
|
55
|
+
the largest messages are shortened, so "context length exceeded" no longer reaches you. If a server still
|
|
56
|
+
says it is too long, Euron Code learns the real size from its reply and fits the next request to it.
|
|
57
|
+
Non-English text is counted correctly.
|
|
58
|
+
- Error reports carry only the first line of a tool error (never file contents), and errors of your own
|
|
59
|
+
model are reported without its endpoint.
|
|
60
|
+
|
|
3
61
|
## 1.0.2 (2026-11-06)
|
|
4
62
|
|
|
5
63
|
Fixes for the tool errors still reported by 1.0.1 users.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: euron-code
|
|
3
|
-
Version: 1.0
|
|
3
|
+
Version: 1.1.0
|
|
4
4
|
Summary: Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students.
|
|
5
5
|
Project-URL: Homepage, https://euron.one/code-agent
|
|
6
6
|
Author-email: Euron <contact@euron.one>
|
|
@@ -173,13 +173,89 @@ https://euron.one/code-agent/usage.
|
|
|
173
173
|
- **Live progress.** While it works you see what it is doing, the time, tokens and an `esc to interrupt`
|
|
174
174
|
line, and you can keep typing (see below).
|
|
175
175
|
|
|
176
|
+
## Use your own model
|
|
177
|
+
|
|
178
|
+
The Euron model is included with Euron Plus and Super 30. Any signed-in Euron account can also connect its
|
|
179
|
+
own model: OpenAI, Claude (Anthropic), Ollama on your computer, Google Gemini, OpenRouter, Groq, or any
|
|
180
|
+
OpenAI-compatible endpoint (LM Studio, Together, the EURI API, your own server). Everything else works the
|
|
181
|
+
same: tools, plan mode, permissions, hooks, rewind and automatic context management.
|
|
182
|
+
|
|
183
|
+
Your API key stays on your computer (system keychain, or `~/.euron/credentials.json` readable only by you),
|
|
184
|
+
is sent only to that provider, and is never printed, logged or sent to Euron. Your own model is billed by
|
|
185
|
+
its provider and does not use your Euron tokens.
|
|
186
|
+
|
|
187
|
+
The quickest way is the guided setup. It asks for the provider, the key (hidden as you type), and the model,
|
|
188
|
+
then checks that the model answers and can call tools:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
euron models add # or, inside a session: /model add
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
**OpenAI**
|
|
195
|
+
|
|
196
|
+
```bash
|
|
197
|
+
export OPENAI_API_KEY=sk-... # PowerShell: $env:OPENAI_API_KEY = "sk-..."
|
|
198
|
+
euron models add openai # lists the models your key can use; pick one
|
|
199
|
+
euron --model openai:<model-id> # or use a model id directly for one run
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
**Claude (Anthropic)**
|
|
203
|
+
|
|
204
|
+
```bash
|
|
205
|
+
export ANTHROPIC_API_KEY=sk-ant-... # PowerShell: $env:ANTHROPIC_API_KEY = "sk-ant-..."
|
|
206
|
+
euron --model anthropic:claude-sonnet-5-5
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Claude runs through its native API with tool use and prompt caching, so long sessions re-read the
|
|
210
|
+
conversation from the cache instead of paying for it every step.
|
|
211
|
+
|
|
212
|
+
**Ollama (local, no key)**
|
|
213
|
+
|
|
214
|
+
```bash
|
|
215
|
+
ollama pull llama3.1
|
|
216
|
+
OLLAMA_CONTEXT_LENGTH=32768 ollama serve # Euron Code needs a context of 16k tokens or more
|
|
217
|
+
euron --model ollama:llama3.1
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
Pick a local model that supports tool calling. Ollama on another machine: `euron models add ollama` and
|
|
221
|
+
give its address (or set `OLLAMA_HOST`).
|
|
222
|
+
|
|
223
|
+
**Any OpenAI-compatible endpoint**
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
euron models add custom # asks for a short name (e.g. mylab), the base URL ending in /v1, and the key
|
|
227
|
+
euron --model mylab:<model-id>
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
Built-in names that only need their key in the environment: `gemini` (`GEMINI_API_KEY`), `openrouter`
|
|
231
|
+
(`OPENROUTER_API_KEY`), `groq` (`GROQ_API_KEY`), `together`, `deepseek`, `mistral`, `lmstudio`, and `euri`
|
|
232
|
+
(`EURI_API_KEY`, the EURI API).
|
|
233
|
+
|
|
234
|
+
**Switching**
|
|
235
|
+
|
|
236
|
+
| Where | Command |
|
|
237
|
+
|---|---|
|
|
238
|
+
| in a session | `/model` (pick with the arrow keys), `/model <provider:model>`, `/model euron`, `/model remove <provider>` |
|
|
239
|
+
| default for every run | `euron models use <provider:model>`, back with `euron models use euron` |
|
|
240
|
+
| one run | `euron --model <provider:model>` (also with `-p`) |
|
|
241
|
+
| see what is set up | `euron models` |
|
|
242
|
+
|
|
243
|
+
The conversation is kept when you switch. The status line shows which model answers: "Euron model", or your
|
|
244
|
+
own model's name. Your own model's context window is taken from its known size (or the `contextWindow` you
|
|
245
|
+
gave in `euron models add`), up to `byoMaxContext` (128,000 tokens by default, because every step resends the
|
|
246
|
+
conversation on your bill). A model that cannot call tools is refused with a clear message.
|
|
247
|
+
|
|
248
|
+
Without Euron Plus you can still log in (`euron login`) and use your own model; the Euron model then says it
|
|
249
|
+
needs Plus.
|
|
250
|
+
|
|
176
251
|
## Commands
|
|
177
252
|
|
|
178
253
|
Type `/` and pick from the menu. The most useful:
|
|
179
254
|
|
|
180
255
|
| Command | What it does |
|
|
181
256
|
|---|---|
|
|
182
|
-
| `/model` |
|
|
257
|
+
| `/model` | who answers: the Euron model or your own (`/model add`); works while a task runs |
|
|
258
|
+
| `/retry` | send the last message again (after a busy server or a dropped connection) |
|
|
183
259
|
| `/usage` | your quota today, this week, month and year, refill times, and what it is worth |
|
|
184
260
|
| `/status` | account, key, model, mode, session time and quota at a glance |
|
|
185
261
|
| `/cost`, `/context` | tokens of this session and what fills the context |
|
|
@@ -536,11 +612,21 @@ Euron Code manages the conversation for you, with nothing to set up:
|
|
|
536
612
|
- **Clearing.** Old tool output is replaced with one-line notes that say what to re-read (for example
|
|
537
613
|
`read_file src/app.py lines 1-200`), so the agent keeps going without losing track.
|
|
538
614
|
- **Summary.** Long conversations are summarised: the task, decisions, files changed, commands and
|
|
539
|
-
results, the last error and open todos.
|
|
615
|
+
results, the last error and open todos. A summary only runs when clearing is not enough, never twice in a
|
|
616
|
+
row: in between, old output is cleared instead.
|
|
540
617
|
- **Long answers and big edits.** An answer that gets cut off continues by itself. A huge edit that gets
|
|
541
618
|
cut off is never applied half-way; the change is made in smaller steps instead.
|
|
542
|
-
- **Reasoning effort** is `medium`
|
|
543
|
-
|
|
619
|
+
- **Reasoning effort** is `medium` for planning and after a failure, lower for routine steps (continuing
|
|
620
|
+
after successful edits, reads and commands), and `low` for quick follow-ups ("thanks", "continue");
|
|
621
|
+
change it with `/effort low|medium|high` (`adaptiveEffort: false` keeps one level for every step).
|
|
622
|
+
- **Finishes in time.** A request has a soft budget of 40 minutes or 120 steps (`taskTimeBudgetMinutes`,
|
|
623
|
+
`taskStepBudget`; `--no-budget` for one run). Then Euron Code stops and tells you what is done, what is
|
|
624
|
+
left and the next step; say "continue" to go on. When the same error keeps coming back, it stops and
|
|
625
|
+
re-plans instead of repeating itself.
|
|
626
|
+
- **Sub-agents in parallel.** For independent parts of a big task the agent can start up to 3 sub-agents
|
|
627
|
+
at once: read-only researchers, or builders that each own their own files (for example one writes the
|
|
628
|
+
Dockerfile while another writes the training script). Their edits ask like any other edit and are
|
|
629
|
+
undone by `/rewind`.
|
|
544
630
|
- **Reads.** Files are read in parts; a very large file returns an outline first. Re-reading an
|
|
545
631
|
unchanged file returns a one-line note instead of the content.
|
|
546
632
|
|
|
@@ -654,7 +740,8 @@ and the keychain.
|
|
|
654
740
|
## Privacy and safety
|
|
655
741
|
|
|
656
742
|
- Your code stays on your computer; the agent works on it from your terminal.
|
|
657
|
-
- Your key is never printed in full and never logged.
|
|
743
|
+
- Your key is never printed in full and never logged. Keys for your own model are sent only to that
|
|
744
|
+
provider, never to Euron.
|
|
658
745
|
- Edits and commands ask first. Files outside the project folder always ask, even to read.
|
|
659
746
|
- Hooks are commands you configure; project hooks only run after you trust them.
|
|
660
747
|
- Text inside your files, web pages and command output is treated as data, not instructions.
|
|
@@ -107,13 +107,89 @@ https://euron.one/code-agent/usage.
|
|
|
107
107
|
- **Live progress.** While it works you see what it is doing, the time, tokens and an `esc to interrupt`
|
|
108
108
|
line, and you can keep typing (see below).
|
|
109
109
|
|
|
110
|
+
## Use your own model
|
|
111
|
+
|
|
112
|
+
The Euron model is included with Euron Plus and Super 30. Any signed-in Euron account can also connect its
|
|
113
|
+
own model: OpenAI, Claude (Anthropic), Ollama on your computer, Google Gemini, OpenRouter, Groq, or any
|
|
114
|
+
OpenAI-compatible endpoint (LM Studio, Together, the EURI API, your own server). Everything else works the
|
|
115
|
+
same: tools, plan mode, permissions, hooks, rewind and automatic context management.
|
|
116
|
+
|
|
117
|
+
Your API key stays on your computer (system keychain, or `~/.euron/credentials.json` readable only by you),
|
|
118
|
+
is sent only to that provider, and is never printed, logged or sent to Euron. Your own model is billed by
|
|
119
|
+
its provider and does not use your Euron tokens.
|
|
120
|
+
|
|
121
|
+
The quickest way is the guided setup. It asks for the provider, the key (hidden as you type), and the model,
|
|
122
|
+
then checks that the model answers and can call tools:
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
euron models add # or, inside a session: /model add
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**OpenAI**
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
export OPENAI_API_KEY=sk-... # PowerShell: $env:OPENAI_API_KEY = "sk-..."
|
|
132
|
+
euron models add openai # lists the models your key can use; pick one
|
|
133
|
+
euron --model openai:<model-id> # or use a model id directly for one run
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
**Claude (Anthropic)**
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
export ANTHROPIC_API_KEY=sk-ant-... # PowerShell: $env:ANTHROPIC_API_KEY = "sk-ant-..."
|
|
140
|
+
euron --model anthropic:claude-sonnet-5-5
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Claude runs through its native API with tool use and prompt caching, so long sessions re-read the
|
|
144
|
+
conversation from the cache instead of paying for it every step.
|
|
145
|
+
|
|
146
|
+
**Ollama (local, no key)**
|
|
147
|
+
|
|
148
|
+
```bash
|
|
149
|
+
ollama pull llama3.1
|
|
150
|
+
OLLAMA_CONTEXT_LENGTH=32768 ollama serve # Euron Code needs a context of 16k tokens or more
|
|
151
|
+
euron --model ollama:llama3.1
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Pick a local model that supports tool calling. Ollama on another machine: `euron models add ollama` and
|
|
155
|
+
give its address (or set `OLLAMA_HOST`).
|
|
156
|
+
|
|
157
|
+
**Any OpenAI-compatible endpoint**
|
|
158
|
+
|
|
159
|
+
```bash
|
|
160
|
+
euron models add custom # asks for a short name (e.g. mylab), the base URL ending in /v1, and the key
|
|
161
|
+
euron --model mylab:<model-id>
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
Built-in names that only need their key in the environment: `gemini` (`GEMINI_API_KEY`), `openrouter`
|
|
165
|
+
(`OPENROUTER_API_KEY`), `groq` (`GROQ_API_KEY`), `together`, `deepseek`, `mistral`, `lmstudio`, and `euri`
|
|
166
|
+
(`EURI_API_KEY`, the EURI API).
|
|
167
|
+
|
|
168
|
+
**Switching**
|
|
169
|
+
|
|
170
|
+
| Where | Command |
|
|
171
|
+
|---|---|
|
|
172
|
+
| in a session | `/model` (pick with the arrow keys), `/model <provider:model>`, `/model euron`, `/model remove <provider>` |
|
|
173
|
+
| default for every run | `euron models use <provider:model>`, back with `euron models use euron` |
|
|
174
|
+
| one run | `euron --model <provider:model>` (also with `-p`) |
|
|
175
|
+
| see what is set up | `euron models` |
|
|
176
|
+
|
|
177
|
+
The conversation is kept when you switch. The status line shows which model answers: "Euron model", or your
|
|
178
|
+
own model's name. Your own model's context window is taken from its known size (or the `contextWindow` you
|
|
179
|
+
gave in `euron models add`), up to `byoMaxContext` (128,000 tokens by default, because every step resends the
|
|
180
|
+
conversation on your bill). A model that cannot call tools is refused with a clear message.
|
|
181
|
+
|
|
182
|
+
Without Euron Plus you can still log in (`euron login`) and use your own model; the Euron model then says it
|
|
183
|
+
needs Plus.
|
|
184
|
+
|
|
110
185
|
## Commands
|
|
111
186
|
|
|
112
187
|
Type `/` and pick from the menu. The most useful:
|
|
113
188
|
|
|
114
189
|
| Command | What it does |
|
|
115
190
|
|---|---|
|
|
116
|
-
| `/model` |
|
|
191
|
+
| `/model` | who answers: the Euron model or your own (`/model add`); works while a task runs |
|
|
192
|
+
| `/retry` | send the last message again (after a busy server or a dropped connection) |
|
|
117
193
|
| `/usage` | your quota today, this week, month and year, refill times, and what it is worth |
|
|
118
194
|
| `/status` | account, key, model, mode, session time and quota at a glance |
|
|
119
195
|
| `/cost`, `/context` | tokens of this session and what fills the context |
|
|
@@ -470,11 +546,21 @@ Euron Code manages the conversation for you, with nothing to set up:
|
|
|
470
546
|
- **Clearing.** Old tool output is replaced with one-line notes that say what to re-read (for example
|
|
471
547
|
`read_file src/app.py lines 1-200`), so the agent keeps going without losing track.
|
|
472
548
|
- **Summary.** Long conversations are summarised: the task, decisions, files changed, commands and
|
|
473
|
-
results, the last error and open todos.
|
|
549
|
+
results, the last error and open todos. A summary only runs when clearing is not enough, never twice in a
|
|
550
|
+
row: in between, old output is cleared instead.
|
|
474
551
|
- **Long answers and big edits.** An answer that gets cut off continues by itself. A huge edit that gets
|
|
475
552
|
cut off is never applied half-way; the change is made in smaller steps instead.
|
|
476
|
-
- **Reasoning effort** is `medium`
|
|
477
|
-
|
|
553
|
+
- **Reasoning effort** is `medium` for planning and after a failure, lower for routine steps (continuing
|
|
554
|
+
after successful edits, reads and commands), and `low` for quick follow-ups ("thanks", "continue");
|
|
555
|
+
change it with `/effort low|medium|high` (`adaptiveEffort: false` keeps one level for every step).
|
|
556
|
+
- **Finishes in time.** A request has a soft budget of 40 minutes or 120 steps (`taskTimeBudgetMinutes`,
|
|
557
|
+
`taskStepBudget`; `--no-budget` for one run). Then Euron Code stops and tells you what is done, what is
|
|
558
|
+
left and the next step; say "continue" to go on. When the same error keeps coming back, it stops and
|
|
559
|
+
re-plans instead of repeating itself.
|
|
560
|
+
- **Sub-agents in parallel.** For independent parts of a big task the agent can start up to 3 sub-agents
|
|
561
|
+
at once: read-only researchers, or builders that each own their own files (for example one writes the
|
|
562
|
+
Dockerfile while another writes the training script). Their edits ask like any other edit and are
|
|
563
|
+
undone by `/rewind`.
|
|
478
564
|
- **Reads.** Files are read in parts; a very large file returns an outline first. Re-reading an
|
|
479
565
|
unchanged file returns a one-line note instead of the content.
|
|
480
566
|
|
|
@@ -588,7 +674,8 @@ and the keychain.
|
|
|
588
674
|
## Privacy and safety
|
|
589
675
|
|
|
590
676
|
- Your code stays on your computer; the agent works on it from your terminal.
|
|
591
|
-
- Your key is never printed in full and never logged.
|
|
677
|
+
- Your key is never printed in full and never logged. Keys for your own model are sent only to that
|
|
678
|
+
provider, never to Euron.
|
|
592
679
|
- Edits and commands ask first. Files outside the project folder always ask, even to read.
|
|
593
680
|
- Hooks are commands you configure; project hooks only run after you trust them.
|
|
594
681
|
- Text inside your files, web pages and command output is treated as data, not instructions.
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "euron-code"
|
|
7
|
-
version = "1.0
|
|
7
|
+
version = "1.1.0"
|
|
8
8
|
description = "Euron Code: an agentic coding assistant in your terminal for Euron Plus and Super 30 students."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|