sliceagent 0.1.15__tar.gz → 0.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.gitignore +3 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/CHANGELOG.md +113 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/PKG-INFO +78 -29
- {sliceagent-0.1.15 → sliceagent-0.2.0}/QUICKSTART.md +24 -3
- {sliceagent-0.1.15 → sliceagent-0.2.0}/README.md +77 -28
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/README.md +14 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/run.py +48 -11
- sliceagent-0.2.0/benchmarks/subagent_fanout.py +729 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/__init__.py +1 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/access.py +8 -2
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/agents.py +73 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/cli.py +402 -111
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/code_grep.py +4 -2
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/code_index.py +5 -3
- sliceagent-0.2.0/src/sliceagent/context.py +314 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/envspec.py +13 -4
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/errors.py +4 -2
- sliceagent-0.2.0/src/sliceagent/events.py +163 -0
- sliceagent-0.2.0/src/sliceagent/execution.py +467 -0
- sliceagent-0.2.0/src/sliceagent/hippocampus.py +1260 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/hooks.py +128 -7
- sliceagent-0.2.0/src/sliceagent/intent.py +724 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/interfaces.py +12 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/llm.py +9 -2
- sliceagent-0.2.0/src/sliceagent/loop.py +995 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/mcp_client.py +10 -2
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/memory.py +56 -2
- sliceagent-0.2.0/src/sliceagent/model_runner.py +47 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/monitor.py +34 -7
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/neocortex.py +5 -2
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/onboarding.py +4 -1
- sliceagent-0.2.0/src/sliceagent/oracle.py +52 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/pagetable.py +11 -3
- sliceagent-0.2.0/src/sliceagent/persistence.py +1268 -0
- sliceagent-0.2.0/src/sliceagent/pfc.py +446 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/platform_compat.py +139 -5
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/policy.py +14 -4
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/procman.py +40 -26
- sliceagent-0.2.0/src/sliceagent/progress.py +464 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/prompt.py +25 -11
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/recovery.py +22 -4
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/regions.py +301 -49
- sliceagent-0.2.0/src/sliceagent/registry.py +242 -0
- sliceagent-0.2.0/src/sliceagent/runtime_persistence.py +583 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/sandbox.py +47 -6
- sliceagent-0.2.0/src/sliceagent/scheduler.py +200 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/seed.py +51 -18
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/session.py +72 -22
- sliceagent-0.2.0/src/sliceagent/slice_state.py +221 -0
- sliceagent-0.2.0/src/sliceagent/subagent.py +882 -0
- sliceagent-0.2.0/src/sliceagent/subagent_contract.py +407 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/swap.py +2 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/taskstate.py +36 -2
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/terminal.py +36 -30
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/tools.py +231 -43
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/tui.py +555 -268
- sliceagent-0.2.0/src/sliceagent/workspace_revision.py +117 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_agents.py +7 -3
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_ask_echo.py +4 -2
- sliceagent-0.2.0/tests/test_benchmark_runner.py +164 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bound_is_relevance.py +7 -8
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_breadth_e2e.py +1 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_p0a.py +2 -2
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bughunt_fixes.py +37 -25
- sliceagent-0.2.0/tests/test_context_elasticity.py +490 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_conversation.py +15 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_echo_before_blocking.py +14 -1
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_episode.py +42 -2
- sliceagent-0.2.0/tests/test_event_dispatch.py +46 -0
- sliceagent-0.2.0/tests/test_execution_kernel.py +937 -0
- sliceagent-0.2.0/tests/test_extreview_fixes.py +131 -0
- sliceagent-0.2.0/tests/test_intent_state.py +509 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_live_composer.py +46 -34
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_loop_overflow.py +72 -10
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_mcp_runtime.py +28 -1
- sliceagent-0.2.0/tests/test_model_call_observability.py +282 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_monitor.py +20 -1
- sliceagent-0.2.0/tests/test_persistence_protocol.py +385 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_procman.py +19 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_product_features.py +81 -13
- sliceagent-0.2.0/tests/test_progress_status.py +158 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_provenance.py +21 -10
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_readonly_subagent.py +19 -9
- sliceagent-0.2.0/tests/test_requirements.py +240 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_route_lexical.py +10 -5
- sliceagent-0.2.0/tests/test_runtime_boundaries.py +257 -0
- sliceagent-0.2.0/tests/test_runtime_persistence.py +687 -0
- sliceagent-0.2.0/tests/test_selfreview_fixes.py +169 -0
- sliceagent-0.2.0/tests/test_slice_lifecycle.py +154 -0
- sliceagent-0.2.0/tests/test_subagent_artifacts.py +234 -0
- sliceagent-0.2.0/tests/test_subagent_contract.py +488 -0
- sliceagent-0.2.0/tests/test_subagent_review_fixes.py +102 -0
- sliceagent-0.2.0/tests/test_subagent_roster.py +800 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_task_state_roundtrip.py +10 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_tool_dedup.py +8 -4
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_topic_switch.py +61 -1
- sliceagent-0.2.0/tests/test_tui.py +225 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_tui_render.py +61 -9
- sliceagent-0.2.0/tests/test_turn_progress.py +270 -0
- sliceagent-0.2.0/tests/test_workspace_revision.py +83 -0
- sliceagent-0.1.15/src/sliceagent/events.py +0 -96
- sliceagent-0.1.15/src/sliceagent/hippocampus.py +0 -590
- sliceagent-0.1.15/src/sliceagent/loop.py +0 -556
- sliceagent-0.1.15/src/sliceagent/oracle.py +0 -38
- sliceagent-0.1.15/src/sliceagent/pfc.py +0 -447
- sliceagent-0.1.15/src/sliceagent/registry.py +0 -128
- sliceagent-0.1.15/src/sliceagent/scheduler.py +0 -92
- sliceagent-0.1.15/src/sliceagent/subagent.py +0 -332
- sliceagent-0.1.15/tests/test_progress_status.py +0 -96
- sliceagent-0.1.15/tests/test_requirements.py +0 -156
- sliceagent-0.1.15/tests/test_slice_lifecycle.py +0 -87
- sliceagent-0.1.15/tests/test_tui.py +0 -133
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.dockerignore +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.env.example +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.github/dependabot.yml +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.github/workflows/ci.yml +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/.github/workflows/publish.yml +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/CODE_OF_CONDUCT.md +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/CONTRIBUTING.md +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/Dockerfile +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/LICENSE +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/NOTICE +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/SECURITY.md +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/assets/sliceagent-core-loop.gif +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s1_longhorizon_debug/meta.json +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s1_longhorizon_debug/prompts.json +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s1_longhorizon_debug/reference_fix.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s1_longhorizon_debug/setup.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s1_longhorizon_debug/verify.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s2_taskdag_scheduler/meta.json +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s2_taskdag_scheduler/prompts.json +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s2_taskdag_scheduler/reference_fix.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s2_taskdag_scheduler/setup.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s2_taskdag_scheduler/verify.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s3_intervalset_algebra/meta.json +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s3_intervalset_algebra/prompts.json +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s3_intervalset_algebra/reference_fix.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s3_intervalset_algebra/setup.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/benchmarks/multiturn_coding/s3_intervalset_algebra/verify.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/examples/plugins/hello/__init__.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/examples/plugins/hello/plugin.toml +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/install.ps1 +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/install.sh +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/pyproject.toml +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/scripts/check_windows_footguns.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/scripts/gen_config_reference.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/scripts/run_tests.sh +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/sliceagent.toml.example +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/__main__.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/background_review.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/binsniff.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/clock.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/config.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/context_overflow.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/finding_types.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/flags.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/fuzzy.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/guardrails.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/guidance.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/mcp_security.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/metrics.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/model_catalog.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/plugins.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/records.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/retriever.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/safety.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/search_index.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/sensory_cortex.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/skill_provenance.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/skill_usage.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/skills.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/subdir_hints.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/telemetry.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/text_utils.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/tool_summary.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/src/sliceagent/web.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/README.md +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_active_focus.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_ask_user.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_background_review.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_binary_view.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_2b.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_breadth_wave.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_current_request.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_linenum.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_loop_wave.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_memory_wave.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_p0b.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_p0c.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_selfreview.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_selfreview_siblings.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_skills_h1.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_slice_wave.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_subagent_wave.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_bugfix_tools_wave.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_cache_manifest.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_checkpoint.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_cli_smoke.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_closure.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_code_grep.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_code_index.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_config_docs_current.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_config_journey.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_consolidate.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_context_overflow.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_coresidency.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_errors_backoff.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_esc_sentinel.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_exec_env.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_file_lock.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_finding_types.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_flags.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_fuzzy.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_ghost_index.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_guardrails.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_guidance.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_history.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_invariant_fixes.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_llm_cache.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_llm_streaming.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_llm_usage_cache.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_llm_watchdog.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_log_redaction.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_mcp_output_cap.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_memory.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_memory_persist.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_menu_select.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_metrics.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_mining.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_model_catalog.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_model_identity.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_onboarding.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_pageout_compaction.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_permission_patterns.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_pinned_composer.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_plan_tier.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_prompt_ab.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_provider_lineup.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_proxy_interrupt.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_reach.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_recall_search.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_records.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_refault.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_registry_validation.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_reliability.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_repo_map_bounded.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_review_fixes.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_safety.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_seal_markdown.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_search_index.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_skill_meta.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_skill_metadata.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_subdir_hints.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_task_agnostic.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_telemetry_convergence.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_terminal.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_tool_result_ok.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_tools_robust.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_trajectory.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_tui_menus.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_tui_widgets.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_turn_budget.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_verification_agent.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_web.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_windows_footguns.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_workspace.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_world_region.py +0 -0
- {sliceagent-0.1.15 → sliceagent-0.2.0}/tests/test_world_state.py +0 -0
|
@@ -27,6 +27,9 @@ scratch/
|
|
|
27
27
|
evals/prompt_ab/variants/
|
|
28
28
|
evals/prompt_ab/runs/
|
|
29
29
|
|
|
30
|
+
# internal design doc — kept local, not published to the repo or the sdist
|
|
31
|
+
CORE-DESIGN.md
|
|
32
|
+
|
|
30
33
|
# local sliceagent state / monitor runtime (personal; not part of the repo)
|
|
31
34
|
.sliceagent/
|
|
32
35
|
.memagent/ # legacy pre-rename state dir (ignore so an upgraded checkout stays clean)
|
|
@@ -5,6 +5,119 @@ this project aims for [Semantic Versioning](https://semver.org/).
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [0.2.0] — 2026-07-10
|
|
9
|
+
|
|
10
|
+
A typed re-architecture of the core around a single canonical design (elastic slice, execution kernel,
|
|
11
|
+
crash-safe persistence), plus a rebuilt Rich TUI. No change to the thesis — same history-bounded,
|
|
12
|
+
task-elastic slice — but the invariants are now enforced by typed subsystems rather than convention.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- **Typed core kernel.** The active slice is split into typed semantic regions (intent, task, evidence,
|
|
16
|
+
working set, continuity, turn runtime), each owning its own seal/reset lifecycle, replacing the flat
|
|
17
|
+
field-classification table. A provenance-tagged **intent ledger** captures verbatim user directives with
|
|
18
|
+
their source handles, deterministically promotes explicit constraint language (`must`/`never`/`only`),
|
|
19
|
+
and records supersession/satisfaction as explicit transitions.
|
|
20
|
+
- **Execution kernel.** Structured tool outcomes (succeeded/failed/cancelled/**indeterminate**), ordered
|
|
21
|
+
read/write waves (pure reads parallel, effects as barriers), reconciliation gates that block dependent
|
|
22
|
+
actions after an unprovable outcome, and one capacity-preflighted model-call path.
|
|
23
|
+
- **Crash-safe persistence.** A pending-journal → immutable-artifact → checkpoint compare-and-swap commit
|
|
24
|
+
order with idempotent replay, a full error taxonomy, and an OS-backed workspace lease, so an interrupted
|
|
25
|
+
turn resumes without re-running side effects. Dependency-scoped workspace revisions stale only the claims
|
|
26
|
+
whose inputs actually changed.
|
|
27
|
+
- **Rebuilt TUI.** A single `TurnProgress` event reducer folds loop events into an immutable snapshot;
|
|
28
|
+
the renderer projects that snapshot (semantic tool buckets, bounded plan/tally, width-responsive
|
|
29
|
+
diagnostics, one live-status owner) instead of interpreting events independently.
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- Elastic residency is centralized: a pressure controller chooses graded fidelity globally
|
|
33
|
+
(full → excerpt → digest → locator) so no region can consume the window unnoticed.
|
|
34
|
+
- Per-turn cost framing corrected throughout the docs to **history-bounded, task-elastic** — bounded with
|
|
35
|
+
respect to session length, not a fixed size regardless of task breadth.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- **Intent ledger and progress signals no longer lost on resume.** Checkpoint state is deep-frozen on
|
|
39
|
+
write; the resume and crash-recovery paths now thaw it fully at the boundary (and the deserializers
|
|
40
|
+
accept any `Mapping`), so binding user directives and their provenance survive a restart instead of
|
|
41
|
+
being silently dropped.
|
|
42
|
+
- **A completed first-turn objective no longer stays pinned as a mandatory, un-pageable block** — a clean
|
|
43
|
+
turn with no unresolved state marks it pageable background; unresolved state or explicit continuation
|
|
44
|
+
keeps it active.
|
|
45
|
+
- Security/reliability hardening from external review: WAL/recovery redacts tool-call arguments; process
|
|
46
|
+
kill reaps the whole spawn-captured process group; `code_review` and the read-only git policy refuse
|
|
47
|
+
external-diff/textconv and config injection; subagent children charge their tokens to the parent budget,
|
|
48
|
+
stay isolated from the parent's private state, and write durable state 0600/0700.
|
|
49
|
+
|
|
50
|
+
## [0.1.18] — 2026-07-09
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
- **The standing roster is now visible** to the agent — a bounded STANDING SPECIALISTS manifest in the slice
|
|
54
|
+
advertises your named specialists (and the `read_file("roster/index.md")` / wake calls), so a fresh
|
|
55
|
+
session discovers them instead of never finding the feature. The roster read is bounded-work (rank by a
|
|
56
|
+
cheap stat, parse only the top-K), so it stays flat per turn as the roster grows.
|
|
57
|
+
- **A calibrated `reviewer` agent kind** — a read-only, parallel reviewer whose prompt enforces a severity
|
|
58
|
+
rubric and four anti-cry-wolf disciplines (read the adjacent comment, trace tainted data to its real
|
|
59
|
+
consumer, single-user-local threat model, refute your own finding). `spawn_agent(agent="reviewer", …)`.
|
|
60
|
+
|
|
61
|
+
### Changed
|
|
62
|
+
- **One delegation tool.** `spawn_explore` / `spawn_subagent` are collapsed into `spawn_agent(agent=<kind>,
|
|
63
|
+
name?, grants?)` (measured parallel-fan-out parity). The delegation mental model is rewritten around two
|
|
64
|
+
orthogonal dials — the KIND (`agent=`) and the IDENTITY (`name=` → omit for a one-shot temp, pass to HIRE
|
|
65
|
+
a standing specialist you can WAKE later). Old tool names still work.
|
|
66
|
+
- **No roster hire cap.** A dormant specialist is just files on disk; the bound is on the surfaced view, not
|
|
67
|
+
the stored count.
|
|
68
|
+
|
|
69
|
+
### Fixed
|
|
70
|
+
- **Streaming hard-deadline** is re-raised (not downgraded to a partial truncation) so a wall-clock stall is
|
|
71
|
+
actually retried.
|
|
72
|
+
- **Auto-approve safety:** a broad `AGENT_AUTO_APPROVE` glob no longer silently approves `git push`, package
|
|
73
|
+
publishes, or `rmdir` — they fall through to a confirmation.
|
|
74
|
+
- Delegation guidance is spliced into the system prompt again (its gate keyed on a removed tool); a path
|
|
75
|
+
auto-grant no longer trips on version-shaped tokens; ripgrep subprocesses decode as UTF-8; a topic-park
|
|
76
|
+
failure no longer masquerades as "no such topic"; an unknown scheduler access type serializes safely; the
|
|
77
|
+
virtual roster FS resolves `profile.json` as well as `profile.md`.
|
|
78
|
+
|
|
79
|
+
## [0.1.17] — 2026-07-09
|
|
80
|
+
|
|
81
|
+
### Added
|
|
82
|
+
- **Standing specialist roster — hire once, wake many.** A named delegation
|
|
83
|
+
(`spawn_agent`/`spawn_explore` with `name="…"`) now HIRES a durable specialist; re-using the name WAKES
|
|
84
|
+
it, rehydrated from its own sealed archive at flat cost regardless of career length (identity is an
|
|
85
|
+
archive key, not a running process). A woken specialist is seeded with a bounded identity block: its
|
|
86
|
+
recent career manifest, its lessons, and an abstention self-model ("your memories are only your sealed
|
|
87
|
+
reports — say so beyond them"). The hippocampus now records who your agent works with, what they were
|
|
88
|
+
told, and what they found.
|
|
89
|
+
- **Instance identity + verbatim-brief provenance.** Every sealed artifact carries the instance `name` and
|
|
90
|
+
the exact brief it was given, so a report's reader always sees the question alongside the answer;
|
|
91
|
+
`subagents/index.md` is the roster and `subagents/<name>.md` aliases a specialist's latest job.
|
|
92
|
+
- **Capability grants.** A parent wires one child's sealed report to another by granting an exact handle in
|
|
93
|
+
the brief — default-deny, one-hop (no re-grant), spawn-time existence-checked — so children still couple
|
|
94
|
+
only through seals.
|
|
95
|
+
- **Synthesiser agent + lessons + searchable delegated work.** A read-only `synthesiser` kind reduces N
|
|
96
|
+
granted sibling reports into one cited synthesis; a seal-time `LESSON:` reflection is curated into the
|
|
97
|
+
specialist's profile (deduped, capped, provenance-tagged); and delegated work is dual-written to the FTS5
|
|
98
|
+
index so `search_history` finds it by content without touching the turn timeline.
|
|
99
|
+
|
|
100
|
+
### Fixed
|
|
101
|
+
- **Race-safe hire + durable-store hardening.** Concurrent same-name hires are atomic (in-process lock +
|
|
102
|
+
`O_EXCL` create + cap enforced under the lock), profile writes are atomic (tmp + `os.replace`), and the
|
|
103
|
+
roster tolerates corrupt/legacy records (null date fields no longer crash the wake seed or the roster
|
|
104
|
+
listing) — surfaced and fixed across three adversarial bug-hunt rounds.
|
|
105
|
+
|
|
106
|
+
## [0.1.16] — 2026-07-08
|
|
107
|
+
|
|
108
|
+
### Added
|
|
109
|
+
- **Subagent structured artifacts.** A delegated child now seals a typed report into a `subagents/`
|
|
110
|
+
archive and hands the parent a bounded digest plus a `read_file("subagents/sub-N.md")` recall handle —
|
|
111
|
+
the cache-not-log moat applied to delegation. The parent absorbs O(1)-sized digests while the child's
|
|
112
|
+
full detail stays paged out on disk yet fully recallable (manifest at `subagents/index.md`, per-child
|
|
113
|
+
reports, grep). Ids are assigned race-safely under concurrent fan-out, secrets are redacted on persist,
|
|
114
|
+
and a child is isolated from the parent's `history/`, siblings' `subagents/`, and `search_history`.
|
|
115
|
+
|
|
116
|
+
### Fixed
|
|
117
|
+
- **FileLock flush-before-release.** The advisory lock now flushes buffered writes before releasing the
|
|
118
|
+
lock, so a concurrent appender counting lines can't race a half-written file (surfaced by parallel
|
|
119
|
+
subagent fan-out).
|
|
120
|
+
|
|
8
121
|
## [0.1.15] — 2026-07-08
|
|
9
122
|
|
|
10
123
|
### Added
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sliceagent
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.2.0
|
|
4
4
|
Summary: A coding agent with a new context-engineering framework: bounded, deterministic, reconstructed context (slice architecture) — built for long-horizon work.
|
|
5
5
|
Author: TT-Wang
|
|
6
6
|
License-Expression: MIT
|
|
@@ -34,15 +34,15 @@ Description-Content-Type: text/markdown
|
|
|
34
34
|
|
|
35
35
|
[](https://github.com/TT-Wang/sliceagent/actions/workflows/ci.yml) [](https://pypi.org/project/sliceagent/) [](LICENSE) [](pyproject.toml)
|
|
36
36
|
|
|
37
|
-
> **A coding agent that reconstructs a
|
|
37
|
+
> **A coding agent that reconstructs a history-bounded, task-elastic working context every turn — instead of accumulating a chat transcript and summarizing it when it overflows.**
|
|
38
38
|
|
|
39
|
-
That one change is the whole product. Because context is
|
|
39
|
+
That one change is the whole product. Because context is reconstructed from active semantic state and live ground truth each turn rather than piled up:
|
|
40
40
|
|
|
41
|
-
- **
|
|
42
|
-
- **
|
|
43
|
-
- **
|
|
41
|
+
- **History-bounded cost** — when active task state stays stable, per-turn input does not grow merely because the session is older; there is no transcript-driven grow-to-window sawtooth.
|
|
42
|
+
- **Task-elastic focus** — simple tasks stay lean, while real user constraints, coupled files, and unresolved evidence can expand the working slice when needed.
|
|
43
|
+
- **Recoverable live state** — every turn re-observes relevant workspace state and faithfully carries current failures; retired detail pages out behind stable handles instead of forcing routine transcript compaction.
|
|
44
44
|
|
|
45
|
-
The field's default is *bigger windows + summarize*. sliceagent does the opposite: **
|
|
45
|
+
The field's default is *bigger windows + summarize*. sliceagent does the opposite: **carry what remains active; archive and recover the rest.**
|
|
46
46
|
|
|
47
47
|
*Pre-1.0: on `0.x`, CLI flags, config keys, and APIs may change between releases; breaking changes are noted in the [CHANGELOG](CHANGELOG.md).*
|
|
48
48
|
|
|
@@ -52,17 +52,17 @@ The field's default is *bigger windows + summarize*. sliceagent does the opposit
|
|
|
52
52
|
|
|
53
53
|
<p align="center">
|
|
54
54
|
<img src="assets/sliceagent-core-loop.gif" width="840"
|
|
55
|
-
alt="The core loop: a transcript agent re-sends its entire growing history every turn (208k to 1.66M tokens over 6 turns), while sliceagent rebuilds a
|
|
55
|
+
alt="The core loop: a transcript agent re-sends its entire growing history every turn (208k to 1.66M tokens over 6 turns), while sliceagent rebuilds a history-bounded, task-elastic seed from the carried slice, live files, and lessons, then seals each turn to disk, and the hippocampus pages past turns back into future seeds on demand — peak input stayed ~12-15k in the s1 benchmark, 112x smaller by turn 6.">
|
|
56
56
|
</p>
|
|
57
57
|
|
|
58
|
-
sliceagent's memory is organized like a brain: fast, lossy **perception** of the live world;
|
|
58
|
+
sliceagent's memory is organized like a brain: fast, lossy **perception** of the live world; an elastic **working memory** for the current task; a **hippocampus** backed by always-on local artifacts; and an optional **neocortex** that derives durable lessons. Every turn *reconstructs* a history-bounded working set from these — it never replays a growing transcript.
|
|
59
59
|
|
|
60
60
|
| Region | Role |
|
|
61
61
|
|---|---|
|
|
62
|
-
| **Sensory cortex** — live perception | Re-derives the world each turn
|
|
63
|
-
| **Prefrontal cortex** — working memory | The carried **Slice**:
|
|
64
|
-
| **Hippocampus** — episodic memory |
|
|
65
|
-
| **Neocortex** — long-term memory |
|
|
62
|
+
| **Sensory cortex** — live perception | Re-derives the world each turn—git state, project facts, repo map—rather than trusting remembered copies. |
|
|
63
|
+
| **Prefrontal cortex** — working memory | The carried **Slice**: task-elastic, provenance-tagged state (intent, findings, plan, change-set), sealed at each turn boundary. |
|
|
64
|
+
| **Hippocampus** — episodic memory | Seals each turn or child report into the always-on local artifact store; pages a specific record back in on demand. |
|
|
65
|
+
| **Neocortex** — long-term memory | Optionally derives and retrieves provenance-tagged cross-session lessons; it is not required for task recovery. |
|
|
66
66
|
|
|
67
67
|
```text
|
|
68
68
|
┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐ ┌───────────────────┐
|
|
@@ -83,20 +83,20 @@ sliceagent's memory is organized like a brain: fast, lossy **perception** of the
|
|
|
83
83
|
└───────────────────────────────────┘
|
|
84
84
|
▼
|
|
85
85
|
┌─────────────────────────────────────────┐
|
|
86
|
-
│
|
|
86
|
+
│ PFC updated · turn sealed to artifact │
|
|
87
87
|
└─────────────────────────────────────────┘
|
|
88
88
|
|
|
89
|
-
↻ next turn:
|
|
90
|
-
|
|
89
|
+
↻ next turn: the active slice remains resident;
|
|
90
|
+
live views re-derive, archived detail returns by handle.
|
|
91
91
|
```
|
|
92
92
|
|
|
93
|
-
Each turn faults in
|
|
93
|
+
Each turn faults in what the active task references — the carried slice, live views, selected artifacts, and any relevant derived lessons — and hands the model an elastic **Seed**. The model acts; observations fold back into working memory; at the turn boundary the episode is sealed into an immutable local artifact and the next checkpoint is published. If semantic memory is available, it may additionally distill a durable lesson. Net effect: **for stable active task state, context does not grow merely with session age; it can still expand with genuine task complexity.**
|
|
94
94
|
|
|
95
95
|
## Benchmark
|
|
96
96
|
|
|
97
97
|
On public benchmarks, sliceagent matches Codex's solve rate while using 2.5× fewer tokens and 1.3× less cost on ColBench, and up to 149× smaller peak input on long sessions.
|
|
98
98
|
|
|
99
|
-
Two questions decide whether reconstructing context every turn actually works: does it stay as **capable** as a transcript agent, and does it keep **per-turn cost
|
|
99
|
+
Two questions decide whether reconstructing context every turn actually works: does it stay as **capable** as a transcript agent, and does it keep **per-turn cost history-bounded as the session grows** — sized to the current task, not the accumulated history? All four benchmarks are head-to-head vs **OpenAI Codex** on the same model (`gpt-5.5`) — the fourth adds a third question: what does it cost to *orchestrate a subagent fleet*.
|
|
100
100
|
|
|
101
101
|
### 1. In-turn capability — Terminal-Bench 2.0 (public)
|
|
102
102
|
|
|
@@ -145,7 +145,7 @@ Iterative coding sessions where a transcript really piles up. Each scenario is a
|
|
|
145
145
|
| wall · total | **1,069s** | 1,761s | **61%** |
|
|
146
146
|
| **cost** (cache-aware $) | **$1.30** | $9.43 | **14%** |
|
|
147
147
|
|
|
148
|
-
Per task
|
|
148
|
+
Per task—the transcript agent's peak input scales with the session while the slice remained within a narrow band in these runs:
|
|
149
149
|
|
|
150
150
|
| scenario | agent | solved | peak input | total tokens | wall |
|
|
151
151
|
|---|---|:--:|--:|--:|--:|
|
|
@@ -158,6 +158,32 @@ Per task — note how the transcript agent's peak input scales with the session
|
|
|
158
158
|
|
|
159
159
|
Same capability — **109–149× smaller peak context, 11.7× fewer tokens, 7.3× cheaper, 1.6× faster.** On `s3`, Codex's transcript reached a **2.44M-token** single-request peak while sliceagent held **16k** — a 149× gap that **widens the longer the session runs.**
|
|
160
160
|
|
|
161
|
+
### 4. Subagent fan-out — hosting a delegation fleet ([`benchmarks/subagent_fanout.py`](benchmarks/subagent_fanout.py))
|
|
162
|
+
|
|
163
|
+
A ColBench-style human-sim (a staff engineer) **explicitly tells both agents to fan out** — one explorer subagent per module across a 6-module service — then asks four parent-only follow-ups: a 6-turn session, 2 fan-out turns + 4 follow-ups. Codex `exec` ships its **own** `spawn_agent` primitive, so **both agents genuinely delegate.** The question isn't who *can* delegate; it's what the **orchestrator** pays to run a fleet. Both `gpt-5.5` at `high`; each agent's own subagent tokens are counted — Codex's child threads recovered from its session rollouts — for a true total-vs-total. **N = 3 runs, mean [min–max]:**
|
|
164
|
+
|
|
165
|
+
| metric | sliceagent | OpenAI Codex | % of Codex |
|
|
166
|
+
|---|--:|--:|:--:|
|
|
167
|
+
| subagent spawns | 14 | 11.7 | both fan out |
|
|
168
|
+
| **orchestrator peak** (largest single request) | **17,362** [15.7k–20.3k] | 362,595 [332k–387k] | **4.8%** |
|
|
169
|
+
| delegated · own children | 341,515 | 568,027 | 60% |
|
|
170
|
+
| **true total** (orchestrator + children) | **610,612** [536k–656k] | 2,235,243 [2.11M–2.32M] | **27%** |
|
|
171
|
+
|
|
172
|
+
Per turn (mean of 3 runs) — the orchestrator's context is what caps how large a fleet you can keep running:
|
|
173
|
+
|
|
174
|
+
| turn | sliceagent orchestrator | OpenAI Codex orchestrator |
|
|
175
|
+
|---|--:|--:|
|
|
176
|
+
| 1 · fan-out | 37,191 | 119,397 |
|
|
177
|
+
| 2 · fan-out | 36,817 | 258,580 |
|
|
178
|
+
| 3 · follow-up | 39,447 | 282,281 |
|
|
179
|
+
| 4 · follow-up | 82,232 | 305,855 |
|
|
180
|
+
| 5 · follow-up | 41,447 | 338,507 |
|
|
181
|
+
| 6 · follow-up | 31,963 | 362,595 |
|
|
182
|
+
|
|
183
|
+
In these runs, sliceagent's orchestrator peak stayed roughly flat because each turn retained active digests and handles rather than child trajectories; its largest single request averaged **~17k** across the six-turn workload. A transcript orchestrator **re-carries the whole session every turn**, so the same delegation-heavy session reached a **~21× larger orchestrator peak and ~3.7× more total tokens** once both agents' children were counted. Parent context does not grow with child trajectory length, though it may still grow when more delegated results are genuinely relevant. Delegation is table stakes; the architectural advantage is durable, re-readable child artifacts plus a history-bounded parent.
|
|
184
|
+
|
|
185
|
+
*N = 3 runs, single model, one opponent, needs the Codex CLI installed. A value-recall sub-check varied wildly run-to-run (sliceagent 1–3 / 3, Codex 0–2 / 3) — it turns on a behavioral re-read choice, so it is within noise and **not** part of the claim. The defensible result is the orchestrator-context and total-token gap, which is structural and held across all three runs (orchestrator 8.8–14.3×, total 3.2–4.3×).*
|
|
186
|
+
|
|
161
187
|
<details>
|
|
162
188
|
<summary><b>How the cost numbers are calculated</b> (exact token counts × published rates)</summary>
|
|
163
189
|
|
|
@@ -194,9 +220,9 @@ One honest wrinkle worth naming: Codex's append-only transcript actually earns a
|
|
|
194
220
|
|
|
195
221
|
</details>
|
|
196
222
|
|
|
197
|
-
> The pattern across all
|
|
223
|
+
> The pattern across all four is evidence for the **history-bounded-cost thesis in these scenarios**: capability held while per-turn cost tracked the current task rather than accumulated history. The same pattern extended to subagent orchestration. "Solved" is solution correctness, scored identically for both agents. ColBench is [public](https://huggingface.co/datasets/facebook/collaborative_agent_bench); the long-horizon scenarios are reproducible under [`benchmarks/`](benchmarks/).
|
|
198
224
|
>
|
|
199
|
-
> **These are early, small-scale results** — modest task counts (N = 32 / 20 / 3), single trial per task, one model, one opponent. Treat them as a directional signal, not a settled claim. We're actively expanding to larger and more varied test sets, more trials, and more baselines, and will update these numbers as that work lands.
|
|
225
|
+
> **These are early, small-scale results** — modest task counts (N = 32 / 20 / 3 tasks; §4 is one task × 3 runs), single trial per task, one model, one opponent. Treat them as a directional signal, not a settled claim. We're actively expanding to larger and more varied test sets, more trials, and more baselines, and will update these numbers as that work lands.
|
|
200
226
|
|
|
201
227
|
## Install & quickstart
|
|
202
228
|
|
|
@@ -212,7 +238,7 @@ curl -fsSL https://raw.githubusercontent.com/TT-Wang/sliceagent/main/install.sh
|
|
|
212
238
|
irm https://raw.githubusercontent.com/TT-Wang/sliceagent/main/install.ps1 | iex
|
|
213
239
|
```
|
|
214
240
|
|
|
215
|
-
(Installs `uv` + sliceagent, and Git Bash + ripgrep if you don't have them — the agent's shell commands run under Git Bash, same as other coding agents.
|
|
241
|
+
(Installs `uv` + sliceagent, and Git Bash + ripgrep if you don't have them — the agent's shell commands run under Git Bash, same as other coding agents. Persistent process and interactive PTY tools are optional and disabled by default everywhere; `AGENT_ADVANCED_TOOLS=1` enables them where supported, but `terminal_open` is not available on native Windows yet. Prefer WSL2? The Linux one-liner above works there as-is.)
|
|
216
242
|
|
|
217
243
|
**The installer handles everything**: `uv`, its own Python 3.12, ripgrep, and sliceagent — in an isolated tool env, no sudo, no prerequisites, no conflict with any Python you already have (conda base at 3.10? Rosetta-Intel conda on an M-series Mac? Doesn't matter). Then just:
|
|
218
244
|
|
|
@@ -243,13 +269,19 @@ Run `sliceagent` in your project and type what you want in plain language. It re
|
|
|
243
269
|
```text
|
|
244
270
|
❯ why does retry_with_backoff drop the last attempt? fix it
|
|
245
271
|
|
|
246
|
-
|
|
272
|
+
│ 1 search · 2 read retry.py, tests/test_retry.py
|
|
273
|
+
│ write retry.py
|
|
274
|
+
│ plan 2/3 · add a regression test
|
|
275
|
+
◌ 2/3 add a regression test · Running pytest -q · 00:12
|
|
276
|
+
│ run pytest -q
|
|
277
|
+
│ 38 passed
|
|
278
|
+
│ ◆ The regression reproduces the bug and passes with the fix.
|
|
247
279
|
┌─ assistant ─────────────────────────────────────────────┐
|
|
248
280
|
│ The loop exits on `attempt == max` before the final │
|
|
249
281
|
│ sleep+retry, so the last attempt never runs. Changed the │
|
|
250
282
|
│ bound to `attempt <= max` and added a regression test. │
|
|
251
283
|
└──────────────────────────────────────────────────────────┘
|
|
252
|
-
✓
|
|
284
|
+
✓ turn saved · plan 3/3 · 2 passes · 4 read · 1 edit · 1 cmd · 00:18
|
|
253
285
|
```
|
|
254
286
|
|
|
255
287
|
Attach a file or path to your message with `@`: `@src/errors.py explain the backoff`.
|
|
@@ -261,15 +293,27 @@ Attach a file or path to your message with `@`: `@src/errors.py explain the back
|
|
|
261
293
|
| `/config` · `/model` · `/reasoning` | add/switch providers · switch model / reasoning effort (persists) |
|
|
262
294
|
| `/mode` | permission mode: **baby-sitter** (confirm each edit + command) · **teenager** (default; confirm risky ones) · **let-it-go** (auto-run all but catastrophic) |
|
|
263
295
|
| `/undo` | revert the last edit(s) |
|
|
264
|
-
| `/cwd
|
|
296
|
+
| `/cwd [path]` | show the fixed workspace root; with a path, show where to relaunch |
|
|
265
297
|
| `/cost` | tokens and estimated $ spent this session |
|
|
266
298
|
| `/skills` · `/tools` · `/mcp` · `/plugins` · `/agents` | list what's available to the agent |
|
|
267
299
|
| `/threads` · `/resume` | switch between, or resume, parked topics |
|
|
268
300
|
| `/learn <note>` | save a durable lesson yourself |
|
|
269
|
-
| `/plan` |
|
|
301
|
+
| `/plan` | show the current task plan |
|
|
270
302
|
| `Ctrl-C` · `exit` | interrupt the turn · quit |
|
|
271
303
|
|
|
272
|
-
|
|
304
|
+
Prefix an unrelated request with `New task:` to start it with fresh task state while parking the current task
|
|
305
|
+
for `/resume`. Ambiguous follow-ups deliberately continue the active task so context is never discarded on a
|
|
306
|
+
guess.
|
|
307
|
+
|
|
308
|
+
It can edit code (workspace-confined, reversible with `/undo`), run regular shell commands through a sandbox (`local` by default, `docker` for full isolation), search the tree and the web, and delegate decomposable research to a fresh one-shot read-only explorer (each child gets its own history-bounded, task-elastic slice). That narrow surface is the demo default. Set `AGENT_ADVANCED_AGENTS=1` to expose writable and named specialist delegation (and nested delegation when `AGENT_SUBAGENT_DEPTH` is raised above its default of `1`), or `AGENT_ADVANCED_TOOLS=1` to expose persistent process and interactive terminal tools. The flags are independent. Three permission modes gate actions, all with a hard floor on catastrophic commands; secrets are scrubbed from anything persisted or logged.
|
|
309
|
+
|
|
310
|
+
Every clean or interrupted agent task turn and every subagent report is sealed into the always-on local artifact/checkpoint path, independently of semantic memory. The model can refine retained detail through the read-only `artifacts/` namespace. Cross-session semantic lessons are a separate, optional derived layer powered by memem; task recovery does not depend on it.
|
|
311
|
+
|
|
312
|
+
If a timeout or disconnect leaves an operation's side effects uncertain, SliceAgent carries a durable,
|
|
313
|
+
target-scoped reconciliation gate into the next turn: it permits matching live read-only inspection, then
|
|
314
|
+
requires an explicit evidence-backed resolution before more effects or task switching in that workspace.
|
|
315
|
+
Opaque shell/code effects also require live user confirmation; a directory listing is never treated as proof
|
|
316
|
+
of file contents. Ambiguous recovery journals stop startup before plugins or MCP processes run.
|
|
273
317
|
|
|
274
318
|
**Configuration.** `sliceagent config --list` prints every setting. Set them persistently in `~/.sliceagent/config.toml` (written by `init`), or override any one via an environment variable:
|
|
275
319
|
|
|
@@ -279,7 +323,12 @@ It can edit code (workspace-confined, reversible with `/undo`), run shell comman
|
|
|
279
323
|
| `AGENT_POLICY` | `teenager` | permission mode |
|
|
280
324
|
| `AGENT_SANDBOX` | `local` | `local` or `docker` (isolated) |
|
|
281
325
|
| `AGENT_MAX_STEPS` | `60` | per-turn step ceiling |
|
|
282
|
-
| `
|
|
326
|
+
| `AGENT_CONTEXT_WINDOW` | *(catalog or unset)* | explicit provider window for strict per-call preflight; unknown models otherwise use compatibility mode |
|
|
327
|
+
| `AGENT_ADVANCED_AGENTS` | *(off)* | enable writable and named specialists; unlock the nested surface subject to the depth ceiling |
|
|
328
|
+
| `AGENT_SUBAGENT_DEPTH` | `1` | delegation depth ceiling; raise it to permit nested advanced agents |
|
|
329
|
+
| `AGENT_ADVANCED_TOOLS` | *(off)* | enable persistent process and interactive terminal tools |
|
|
330
|
+
| `SLICEAGENT_CACHE_DIR` | `~/.sliceagent` | always-on local checkpoints, immutable artifacts, and recovery journals |
|
|
331
|
+
| `SLICEAGENT_VAULT` | `~/.sliceagent/vault` | optional semantic-memory and legacy compatibility records |
|
|
283
332
|
| `AGENT_VERIFY_CMD` | *(unset)* | test command used as the verification oracle |
|
|
284
333
|
|
|
285
334
|
## License
|
|
@@ -288,7 +337,7 @@ It can edit code (workspace-confined, reversible with `/undo`), run shell comman
|
|
|
288
337
|
|
|
289
338
|
## Acknowledgements
|
|
290
339
|
|
|
291
|
-
sliceagent's design was informed by two excellent open-source agents: **[Hermes](https://github.com/NousResearch/hermes)** (MIT) and **[Kimi Code](https://github.com/MoonshotAI/kimi-code)**. A few peripheral utilities are ported from Hermes (see [NOTICE](NOTICE)); most of the rest are patterns we studied and reimplemented on our own terms.
|
|
340
|
+
sliceagent's design was informed by two excellent open-source agents: **[Hermes](https://github.com/NousResearch/hermes)** (MIT) and **[Kimi Code](https://github.com/MoonshotAI/kimi-code)**. A few peripheral utilities are ported from Hermes (see [NOTICE](NOTICE)); most of the rest are patterns we studied and reimplemented on our own terms. The optional cross-session semantic-memory layer is powered by [memem](https://github.com/TT-Wang/memem); local artifacts and recovery do not depend on it. With thanks to their authors.
|
|
292
341
|
|
|
293
342
|
## Contact
|
|
294
343
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Quickstart
|
|
2
2
|
|
|
3
|
-
Get from zero to your first completed task in ~5 minutes.
|
|
3
|
+
Get from zero to your first completed task in ~5 minutes. For the architecture behind the CLI, see the
|
|
4
|
+
canonical [Core Design](CORE-DESIGN.md): **history-bounded, task-elastic, and recoverable by construction**.
|
|
4
5
|
|
|
5
6
|
## 1. Install
|
|
6
7
|
|
|
@@ -64,10 +65,27 @@ You get an inline prompt with a pinned input box. Type a task — e.g. *"add a `
|
|
|
64
65
|
test for it"* — and watch it work. The conversation stays in your normal terminal scrollback, so
|
|
65
66
|
**select + copy/paste and scroll work natively** on any terminal (including macOS Terminal.app).
|
|
66
67
|
|
|
68
|
+
The demo defaults to the narrow core: the parent can edit and run regular commands, while delegation creates
|
|
69
|
+
a fresh, one-shot, read-only explorer. Advanced surfaces are explicit opt-ins:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
export AGENT_ADVANCED_AGENTS=1 # writable and named specialists; nesting uses AGENT_SUBAGENT_DEPTH
|
|
73
|
+
export AGENT_ADVANCED_TOOLS=1 # persistent processes and interactive terminal/PTY tools
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
The flags are independent; leave either unset to keep that surface out of the model's tool set. Delegation
|
|
77
|
+
depth defaults to `1`; raise `AGENT_SUBAGENT_DEPTH` only if you intentionally want advanced agents to spawn
|
|
78
|
+
children. Local checkpoints and immutable turn/subagent artifacts are always on and can be read through
|
|
79
|
+
`artifacts/`. Semantic cross-session lessons are an optional derived layer; recovery does not depend on them.
|
|
80
|
+
An uncertain timeout parks the task and gates further effects until the agent re-observes every affected
|
|
81
|
+
live target and records reconciliation; unrelated reads cannot clear the gate, and opaque effects require
|
|
82
|
+
live user confirmation.
|
|
83
|
+
|
|
67
84
|
Useful keys & commands:
|
|
68
85
|
|
|
69
86
|
- **Enter** sends · **Ctrl-J** inserts a newline · **Ctrl-C** aborts the current turn · **Ctrl-D** quits.
|
|
70
87
|
- `/help` lists slash commands · `/plan` shows the agent's plan · `/threads` lists topics · `/exit` quits.
|
|
88
|
+
- Start an unrelated task explicitly with `New task: ...`; the current task is parked for `/resume`.
|
|
71
89
|
|
|
72
90
|
UI modes (via `AGENT_TUI`): `rich` (default, inline) · `live` (always-pinned box, streams above it) ·
|
|
73
91
|
`off` (plain stdout, good for pipes/CI).
|
|
@@ -75,9 +93,12 @@ UI modes (via `AGENT_TUI`): `rich` (default, inline) · `live` (always-pinned bo
|
|
|
75
93
|
## 4. Reading the output
|
|
76
94
|
|
|
77
95
|
The status bar reads `model · net · policy · Σ tokens · fresh`. The **fresh** number is the one to watch:
|
|
78
|
-
it's the per-turn non-cached input cost
|
|
96
|
+
it's the per-turn non-cached input cost. With active task state held stable, it does not grow merely because
|
|
97
|
+
the session is older; it can still expand when the task gains genuine constraints, files, or evidence.
|
|
79
98
|
|
|
80
99
|
## Troubleshooting
|
|
81
100
|
|
|
82
101
|
Common snags: no API key (run `sliceagent init`), `rg` (ripgrep) not installed, or an MCP server that fails to
|
|
83
|
-
start.
|
|
102
|
+
start. For a model whose context window is not in the catalog, set `AGENT_CONTEXT_WINDOW` to its documented
|
|
103
|
+
token limit to enable strict per-call capacity rejection; leaving it unset uses the explicit compatibility
|
|
104
|
+
mode. `sliceagent config --list` shows every setting and its current value.
|