1bcoder 0.1.21__tar.gz → 0.1.23__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.
- {1bcoder-0.1.21 → 1bcoder-0.1.23/1bcoder.egg-info}/PKG-INFO +34 -1
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/1bcoder.egg-info/SOURCES.txt +8 -0
- 1bcoder-0.1.21/README.md → 1bcoder-0.1.23/PKG-INFO +1890 -1842
- 1bcoder-0.1.21/1bcoder.egg-info/PKG-INFO → 1bcoder-0.1.23/README.md +1875 -1857
- 1bcoder-0.1.23/_bcoder_data/ctxtimer/base_prompt.txt +818 -0
- 1bcoder-0.1.23/_bcoder_data/flows/__pycache__/ctxtimer.cpython-311.pyc +0 -0
- 1bcoder-0.1.23/_bcoder_data/flows/__pycache__/deobfuscate.cpython-311.pyc +0 -0
- 1bcoder-0.1.23/_bcoder_data/flows/__pycache__/external_help.cpython-311.pyc +0 -0
- 1bcoder-0.1.23/_bcoder_data/flows/__pycache__/glossary.cpython-311.pyc +0 -0
- 1bcoder-0.1.23/_bcoder_data/flows/__pycache__/obfuscate.cpython-311.pyc +0 -0
- 1bcoder-0.1.23/_bcoder_data/flows/ctxtimer.py +547 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/deobfuscate.py +44 -44
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/external_help.py +57 -57
- 1bcoder-0.1.23/_bcoder_data/flows/glossary.py +1015 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/obfuscate.py +59 -59
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/chat.py +235 -5
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/pyproject.toml +1 -1
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/1bcoder.egg-info/dependency_links.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/1bcoder.egg-info/entry_points.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/1bcoder.egg-info/requires.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/1bcoder.egg-info/top_level.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/LICENSE +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/__init__.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/advance.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/ask.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/coder.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/codex.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/compact.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/concepts.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/fill.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/planning.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/scan.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/sqlite.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/terminator.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/agents/websearch.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/aliases.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/java_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/java_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/js_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/js_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/kt_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/kt_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/mysql_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/mysql_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/plsql_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/plsql_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/py_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/py_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/scala_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/scala_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/sql_decompose.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/deepagent_code/sql_implement.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/doc/FLOWS.md +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/doc/MCP.md +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/doc/OLLAMA_SERVER_PARAM.md +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/doc/PARAM.md +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/doc/PROC.md +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/doc/TRANSLATE.md +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/__pycache__/commit_message.cpython-311.pyc +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/__pycache__/deepagent_code.cpython-311.pyc +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/__pycache__/deepagent_md.cpython-311.pyc +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/__pycache__/deepagent_test.cpython-311.pyc +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/__pycache__/rag.cpython-311.pyc +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/__pycache__/webcrawl.cpython-311.pyc +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/commit_message.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/compress.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/deepagent.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/deepagent_code.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/deepagent_md.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/deepagent_test.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/grounding.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/interview.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/py_error_trace.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/rag.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/scan.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/simargl_files.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/visual_search.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/webanalys.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/webask.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/webcrawl.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/flows/webindex.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/map.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/action-required.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/add-save.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/assist.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/autobkup.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/autocheck.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/collect-files.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/ctx_cut.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/ctx_expand.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/extract-code.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/extract-files.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/extract-list.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/grounding-check.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/ladder.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/md.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/mdx.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/pattern-gate.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/regexp-extract.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/rude_words.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/scan-save.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/secret_check.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/sql_readonly_guard.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/proc/tempctx-cut.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/profiles.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/prompts/analysis.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/prompts/sumarise.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/prompts.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/AddFunction.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/AskProject.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/CheckRequirements.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/DockerMySQL.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/DockerNginx.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/DockerPython.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/DockerStack.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/DuckDuckGoInstant.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/EnvTemplate.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/Explain.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/ExploreProjectStructure.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/GitIgnorePython.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/MySQLDump.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/NewScript.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/PipFreeze.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/PyPI.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/Refactor.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/RunAndFix.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/SQLiteSchema.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/Translate.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/WikiPage.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/WikiSearch.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/auto-bkup.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/edit-control.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/parallel_call.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/personal/content/create-regular-content.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/personal/content/plan.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/personal/test/collect-data-from-test-environment.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/plan.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/remote/create-content-on-remote-server.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/set_ctx.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/simargl-cli_index_files.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/simargl-cli_index_units.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/simargl-cli_search.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/team-map-worker.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/team-search-worker.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/team-summarize.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/team-tree-worker.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/scripts/test.txt +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/_bcoder_data/teams/code-analysis.yaml +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/map_index.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/map_query.py +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/setup.cfg +0 -0
- {1bcoder-0.1.21 → 1bcoder-0.1.23}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: 1bcoder
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.23
|
|
4
4
|
Summary: AI coding assistant agent for 1B–7B local models (Ollama, LMStudio, llama.cpp). Terminal REPL with file editing, project map, agents, scripts, and parallel multi-model queries.
|
|
5
5
|
Project-URL: Homepage, https://github.com/szholobetsky/1bcoder
|
|
6
6
|
Project-URL: Repository, https://github.com/szholobetsky/1bcoder
|
|
@@ -138,6 +138,7 @@ Tasks that require the model to decide *what to look at* — refactoring across
|
|
|
138
138
|
- Save AI replies to files with `/save` (code-fence stripping, multiple files, append modes)
|
|
139
139
|
- **Session persistence** — `/ctx save` / `/ctx load` dump and restore full conversations; `/ctx list` browses the `.1bcoder/ctx/` project context library; `/ctx compact` summarizes and compresses the context via AI; `/ctx compact N` compacts last N messages in place; `/ctx savepoint` marks a position for rollback or selective compaction; `/ctx clear N` drops the last N messages
|
|
140
140
|
- **Context composer** — `/ctx compose` builds a merged context from multiple saved ctx files with content-level dedup (identical message blocks appear once); workflow: `/proj find` → numbered results → `/ctx compose add N,M` → `/ctx compose run task.ctx` → `/ctx load task.ctx`
|
|
141
|
+
- **Sliding context window** — `/ctx window` is a non-destructive projection (fixed head + sliding tail + optional summarized middle), **off by default** since the right size depends on the model in use; turn it on when responses slow down or timeouts hit a ceiling you've already raised — same feature exists in vyrii as "AutoCut Context"
|
|
141
142
|
- **Scripts** — reusable sequences of commands stored as `.txt` files; `/script run <file> [key=value ...]` runs all steps automatically; `/script apply` runs step-by-step with Y/n confirmation
|
|
142
143
|
- **Script from history** — `/script create ctx` captures this session's commands into a reusable script automatically
|
|
143
144
|
- **Project map** — scan any codebase into a searchable index (`/map index`), query it (`/map find`), trace call chains (`/map trace`), and diff changes (`/map idiff`) — now includes `ORPHAN_DRIFT` alert (dead code delta) and `GHOST ALERT` (deleted file that other files depended on); `/map find` sets `{{map_files}}` after every hit; hidden directories excluded from indexing
|
|
@@ -1304,6 +1305,35 @@ If no output file given with `run`, merges directly into current context.
|
|
|
1304
1305
|
|
|
1305
1306
|
---
|
|
1306
1307
|
|
|
1308
|
+
### Sliding context window (`/ctx window`)
|
|
1309
|
+
|
|
1310
|
+
**Off by default.** Unlike `/ctx cut` or `/ctx compact`, which permanently remove or rewrite messages, `/ctx window` is a **non-destructive projection**: your full conversation history stays intact in `self.messages`, but only a fixed head (`first`) + a sliding tail (`last`) + an optional summarized middle (`mid`) is actually sent to the model on each call. Turn it off and the full history is visible again immediately — nothing was lost.
|
|
1311
|
+
|
|
1312
|
+
It is off by default because the right window size depends entirely on the model you're currently running, not on 1bcoder itself. A 1B model with a 4–8K native context needs a much tighter window than a 4B model with 32K — there is no single default that fits both, and setting one too aggressively would silently throw away context a bigger model could have handled fine.
|
|
1313
|
+
|
|
1314
|
+
```
|
|
1315
|
+
/ctx window show current status
|
|
1316
|
+
/ctx window off disable (default)
|
|
1317
|
+
/ctx window last:2000 sliding tail only, no fixed head
|
|
1318
|
+
/ctx window first:500 last:2000 fixed head (first 500 tokens) + sliding tail (last 2000)
|
|
1319
|
+
/ctx window first:500 last:2000 mid:bm25 limit:500 + up to 500 tokens summarized from the middle
|
|
1320
|
+
```
|
|
1321
|
+
|
|
1322
|
+
`first` is the opening messages of the conversation — usually the original task/goal, which is the most valuable part of a long session and should never compete for space with the rest. `last` is the most recent messages — the part that reads like a normal, coherent conversation right before the next reply. Everything in between is dropped by default, or condensed by one of four `mid` algorithms when `mid:<algo> limit:K` is given:
|
|
1323
|
+
|
|
1324
|
+
| `mid` | Algorithm | Query-aware? |
|
|
1325
|
+
|---|---|---|
|
|
1326
|
+
| `rs` | Reservoir sampling — cheap, uniform random slice of the middle | No |
|
|
1327
|
+
| `bm25` | BM25 retrieval against the current message — pulls back old facts relevant to what's being asked right now | Yes |
|
|
1328
|
+
| `dp` | 0/1 knapsack — optimal packing of the token budget by relevance score | Yes |
|
|
1329
|
+
| `tr` | TextRank/PageRank over message similarity — structurally central messages, not necessarily query-relevant | No |
|
|
1330
|
+
|
|
1331
|
+
**When to turn it on:** watch for the model starting to respond noticeably slower as a session grows, or an outright request timeout. If you've already raised `/param timeout <seconds>` to a reasonable ceiling for your hardware and it's still timing out (or every reply now takes uncomfortably long), that's the signal — the context has grown past what this model can handle promptly, and it's time for `/ctx window` rather than a larger timeout. A bigger timeout just makes you wait longer for the same overloaded call; trimming the context fixes the actual cause.
|
|
1332
|
+
|
|
1333
|
+
The same feature exists in **vyrii** (the web UI) as **"AutoCut Context"**, under Settings — same reasoning applies there: off by default, turn it on once you see response times creeping up or timeouts hitting the ceiling you've already configured. See vyrii's own README for the setting.
|
|
1334
|
+
|
|
1335
|
+
---
|
|
1336
|
+
|
|
1307
1337
|
### MCP (Model Context Protocol)
|
|
1308
1338
|
|
|
1309
1339
|
Connect external tool servers to give the AI access to filesystems, databases, web pages, and more.
|
|
@@ -1636,6 +1666,9 @@ Full guide: `/doc flows`
|
|
|
1636
1666
|
| `/ctx clear` | Clear all conversation messages (keeps `/param` and num_ctx) |
|
|
1637
1667
|
| `/ctx clear <n>` | Remove last N messages from context |
|
|
1638
1668
|
| `/ctx cut` | Remove oldest messages until context fits |
|
|
1669
|
+
| `/ctx window off` (default) | Disable sliding context window — see "Sliding context window" section below for when to turn it on |
|
|
1670
|
+
| `/ctx window first:M last:N [mid:algo limit:K]` | Enable sliding context window: fixed head + sliding tail (+ optional mid-selection) |
|
|
1671
|
+
| `/ctx window` | Show current window status |
|
|
1639
1672
|
| `/ctx compact` | Ask AI to summarize the conversation, replace context with summary |
|
|
1640
1673
|
| `/ctx compact <N>` | Summarize last N messages in place, replace with one compact block |
|
|
1641
1674
|
| `/ctx save <file>` | Save full conversation to file (global ctx folder) |
|
|
@@ -27,6 +27,7 @@ _bcoder_data/agents/scan.txt
|
|
|
27
27
|
_bcoder_data/agents/sqlite.txt
|
|
28
28
|
_bcoder_data/agents/terminator.txt
|
|
29
29
|
_bcoder_data/agents/websearch.txt
|
|
30
|
+
_bcoder_data/ctxtimer/base_prompt.txt
|
|
30
31
|
_bcoder_data/deepagent_code/java_decompose.txt
|
|
31
32
|
_bcoder_data/deepagent_code/java_implement.txt
|
|
32
33
|
_bcoder_data/deepagent_code/js_decompose.txt
|
|
@@ -51,12 +52,14 @@ _bcoder_data/doc/PROC.md
|
|
|
51
52
|
_bcoder_data/doc/TRANSLATE.md
|
|
52
53
|
_bcoder_data/flows/commit_message.py
|
|
53
54
|
_bcoder_data/flows/compress.py
|
|
55
|
+
_bcoder_data/flows/ctxtimer.py
|
|
54
56
|
_bcoder_data/flows/deepagent.py
|
|
55
57
|
_bcoder_data/flows/deepagent_code.py
|
|
56
58
|
_bcoder_data/flows/deepagent_md.py
|
|
57
59
|
_bcoder_data/flows/deepagent_test.py
|
|
58
60
|
_bcoder_data/flows/deobfuscate.py
|
|
59
61
|
_bcoder_data/flows/external_help.py
|
|
62
|
+
_bcoder_data/flows/glossary.py
|
|
60
63
|
_bcoder_data/flows/grounding.py
|
|
61
64
|
_bcoder_data/flows/interview.py
|
|
62
65
|
_bcoder_data/flows/obfuscate.py
|
|
@@ -70,9 +73,14 @@ _bcoder_data/flows/webask.py
|
|
|
70
73
|
_bcoder_data/flows/webcrawl.py
|
|
71
74
|
_bcoder_data/flows/webindex.py
|
|
72
75
|
_bcoder_data/flows/__pycache__/commit_message.cpython-311.pyc
|
|
76
|
+
_bcoder_data/flows/__pycache__/ctxtimer.cpython-311.pyc
|
|
73
77
|
_bcoder_data/flows/__pycache__/deepagent_code.cpython-311.pyc
|
|
74
78
|
_bcoder_data/flows/__pycache__/deepagent_md.cpython-311.pyc
|
|
75
79
|
_bcoder_data/flows/__pycache__/deepagent_test.cpython-311.pyc
|
|
80
|
+
_bcoder_data/flows/__pycache__/deobfuscate.cpython-311.pyc
|
|
81
|
+
_bcoder_data/flows/__pycache__/external_help.cpython-311.pyc
|
|
82
|
+
_bcoder_data/flows/__pycache__/glossary.cpython-311.pyc
|
|
83
|
+
_bcoder_data/flows/__pycache__/obfuscate.cpython-311.pyc
|
|
76
84
|
_bcoder_data/flows/__pycache__/rag.cpython-311.pyc
|
|
77
85
|
_bcoder_data/flows/__pycache__/webcrawl.cpython-311.pyc
|
|
78
86
|
_bcoder_data/proc/action-required.py
|