euron-code 1.5.2__tar.gz → 1.5.4__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 (147) hide show
  1. {euron_code-1.5.2 → euron_code-1.5.4}/CHANGELOG.md +701 -654
  2. {euron_code-1.5.2 → euron_code-1.5.4}/PKG-INFO +1 -1
  3. {euron_code-1.5.2 → euron_code-1.5.4}/pyproject.toml +1 -1
  4. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/__init__.py +1 -1
  5. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/agent.py +3012 -2941
  6. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/api.py +3 -1
  7. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/cli.py +12 -4
  8. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/config.py +2 -1
  9. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/error_hints.py +36 -0
  10. euron_code-1.5.4/src/euron_code/friendly.py +45 -0
  11. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/knowledge.py +2 -1
  12. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/llm/__init__.py +14 -2
  13. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/llm/base.py +16 -1
  14. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/llm/setup.py +50 -5
  15. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/migration.py +36 -6
  16. euron_code-1.5.4/src/euron_code/mvc5.py +321 -0
  17. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/repl.py +9 -2
  18. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/security_scan.py +2 -1
  19. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/base.py +1 -0
  20. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/fs.py +30 -1
  21. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/pathfind.py +29 -0
  22. euron_code-1.5.4/src/euron_code/tools/port.py +153 -0
  23. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/search.py +37 -4
  24. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/web.py +19 -1
  25. euron_code-1.5.4/src/euron_code/webforms.py +235 -0
  26. {euron_code-1.5.2 → euron_code-1.5.4}/tests/mock_gateway.py +2 -2
  27. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_search.py +3 -2
  28. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v11_byo.py +1 -1
  29. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v152_migration.py +171 -25
  30. euron_code-1.5.4/tests/test_v153_user_errors.py +210 -0
  31. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v5.py +2 -1
  32. {euron_code-1.5.2 → euron_code-1.5.4}/.gitignore +0 -0
  33. {euron_code-1.5.2 → euron_code-1.5.4}/LICENSE +0 -0
  34. {euron_code-1.5.2 → euron_code-1.5.4}/README.md +0 -0
  35. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/__main__.py +0 -0
  36. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/activity.py +0 -0
  37. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/attachments.py +0 -0
  38. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/auth.py +0 -0
  39. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/builtin_skills/build-from-reference/SKILL.md +0 -0
  40. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/builtin_skills/explain-codebase/SKILL.md +0 -0
  41. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/builtin_skills/review/SKILL.md +0 -0
  42. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/builtin_skills/test-writer/SKILL.md +0 -0
  43. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/cache.py +0 -0
  44. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/checkpoints.py +0 -0
  45. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/context.py +0 -0
  46. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/contextforge/LICENSE +0 -0
  47. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/contextforge/__init__.py +0 -0
  48. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/contextforge/text.py +0 -0
  49. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/contextforge/toolout.py +0 -0
  50. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/credentials.py +0 -0
  51. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/doctor.py +0 -0
  52. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/documents.py +0 -0
  53. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/dotnet.py +0 -0
  54. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/errorlog.py +0 -0
  55. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/frontmatter.py +0 -0
  56. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/hooks.py +0 -0
  57. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/keys.py +0 -0
  58. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/licensing.py +0 -0
  59. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/llm/anthropic.py +0 -0
  60. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/llm/openai_compat.py +0 -0
  61. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/logo.py +0 -0
  62. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/markdown_view.py +0 -0
  63. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/memory.py +0 -0
  64. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/osscache.py +0 -0
  65. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/ossgithub.py +0 -0
  66. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/pathfix.py +0 -0
  67. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/permissions.py +0 -0
  68. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/progress.py +0 -0
  69. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/project_setup.py +0 -0
  70. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/prompts.py +0 -0
  71. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/repomap.py +0 -0
  72. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/rules.py +0 -0
  73. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/sessions.py +0 -0
  74. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/skills.py +0 -0
  75. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/textsafe.py +0 -0
  76. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/__init__.py +0 -0
  77. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/background.py +0 -0
  78. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/db.py +0 -0
  79. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/document.py +0 -0
  80. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/erie.py +0 -0
  81. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/ignore.py +0 -0
  82. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/normalize.py +0 -0
  83. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/oss.py +0 -0
  84. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/reuse.py +0 -0
  85. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/shell.py +0 -0
  86. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/skill.py +0 -0
  87. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/symbols.py +0 -0
  88. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/task.py +0 -0
  89. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/tools/todo.py +0 -0
  90. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/transcript.py +0 -0
  91. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/trust.py +0 -0
  92. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/ui.py +0 -0
  93. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/update_check.py +0 -0
  94. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/usage_view.py +0 -0
  95. {euron_code-1.5.2 → euron_code-1.5.4}/src/euron_code/version_info.py +0 -0
  96. {euron_code-1.5.2 → euron_code-1.5.4}/tests/conftest.py +0 -0
  97. {euron_code-1.5.2 → euron_code-1.5.4}/tests/fake_providers.py +0 -0
  98. {euron_code-1.5.2 → euron_code-1.5.4}/tests/helpers.py +0 -0
  99. {euron_code-1.5.2 → euron_code-1.5.4}/tests/measure_floor.py +0 -0
  100. {euron_code-1.5.2 → euron_code-1.5.4}/tests/serve_helper.py +0 -0
  101. {euron_code-1.5.2 → euron_code-1.5.4}/tests/sim_long_session.py +0 -0
  102. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_agent_mock.py +0 -0
  103. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_api_shell.py +0 -0
  104. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_bench.py +0 -0
  105. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_bench_harness.py +0 -0
  106. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_cli_e2e.py +0 -0
  107. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_context_memory_sessions.py +0 -0
  108. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_dashboard_fixes.py +0 -0
  109. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_dashboard_fixes_102.py +0 -0
  110. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_db.py +0 -0
  111. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_erie.py +0 -0
  112. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_knowledge_security.py +0 -0
  113. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_markdown_view.py +0 -0
  114. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_oss_local.py +0 -0
  115. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_permissions.py +0 -0
  116. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_powershell_exit_codes.py +0 -0
  117. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_qa_attach_secrets.py +0 -0
  118. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_qa_long_task.py +0 -0
  119. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_qa_print_output.py +0 -0
  120. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_qa_reuse_unrelated.py +0 -0
  121. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_qa_yolo_outside.py +0 -0
  122. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_repl.py +0 -0
  123. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_reuse_honesty.py +0 -0
  124. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_textsafe.py +0 -0
  125. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_tools_fs.py +0 -0
  126. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_transcript_ui.py +0 -0
  127. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_update_check.py +0 -0
  128. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v111_user_reports.py +0 -0
  129. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v113_fix_path.py +0 -0
  130. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v11_speed.py +0 -0
  131. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v11_tool_fixes.py +0 -0
  132. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v130_cut_writes.py +0 -0
  133. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v130_reliability.py +0 -0
  134. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v140_parity.py +0 -0
  135. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v15_hosted_models.py +0 -0
  136. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v15_reuse_off_subagent_hooks.py +0 -0
  137. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v2_rules_skills_hooks.py +0 -0
  138. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v2_tokens_shortcuts.py +0 -0
  139. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v2_usage_headers.py +0 -0
  140. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v31_security.py +0 -0
  141. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v3_accounts_value_setup.py +0 -0
  142. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v3_activity.py +0 -0
  143. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v3_attachments.py +0 -0
  144. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v3_context.py +0 -0
  145. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v3_live_repl.py +0 -0
  146. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v3_single_login.py +0 -0
  147. {euron_code-1.5.2 → euron_code-1.5.4}/tests/test_v4.py +0 -0
