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