mini-code-cli 0.1.0.3__tar.gz → 0.1.0.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.
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/PKG-INFO +3 -2
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/README.md +2 -1
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/agent_loop.py +344 -306
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/persistence.py +34 -80
- mini_code_cli-0.1.0.4/mini_code_cli/plan.py +218 -0
- mini_code_cli-0.1.0.4/mini_code_cli/prompts.py +266 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/sandbox.py +26 -7
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/skills.py +90 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/subagents/base.py +24 -3
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/subagents/builtin.py +13 -7
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/tools.py +18 -2
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/ui.py +68 -12
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/PKG-INFO +3 -2
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/SOURCES.txt +1 -12
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/pyproject.toml +1 -1
- mini_code_cli-0.1.0.4/tests/test_e2e_agent_loop.py +557 -0
- mini_code_cli-0.1.0.3/mini_code_cli/plan.py +0 -154
- mini_code_cli-0.1.0.3/mini_code_cli/prompts.py +0 -125
- mini_code_cli-0.1.0.3/tests/test_agent_loop.py +0 -250
- mini_code_cli-0.1.0.3/tests/test_integration.py +0 -106
- mini_code_cli-0.1.0.3/tests/test_last_session_pointer.py +0 -218
- mini_code_cli-0.1.0.3/tests/test_plan.py +0 -287
- mini_code_cli-0.1.0.3/tests/test_resume_offer.py +0 -178
- mini_code_cli-0.1.0.3/tests/test_robustness.py +0 -179
- mini_code_cli-0.1.0.3/tests/test_sandboxing.py +0 -91
- mini_code_cli-0.1.0.3/tests/test_shell_safety.py +0 -103
- mini_code_cli-0.1.0.3/tests/test_skills.py +0 -245
- mini_code_cli-0.1.0.3/tests/test_subagents.py +0 -361
- mini_code_cli-0.1.0.3/tests/test_tools.py +0 -85
- mini_code_cli-0.1.0.3/tests/test_ui.py +0 -144
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/LICENSE +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/__init__.py +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/config.py +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/permissions.py +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/runner.py +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/shell_safety_utils.py +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/subagents/__init__.py +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli/utils.py +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/dependency_links.txt +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/entry_points.txt +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/requires.txt +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/top_level.txt +0 -0
- {mini_code_cli-0.1.0.3 → mini_code_cli-0.1.0.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mini-code-cli
|
|
3
|
-
Version: 0.1.0.
|
|
3
|
+
Version: 0.1.0.4
|
|
4
4
|
Summary: Mini Coding Agent. Allows you to easily experiment with a small coding agent.
|
|
5
5
|
Author-email: Nikolai Rozanov <nikolai.rozanov@gmail.com>
|
|
6
6
|
License: GNU AFFERO GENERAL PUBLIC LICENSE
|
|
@@ -722,7 +722,7 @@ mini-code --enable-shell --auto-mode --agent-md "./skill.md" --allowed-dir "./"
|
|
|
722
722
|
- system-prompt: you can override the default prompt by using a string. (Note: Agent.md is always appended after the system prompt.)
|
|
723
723
|
- load-last-session: instead of starting a fresh conversation, automatically continue your most recently active session from the default cache dir. It resumes under a brand-new session id, so the original session is never overwritten. An explicit `--restore-session` (a specific path) takes precedence if both are given. The "most recent" session is resolved in two steps: at the end of every interactive session, its path is recorded in a tiny `.mini/last_session.json` pointer inside the `--allowed-dir`, and `--load-last-session` consults that pointer first; only if there is no pointer (e.g. a fresh allowed dir, or the `--skills` feature disabled) does it fall back to the timestamp heuristic (the session whose history was modified most recently). The `.mini` pointer is the same directory the `--skills` feature uses, but it is a single dedicated file, so the two never clash.
|
|
724
724
|
- **Interactive session offer:** if a previous session exists in the cache dir but you did **not** explicitly ask to resume one (i.e. neither `--load-last-session` nor `--restore-session` was passed), the prompt asks what you'd like to do before the conversation starts: 1) **Resume** the previous session (splice its history in under a brand-new session id and continue it), 2) **Start a new** session (empty history), or 3) **Exit** (start nothing). Ctrl-C / EOF at the offer is treated as a graceful exit. This is distinct from `--load-last-session`, which silently resumes the most recent session without asking.
|
|
725
|
-
- plan: `--plan` enables **plan mode**. The
|
|
725
|
+
- plan: `--plan` enables **plan mode**. The loop keeps two human-readable tracking files in the session directory: `CURRENT_GOAL.md` (the user's latest instruction) and `CURRENT_PLAN.md` (a step-by-step plan the loop generates for the active goal, marked finished once the goal is done). These files are authored by the *loop*, not the agent (they live outside `--allowed-dir`), and you can inspect them anytime with `/plan` (only meaningful in plan mode). After the work looks done, plan mode reviews the plan's completion and re-queues any outstanding tasks before returning to you. Plan mode also changes how history compaction works: after the history is compacted to a summary, the current `CURRENT_PLAN.md` and the user's last instruction (`CURRENT_GOAL.md`) are re-injected into the messages so the agent keeps working against the same goal. When the session ends, the active goal is marked finished in `CURRENT_PLAN.md`.
|
|
726
726
|
|
|
727
727
|
### Available tools
|
|
728
728
|
|
|
@@ -830,6 +830,7 @@ options:
|
|
|
830
830
|
/history <n> show the full messages recorded for turn n
|
|
831
831
|
/reset [<n>] rewind to the end of turn n (drops everything after it)
|
|
832
832
|
/clear clear the screen (keeps the conversation history)
|
|
833
|
+
/plan show the current goal + plan (plan mode only)
|
|
833
834
|
/help show this help
|
|
834
835
|
/quit, /exit save the session and exit
|
|
835
836
|
```
|
|
@@ -48,7 +48,7 @@ mini-code --enable-shell --auto-mode --agent-md "./skill.md" --allowed-dir "./"
|
|
|
48
48
|
- system-prompt: you can override the default prompt by using a string. (Note: Agent.md is always appended after the system prompt.)
|
|
49
49
|
- load-last-session: instead of starting a fresh conversation, automatically continue your most recently active session from the default cache dir. It resumes under a brand-new session id, so the original session is never overwritten. An explicit `--restore-session` (a specific path) takes precedence if both are given. The "most recent" session is resolved in two steps: at the end of every interactive session, its path is recorded in a tiny `.mini/last_session.json` pointer inside the `--allowed-dir`, and `--load-last-session` consults that pointer first; only if there is no pointer (e.g. a fresh allowed dir, or the `--skills` feature disabled) does it fall back to the timestamp heuristic (the session whose history was modified most recently). The `.mini` pointer is the same directory the `--skills` feature uses, but it is a single dedicated file, so the two never clash.
|
|
50
50
|
- **Interactive session offer:** if a previous session exists in the cache dir but you did **not** explicitly ask to resume one (i.e. neither `--load-last-session` nor `--restore-session` was passed), the prompt asks what you'd like to do before the conversation starts: 1) **Resume** the previous session (splice its history in under a brand-new session id and continue it), 2) **Start a new** session (empty history), or 3) **Exit** (start nothing). Ctrl-C / EOF at the offer is treated as a graceful exit. This is distinct from `--load-last-session`, which silently resumes the most recent session without asking.
|
|
51
|
-
- plan: `--plan` enables **plan mode**. The
|
|
51
|
+
- plan: `--plan` enables **plan mode**. The loop keeps two human-readable tracking files in the session directory: `CURRENT_GOAL.md` (the user's latest instruction) and `CURRENT_PLAN.md` (a step-by-step plan the loop generates for the active goal, marked finished once the goal is done). These files are authored by the *loop*, not the agent (they live outside `--allowed-dir`), and you can inspect them anytime with `/plan` (only meaningful in plan mode). After the work looks done, plan mode reviews the plan's completion and re-queues any outstanding tasks before returning to you. Plan mode also changes how history compaction works: after the history is compacted to a summary, the current `CURRENT_PLAN.md` and the user's last instruction (`CURRENT_GOAL.md`) are re-injected into the messages so the agent keeps working against the same goal. When the session ends, the active goal is marked finished in `CURRENT_PLAN.md`.
|
|
52
52
|
|
|
53
53
|
### Available tools
|
|
54
54
|
|
|
@@ -156,6 +156,7 @@ options:
|
|
|
156
156
|
/history <n> show the full messages recorded for turn n
|
|
157
157
|
/reset [<n>] rewind to the end of turn n (drops everything after it)
|
|
158
158
|
/clear clear the screen (keeps the conversation history)
|
|
159
|
+
/plan show the current goal + plan (plan mode only)
|
|
159
160
|
/help show this help
|
|
160
161
|
/quit, /exit save the session and exit
|
|
161
162
|
```
|