@@ -1,654 +1,701 @@
1
- # Changelog
2
-
3
- ## 1.5.2 (2026-11-10)
4
-
5
- Converting a project to another framework (for example ASP.NET Web Forms to MVC) carries every page over.
6
-
7
- - Ask Euron Code to convert, migrate or port an existing project and it first makes an inventory of every legacy
8
- file (pages are paired with their code-behind), on your computer, before anything changes. The list is in
9
- `MIGRATION_CHECKLIST.md`, which Euron Code keeps up to date as pages are carried over.
10
- - The model converts one page at a time and reads each legacy page right before it writes the new one. It is told
11
- never to write a page from memory or invent sample pages, and conversions are not handed to sub-agents that
12
- never saw the legacy files.
13
- - Euron Code checks the new files for each legacy page's text (headings, sentences, table rows, phone numbers,
14
- messages). When a new view is written without its page's content, it says so at once and hands the legacy
15
- page over (two pages per step at most), so the view is redone from the page. Before it may call the job done,
16
- it lists the pages that are not carried over yet. After the conversation is summarised, the list of what is
17
- left comes back too, and "continue" picks up from it.
18
- - .NET: an old-style .NET Framework project (MVC 5, Web Forms) is built with Visual Studio's MSBuild (found
19
- automatically) with NuGet restore, not with `dotnet build` (which cannot build it). `dotnet test` is only
20
- suggested when there is a test project.
21
- - Bypass mode on Windows no longer refuses build commands as "outside the project": tool switches such as
22
- `/t:Rebuild` or `/p:Configuration=Debug` are not paths, and running an installed program by its full path
23
- (for example Visual Studio's MSBuild.exe) is allowed. Shells and interpreters run that way still ask.
24
- - Turn it off with `euron config set migrationMode false` or `EURON_NO_MIGRATION=1`.
25
-
26
- ## 1.5.1 (2026-11-10)
27
-
28
- Default is the Euron model on Euron's own GPUs; bring your own Anthropic/OpenAI/any key, billed by your provider.
29
-
30
- - The default, and the only model Euron runs for you, is the Euron model: Euron's own model on Euron's own GPUs,
31
- included with Euron Plus and Super 30. Your prompts and code go to Euron's own servers.
32
- - Want Claude, GPT or another model? `euron models add anthropic` (or `openai`, `openrouter`, `custom` for any
33
- OpenAI-compatible endpoint), or `euron --model provider:model`, or `/model add` in a session. It uses your key,
34
- your provider bills you, and Euron charges nothing for it.
35
- - `/model` and `euron models` list the Euron model first, as the default; your own models are marked as using your
36
- key and billed by your provider.
37
- - Asked which model it is, Euron Code on the Euron model says it runs on the Euron model and never claims another
38
- company's model. With your own model it names that model.
39
- - The 1.5.0 notes below described hosted provider models as the default. Those were never switched on and are not
40
- offered.
41
-
42
- ## 1.5.0 (2026-11-10)
43
-
44
- - The status line and `/model` say which model answers, and Euron Code answers honestly when you ask which model
45
- it is, including after a switch.
46
- - Notes from Euron about the model that answered are shown once per kind.
47
- - With `reuse.enabled` set to false, every open-source and Euron reuse tool is off, and no GitHub repository is
48
- downloaded.
49
- - Read-only and parallel sub-agents run your hooks (PreToolUse, PostToolUse) and permission rules, like the main
50
- agent.
51
-
52
- ## 1.4.0 (2026-11-09)
53
-
54
- Fewer wasted steps and fewer missed details, from a benchmark of real student-style tasks with hidden tests.
55
-
56
- - Checks you write are no longer blocked. In bypass mode (`--yolo`), test code passed inline (`python -c`,
57
- `node -e`, a heredoc or a PowerShell here-string) was refused as "outside the project" when it contained a URL
58
- route (`/products`), a `//` comment, a division or a `~~~` fence. Real paths outside the project (your home
59
- folder, another drive, `..\..`) still ask, as before.
60
- - Optional edge-case review before a detailed task is called done (`"specReview": true` in settings): Euron Code
61
- tests the request's formats, error cases, empty and boundary input once more and fixes what fails. Off by
62
- default, because on the Euron model it added steps without catching more.
63
- - Running a check script and deleting it afterwards counts as checked: Euron Code no longer redoes the check.
64
- `tsx` and `ts-node` script runs count as checks.
65
- - A folder with only a few config files (package.json, README) is shown in the first step, so a new build does
66
- not start by listing and reading them.
67
- - `edit_file` / `multi_edit` without a path uses the one file you have already seen that holds the text.
68
- - A step that only updates the task list gets a one-line hint to send todo updates with the next real step.
69
- - Your own models whose tools only work with reasoning turned off on chat completions now work: Euron Code
70
- learns that from the first error instead of dropping the tools.
71
-
72
- ## 1.3.1 (2026-11-09)
73
-
74
- - A new build in an empty folder no longer gets the "here is every file in this small project" note (it only held
75
- EURON.md and made the model answer with nothing). EURON.md is never repeated in it.
76
- - GitHub references must be about the product asked for (a FastAPI todo API was offered a WhatsApp bot repo).
77
-
78
- ## 1.3.0 (2026-11-09)
79
-
80
- Finishes coding jobs more reliably: no more loops, no cut-off files, no unrelated repositories.
81
-
82
- - Long files are written in parts. When a file write hits the model's output limit, the lines that arrived
83
- are kept and Euron Code continues the file from there (`write_file` with `append`), instead of writing the
84
- whole file again and getting cut off again. Files over about 300 lines are written in parts from the start.
85
- - Loop guard: the same error coming back, a file edited back and forth, or a long run of failing tool calls
86
- first makes Euron Code change approach, then stops with a short report (what works, the exact error that
87
- blocks it, what it tried, the next step) instead of using up the whole time budget.
88
- - Done means checked: after the last change a real check (build, tests or running the program) has to pass.
89
- Listing files or installing packages no longer counts. If the last check fails, Euron Code goes back and
90
- fixes it, or says exactly which check fails and why.
91
- - Fewer, bigger steps: a small project (up to 12 small files) is read whole into the first step, so Euron Code
92
- does not list and read the files one by one; the tests run once, and it stops as soon as they pass.
93
- - Reuse only when it fits: Euron repositories and GitHub references are suggested only when they are about
94
- the same product (a calculator is no longer pointed at an HR app), in the same language, small, and only
95
- in a new, empty project. HTML / CSS / JavaScript requests stay plain JavaScript. Adopted code that still does not
96
- build after 3 checks is removed again, with its licence notice, and that part is written from scratch.
97
- - `@` followed by punctuation ("exactly one @, a dot") is plain text, not a file to attach (it used to stop
98
- `euron -p` before it started).
99
- - `read_file` on a folder shows what is in it; editing a folder names the files in it; `multi_edit` with the
100
- file named inside each edit, and `read_file` past the end of a file, now work instead of failing.
101
-
102
- ## 1.2.0 (2026-11-09)
103
-
104
- Faster steps on the Euron model: more of every request reuses the prompt the model has already read.
105
-
106
- - Conversation summaries are asked at the end of the conversation the model already has, with the same
107
- instructions and tools, so the model reuses what it has already read instead of reading a re-written
108
- copy of the conversation from scratch. If the model answers with a tool call instead, the old
109
- summary request is used.
110
- - The wrap-up step at the time / step budget keeps the tool list (with tool calls switched off), so it
111
- reuses it too.
112
- - The system prompt is ordered from most to least stable: the project knowledge block (code map, recent
113
- work) now comes last, so a new session in the same project starts faster.
114
- - After an edit, Euron Code runs the tests closest to the change first and the full suite once at the end.
115
-
116
- ## 1.1.3 (2026-11-08)
117
-
118
- - "'euron' is not recognized" (Windows) or "euron: command not found" right after `pip install euron-code`:
119
- pip put the `euron` command in a Scripts folder that is not on your PATH. New `python -m euron_code fix-path`
120
- finds that folder and adds it to your user PATH (Windows; no admin, the system PATH is not touched, safe to
121
- run twice) or prints the line to add to your shell profile (macOS, Linux). Open a new terminal afterwards.
122
- - `python -m euron_code` (or `py -m euron_code` on Windows) does everything `euron` does, e.g.
123
- `python -m euron_code login`, and says once how to fix PATH when `euron` is not on it.
124
- - `euron doctor` has a PATH check.
125
-
126
- ## 1.1.2 (2026-11-07)
127
-
128
- - A connection that drops in the middle of an answer ("The response stopped part-way ... WinError 10054") now
129
- also switches Euron Code to IPv4, so the automatic retry of that step takes the working route.
130
-
131
- ## 1.1.1 (2026-11-07)
132
-
133
- Fixes from support tickets.
134
-
135
- - Word, Excel, PowerPoint and PDF files are read as text by `read_file` too, instead of "looks like a binary
136
- file; not reading it".
137
- - A connection the network resets (`[WinError 10054] An existing connection was forcibly closed`) is retried
138
- three times, and Euron Code switches to IPv4 (remembered in `~/.euron/network.json`; force it with
139
- `EURON_IPV4=1`). The final error says what to check.
140
- - `euron version`, `euron -V` and `/version`: the running version, the Python it runs from, whether PyPI has a
141
- newer one, and the update command for that exact Python. Before, `euron version` was sent to the model as a
142
- prompt.
143
-
144
- ## 1.1.0 (2026-11-07)
145
-
146
- Bring your own model, and fixes for the errors users hit most in the last week.
147
-
148
- **Use your own model**
149
- - Connect OpenAI, Claude (Anthropic, native API with tool use and prompt caching), Ollama on your computer,
150
- Google Gemini, OpenRouter, Groq, Together, DeepSeek, Mistral, LM Studio, the EURI API, or any
151
- OpenAI-compatible endpoint. Guided setup: `euron models add` or `/model add`; switch with `/model`,
152
- `euron --model provider:model` or `euron models use`. See "Use your own model" in the README.
153
- - Keys stay on your computer (keychain or a file only you can read), are typed hidden, and are sent only to
154
- that provider: never printed, logged or sent to Euron. Your own model's tokens do not count against your
155
- Euron tokens.
156
- - Any signed-in Euron account may use its own model. The Euron model stays included with Euron Plus and
157
- Super 30; without Plus, `euron login` still works and says how to add your own model.
158
- - The default model is always shown as "Euron model" (status line, /model, /status, JSON output, exports).
159
- - A model that cannot call tools is refused with a clear message. Context size is set per model.
160
-
161
- **Faster, and finishes the task**
162
- - No more summary loop: compaction thresholds now leave room for the fixed part of every request (system
163
- prompt and tools), a summary never runs on consecutive steps or before the conversation has grown again,
164
- and it is budgeted to land well under the trigger. A simulated 150-step session went from 60 summaries
165
- (one every 2 steps) to 5. Summaries no longer think and are shorter.
166
- - A lighter fixed prompt for models with a small context (like the Euron model): lean tool schemas and a capped project memory and
167
- code map (about 17% fewer tokens on every step).
168
- - Effort where it pays: full reasoning on the first step and after a failure, little or none on routine
169
- steps that just continue after successful edits.
170
- - A soft budget per request (40 minutes or 120 steps): then it wraps up with what is done, what is left and
171
- the next step. Repeated errors make it stop and re-plan. Plans first for big tasks.
172
- - Up to 3 sub-agents in parallel (several task calls in one step), and builder sub-agents that each own their
173
- files, so two parts of a build go at once without touching each other's files.
174
-
175
- **Fixes**
176
- - Paths: a doubled folder (`app/app/.env`), the project's own folder name in front, `<project>\...`, an
177
- absolute path that points into the project, or a path relative to the folder the shell moved to, now find
178
- the file; so does the only file with that name. The result says which file was used. Applies to read_file,
179
- edit_file, multi_edit, list_dir, grep, glob, find_symbol and read_document; write_file fixes a doubled
180
- folder.
181
- - Edits: a unique match that differs only in line endings, trailing spaces, indentation or blank lines is
182
- applied, also when the file was not read first (the text is verifiably there); the replacement is
183
- re-indented to the file. edit_file with an empty old_string on a missing or empty file creates it. When
184
- nothing matches, the current content comes back and counts as a read, so the retry works. "Matches N
185
- places" lists the lines.
186
- - write_file never refuses a file Euron Code created in this session, and a refusal (not read, or changed
187
- since) shows the content and lets the immediate retry through.
188
- - A file another program holds open (Windows "Access is denied") is retried and then written in place; if
189
- it still fails the model gets a clear message instead of a crash. Bad values become tool errors too.
190
- - todo_write accepts Python-style lists; oss_grep defaults to the repo used last; bash says what to send when
191
- the command is missing; background processes can be given a name (backend-dev) and found by it.
192
- - Busy servers: no capacity, queue timeouts, upstream timeouts (502/504) and a full queue are retried
193
- patiently (about four minutes, Esc stops) with a calm status line. An answer that fails part-way is asked
194
- again automatically, since nothing was applied yet. If it still fails, your message is kept: `/retry`.
195
- - Context: every request is checked before it is sent; when it would not fit, old tool output is cleared and
196
- the largest messages are shortened, so "context length exceeded" no longer reaches you. If a server still
197
- says it is too long, Euron Code learns the real size from its reply and fits the next request to it.
198
- Non-English text is counted correctly.
199
- - Error reports carry only the first line of a tool error (never file contents), and errors of your own
200
- model are reported without its endpoint.
201
-
202
- ## 1.0.2 (2026-11-06)
203
-
204
- Fixes for the tool errors still reported by 1.0.1 users.
205
-
206
- - Edits: an exact, unique match is applied even if the file was not read first or changed since (the
207
- text being replaced is verifiably there); anything looser shows the current file first. old_string
208
- sent with literal \n escapes, curly quotes or different spacing now matches. When nothing matches,
209
- the error quotes the closest lines of the file so the next try can copy them exactly.
210
- - Parameter names in any spelling (filePath, file-path, oldText, search_text, original_code ...) are
211
- understood. A parameter that is still missing is reported with what the call did contain.
212
- - todo_write accepts the shapes models send: plain text lines ("- [x] done"), {"items": [...]}, items as
213
- strings, and statuses like "done" or "in-progress".
214
- - stop_process with nothing running is not an error; "all" stops every background process.
215
- - A server or proxy error page (HTML) is never shown; a 5xx page is retried like "busy".
216
- - Error reports keep plain parameter and file names, so a failure says what was missing (code and
217
- values are still hidden).
218
-
219
- ## 1.0.1 (2026-11-06)
220
-
221
- - Euron Code tells you when a newer version is out, with the command to upgrade
222
- (`pip install -U euron-code`). It checks PyPI at most once a day, in the background of start-up, with a
223
- two-second limit, and says nothing when you are offline or up to date. Turn it off with
224
- `EURON_NO_UPDATE_CHECK=1`.
225
-
226
- ## 1.0.0 (2026-11-06)
227
-
228
- Fixes for every failure recorded on the Euron Code error dashboard since launch.
229
-
230
- - A dropped connection no longer loses your turn. When the connection breaks part-way through an
231
- answer (seen as "WinError 10054 ... forcibly closed by the remote host"), Euron Code asks again by
232
- itself, up to three times, because nothing had been applied yet. If the answer had already finished
233
- when the connection dropped, it is kept instead of thrown away.
234
- - Edits that differ only in whitespace now apply. When the exact text is not found, Euron Code matches
235
- it ignoring line numbers copied from read_file, trailing spaces, or indentation, and re-indents the
236
- new code to the file's style (2 to 4 spaces, tabs). It only does this when there is exactly one
237
- match, and the result says how it matched.
238
- - Tool calls with the parameter names other tools use (file_path, old_str, query, ...), lists sent as
239
- text, or numbers sent as strings are repaired before they run, instead of failing with "Missing
240
- required parameter".
241
- - A path that does not exist is resolved when it can mean only one file (app/page.tsx is
242
- src/app/page.tsx; css/style.css is style.css in a GitHub repo), and otherwise the error lists the
243
- closest real paths.
244
- - stop_process accepts "1", "P1", the process number or part of the command.
245
- - write_file on a file you had not read shows its current content right away, so the next call works.
246
- - A new terminal on the same computer is no longer told Euron Code "is running in another terminal".
247
- Euron Code sends an anonymous id for this computer (a random value kept in ~/.euron/device-id); a
248
- different computer still has to take over.
249
-
250
- ## 0.9.0 (2026-11-06)
251
-
252
- Every build starts from code that already exists, and the report says what was really reused.
253
-
254
- - Any "build / create / make a <thing>" is now a build request (a scientific calculator, a snake game, an
255
- expense splitter...), not only the product words Euron Code knew. Small units (a function, a test, a
256
- regex) are still written directly.
257
- - Every build request now searches GitHub from your computer for projects that already do it, keeps the
258
- permissively licensed ones (MIT, Apache-2.0, BSD...), and tells the AI to fetch the best one, read it,
259
- adopt or adapt it with its licence, and write only what is missing. If the AI still writes everything
260
- itself without opening any of them, it is asked once to look before it finishes.
261
- - Honest reuse report: a file only counts as reused when its code is in your project (adopted, credited
262
- in THIRD_PARTY_NOTICES.md, or a real share of its lines in the files that changed). Files that were
263
- only read are listed as "Read for reference". The report and the journal show about how many tokens
264
- of proven code were reused instead of written.
265
- - The journal (`.euron/knowledge/journal.md`) records what was reused, from where, and the tokens saved;
266
- "Reused: nothing (written from scratch)" when that is what happened. Asked about it, the AI now reads
267
- these files instead of saying `.euron` was not changed.
268
- - The Euron logo greets you when Euron Code starts.
269
-
270
- ## 0.8.0 (2026-11-06)
271
-
272
- Euron Code learns each project and keeps a security assessment, on your computer.
273
-
274
- - First run in a folder or a fresh clone: the project is set up automatically (no question), the code
275
- is analysed into `.euron/knowledge/codemap.md`, and a day-zero security scan writes
276
- `.euron/security/assessment.md`. Locally, no tokens.
277
- - After every task: a journal entry (`.euron/knowledge/journal.md`), the files it built
278
- (`built.json`), learned rules (`.euron/rules/learned.md`: test, lint and build commands that work,
279
- commands that keep failing, security lessons) and a rescan of the changed files. New findings are
280
- shown right away; resolved ones are marked resolved.
281
- - Every session starts with a compact summary of all this in the context (about 1.5k tokens), so the
282
- AI stops re-exploring the repository.
283
- - 23 security checks: secrets and API keys, SQL built from strings, eval / new Function, shell injection,
284
- unsafe deserialisation, yaml.load, TLS verification off, unverified JWTs, CORS `*`, debug mode,
285
- insecure cookies, XSS sinks, open redirects, path traversal, weak hashes, insecure randomness, and
286
- secrets files that git would commit. Secrets are never written to the report. Accept a line with
287
- `euron: ignore-security`.
288
- - A `.gitignore` for the stack when there is none; an existing one only gets the missing essentials.
289
- - New: `/security`, `/security-review`, `/knowledge`. `EURON_NO_AUTOSETUP=1` and `EURON_NO_KNOWLEDGE=1`
290
- opt out.
291
-
292
- ## 0.7.0 (2026-11-06)
293
-
294
- Answers are formatted, not raw Markdown.
295
-
296
- - Tables are drawn as boxed grids that fit the terminal: columns sized to their content, long cells
297
- wrapped, `:---:` alignment honoured, header in bold. Too narrow for a grid, each row is shown as
298
- `header: value` lines.
299
- - **Bold**, *italic*, `code`, ~~strike~~ and links show as styles instead of their markers.
300
- - Headings, bullet and numbered lists (nested, wrapped under their text), task lists, block quotes and
301
- horizontal rules are laid out for the terminal.
302
- - Fenced code is syntax-highlighted and keeps its indentation.
303
- - Works with `NO_COLOR` and ASCII terminals (`+-|` borders). `euron -p` output is unchanged.
304
-
305
- ## 0.6.0 (2026-11-06)
306
-
307
- A new look for the interactive session.
308
-
309
- - Each tool call is a block: `● Bash(npm test)` with its output indented under it. Long output shows
310
- its first lines and `… +58 lines (ctrl+o to expand)`; Ctrl+O (or `/expand [n]`) prints it in full.
311
- - Edits show as a numbered diff with added lines on green and removed lines on red.
312
- - Answers start with a `●` bullet; while Euron Code works, a status line above the input shows what it is
313
- doing, the time so far and the tokens received.
314
- - The input sits in a box with a footer: the permission mode on the left (`▸▸ auto-approve on`), with
315
- `esc to interrupt` while a task runs, and the model, context and today's tokens on the right.
316
- - `!command` output uses the same block. `euron -p` output is unchanged.
317
-
318
- Reuse from all of GitHub, on your own computer.
319
-
320
- - Open-source search now asks GitHub directly from your machine (your own allowance; code search too
321
- with `gh auth login` or `GITHUB_TOKEN`). The token goes only to GitHub, never to Euron, and is never
322
- printed. When GitHub is offline or rate limited, Euron's service answers as before.
323
- - New tools: `oss_fetch` downloads a reference once at a pinned commit into `~/.euron/cache/oss` and
324
- indexes it; `oss_grep` and `oss_read` then work from your disk; `oss_adopt` copies the files worth
325
- reusing with their licence header, copies LICENSE / NOTICE and updates `THIRD_PARTY_NOTICES.md`.
326
- - Licences are checked in code from GitHub's licence detection, and again in the downloaded licence text
327
- (Commons Clause and non-commercial riders are refused).
328
- - `euron cache` (list, size, clear). The cache keeps 2 GB by default, least recently used out first.
329
-
330
- ## 0.5.2 (2026-11-05)
331
-
332
- Security and reliability fixes from pre-launch testing.
333
-
334
- - Bypass mode (`--yolo`) now asks before any command that names a path outside your project, including
335
- quoted paths and paths in your home folder.
336
- - Files that usually hold secrets (such as `.env`) are never sent with your message without a yes.
337
- - An answer that comes back empty is asked for once more instead of ending silently; `-p` always prints a
338
- result, and JSON mode reports errors as JSON.
339
- - Hindi, emoji and other non-English text print correctly when output is piped on Windows.
340
- - Long tasks no longer stop early as a false "loop", or with an unfinished task list.
341
- - Reuse planning picks the right components and records every reused source.
342
-
343
- ## 0.5.1 (2026-11-05)
344
-
345
- - Running `euron` again right after a run finished no longer says Euron Code is already running for
346
- your account: the login is freed when Euron Code exits.
347
-
348
- ## 0.5.0 (2026-11-05)
349
-
350
- ### Build from references (V5 contract section 1)
351
- - New tools `oss_search` (repos or code), `oss_tree` and `oss_read` through Euron:
352
- every result shows its licence; only MIT, Apache-2.0, BSD, ISC, 0BSD, Unlicense, MPL-2.0, CC0 and Zlib.
353
- A `license_not_permitted` answer tells the model plainly it must not use that code, and the client drops
354
- any non-permitted result it might still receive. MPL-2.0 is flagged as file-level copyleft.
355
- - `add_third_party_notice` records each reused source in the project's `THIRD_PARTY_NOTICES.md`.
356
- - Reuse-first is the default for "build me X" and UI work (system prompt + built-in skill
357
- `build-from-reference`): Euron's index first (typescript for UI), then permissive open source, one or two
358
- references, read only the needed files, adapt with attribution, generate only what is missing; prefer the
359
- project's existing component system. Budget notes after 4 searches and 6 reads.
360
- - `/reference <what>` shows candidates from both sources with licences. The completion report and `-p` JSON
361
- list what was reused (`Reused: repo/path (MIT)`, `"reused": [...]`).
362
-
363
- ### Error log (V5 contract section 2)
364
- - Service and network errors, tool errors, crashes (fingerprint: type + top frame), hook failures and slash
365
- command failures are reported, scrubbed (no prompts, file contents, command text, env values or secrets;
366
- quoted text removed, home and project paths masked, key-like strings redacted), batched (20 per request,
367
- under 8 KB) and sent in the background with a 3 s timeout; never blocks or fails what you are doing.
368
- - Offline queue in `~/.euron/errors.jsonl` (at most 500), sent next time; `/bug` lists the last 10 with ids.
369
- - Off with `errorReporting: false` or `EURON_NO_ERROR_REPORTS=1`. Disclosed in the README.
370
- - An unexpected crash now prints a short message with an error id instead of a traceback.
371
-
372
- ### Reuse engine client (V6 contract section 6)
373
- - `find_reusable(requirement, components, allow_external)`: the first step for build-type requests (a
374
- heuristic adds a short note to the request; bug fixes, small edits and questions skip it). The model
375
- splits the request into 1-8 components; Euron decides REUSE / ADAPT / GENERATE per component and
376
- the CLI shows the table (component, decision, repository@sha, licence, confidence). The client re-checks
377
- every decision: a non-permitted licence or a failed security scan always becomes GENERATE, unverified
378
- security turns REUSE into ADAPT.
379
- - The activity line shows the engine's states (searching, found, checking licence, validating security,
380
- reusing, adapting, generating, running tests, integration completed), driven by the real tool calls.
381
- - After tests pass on reused or adapted code, its metadata (never code) goes to the student's private
382
- component library (`POST /v1/components`); `/components` lists it.
383
- - Settings `reuse.enabled` and `reuse.external` (both default true), `--no-reuse`. A reuse engine or GitHub
384
- failure never fails the turn: it generates instead, with a dim note.
385
- - `-p --output-format json` gains `reuse` and `task_id`; the completion report adds "Reuse plan: ...".
386
-
387
- ### From the first live build test
388
- - Reuse no longer depends on the model choosing it: for a build request the CLI splits the request into
389
- components locally (no model call) and calls `/v1/reuse/plan` before the first model call, then puts
390
- the decisions, files and licences into that first message and shows the table. Websites and UI ask for
391
- Euron's TypeScript / TSX components. `find_reusable` stays available for more.
392
- - The details the user gives are used: a system-prompt rule, an attached local photo is copied into
393
- `assets/` (or `public/`) and referenced, and once per prompt the changed files are checked for
394
- "Your Name", "Lorem ipsum", "example@example.com" and "TODO: replace", with one nudge to fix them.
395
- - "Context was N% full ..." is printed only when it freed at least 2,000 tokens or the context was
396
- 60% full or more.
397
- - The error-report note moved from the privacy section to Settings.
398
-
399
- ### Branding
400
- - README top: the official Euron Code definition, the 3-step start, "Everything you need to build" and
401
- the daily allowance with its fair-use note; usage at `euron usage`, `/usage` and euron.one.
402
- - No vendor or model names, and no internal service details, anywhere a student can see. The `/usage`
403
- value line reads "at reference market API prices". `/status`, `/cost`, `/context` and `euron doctor` show
404
- percentages and plain words instead of internal sizes and addresses.
405
-
406
- ### Fewer tokens per request
407
- - Tool descriptions shortened (about 730 fewer tokens on every request).
408
-
409
- ## 0.4.2 (2026-11-05)
410
-
411
- ### Changed
412
- - Documentation and messages describe what Euron Code does for you, without internal service details.
413
-
414
- ## 0.4.1 (2026-11-05)
415
-
416
- ### Fixed
417
- - Pasting text with emoji into a Windows terminal crashed the prompt ("surrogates not allowed") and
418
- then failed every request. Text is now repaired before it is saved or sent.
419
-
420
- ### Changed
421
- - Clearer privacy wording; the limits section shows the daily allowance and where to track usage.
422
-
423
- ## 0.4.0 (2026-11-05)
424
-
425
- ### Run the app, not just the tests
426
- - `start_background_process` (waits for a port or a ready line), `read_process_output`, `stop_process`:
427
- at most 3, 64 KB output each, whole process trees stopped on exit, `/clear` and `/rewind`; `/ps`.
428
- - `check_app`: local URLs only; status, timing, title, `contains`, `wait_seconds`; `browser: true` uses
429
- Playwright when installed (new extra `euron-code[browser]`) for console errors, failed requests and a
430
- screenshot.
431
- - The system prompt now says to use these for servers instead of `bash`.
432
-
433
- ### Reuse Euron's open-source code (V4 contract section 3)
434
- - `euron_reuse_search` and `euron_reuse_read` over Euron's public MIT repos; the
435
- system prompt asks to search before writing a substantial common component and to keep the licence
436
- notice; `/reuse <query>`.
437
-
438
- ### Context optimisation with Euron Open ContextForge (MIT, vendored in `euron_code/contextforge/`)
439
- - Before any model-written summary: older duplicate tool results are dropped, bulky logs, test runs and
440
- JSON are condensed to their verbatim signal lines (errors, failures, stack frames, head and tail), and
441
- stubs keep the facts they drop. Often that is enough and no model call is spent.
442
- - Every summary now carries a verbatim fact ledger (ids, paths, versions, env names, URLs, ports, dates,
443
- error classes) and the user's stated constraints, plus permission grants, git branch and state, and the
444
- last command with its exit code.
445
-
446
- ### More tools and gaps closed (audit increment 6)
447
- - `find_symbol` (definitions and references), `delete_file` and `move_file` (both undone by `/rewind`).
448
- - `AGENTS.md` and other agents' instruction files are read alongside `EURON.md` (trust-gated like it).
449
- - Inline `<tool_call>` JSON is repaired (trailing commas, single quotes, Python literals); garbage
450
- becomes an error result for the model, never a crash.
451
- - `/rewind` works after `euron --resume`: checkpoints are kept in `~/.euron/checkpoints/<session>/`
452
- (user-only, at most 50 MB per session).
453
- - The context window and output cap come from `/v1/models` unless you set them.
454
- - `/export` warns that the file contains tool output.
455
-
456
- ### Euron-only client and privacy (V4 contract section 1, audit increment 3)
457
- - A 403 `client_not_supported` explains that Euron Code works through the euron app only.
458
-
459
- ### CI
460
- - `.github/workflows/ci.yml`: pytest on ubuntu, windows and macos x Python 3.9 and 3.12 (ripgrep on one
461
- job), then build the wheel and sdist and check the wheel contents.
462
-
463
- ## 0.3.0 (2026-11-05)
464
-
465
- ### Never stuck at the output limit
466
- - An answer cut by the output limit (`finish_reason: length`) is continued automatically (up to 3 times)
467
- and joined into one answer. A tool call cut mid-arguments (typically a huge `write_file`) is never run;
468
- the model is asked to make the change in smaller steps. When reasoning alone used the budget, the
469
- request is retried once with `reasoning_effort: low`. Each case shows one dim note, never an error.
470
- - `reasoning_effort` is sent on every call: `medium` by default, `low` for simple follow-ups
471
- ("thanks", "continue") and continuation retries. `/effort low|medium|high`, setting `reasoningEffort`,
472
- shown in the status bar.
473
- - `max_tokens` is sized per request: min(server max, context window - prompt estimate - 512), at least
474
- 1024. A request that would not fit is compacted first. The prompt estimate starts from the last
475
- server-reported `prompt_tokens` and adds only the new messages.
476
-
477
- ### Context management
478
- - An output budget is reserved (min(maxOutputTokens, window/4)); percentages are of the usable rest.
479
- - From 50%, tool outputs are cleared biggest and oldest first until under 40% (the latest step is never
480
- touched). Each stub names the call (for reads: path and line range) so the model can read it again.
481
- The note reports real numbers: "freed 9,400 tokens, now 38%".
482
- - The conversation is summarised at 70%, or whenever the next request would not fit. The summary keeps
483
- the task, decisions, files changed, commands and results, the last error and open todos (files
484
- changed and the last error are also added verbatim).
485
- - `read_file` reads 200 lines by default and stops at a line boundary before ~6k tokens. Files over
486
- 2,000 lines return an outline (definitions with line numbers) unless a range is given. The system
487
- prompt says: search first, read ranges, edit with `edit_file`, never rewrite big files.
488
-
489
- ### A live session
490
- - **Activity line** while the agent works: an animated glyph, a rotating verb, elapsed time, tokens
491
- sent and received (counted live from the stream), what is happening (`thinking`, `writing app.py`,
492
- `running pytest 12s`, `waiting for capacity (2 ahead)`, `retrying in 3s`) and `esc to interrupt`.
493
- On a terminal it redraws 10 times a second; without one it prints a progress line every 15 s; in `-p`
494
- mode it appears on stderr only when stderr is a terminal. Queue positions are shown
495
- instead of being ignored.
496
- - **Status bar**: model and effort, mode, session tokens and their value, context %, today's and this
497
- week's remaining quota, session uptime. Refreshed continuously.
498
- - **Type while it works.** The turn runs in a worker thread and the prompt stays live. `/usage`, `/cost`,
499
- `/context`, `/status`, `/model`, `/effort`, `/help`, `/todos`, `/permissions` run at once (a model switch
500
- applies from the next model call, a mode change from the next tool call); anything else is queued as
501
- your next message. Permission questions are answered in the same prompt. Esc or Ctrl-C stops the
502
- turn (a running command is killed) and puts queued messages back into the input line.
503
- - **`/` menu** pops up as soon as you type `/`, with every command, custom command and skill. `/model`
504
- opens a picker (arrow keys + Enter) with context size and status. `@word` searches the project's files.
505
- - `/status`, `/whoami`, `/config`, `/bug`, `/release-notes`, `/users` (alias of `/usage`).
506
-
507
- ### Accounts and modes
508
- - Plain `euron` with no saved key logs you in in the browser and goes straight into the session.
509
- - `euron login` / `/login` when logged in: shows who, offers to log in as a different account
510
- (`--force` skips the question). The old key is replaced only after the new login is approved. Logout
511
- stays local (there is no CLI revoke API); revoke keys at euron.one/code-agent.
512
- - `--permission-mode bypassPermissions` and `--dangerously-skip-permissions` (alias of `--yolo`) with a
513
- red warning; Shift+Tab reaches bypass only when started with it. `acceptEdits` is shown as "auto-apply
514
- edits". `--add-dir DIR` adds folders the agent may work in.
515
-
516
- ### One login at a time
517
- - A key revoked because the account logged in on another device (401 `signed_in_elsewhere`) shows that
518
- message, drops the local key and offers "Log in here? (this signs out the other device)"; after the
519
- login the interrupted message is carried on. `-p` exits 4 with the message.
520
- - When another session holds the account (409 `session_in_use`), Euron Code asks "Take over here?"; yes
521
- retries once with `X-Euron-Takeover: 1`. `-p` exits 4 unless `--takeover` is given.
522
- - After `euron login`: "Signed in as ... (any other device using this account was signed out)".
523
-
524
- ### Plan quotas and value (V3 contract)
525
- - `/usage` shows the plan tier, all four periods (day, week, month, year) with bars and refill times,
526
- `quota.blocked` prominently, and value lines at reference market API prices, plus what the allowance is worth. `/cost` and the
527
- status bar show this session's value. Always labelled as a reference, never a bill.
528
- - New 429 codes `monthly_token_limit`, `yearly_token_limit` and `cooldown`, each with its refill time in
529
- local time; exit code 5 in `-p` mode.
530
-
531
- ### Automatic project setup and local cache
532
- - First `euron` in a folder without `EURON.md` or `.euron/` (not your home folder or a drive root) offers
533
- to set it up; `--yes` or `euron init` does it without asking. Locally, with no model call: `EURON.md`
534
- (stack, commands, layout, entry points), `.euron/rules/` (testing, git, security and per-stack
535
- rules), `.euron/settings.json` (allow rules for the detected test/lint commands and read-only git),
536
- `.euron/hooks.example.json` (off; `/hooks enable` turns them on, pre-trusted because Euron Code wrote
537
- them), `.euron/commands/` (`/fix-tests`, `/commit`, `/pr`), and `.euron/cache/` in `.gitignore`.
538
- - `.euron/cache/` keeps the repo map and file index, keyed by git HEAD and folder mtimes. Safe to delete,
539
- no secrets, only written when `.euron/` exists.
540
-
541
- ### Attach anything
542
- - `@file`, `/attach`, or drag files into the terminal (Windows `"C:\..."` and PowerShell `& '...'`
543
- quoting, Unix escaped spaces and `file://` are recognised). Word, Excel, PowerPoint and PDF become
544
- compact text locally (stdlib zip+XML; `pypdf` for PDF), as do CSV/TSV (sample + column summary),
545
- JSON, YAML and notebooks, capped at about 6k tokens per file with a note; unknown binaries are only
546
- described. The new `read_document` tool reads more pages, sheets or rows on demand.
547
- - `@folder` attaches a digest within a budget: tree, file types and sizes, heads of key files.
548
- - Images (png/jpg/gif/webp/bmp, up to 5 per message, 5 MB each) are sent as `image_url` parts, resized
549
- to 1568 px with the optional `euron-code[images]` extra (Pillow), which also enables Ctrl+V and
550
- `/paste-image`. A 400 `images_unavailable` drops the images with a clear note and retries.
551
- - Session transcripts never store image bytes.
552
-
553
- ### Security (independent audit, before release)
554
- - **Project trust.** A repo's `.euron/settings.json` / `settings.local.json` can no longer loosen anything
555
- silently: allow rules, `defaultMode` other than default/plan, `shell`, `db.*`, `webFetch: true` and
556
- raised limits apply only after the user trusts the repo (one prompt listing exactly what it ships,
557
- with view / trust / ignore; fingerprinted in `~/.euron/trusted-projects.json`, so a change asks again).
558
- Restrict-only keys (deny rules, plan mode, lowered limits) always apply. `-p` ignores untrusted keys
559
- with a warning; `euron trust` / `/trust` trust a repo. Rules the user saves with `s` or
560
- `/permissions allow` now live in `~/.euron/projects/<hash>.json`, outside the repo.
561
- - **Repo instructions are trust-gated too:** project and parent `EURON.md`, `.euron/rules`, `.euron/skills`
562
- and `.euron/commands` load only for a trusted repo. The system prompt no longer says project memory
563
- "overrides" anything: project-provided guidance follows `# Tools and safety`, which always wins.
564
- - `grep` skips secret-looking files (`.env*`, keys, credentials) in both the ripgrep and the Python path
565
- and says which were skipped; naming one explicitly asks, like `read_file`.
566
- - Commands, `!` commands and hooks run without `EURON_API_KEY` / `EURON_CODE_API` in their environment.
567
- - Bypass mode still asks for commands that touch existing paths outside the project and for a list of
568
- destructive commands (that list asks even with an allow rule); `web_fetch` to localhost, private
569
- ranges, link-local and metadata addresses asks in every mode unless that exact host was allowed.
570
- - Edits to `EURON.md` and `.euron/**` always ask in acceptEdits mode.
571
- - Session transcripts are created user-only (0600, folder 0700) on POSIX.
572
-
573
- ### Runaway guard and honest completion
574
- - 3 identical failing calls add a "change your approach" note; 5 stop the request (`stop_reason: loop`).
575
- Identical successful calls get a note at 4 and stop at 8.
576
- - Step budget per request, `maxStepsPerPrompt` (default 60): the REPL asks to continue; `-p` exits 6.
577
- - A local report after a change: `Changed: ... | Ran: ... (exit N) | Not verified: ...`; `-p --output-format
578
- json` gains `files_changed` and `commands`. One automatic nudge when files changed and no command
579
- succeeded afterwards (`verifyNudge`, off in plan mode); the detected test command is in the
580
- environment block.
581
- - After `write_file` / `edit_file`: a syntax check for `.py` (compile), `.json` and, when node is installed,
582
- `.js` files.
583
-
584
- ### Fixed
585
- - Windows Terminal, VS Code and other ConPTY hosts: a lone Esc stayed inside prompt_toolkit's VT input
586
- parser until the next key, so Esc did not interrupt. The timed flush now delivers it (found by
587
- driving the CLI in a real ConPTY).
588
- - Safe commands such as `/usage` typed while a permission question is open now run, and the question
589
- stays open, instead of being rejected as an invalid answer.
590
-
591
- ### Changed
592
- - Defaults: `compactThreshold` 0.7, `microCompactThreshold` 0.5, new `microCompactTarget` 0.4,
593
- `microCompactKeepSteps` 1, `outputReserve`, `reasoningEffort` (all fractions of the usable window).
594
- - The CHANGELOG ships inside the wheel (for `/release-notes`).
595
-
596
- ## 0.2.0 (2026-11-05)
597
-
598
- ### Added
599
- - **Usage periods.** `/usage` and `euron usage` show Today / This week / This month with a progress bar
600
- against each limit (the week only when the plan has a weekly limit), reset times in local time,
601
- requests, sessions, tasks and the share of prompt tokens served from the server's cache, plus the
602
- 30-day table with cached / sessions / tasks columns. The status bar shows the tighter of the day and
603
- week allowance.
604
- - **Weekly limit.** A `weekly_token_limit` 429 stops cleanly with the local reset time; exit code 5 in
605
- `-p` mode, the same as the daily limit. Both limits read `resets_at` from the error when present.
606
- - **Session and task headers.** Every model call sends `X-Euron-Session` (the saved session id, kept on
607
- `--continue` / `--resume` / `/resume`) and `X-Euron-Task` (new for every message you send).
608
- - **Rules files.** `.euron/rules/*.md` and `~/.euron/rules/*.md`, loaded after `EURON.md`. Rules with
609
- `paths:` front matter load only once a matching file is read or edited. `/rules`, `/rules new`.
610
- - **Skills.** `.euron/skills/<name>/SKILL.md` and `~/.euron/skills/<name>/SKILL.md`. Only names and
611
- descriptions are in the system prompt; the new `skill` tool loads a body on demand; `/<name> [args]`
612
- runs one. Built in: `review`, `test-writer`, `explain-codebase`. `/skills`, `/skills new`.
613
- - **Custom commands.** `.euron/commands/<name>.md` and `~/.euron/commands/<name>.md` become `/<name>`
614
- with `$ARGUMENTS`; shown in `/help` and Tab completion.
615
- - **Hooks.** `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `Stop` in settings, with a
616
- tool-name `matcher`, JSON on stdin and exit code 2 to block or give feedback. Project hooks must be
617
- trusted once per project (re-asked when they change); skipped with a warning in `-p` mode.
618
- `/hooks`, `/hooks new`.
619
- - **Plan mode.** Read-only mode in which the model proposes a plan; leaving it is the user's choice.
620
- Shift+Tab cycles default -> acceptEdits -> plan; also `/plan` and `--permission-mode plan`.
621
- - **Shortcuts.** `!command` runs a command and adds its output to the next message; `@path` attaches a
622
- file or folder (Tab completes paths); Esc Esc / `/rewind` undoes the last turn's file edits and drops
623
- the turn; Ctrl-L clears the screen; `/resume` and `/export` inside a session.
624
- - **`/context`.** A breakdown with a bar: system prompt, memory, rules, skills index, tool definitions,
625
- messages, tool results, free space.
626
- - **`/init` repo map.** A locally built map (stack, manifest commands, layout, entry points) is handed to
627
- the model, which writes a short `EURON.md` with a repo map section; offers `.euron/rules/` and
628
- `.euron/settings.json` skeletons.
629
-
630
- ### Token saving (automatic)
631
- - The system prompt and tool list stay byte-identical for the whole session; plan mode, hook output and
632
- `!` output go at the end of the user message.
633
- - Re-reading an unchanged file (mtime + size, or content hash) returns "unchanged since your last read
634
- at turn N"; a read that reached the end of the file covers later partial reads.
635
- - Micro-compaction at 60% of the context: tool outputs older than the last 3 steps become one-line stubs
636
- (no model call); the summary still happens at 75%.
637
- - `/cost` and `/context` report prompt tokens sent, tokens reused from cache and tokens saved by each measure. `-p --output-format
638
- json` adds `cached_tokens` and `saved_tokens`.
639
-
640
- ### Changed
641
- - `/help` lists your commands, skills and the shortcuts.
642
- - `--permission-mode` and `/permissions mode` accept `plan`.
643
- - New settings: `microCompactThreshold` (0.6), `microCompactKeepSteps` (3), `hooks`.
644
-
645
- ### Fixed
646
- - On Windows PowerShell 5.1, a command that wrote to stderr (for example `pytest ... 2>&1` with a
647
- warning) was reported as exit code 1 with CLIXML noise even when it passed. The real exit code is
648
- reported now and stderr is plain text.
649
-
650
- ## 0.1.0
651
-
652
- First release: agent loop with file, search, shell, database, web, todo and sub-agent tools; device
653
- login; `EURON.md` memory and `/init`; `/compact` and auto-compaction; saved sessions; permission rules
654
- and modes; `-p` headless mode.
1
+ # Changelog
2
+
3
+ ## 1.5.4 (2026-11-11)
4
+
5
+ Web Forms pages are converted by Euron Code itself, so no page content is retyped (or made up) by the model.
6
+
7
+ - In an ASP.NET Web Forms migration Euron Code offers `port_page`: it turns a `.aspx` page (or the `.master`
8
+ page) into a Razor view on your computer, carrying every heading, sentence, table, link and form field over
9
+ as it is, and converting the server controls (TextBox, DropDownList with its items, Button, Label, Literal,
10
+ HyperLink, Image, validators). What it cannot convert stays in a `@* TODO *@` comment, never dropped. It then
11
+ lists what is left for the model: the controller action, the model and the code-behind logic.
12
+ - A view written by the model without its page's content is now sent back to `port_page`, and a later rewrite
13
+ that would remove a carried-over page's content is undone (with the reason).
14
+ - `create_mvc5_project` writes a known-good ASP.NET MVC 5 project for .NET Framework 4.x: solution, project
15
+ file (new controllers and views are picked up without editing it), packages with versions that exist,
16
+ Web.config (your old settings and connection strings carried over), Global.asax and App_Start. Checked with
17
+ Visual Studio 2022 MSBuild and IIS Express.
18
+ - Clear hints for common .NET Framework build errors: missing Microsoft.WebApplication.targets path, a NuGet
19
+ version that does not exist, a missing System.Web.* package reference, a malformed .sln.
20
+ - A small legacy project (a few files) is recognised as a migration too.
21
+
22
+ ## 1.5.3 (2026-11-11)
23
+
24
+ Fixes for the errors people ran into over the last two weeks.
25
+
26
+ - Your own model: when a provider says your allowance or credit is used up (for example EURI's "daily token
27
+ allowance is used up"), Euron Code now says exactly that, says your key is fine, and offers `/model euron` to
28
+ carry on with the Euron model. It used to say the key was rejected and ask you to set it again.
29
+ - A per-minute rate limit from a provider (Groq and others) is waited out and retried instead of being reported
30
+ as "out of credit".
31
+ - `euron models add` checks what you paste: a provider name, a command, or a short or spaced value is refused
32
+ with a plain explanation instead of being saved as a key that fails on every request.
33
+ - `euron models add` run inside a Euron Code session or a script (where nobody can answer its questions) now says
34
+ so and shows how to set the key with an environment variable. `euron models add custom euri` works.
35
+ - EURI API is in the `euron models add` list, and model names copied with the help text's brackets or quotes
36
+ (`euri:<model-name>`) are read as the name inside them.
37
+ - `/model` lists "Add your own model" as the last choice, so bringing your own key and model is one step away.
38
+ - `/components` works again (it asked the server for a page that does not exist).
39
+ - read_file on a file that does not exist shows what the folder really holds (or that the folder does not exist
40
+ and what the nearest one holds), and after several wrong names in a row tells the model to stop guessing and
41
+ search first. One task in production spent 45 minutes guessing file names.
42
+ - grep accepts patterns written for other tools: `\p{L}` and other Unicode classes are translated, and a pattern
43
+ that cannot be read as a regular expression is searched as plain text instead of failing.
44
+ - web_fetch opens sites that still use an old, short certificate key (the certificate is still checked).
45
+ - Internal problems are explained in plain words (for example "Euron Code was updated while this window was
46
+ running; start it again"), without internal names. The details still go to the error report.
47
+ - Saving project notes and settings waits out a file briefly held by antivirus or OneDrive on Windows
48
+ ("Access is denied") instead of failing.
49
+
50
+ ## 1.5.2 (2026-11-10)
51
+
52
+ Converting a project to another framework (for example ASP.NET Web Forms to MVC) carries every page over.
53
+
54
+ - Ask Euron Code to convert, migrate or port an existing project and it first makes an inventory of every legacy
55
+ file (pages are paired with their code-behind), on your computer, before anything changes. The list is in
56
+ `MIGRATION_CHECKLIST.md`, which Euron Code keeps up to date as pages are carried over.
57
+ - The model converts one page at a time and reads each legacy page right before it writes the new one. It is told
58
+ never to write a page from memory or invent sample pages, and conversions are not handed to sub-agents that
59
+ never saw the legacy files.
60
+ - Euron Code checks the new files for each legacy page's text (headings, sentences, table rows, phone numbers,
61
+ messages). When a new view is written without its page's content, it says so at once and hands the legacy
62
+ page over (two pages per step at most), so the view is redone from the page. Before it may call the job done,
63
+ it lists the pages that are not carried over yet. After the conversation is summarised, the list of what is
64
+ left comes back too, and "continue" picks up from it.
65
+ - .NET: an old-style .NET Framework project (MVC 5, Web Forms) is built with Visual Studio's MSBuild (found
66
+ automatically) with NuGet restore, not with `dotnet build` (which cannot build it). `dotnet test` is only
67
+ suggested when there is a test project.
68
+ - Bypass mode on Windows no longer refuses build commands as "outside the project": tool switches such as
69
+ `/t:Rebuild` or `/p:Configuration=Debug` are not paths, and running an installed program by its full path
70
+ (for example Visual Studio's MSBuild.exe) is allowed. Shells and interpreters run that way still ask.
71
+ - Turn it off with `euron config set migrationMode false` or `EURON_NO_MIGRATION=1`.
72
+
73
+ ## 1.5.1 (2026-11-10)
74
+
75
+ Default is the Euron model on Euron's own GPUs; bring your own Anthropic/OpenAI/any key, billed by your provider.
76
+
77
+ - The default, and the only model Euron runs for you, is the Euron model: Euron's own model on Euron's own GPUs,
78
+ included with Euron Plus and Super 30. Your prompts and code go to Euron's own servers.
79
+ - Want Claude, GPT or another model? `euron models add anthropic` (or `openai`, `openrouter`, `custom` for any
80
+ OpenAI-compatible endpoint), or `euron --model provider:model`, or `/model add` in a session. It uses your key,
81
+ your provider bills you, and Euron charges nothing for it.
82
+ - `/model` and `euron models` list the Euron model first, as the default; your own models are marked as using your
83
+ key and billed by your provider.
84
+ - Asked which model it is, Euron Code on the Euron model says it runs on the Euron model and never claims another
85
+ company's model. With your own model it names that model.
86
+ - The 1.5.0 notes below described hosted provider models as the default. Those were never switched on and are not
87
+ offered.
88
+
89
+ ## 1.5.0 (2026-11-10)
90
+
91
+ - The status line and `/model` say which model answers, and Euron Code answers honestly when you ask which model
92
+ it is, including after a switch.
93
+ - Notes from Euron about the model that answered are shown once per kind.
94
+ - With `reuse.enabled` set to false, every open-source and Euron reuse tool is off, and no GitHub repository is
95
+ downloaded.
96
+ - Read-only and parallel sub-agents run your hooks (PreToolUse, PostToolUse) and permission rules, like the main
97
+ agent.
98
+
99
+ ## 1.4.0 (2026-11-09)
100
+
101
+ Fewer wasted steps and fewer missed details, from a benchmark of real student-style tasks with hidden tests.
102
+
103
+ - Checks you write are no longer blocked. In bypass mode (`--yolo`), test code passed inline (`python -c`,
104
+ `node -e`, a heredoc or a PowerShell here-string) was refused as "outside the project" when it contained a URL
105
+ route (`/products`), a `//` comment, a division or a `~~~` fence. Real paths outside the project (your home
106
+ folder, another drive, `..\..`) still ask, as before.
107
+ - Optional edge-case review before a detailed task is called done (`"specReview": true` in settings): Euron Code
108
+ tests the request's formats, error cases, empty and boundary input once more and fixes what fails. Off by
109
+ default, because on the Euron model it added steps without catching more.
110
+ - Running a check script and deleting it afterwards counts as checked: Euron Code no longer redoes the check.
111
+ `tsx` and `ts-node` script runs count as checks.
112
+ - A folder with only a few config files (package.json, README) is shown in the first step, so a new build does
113
+ not start by listing and reading them.
114
+ - `edit_file` / `multi_edit` without a path uses the one file you have already seen that holds the text.
115
+ - A step that only updates the task list gets a one-line hint to send todo updates with the next real step.
116
+ - Your own models whose tools only work with reasoning turned off on chat completions now work: Euron Code
117
+ learns that from the first error instead of dropping the tools.
118
+
119
+ ## 1.3.1 (2026-11-09)
120
+
121
+ - A new build in an empty folder no longer gets the "here is every file in this small project" note (it only held
122
+ EURON.md and made the model answer with nothing). EURON.md is never repeated in it.
123
+ - GitHub references must be about the product asked for (a FastAPI todo API was offered a WhatsApp bot repo).
124
+
125
+ ## 1.3.0 (2026-11-09)
126
+
127
+ Finishes coding jobs more reliably: no more loops, no cut-off files, no unrelated repositories.
128
+
129
+ - Long files are written in parts. When a file write hits the model's output limit, the lines that arrived
130
+ are kept and Euron Code continues the file from there (`write_file` with `append`), instead of writing the
131
+ whole file again and getting cut off again. Files over about 300 lines are written in parts from the start.
132
+ - Loop guard: the same error coming back, a file edited back and forth, or a long run of failing tool calls
133
+ first makes Euron Code change approach, then stops with a short report (what works, the exact error that
134
+ blocks it, what it tried, the next step) instead of using up the whole time budget.
135
+ - Done means checked: after the last change a real check (build, tests or running the program) has to pass.
136
+ Listing files or installing packages no longer counts. If the last check fails, Euron Code goes back and
137
+ fixes it, or says exactly which check fails and why.
138
+ - Fewer, bigger steps: a small project (up to 12 small files) is read whole into the first step, so Euron Code
139
+ does not list and read the files one by one; the tests run once, and it stops as soon as they pass.
140
+ - Reuse only when it fits: Euron repositories and GitHub references are suggested only when they are about
141
+ the same product (a calculator is no longer pointed at an HR app), in the same language, small, and only
142
+ in a new, empty project. HTML / CSS / JavaScript requests stay plain JavaScript. Adopted code that still does not
143
+ build after 3 checks is removed again, with its licence notice, and that part is written from scratch.
144
+ - `@` followed by punctuation ("exactly one @, a dot") is plain text, not a file to attach (it used to stop
145
+ `euron -p` before it started).
146
+ - `read_file` on a folder shows what is in it; editing a folder names the files in it; `multi_edit` with the
147
+ file named inside each edit, and `read_file` past the end of a file, now work instead of failing.
148
+
149
+ ## 1.2.0 (2026-11-09)
150
+
151
+ Faster steps on the Euron model: more of every request reuses the prompt the model has already read.
152
+
153
+ - Conversation summaries are asked at the end of the conversation the model already has, with the same
154
+ instructions and tools, so the model reuses what it has already read instead of reading a re-written
155
+ copy of the conversation from scratch. If the model answers with a tool call instead, the old
156
+ summary request is used.
157
+ - The wrap-up step at the time / step budget keeps the tool list (with tool calls switched off), so it
158
+ reuses it too.
159
+ - The system prompt is ordered from most to least stable: the project knowledge block (code map, recent
160
+ work) now comes last, so a new session in the same project starts faster.
161
+ - After an edit, Euron Code runs the tests closest to the change first and the full suite once at the end.
162
+
163
+ ## 1.1.3 (2026-11-08)
164
+
165
+ - "'euron' is not recognized" (Windows) or "euron: command not found" right after `pip install euron-code`:
166
+ pip put the `euron` command in a Scripts folder that is not on your PATH. New `python -m euron_code fix-path`
167
+ finds that folder and adds it to your user PATH (Windows; no admin, the system PATH is not touched, safe to
168
+ run twice) or prints the line to add to your shell profile (macOS, Linux). Open a new terminal afterwards.
169
+ - `python -m euron_code` (or `py -m euron_code` on Windows) does everything `euron` does, e.g.
170
+ `python -m euron_code login`, and says once how to fix PATH when `euron` is not on it.
171
+ - `euron doctor` has a PATH check.
172
+
173
+ ## 1.1.2 (2026-11-07)
174
+
175
+ - A connection that drops in the middle of an answer ("The response stopped part-way ... WinError 10054") now
176
+ also switches Euron Code to IPv4, so the automatic retry of that step takes the working route.
177
+
178
+ ## 1.1.1 (2026-11-07)
179
+
180
+ Fixes from support tickets.
181
+
182
+ - Word, Excel, PowerPoint and PDF files are read as text by `read_file` too, instead of "looks like a binary
183
+ file; not reading it".
184
+ - A connection the network resets (`[WinError 10054] An existing connection was forcibly closed`) is retried
185
+ three times, and Euron Code switches to IPv4 (remembered in `~/.euron/network.json`; force it with
186
+ `EURON_IPV4=1`). The final error says what to check.
187
+ - `euron version`, `euron -V` and `/version`: the running version, the Python it runs from, whether PyPI has a
188
+ newer one, and the update command for that exact Python. Before, `euron version` was sent to the model as a
189
+ prompt.
190
+
191
+ ## 1.1.0 (2026-11-07)
192
+
193
+ Bring your own model, and fixes for the errors users hit most in the last week.
194
+
195
+ **Use your own model**
196
+ - Connect OpenAI, Claude (Anthropic, native API with tool use and prompt caching), Ollama on your computer,
197
+ Google Gemini, OpenRouter, Groq, Together, DeepSeek, Mistral, LM Studio, the EURI API, or any
198
+ OpenAI-compatible endpoint. Guided setup: `euron models add` or `/model add`; switch with `/model`,
199
+ `euron --model provider:model` or `euron models use`. See "Use your own model" in the README.
200
+ - Keys stay on your computer (keychain or a file only you can read), are typed hidden, and are sent only to
201
+ that provider: never printed, logged or sent to Euron. Your own model's tokens do not count against your
202
+ Euron tokens.
203
+ - Any signed-in Euron account may use its own model. The Euron model stays included with Euron Plus and
204
+ Super 30; without Plus, `euron login` still works and says how to add your own model.
205
+ - The default model is always shown as "Euron model" (status line, /model, /status, JSON output, exports).
206
+ - A model that cannot call tools is refused with a clear message. Context size is set per model.
207
+
208
+ **Faster, and finishes the task**
209
+ - No more summary loop: compaction thresholds now leave room for the fixed part of every request (system
210
+ prompt and tools), a summary never runs on consecutive steps or before the conversation has grown again,
211
+ and it is budgeted to land well under the trigger. A simulated 150-step session went from 60 summaries
212
+ (one every 2 steps) to 5. Summaries no longer think and are shorter.
213
+ - A lighter fixed prompt for models with a small context (like the Euron model): lean tool schemas and a capped project memory and
214
+ code map (about 17% fewer tokens on every step).
215
+ - Effort where it pays: full reasoning on the first step and after a failure, little or none on routine
216
+ steps that just continue after successful edits.
217
+ - A soft budget per request (40 minutes or 120 steps): then it wraps up with what is done, what is left and
218
+ the next step. Repeated errors make it stop and re-plan. Plans first for big tasks.
219
+ - Up to 3 sub-agents in parallel (several task calls in one step), and builder sub-agents that each own their
220
+ files, so two parts of a build go at once without touching each other's files.
221
+
222
+ **Fixes**
223
+ - Paths: a doubled folder (`app/app/.env`), the project's own folder name in front, `<project>\...`, an
224
+ absolute path that points into the project, or a path relative to the folder the shell moved to, now find
225
+ the file; so does the only file with that name. The result says which file was used. Applies to read_file,
226
+ edit_file, multi_edit, list_dir, grep, glob, find_symbol and read_document; write_file fixes a doubled
227
+ folder.
228
+ - Edits: a unique match that differs only in line endings, trailing spaces, indentation or blank lines is
229
+ applied, also when the file was not read first (the text is verifiably there); the replacement is
230
+ re-indented to the file. edit_file with an empty old_string on a missing or empty file creates it. When
231
+ nothing matches, the current content comes back and counts as a read, so the retry works. "Matches N
232
+ places" lists the lines.
233
+ - write_file never refuses a file Euron Code created in this session, and a refusal (not read, or changed
234
+ since) shows the content and lets the immediate retry through.
235
+ - A file another program holds open (Windows "Access is denied") is retried and then written in place; if
236
+ it still fails the model gets a clear message instead of a crash. Bad values become tool errors too.
237
+ - todo_write accepts Python-style lists; oss_grep defaults to the repo used last; bash says what to send when
238
+ the command is missing; background processes can be given a name (backend-dev) and found by it.
239
+ - Busy servers: no capacity, queue timeouts, upstream timeouts (502/504) and a full queue are retried
240
+ patiently (about four minutes, Esc stops) with a calm status line. An answer that fails part-way is asked
241
+ again automatically, since nothing was applied yet. If it still fails, your message is kept: `/retry`.
242
+ - Context: every request is checked before it is sent; when it would not fit, old tool output is cleared and
243
+ the largest messages are shortened, so "context length exceeded" no longer reaches you. If a server still
244
+ says it is too long, Euron Code learns the real size from its reply and fits the next request to it.
245
+ Non-English text is counted correctly.
246
+ - Error reports carry only the first line of a tool error (never file contents), and errors of your own
247
+ model are reported without its endpoint.
248
+
249
+ ## 1.0.2 (2026-11-06)
250
+
251
+ Fixes for the tool errors still reported by 1.0.1 users.
252
+
253
+ - Edits: an exact, unique match is applied even if the file was not read first or changed since (the
254
+ text being replaced is verifiably there); anything looser shows the current file first. old_string
255
+ sent with literal \n escapes, curly quotes or different spacing now matches. When nothing matches,
256
+ the error quotes the closest lines of the file so the next try can copy them exactly.
257
+ - Parameter names in any spelling (filePath, file-path, oldText, search_text, original_code ...) are
258
+ understood. A parameter that is still missing is reported with what the call did contain.
259
+ - todo_write accepts the shapes models send: plain text lines ("- [x] done"), {"items": [...]}, items as
260
+ strings, and statuses like "done" or "in-progress".
261
+ - stop_process with nothing running is not an error; "all" stops every background process.
262
+ - A server or proxy error page (HTML) is never shown; a 5xx page is retried like "busy".
263
+ - Error reports keep plain parameter and file names, so a failure says what was missing (code and
264
+ values are still hidden).
265
+
266
+ ## 1.0.1 (2026-11-06)
267
+
268
+ - Euron Code tells you when a newer version is out, with the command to upgrade
269
+ (`pip install -U euron-code`). It checks PyPI at most once a day, in the background of start-up, with a
270
+ two-second limit, and says nothing when you are offline or up to date. Turn it off with
271
+ `EURON_NO_UPDATE_CHECK=1`.
272
+
273
+ ## 1.0.0 (2026-11-06)
274
+
275
+ Fixes for every failure recorded on the Euron Code error dashboard since launch.
276
+
277
+ - A dropped connection no longer loses your turn. When the connection breaks part-way through an
278
+ answer (seen as "WinError 10054 ... forcibly closed by the remote host"), Euron Code asks again by
279
+ itself, up to three times, because nothing had been applied yet. If the answer had already finished
280
+ when the connection dropped, it is kept instead of thrown away.
281
+ - Edits that differ only in whitespace now apply. When the exact text is not found, Euron Code matches
282
+ it ignoring line numbers copied from read_file, trailing spaces, or indentation, and re-indents the
283
+ new code to the file's style (2 to 4 spaces, tabs). It only does this when there is exactly one
284
+ match, and the result says how it matched.
285
+ - Tool calls with the parameter names other tools use (file_path, old_str, query, ...), lists sent as
286
+ text, or numbers sent as strings are repaired before they run, instead of failing with "Missing
287
+ required parameter".
288
+ - A path that does not exist is resolved when it can mean only one file (app/page.tsx is
289
+ src/app/page.tsx; css/style.css is style.css in a GitHub repo), and otherwise the error lists the
290
+ closest real paths.
291
+ - stop_process accepts "1", "P1", the process number or part of the command.
292
+ - write_file on a file you had not read shows its current content right away, so the next call works.
293
+ - A new terminal on the same computer is no longer told Euron Code "is running in another terminal".
294
+ Euron Code sends an anonymous id for this computer (a random value kept in ~/.euron/device-id); a
295
+ different computer still has to take over.
296
+
297
+ ## 0.9.0 (2026-11-06)
298
+
299
+ Every build starts from code that already exists, and the report says what was really reused.
300
+
301
+ - Any "build / create / make a <thing>" is now a build request (a scientific calculator, a snake game, an
302
+ expense splitter...), not only the product words Euron Code knew. Small units (a function, a test, a
303
+ regex) are still written directly.
304
+ - Every build request now searches GitHub from your computer for projects that already do it, keeps the
305
+ permissively licensed ones (MIT, Apache-2.0, BSD...), and tells the AI to fetch the best one, read it,
306
+ adopt or adapt it with its licence, and write only what is missing. If the AI still writes everything
307
+ itself without opening any of them, it is asked once to look before it finishes.
308
+ - Honest reuse report: a file only counts as reused when its code is in your project (adopted, credited
309
+ in THIRD_PARTY_NOTICES.md, or a real share of its lines in the files that changed). Files that were
310
+ only read are listed as "Read for reference". The report and the journal show about how many tokens
311
+ of proven code were reused instead of written.
312
+ - The journal (`.euron/knowledge/journal.md`) records what was reused, from where, and the tokens saved;
313
+ "Reused: nothing (written from scratch)" when that is what happened. Asked about it, the AI now reads
314
+ these files instead of saying `.euron` was not changed.
315
+ - The Euron logo greets you when Euron Code starts.
316
+
317
+ ## 0.8.0 (2026-11-06)
318
+
319
+ Euron Code learns each project and keeps a security assessment, on your computer.
320
+
321
+ - First run in a folder or a fresh clone: the project is set up automatically (no question), the code
322
+ is analysed into `.euron/knowledge/codemap.md`, and a day-zero security scan writes
323
+ `.euron/security/assessment.md`. Locally, no tokens.
324
+ - After every task: a journal entry (`.euron/knowledge/journal.md`), the files it built
325
+ (`built.json`), learned rules (`.euron/rules/learned.md`: test, lint and build commands that work,
326
+ commands that keep failing, security lessons) and a rescan of the changed files. New findings are
327
+ shown right away; resolved ones are marked resolved.
328
+ - Every session starts with a compact summary of all this in the context (about 1.5k tokens), so the
329
+ AI stops re-exploring the repository.
330
+ - 23 security checks: secrets and API keys, SQL built from strings, eval / new Function, shell injection,
331
+ unsafe deserialisation, yaml.load, TLS verification off, unverified JWTs, CORS `*`, debug mode,
332
+ insecure cookies, XSS sinks, open redirects, path traversal, weak hashes, insecure randomness, and
333
+ secrets files that git would commit. Secrets are never written to the report. Accept a line with
334
+ `euron: ignore-security`.
335
+ - A `.gitignore` for the stack when there is none; an existing one only gets the missing essentials.
336
+ - New: `/security`, `/security-review`, `/knowledge`. `EURON_NO_AUTOSETUP=1` and `EURON_NO_KNOWLEDGE=1`
337
+ opt out.
338
+
339
+ ## 0.7.0 (2026-11-06)
340
+
341
+ Answers are formatted, not raw Markdown.
342
+
343
+ - Tables are drawn as boxed grids that fit the terminal: columns sized to their content, long cells
344
+ wrapped, `:---:` alignment honoured, header in bold. Too narrow for a grid, each row is shown as
345
+ `header: value` lines.
346
+ - **Bold**, *italic*, `code`, ~~strike~~ and links show as styles instead of their markers.
347
+ - Headings, bullet and numbered lists (nested, wrapped under their text), task lists, block quotes and
348
+ horizontal rules are laid out for the terminal.
349
+ - Fenced code is syntax-highlighted and keeps its indentation.
350
+ - Works with `NO_COLOR` and ASCII terminals (`+-|` borders). `euron -p` output is unchanged.
351
+
352
+ ## 0.6.0 (2026-11-06)
353
+
354
+ A new look for the interactive session.
355
+
356
+ - Each tool call is a block: `● Bash(npm test)` with its output indented under it. Long output shows
357
+ its first lines and `… +58 lines (ctrl+o to expand)`; Ctrl+O (or `/expand [n]`) prints it in full.
358
+ - Edits show as a numbered diff with added lines on green and removed lines on red.
359
+ - Answers start with a `●` bullet; while Euron Code works, a status line above the input shows what it is
360
+ doing, the time so far and the tokens received.
361
+ - The input sits in a box with a footer: the permission mode on the left (`▸▸ auto-approve on`), with
362
+ `esc to interrupt` while a task runs, and the model, context and today's tokens on the right.
363
+ - `!command` output uses the same block. `euron -p` output is unchanged.
364
+
365
+ Reuse from all of GitHub, on your own computer.
366
+
367
+ - Open-source search now asks GitHub directly from your machine (your own allowance; code search too
368
+ with `gh auth login` or `GITHUB_TOKEN`). The token goes only to GitHub, never to Euron, and is never
369
+ printed. When GitHub is offline or rate limited, Euron's service answers as before.
370
+ - New tools: `oss_fetch` downloads a reference once at a pinned commit into `~/.euron/cache/oss` and
371
+ indexes it; `oss_grep` and `oss_read` then work from your disk; `oss_adopt` copies the files worth
372
+ reusing with their licence header, copies LICENSE / NOTICE and updates `THIRD_PARTY_NOTICES.md`.
373
+ - Licences are checked in code from GitHub's licence detection, and again in the downloaded licence text
374
+ (Commons Clause and non-commercial riders are refused).
375
+ - `euron cache` (list, size, clear). The cache keeps 2 GB by default, least recently used out first.
376
+
377
+ ## 0.5.2 (2026-11-05)
378
+
379
+ Security and reliability fixes from pre-launch testing.
380
+
381
+ - Bypass mode (`--yolo`) now asks before any command that names a path outside your project, including
382
+ quoted paths and paths in your home folder.
383
+ - Files that usually hold secrets (such as `.env`) are never sent with your message without a yes.
384
+ - An answer that comes back empty is asked for once more instead of ending silently; `-p` always prints a
385
+ result, and JSON mode reports errors as JSON.
386
+ - Hindi, emoji and other non-English text print correctly when output is piped on Windows.
387
+ - Long tasks no longer stop early as a false "loop", or with an unfinished task list.
388
+ - Reuse planning picks the right components and records every reused source.
389
+
390
+ ## 0.5.1 (2026-11-05)
391
+
392
+ - Running `euron` again right after a run finished no longer says Euron Code is already running for
393
+ your account: the login is freed when Euron Code exits.
394
+
395
+ ## 0.5.0 (2026-11-05)
396
+
397
+ ### Build from references (V5 contract section 1)
398
+ - New tools `oss_search` (repos or code), `oss_tree` and `oss_read` through Euron:
399
+ every result shows its licence; only MIT, Apache-2.0, BSD, ISC, 0BSD, Unlicense, MPL-2.0, CC0 and Zlib.
400
+ A `license_not_permitted` answer tells the model plainly it must not use that code, and the client drops
401
+ any non-permitted result it might still receive. MPL-2.0 is flagged as file-level copyleft.
402
+ - `add_third_party_notice` records each reused source in the project's `THIRD_PARTY_NOTICES.md`.
403
+ - Reuse-first is the default for "build me X" and UI work (system prompt + built-in skill
404
+ `build-from-reference`): Euron's index first (typescript for UI), then permissive open source, one or two
405
+ references, read only the needed files, adapt with attribution, generate only what is missing; prefer the
406
+ project's existing component system. Budget notes after 4 searches and 6 reads.
407
+ - `/reference <what>` shows candidates from both sources with licences. The completion report and `-p` JSON
408
+ list what was reused (`Reused: repo/path (MIT)`, `"reused": [...]`).
409
+
410
+ ### Error log (V5 contract section 2)
411
+ - Service and network errors, tool errors, crashes (fingerprint: type + top frame), hook failures and slash
412
+ command failures are reported, scrubbed (no prompts, file contents, command text, env values or secrets;
413
+ quoted text removed, home and project paths masked, key-like strings redacted), batched (20 per request,
414
+ under 8 KB) and sent in the background with a 3 s timeout; never blocks or fails what you are doing.
415
+ - Offline queue in `~/.euron/errors.jsonl` (at most 500), sent next time; `/bug` lists the last 10 with ids.
416
+ - Off with `errorReporting: false` or `EURON_NO_ERROR_REPORTS=1`. Disclosed in the README.
417
+ - An unexpected crash now prints a short message with an error id instead of a traceback.
418
+
419
+ ### Reuse engine client (V6 contract section 6)
420
+ - `find_reusable(requirement, components, allow_external)`: the first step for build-type requests (a
421
+ heuristic adds a short note to the request; bug fixes, small edits and questions skip it). The model
422
+ splits the request into 1-8 components; Euron decides REUSE / ADAPT / GENERATE per component and
423
+ the CLI shows the table (component, decision, repository@sha, licence, confidence). The client re-checks
424
+ every decision: a non-permitted licence or a failed security scan always becomes GENERATE, unverified
425
+ security turns REUSE into ADAPT.
426
+ - The activity line shows the engine's states (searching, found, checking licence, validating security,
427
+ reusing, adapting, generating, running tests, integration completed), driven by the real tool calls.
428
+ - After tests pass on reused or adapted code, its metadata (never code) goes to the student's private
429
+ component library (`POST /v1/components`); `/components` lists it.
430
+ - Settings `reuse.enabled` and `reuse.external` (both default true), `--no-reuse`. A reuse engine or GitHub
431
+ failure never fails the turn: it generates instead, with a dim note.
432
+ - `-p --output-format json` gains `reuse` and `task_id`; the completion report adds "Reuse plan: ...".
433
+
434
+ ### From the first live build test
435
+ - Reuse no longer depends on the model choosing it: for a build request the CLI splits the request into
436
+ components locally (no model call) and calls `/v1/reuse/plan` before the first model call, then puts
437
+ the decisions, files and licences into that first message and shows the table. Websites and UI ask for
438
+ Euron's TypeScript / TSX components. `find_reusable` stays available for more.
439
+ - The details the user gives are used: a system-prompt rule, an attached local photo is copied into
440
+ `assets/` (or `public/`) and referenced, and once per prompt the changed files are checked for
441
+ "Your Name", "Lorem ipsum", "example@example.com" and "TODO: replace", with one nudge to fix them.
442
+ - "Context was N% full ..." is printed only when it freed at least 2,000 tokens or the context was
443
+ 60% full or more.
444
+ - The error-report note moved from the privacy section to Settings.
445
+
446
+ ### Branding
447
+ - README top: the official Euron Code definition, the 3-step start, "Everything you need to build" and
448
+ the daily allowance with its fair-use note; usage at `euron usage`, `/usage` and euron.one.
449
+ - No vendor or model names, and no internal service details, anywhere a student can see. The `/usage`
450
+ value line reads "at reference market API prices". `/status`, `/cost`, `/context` and `euron doctor` show
451
+ percentages and plain words instead of internal sizes and addresses.
452
+
453
+ ### Fewer tokens per request
454
+ - Tool descriptions shortened (about 730 fewer tokens on every request).
455
+
456
+ ## 0.4.2 (2026-11-05)
457
+
458
+ ### Changed
459
+ - Documentation and messages describe what Euron Code does for you, without internal service details.
460
+
461
+ ## 0.4.1 (2026-11-05)
462
+
463
+ ### Fixed
464
+ - Pasting text with emoji into a Windows terminal crashed the prompt ("surrogates not allowed") and
465
+ then failed every request. Text is now repaired before it is saved or sent.
466
+
467
+ ### Changed
468
+ - Clearer privacy wording; the limits section shows the daily allowance and where to track usage.
469
+
470
+ ## 0.4.0 (2026-11-05)
471
+
472
+ ### Run the app, not just the tests
473
+ - `start_background_process` (waits for a port or a ready line), `read_process_output`, `stop_process`:
474
+ at most 3, 64 KB output each, whole process trees stopped on exit, `/clear` and `/rewind`; `/ps`.
475
+ - `check_app`: local URLs only; status, timing, title, `contains`, `wait_seconds`; `browser: true` uses
476
+ Playwright when installed (new extra `euron-code[browser]`) for console errors, failed requests and a
477
+ screenshot.
478
+ - The system prompt now says to use these for servers instead of `bash`.
479
+
480
+ ### Reuse Euron's open-source code (V4 contract section 3)
481
+ - `euron_reuse_search` and `euron_reuse_read` over Euron's public MIT repos; the
482
+ system prompt asks to search before writing a substantial common component and to keep the licence
483
+ notice; `/reuse <query>`.
484
+
485
+ ### Context optimisation with Euron Open ContextForge (MIT, vendored in `euron_code/contextforge/`)
486
+ - Before any model-written summary: older duplicate tool results are dropped, bulky logs, test runs and
487
+ JSON are condensed to their verbatim signal lines (errors, failures, stack frames, head and tail), and
488
+ stubs keep the facts they drop. Often that is enough and no model call is spent.
489
+ - Every summary now carries a verbatim fact ledger (ids, paths, versions, env names, URLs, ports, dates,
490
+ error classes) and the user's stated constraints, plus permission grants, git branch and state, and the
491
+ last command with its exit code.
492
+
493
+ ### More tools and gaps closed (audit increment 6)
494
+ - `find_symbol` (definitions and references), `delete_file` and `move_file` (both undone by `/rewind`).
495
+ - `AGENTS.md` and other agents' instruction files are read alongside `EURON.md` (trust-gated like it).
496
+ - Inline `<tool_call>` JSON is repaired (trailing commas, single quotes, Python literals); garbage
497
+ becomes an error result for the model, never a crash.
498
+ - `/rewind` works after `euron --resume`: checkpoints are kept in `~/.euron/checkpoints/<session>/`
499
+ (user-only, at most 50 MB per session).
500
+ - The context window and output cap come from `/v1/models` unless you set them.
501
+ - `/export` warns that the file contains tool output.
502
+
503
+ ### Euron-only client and privacy (V4 contract section 1, audit increment 3)
504
+ - A 403 `client_not_supported` explains that Euron Code works through the euron app only.
505
+
506
+ ### CI
507
+ - `.github/workflows/ci.yml`: pytest on ubuntu, windows and macos x Python 3.9 and 3.12 (ripgrep on one
508
+ job), then build the wheel and sdist and check the wheel contents.
509
+
510
+ ## 0.3.0 (2026-11-05)
511
+
512
+ ### Never stuck at the output limit
513
+ - An answer cut by the output limit (`finish_reason: length`) is continued automatically (up to 3 times)
514
+ and joined into one answer. A tool call cut mid-arguments (typically a huge `write_file`) is never run;
515
+ the model is asked to make the change in smaller steps. When reasoning alone used the budget, the
516
+ request is retried once with `reasoning_effort: low`. Each case shows one dim note, never an error.
517
+ - `reasoning_effort` is sent on every call: `medium` by default, `low` for simple follow-ups
518
+ ("thanks", "continue") and continuation retries. `/effort low|medium|high`, setting `reasoningEffort`,
519
+ shown in the status bar.
520
+ - `max_tokens` is sized per request: min(server max, context window - prompt estimate - 512), at least
521
+ 1024. A request that would not fit is compacted first. The prompt estimate starts from the last
522
+ server-reported `prompt_tokens` and adds only the new messages.
523
+
524
+ ### Context management
525
+ - An output budget is reserved (min(maxOutputTokens, window/4)); percentages are of the usable rest.
526
+ - From 50%, tool outputs are cleared biggest and oldest first until under 40% (the latest step is never
527
+ touched). Each stub names the call (for reads: path and line range) so the model can read it again.
528
+ The note reports real numbers: "freed 9,400 tokens, now 38%".
529
+ - The conversation is summarised at 70%, or whenever the next request would not fit. The summary keeps
530
+ the task, decisions, files changed, commands and results, the last error and open todos (files
531
+ changed and the last error are also added verbatim).
532
+ - `read_file` reads 200 lines by default and stops at a line boundary before ~6k tokens. Files over
533
+ 2,000 lines return an outline (definitions with line numbers) unless a range is given. The system
534
+ prompt says: search first, read ranges, edit with `edit_file`, never rewrite big files.
535
+
536
+ ### A live session
537
+ - **Activity line** while the agent works: an animated glyph, a rotating verb, elapsed time, tokens
538
+ sent and received (counted live from the stream), what is happening (`thinking`, `writing app.py`,
539
+ `running pytest 12s`, `waiting for capacity (2 ahead)`, `retrying in 3s`) and `esc to interrupt`.
540
+ On a terminal it redraws 10 times a second; without one it prints a progress line every 15 s; in `-p`
541
+ mode it appears on stderr only when stderr is a terminal. Queue positions are shown
542
+ instead of being ignored.
543
+ - **Status bar**: model and effort, mode, session tokens and their value, context %, today's and this
544
+ week's remaining quota, session uptime. Refreshed continuously.
545
+ - **Type while it works.** The turn runs in a worker thread and the prompt stays live. `/usage`, `/cost`,
546
+ `/context`, `/status`, `/model`, `/effort`, `/help`, `/todos`, `/permissions` run at once (a model switch
547
+ applies from the next model call, a mode change from the next tool call); anything else is queued as
548
+ your next message. Permission questions are answered in the same prompt. Esc or Ctrl-C stops the
549
+ turn (a running command is killed) and puts queued messages back into the input line.
550
+ - **`/` menu** pops up as soon as you type `/`, with every command, custom command and skill. `/model`
551
+ opens a picker (arrow keys + Enter) with context size and status. `@word` searches the project's files.
552
+ - `/status`, `/whoami`, `/config`, `/bug`, `/release-notes`, `/users` (alias of `/usage`).
553
+
554
+ ### Accounts and modes
555
+ - Plain `euron` with no saved key logs you in in the browser and goes straight into the session.
556
+ - `euron login` / `/login` when logged in: shows who, offers to log in as a different account
557
+ (`--force` skips the question). The old key is replaced only after the new login is approved. Logout
558
+ stays local (there is no CLI revoke API); revoke keys at euron.one/code-agent.
559
+ - `--permission-mode bypassPermissions` and `--dangerously-skip-permissions` (alias of `--yolo`) with a
560
+ red warning; Shift+Tab reaches bypass only when started with it. `acceptEdits` is shown as "auto-apply
561
+ edits". `--add-dir DIR` adds folders the agent may work in.
562
+
563
+ ### One login at a time
564
+ - A key revoked because the account logged in on another device (401 `signed_in_elsewhere`) shows that
565
+ message, drops the local key and offers "Log in here? (this signs out the other device)"; after the
566
+ login the interrupted message is carried on. `-p` exits 4 with the message.
567
+ - When another session holds the account (409 `session_in_use`), Euron Code asks "Take over here?"; yes
568
+ retries once with `X-Euron-Takeover: 1`. `-p` exits 4 unless `--takeover` is given.
569
+ - After `euron login`: "Signed in as ... (any other device using this account was signed out)".
570
+
571
+ ### Plan quotas and value (V3 contract)
572
+ - `/usage` shows the plan tier, all four periods (day, week, month, year) with bars and refill times,
573
+ `quota.blocked` prominently, and value lines at reference market API prices, plus what the allowance is worth. `/cost` and the
574
+ status bar show this session's value. Always labelled as a reference, never a bill.
575
+ - New 429 codes `monthly_token_limit`, `yearly_token_limit` and `cooldown`, each with its refill time in
576
+ local time; exit code 5 in `-p` mode.
577
+
578
+ ### Automatic project setup and local cache
579
+ - First `euron` in a folder without `EURON.md` or `.euron/` (not your home folder or a drive root) offers
580
+ to set it up; `--yes` or `euron init` does it without asking. Locally, with no model call: `EURON.md`
581
+ (stack, commands, layout, entry points), `.euron/rules/` (testing, git, security and per-stack
582
+ rules), `.euron/settings.json` (allow rules for the detected test/lint commands and read-only git),
583
+ `.euron/hooks.example.json` (off; `/hooks enable` turns them on, pre-trusted because Euron Code wrote
584
+ them), `.euron/commands/` (`/fix-tests`, `/commit`, `/pr`), and `.euron/cache/` in `.gitignore`.
585
+ - `.euron/cache/` keeps the repo map and file index, keyed by git HEAD and folder mtimes. Safe to delete,
586
+ no secrets, only written when `.euron/` exists.
587
+
588
+ ### Attach anything
589
+ - `@file`, `/attach`, or drag files into the terminal (Windows `"C:\..."` and PowerShell `& '...'`
590
+ quoting, Unix escaped spaces and `file://` are recognised). Word, Excel, PowerPoint and PDF become
591
+ compact text locally (stdlib zip+XML; `pypdf` for PDF), as do CSV/TSV (sample + column summary),
592
+ JSON, YAML and notebooks, capped at about 6k tokens per file with a note; unknown binaries are only
593
+ described. The new `read_document` tool reads more pages, sheets or rows on demand.
594
+ - `@folder` attaches a digest within a budget: tree, file types and sizes, heads of key files.
595
+ - Images (png/jpg/gif/webp/bmp, up to 5 per message, 5 MB each) are sent as `image_url` parts, resized
596
+ to 1568 px with the optional `euron-code[images]` extra (Pillow), which also enables Ctrl+V and
597
+ `/paste-image`. A 400 `images_unavailable` drops the images with a clear note and retries.
598
+ - Session transcripts never store image bytes.
599
+
600
+ ### Security (independent audit, before release)
601
+ - **Project trust.** A repo's `.euron/settings.json` / `settings.local.json` can no longer loosen anything
602
+ silently: allow rules, `defaultMode` other than default/plan, `shell`, `db.*`, `webFetch: true` and
603
+ raised limits apply only after the user trusts the repo (one prompt listing exactly what it ships,
604
+ with view / trust / ignore; fingerprinted in `~/.euron/trusted-projects.json`, so a change asks again).
605
+ Restrict-only keys (deny rules, plan mode, lowered limits) always apply. `-p` ignores untrusted keys
606
+ with a warning; `euron trust` / `/trust` trust a repo. Rules the user saves with `s` or
607
+ `/permissions allow` now live in `~/.euron/projects/<hash>.json`, outside the repo.
608
+ - **Repo instructions are trust-gated too:** project and parent `EURON.md`, `.euron/rules`, `.euron/skills`
609
+ and `.euron/commands` load only for a trusted repo. The system prompt no longer says project memory
610
+ "overrides" anything: project-provided guidance follows `# Tools and safety`, which always wins.
611
+ - `grep` skips secret-looking files (`.env*`, keys, credentials) in both the ripgrep and the Python path
612
+ and says which were skipped; naming one explicitly asks, like `read_file`.
613
+ - Commands, `!` commands and hooks run without `EURON_API_KEY` / `EURON_CODE_API` in their environment.
614
+ - Bypass mode still asks for commands that touch existing paths outside the project and for a list of
615
+ destructive commands (that list asks even with an allow rule); `web_fetch` to localhost, private
616
+ ranges, link-local and metadata addresses asks in every mode unless that exact host was allowed.
617
+ - Edits to `EURON.md` and `.euron/**` always ask in acceptEdits mode.
618
+ - Session transcripts are created user-only (0600, folder 0700) on POSIX.
619
+
620
+ ### Runaway guard and honest completion
621
+ - 3 identical failing calls add a "change your approach" note; 5 stop the request (`stop_reason: loop`).
622
+ Identical successful calls get a note at 4 and stop at 8.
623
+ - Step budget per request, `maxStepsPerPrompt` (default 60): the REPL asks to continue; `-p` exits 6.
624
+ - A local report after a change: `Changed: ... | Ran: ... (exit N) | Not verified: ...`; `-p --output-format
625
+ json` gains `files_changed` and `commands`. One automatic nudge when files changed and no command
626
+ succeeded afterwards (`verifyNudge`, off in plan mode); the detected test command is in the
627
+ environment block.
628
+ - After `write_file` / `edit_file`: a syntax check for `.py` (compile), `.json` and, when node is installed,
629
+ `.js` files.
630
+
631
+ ### Fixed
632
+ - Windows Terminal, VS Code and other ConPTY hosts: a lone Esc stayed inside prompt_toolkit's VT input
633
+ parser until the next key, so Esc did not interrupt. The timed flush now delivers it (found by
634
+ driving the CLI in a real ConPTY).
635
+ - Safe commands such as `/usage` typed while a permission question is open now run, and the question
636
+ stays open, instead of being rejected as an invalid answer.
637
+
638
+ ### Changed
639
+ - Defaults: `compactThreshold` 0.7, `microCompactThreshold` 0.5, new `microCompactTarget` 0.4,
640
+ `microCompactKeepSteps` 1, `outputReserve`, `reasoningEffort` (all fractions of the usable window).
641
+ - The CHANGELOG ships inside the wheel (for `/release-notes`).
642
+
643
+ ## 0.2.0 (2026-11-05)
644
+
645
+ ### Added
646
+ - **Usage periods.** `/usage` and `euron usage` show Today / This week / This month with a progress bar
647
+ against each limit (the week only when the plan has a weekly limit), reset times in local time,
648
+ requests, sessions, tasks and the share of prompt tokens served from the server's cache, plus the
649
+ 30-day table with cached / sessions / tasks columns. The status bar shows the tighter of the day and
650
+ week allowance.
651
+ - **Weekly limit.** A `weekly_token_limit` 429 stops cleanly with the local reset time; exit code 5 in
652
+ `-p` mode, the same as the daily limit. Both limits read `resets_at` from the error when present.
653
+ - **Session and task headers.** Every model call sends `X-Euron-Session` (the saved session id, kept on
654
+ `--continue` / `--resume` / `/resume`) and `X-Euron-Task` (new for every message you send).
655
+ - **Rules files.** `.euron/rules/*.md` and `~/.euron/rules/*.md`, loaded after `EURON.md`. Rules with
656
+ `paths:` front matter load only once a matching file is read or edited. `/rules`, `/rules new`.
657
+ - **Skills.** `.euron/skills/<name>/SKILL.md` and `~/.euron/skills/<name>/SKILL.md`. Only names and
658
+ descriptions are in the system prompt; the new `skill` tool loads a body on demand; `/<name> [args]`
659
+ runs one. Built in: `review`, `test-writer`, `explain-codebase`. `/skills`, `/skills new`.
660
+ - **Custom commands.** `.euron/commands/<name>.md` and `~/.euron/commands/<name>.md` become `/<name>`
661
+ with `$ARGUMENTS`; shown in `/help` and Tab completion.
662
+ - **Hooks.** `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `Stop` in settings, with a
663
+ tool-name `matcher`, JSON on stdin and exit code 2 to block or give feedback. Project hooks must be
664
+ trusted once per project (re-asked when they change); skipped with a warning in `-p` mode.
665
+ `/hooks`, `/hooks new`.
666
+ - **Plan mode.** Read-only mode in which the model proposes a plan; leaving it is the user's choice.
667
+ Shift+Tab cycles default -> acceptEdits -> plan; also `/plan` and `--permission-mode plan`.
668
+ - **Shortcuts.** `!command` runs a command and adds its output to the next message; `@path` attaches a
669
+ file or folder (Tab completes paths); Esc Esc / `/rewind` undoes the last turn's file edits and drops
670
+ the turn; Ctrl-L clears the screen; `/resume` and `/export` inside a session.
671
+ - **`/context`.** A breakdown with a bar: system prompt, memory, rules, skills index, tool definitions,
672
+ messages, tool results, free space.
673
+ - **`/init` repo map.** A locally built map (stack, manifest commands, layout, entry points) is handed to
674
+ the model, which writes a short `EURON.md` with a repo map section; offers `.euron/rules/` and
675
+ `.euron/settings.json` skeletons.
676
+
677
+ ### Token saving (automatic)
678
+ - The system prompt and tool list stay byte-identical for the whole session; plan mode, hook output and
679
+ `!` output go at the end of the user message.
680
+ - Re-reading an unchanged file (mtime + size, or content hash) returns "unchanged since your last read
681
+ at turn N"; a read that reached the end of the file covers later partial reads.
682
+ - Micro-compaction at 60% of the context: tool outputs older than the last 3 steps become one-line stubs
683
+ (no model call); the summary still happens at 75%.
684
+ - `/cost` and `/context` report prompt tokens sent, tokens reused from cache and tokens saved by each measure. `-p --output-format
685
+ json` adds `cached_tokens` and `saved_tokens`.
686
+
687
+ ### Changed
688
+ - `/help` lists your commands, skills and the shortcuts.
689
+ - `--permission-mode` and `/permissions mode` accept `plan`.
690
+ - New settings: `microCompactThreshold` (0.6), `microCompactKeepSteps` (3), `hooks`.
691
+
692
+ ### Fixed
693
+ - On Windows PowerShell 5.1, a command that wrote to stderr (for example `pytest ... 2>&1` with a
694
+ warning) was reported as exit code 1 with CLIXML noise even when it passed. The real exit code is
695
+ reported now and stderr is plain text.
696
+
697
+ ## 0.1.0
698
+
699
+ First release: agent loop with file, search, shell, database, web, todo and sub-agent tools; device
700
+ login; `EURON.md` memory and `/init`; `/compact` and auto-compaction; saved sessions; permission rules
701
+ and modes; `-p` headless mode.