mini-code-cli 0.1.0.2__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.2 → mini_code_cli-0.1.0.4}/PKG-INFO +4 -2
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/README.md +3 -1
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/agent_loop.py +416 -234
- {mini_code_cli-0.1.0.2 → 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.2 → mini_code_cli-0.1.0.4}/mini_code_cli/runner.py +23 -6
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/sandbox.py +26 -7
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/skills.py +90 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/subagents/base.py +24 -3
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/subagents/builtin.py +13 -7
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/tools.py +18 -2
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/ui.py +68 -12
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/utils.py +30 -3
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/PKG-INFO +4 -2
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/SOURCES.txt +1 -10
- {mini_code_cli-0.1.0.2 → 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.2/mini_code_cli/plan.py +0 -154
- mini_code_cli-0.1.0.2/mini_code_cli/prompts.py +0 -125
- mini_code_cli-0.1.0.2/tests/test_agent_loop.py +0 -250
- mini_code_cli-0.1.0.2/tests/test_integration.py +0 -99
- mini_code_cli-0.1.0.2/tests/test_last_session_pointer.py +0 -218
- mini_code_cli-0.1.0.2/tests/test_plan.py +0 -287
- mini_code_cli-0.1.0.2/tests/test_sandboxing.py +0 -91
- mini_code_cli-0.1.0.2/tests/test_shell_safety.py +0 -103
- mini_code_cli-0.1.0.2/tests/test_skills.py +0 -245
- mini_code_cli-0.1.0.2/tests/test_subagents.py +0 -361
- mini_code_cli-0.1.0.2/tests/test_tools.py +0 -85
- mini_code_cli-0.1.0.2/tests/test_ui.py +0 -144
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/LICENSE +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/__init__.py +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/config.py +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/permissions.py +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/shell_safety_utils.py +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli/subagents/__init__.py +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/dependency_links.txt +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/entry_points.txt +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/requires.txt +0 -0
- {mini_code_cli-0.1.0.2 → mini_code_cli-0.1.0.4}/mini_code_cli.egg-info/top_level.txt +0 -0
- {mini_code_cli-0.1.0.2 → 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
|
|
@@ -721,7 +721,8 @@ mini-code --enable-shell --auto-mode --agent-md "./skill.md" --allowed-dir "./"
|
|
|
721
721
|
- ask-permission: asks user permission before every tool call. For shell commands, commands in the ALLOW tier skip the prompt, DENY is blocked, and ASK always prompts.
|
|
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 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`.
|
|
725
726
|
|
|
726
727
|
### Available tools
|
|
727
728
|
|
|
@@ -829,6 +830,7 @@ options:
|
|
|
829
830
|
/history <n> show the full messages recorded for turn n
|
|
830
831
|
/reset [<n>] rewind to the end of turn n (drops everything after it)
|
|
831
832
|
/clear clear the screen (keeps the conversation history)
|
|
833
|
+
/plan show the current goal + plan (plan mode only)
|
|
832
834
|
/help show this help
|
|
833
835
|
/quit, /exit save the session and exit
|
|
834
836
|
```
|
|
@@ -47,7 +47,8 @@ mini-code --enable-shell --auto-mode --agent-md "./skill.md" --allowed-dir "./"
|
|
|
47
47
|
- ask-permission: asks user permission before every tool call. For shell commands, commands in the ALLOW tier skip the prompt, DENY is blocked, and ASK always prompts.
|
|
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 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`.
|
|
51
52
|
|
|
52
53
|
### Available tools
|
|
53
54
|
|
|
@@ -155,6 +156,7 @@ options:
|
|
|
155
156
|
/history <n> show the full messages recorded for turn n
|
|
156
157
|
/reset [<n>] rewind to the end of turn n (drops everything after it)
|
|
157
158
|
/clear clear the screen (keeps the conversation history)
|
|
159
|
+
/plan show the current goal + plan (plan mode only)
|
|
158
160
|
/help show this help
|
|
159
161
|
/quit, /exit save the session and exit
|
|
160
162
|
```
|