1bcoder 0.1.17__tar.gz → 0.1.18__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. {1bcoder-0.1.17 → 1bcoder-0.1.18}/1bcoder.egg-info/PKG-INFO +1 -1
  2. {1bcoder-0.1.17 → 1bcoder-0.1.18}/1bcoder.egg-info/SOURCES.txt +8 -0
  3. {1bcoder-0.1.17 → 1bcoder-0.1.18}/PKG-INFO +1 -1
  4. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/agents/advance.txt +19 -2
  5. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/agents/ask.txt +20 -2
  6. 1bcoder-0.1.18/_bcoder_data/agents/coder.txt +94 -0
  7. 1bcoder-0.1.18/_bcoder_data/agents/codex.txt +56 -0
  8. 1bcoder-0.1.18/_bcoder_data/agents/compact.txt +29 -0
  9. 1bcoder-0.1.18/_bcoder_data/agents/concepts.txt +37 -0
  10. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/agents/fill.txt +16 -2
  11. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/agents/planning.txt +19 -2
  12. 1bcoder-0.1.18/_bcoder_data/agents/scan.txt +50 -0
  13. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/agents/sqlite.txt +19 -2
  14. 1bcoder-0.1.18/_bcoder_data/agents/terminator.txt +88 -0
  15. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/agents/websearch.txt +18 -2
  16. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/aliases.txt +9 -0
  17. 1bcoder-0.1.18/_bcoder_data/flows/__pycache__/rag.cpython-311.pyc +0 -0
  18. 1bcoder-0.1.18/_bcoder_data/flows/rag.py +243 -0
  19. 1bcoder-0.1.18/_bcoder_data/proc/autobkup.py +49 -0
  20. 1bcoder-0.1.18/_bcoder_data/proc/autocheck.py +263 -0
  21. 1bcoder-0.1.18/_bcoder_data/proc/ladder.py +444 -0
  22. {1bcoder-0.1.17 → 1bcoder-0.1.18}/chat.py +863 -71
  23. {1bcoder-0.1.17 → 1bcoder-0.1.18}/pyproject.toml +1 -1
  24. 1bcoder-0.1.17/_bcoder_data/agents/compact.txt +0 -15
  25. 1bcoder-0.1.17/_bcoder_data/agents/concepts.txt +0 -21
  26. 1bcoder-0.1.17/_bcoder_data/agents/scan.txt +0 -31
  27. {1bcoder-0.1.17 → 1bcoder-0.1.18}/1bcoder.egg-info/dependency_links.txt +0 -0
  28. {1bcoder-0.1.17 → 1bcoder-0.1.18}/1bcoder.egg-info/entry_points.txt +0 -0
  29. {1bcoder-0.1.17 → 1bcoder-0.1.18}/1bcoder.egg-info/requires.txt +0 -0
  30. {1bcoder-0.1.17 → 1bcoder-0.1.18}/1bcoder.egg-info/top_level.txt +0 -0
  31. {1bcoder-0.1.17 → 1bcoder-0.1.18}/LICENSE +0 -0
  32. {1bcoder-0.1.17 → 1bcoder-0.1.18}/README.md +0 -0
  33. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/__init__.py +0 -0
  34. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/doc/FLOWS.md +0 -0
  35. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/doc/MCP.md +0 -0
  36. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/doc/OLLAMA_SERVER_PARAM.md +0 -0
  37. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/doc/PARAM.md +0 -0
  38. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/doc/PROC.md +0 -0
  39. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/doc/TRANSLATE.md +0 -0
  40. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/__pycache__/commit_message.cpython-311.pyc +0 -0
  41. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/__pycache__/deepagent_md.cpython-311.pyc +0 -0
  42. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/__pycache__/webcrawl.cpython-311.pyc +0 -0
  43. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/commit_message.py +0 -0
  44. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/compress.py +0 -0
  45. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/deepagent.py +0 -0
  46. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/deepagent_md.py +0 -0
  47. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/deobfuscate.py +0 -0
  48. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/external_help.py +0 -0
  49. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/grounding.py +0 -0
  50. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/obfuscate.py +0 -0
  51. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/py_error_trace.py +0 -0
  52. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/scan.py +0 -0
  53. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/simargl_files.py +0 -0
  54. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/visual_search.py +0 -0
  55. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/webanalys.py +0 -0
  56. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/webask.py +0 -0
  57. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/webcrawl.py +0 -0
  58. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/flows/webindex.py +0 -0
  59. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/map.txt +0 -0
  60. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/action-required.py +0 -0
  61. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/add-save.py +0 -0
  62. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/assist.py +0 -0
  63. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/collect-files.py +0 -0
  64. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/ctx_cut.py +0 -0
  65. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/ctx_expand.py +0 -0
  66. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/extract-code.py +0 -0
  67. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/extract-files.py +0 -0
  68. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/extract-list.py +0 -0
  69. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/grounding-check.py +0 -0
  70. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/md.py +0 -0
  71. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/mdx.py +0 -0
  72. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/pattern-gate.py +0 -0
  73. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/regexp-extract.py +0 -0
  74. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/rude_words.py +0 -0
  75. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/scan-save.py +0 -0
  76. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/secret_check.py +0 -0
  77. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/sql_readonly_guard.py +0 -0
  78. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/proc/tempctx-cut.py +0 -0
  79. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/profiles.txt +0 -0
  80. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/prompts/analysis.txt +0 -0
  81. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/prompts/sumarise.txt +0 -0
  82. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/prompts.txt +0 -0
  83. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/AddFunction.txt +0 -0
  84. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/AskProject.txt +0 -0
  85. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/CheckRequirements.txt +0 -0
  86. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/DockerMySQL.txt +0 -0
  87. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/DockerNginx.txt +0 -0
  88. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/DockerPython.txt +0 -0
  89. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/DockerStack.txt +0 -0
  90. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/DuckDuckGoInstant.txt +0 -0
  91. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/EnvTemplate.txt +0 -0
  92. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/Explain.txt +0 -0
  93. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/ExploreProjectStructure.txt +0 -0
  94. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/GitIgnorePython.txt +0 -0
  95. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/MySQLDump.txt +0 -0
  96. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/NewScript.txt +0 -0
  97. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/PipFreeze.txt +0 -0
  98. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/PyPI.txt +0 -0
  99. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/Refactor.txt +0 -0
  100. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/RunAndFix.txt +0 -0
  101. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/SQLiteSchema.txt +0 -0
  102. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/Translate.txt +0 -0
  103. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/WikiPage.txt +0 -0
  104. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/WikiSearch.txt +0 -0
  105. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/auto-bkup.txt +0 -0
  106. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/edit-control.txt +0 -0
  107. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/parallel_call.txt +0 -0
  108. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/personal/content/create-regular-content.txt +0 -0
  109. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/personal/content/plan.txt +0 -0
  110. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/personal/test/collect-data-from-test-environment.txt +0 -0
  111. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/plan.txt +0 -0
  112. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/remote/create-content-on-remote-server.txt +0 -0
  113. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/set_ctx.txt +0 -0
  114. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/simargl-cli_index_files.txt +0 -0
  115. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/simargl-cli_index_units.txt +0 -0
  116. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/simargl-cli_search.txt +0 -0
  117. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/team-map-worker.txt +0 -0
  118. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/team-search-worker.txt +0 -0
  119. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/team-summarize.txt +0 -0
  120. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/team-tree-worker.txt +0 -0
  121. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/scripts/test.txt +0 -0
  122. {1bcoder-0.1.17 → 1bcoder-0.1.18}/_bcoder_data/teams/code-analysis.yaml +0 -0
  123. {1bcoder-0.1.17 → 1bcoder-0.1.18}/map_index.py +0 -0
  124. {1bcoder-0.1.17 → 1bcoder-0.1.18}/map_query.py +0 -0
  125. {1bcoder-0.1.17 → 1bcoder-0.1.18}/setup.cfg +0 -0
  126. {1bcoder-0.1.17 → 1bcoder-0.1.18}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 1bcoder
3
- Version: 0.1.17
3
+ Version: 0.1.18
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
@@ -17,12 +17,15 @@ _bcoder_data/profiles.txt
17
17
  _bcoder_data/prompts.txt
18
18
  _bcoder_data/agents/advance.txt
19
19
  _bcoder_data/agents/ask.txt
20
+ _bcoder_data/agents/coder.txt
21
+ _bcoder_data/agents/codex.txt
20
22
  _bcoder_data/agents/compact.txt
21
23
  _bcoder_data/agents/concepts.txt
22
24
  _bcoder_data/agents/fill.txt
23
25
  _bcoder_data/agents/planning.txt
24
26
  _bcoder_data/agents/scan.txt
25
27
  _bcoder_data/agents/sqlite.txt
28
+ _bcoder_data/agents/terminator.txt
26
29
  _bcoder_data/agents/websearch.txt
27
30
  _bcoder_data/doc/FLOWS.md
28
31
  _bcoder_data/doc/MCP.md
@@ -39,6 +42,7 @@ _bcoder_data/flows/external_help.py
39
42
  _bcoder_data/flows/grounding.py
40
43
  _bcoder_data/flows/obfuscate.py
41
44
  _bcoder_data/flows/py_error_trace.py
45
+ _bcoder_data/flows/rag.py
42
46
  _bcoder_data/flows/scan.py
43
47
  _bcoder_data/flows/simargl_files.py
44
48
  _bcoder_data/flows/visual_search.py
@@ -48,10 +52,13 @@ _bcoder_data/flows/webcrawl.py
48
52
  _bcoder_data/flows/webindex.py
49
53
  _bcoder_data/flows/__pycache__/commit_message.cpython-311.pyc
50
54
  _bcoder_data/flows/__pycache__/deepagent_md.cpython-311.pyc
55
+ _bcoder_data/flows/__pycache__/rag.cpython-311.pyc
51
56
  _bcoder_data/flows/__pycache__/webcrawl.cpython-311.pyc
52
57
  _bcoder_data/proc/action-required.py
53
58
  _bcoder_data/proc/add-save.py
54
59
  _bcoder_data/proc/assist.py
60
+ _bcoder_data/proc/autobkup.py
61
+ _bcoder_data/proc/autocheck.py
55
62
  _bcoder_data/proc/collect-files.py
56
63
  _bcoder_data/proc/ctx_cut.py
57
64
  _bcoder_data/proc/ctx_expand.py
@@ -59,6 +66,7 @@ _bcoder_data/proc/extract-code.py
59
66
  _bcoder_data/proc/extract-files.py
60
67
  _bcoder_data/proc/extract-list.py
61
68
  _bcoder_data/proc/grounding-check.py
69
+ _bcoder_data/proc/ladder.py
62
70
  _bcoder_data/proc/md.py
63
71
  _bcoder_data/proc/mdx.py
64
72
  _bcoder_data/proc/pattern-gate.py
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 1bcoder
3
- Version: 0.1.17
3
+ Version: 0.1.18
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
@@ -1,5 +1,14 @@
1
- # Autonomous coding agent with full toolset — for larger models (7B+)
2
- # Usage: /advance <task> or /agent advance <task>
1
+ # Autonomous coding agent with full toolset — for larger models (7B+).
2
+ # auto_exec=false means every ACTION is shown for manual confirmation before running.
3
+ # Has bkup tool: model can save backups itself before destructive edits.
4
+ # Supports all edit strategies: save (full replace), patch (search/replace), fim (targeted fix), insert (line).
5
+ # Use /readln before editing to get line numbers for patch/fim/insert.
6
+ # Pair with gates: /proc gate on action-required + /proc gate on autocheck pytest
7
+ # See also: /coder (auto_exec=true, for 1B-3B), /ask (read-only research)
8
+ #
9
+ # Usage:
10
+ # /advance <task>
11
+ # /agent advance <task>
3
12
  description = Autonomous coding agent with full toolset. Best for 7B+ models.
4
13
  max_turns = 10
5
14
  auto_exec = false
@@ -45,3 +54,11 @@ tools =
45
54
  tree
46
55
  find
47
56
  map
57
+
58
+ examples =
59
+ /advance add input validation to the login endpoint in auth.py
60
+ /advance fix the KeyError crash in task_processor.py line 142
61
+ /advance add a --dry-run flag to the CLI in main.py
62
+ /advance write unit tests for the calculate_score function in scorer.py
63
+ /advance refactor the UserRepository class to use dependency injection
64
+ /advance extract the retry logic in api_client.py into a reusable decorator
@@ -1,5 +1,15 @@
1
- # Read-only research agent for 4B models
2
- # Usage: /ask <question> or /agent ask <question>
1
+ # Read-only research agent for 4B+ models.
2
+ # Explores the project with tree/find/map tools — never edits anything.
3
+ # Best for: "where is X defined?", "how does Y work?", "what files handle Z?"
4
+ # /map keyword extracts real code identifiers from plain English phrases.
5
+ # /map find \keyword shows usages; /map find keyword shows definitions; /map find -keyword shows callers.
6
+ # /map trace keyword1 keyword2 shows the call path between two identifiers.
7
+ # Use /ask before /advance when you need to understand the codebase first.
8
+ # See also: /planning (saves a plan file), /advance (read + write)
9
+ #
10
+ # Usage:
11
+ # /ask <question>
12
+ # /agent ask <question>
3
13
  description = Read-only research agent. Explores with tree/find/map, never edits files.
4
14
  max_turns = 15
5
15
  auto_exec = true
@@ -39,3 +49,11 @@ aliases =
39
49
  /kw = /map keyword extract {{args}} -f -c
40
50
  /sym = /map find {{args}}
41
51
  /grep = /find {{args}} -c
52
+
53
+ examples =
54
+ /ask where is the database connection initialized?
55
+ /ask how does the authentication middleware work?
56
+ /ask which files import the UserService class?
57
+ /ask what does the process_task function do and where is it called?
58
+ /ask list all API endpoints and their HTTP methods
59
+ /ask find all TODO comments in the project
@@ -0,0 +1,94 @@
1
+ # Coding agent optimised for small models (1B–3B).
2
+ # Runs a write → run → fix loop until tests pass or task is complete.
3
+ # Has bkup hooks so every file edit is backed up automatically.
4
+ # Pair with: /proc gate on action-required (pre-action check)
5
+ # /proc gate postaction on autocheck cmd:"pytest" ok:exit0 (post-action check)
6
+ #
7
+ # See also: /advance (full toolset, 7B+), /ask (read-only research)
8
+ description = Coding agent for 1B–3B models. write → run → fix loop with autocheck gate.
9
+ max_turns = 20
10
+ auto_exec = true
11
+ auto_apply = true
12
+ autoexit = true
13
+
14
+ system =
15
+ You are a coding assistant. Complete the task using the available tools.
16
+ To call a tool, write ACTION: on its own line followed by the command.
17
+ One ACTION per turn. Wait for [tool result] before the next ACTION.
18
+ When the task is complete, write a short summary and end with: task is done.
19
+
20
+ How to write files:
21
+ - To CREATE or fully REPLACE a file: write the full ```code ``` block, then ACTION: /save <file> code
22
+ ("code" means: extract the ``` ``` block written above in this reply)
23
+
24
+ code block format:
25
+ ACTION: /save file.py code
26
+ ```
27
+ def method(var1):
28
+ variable = var1
29
+ ```
30
+
31
+ - To FIX part of a file: ACTION: /fim <file> <line or start-end> description of the fix
32
+ e.g. ACTION: /fim myfile.py 5 fix the division by zero
33
+ ACTION: /fim myfile.py 3-7 fix the loop condition
34
+ ACTION: /fim myfile.py 1-5 fix indentation errors
35
+ - To MODIFY part of a file: write a SEARCH/REPLACE block, then ACTION: /patch <file> code
36
+
37
+ ACTION: /patch file.my code
38
+ SEARCH/REPLACE block format:
39
+ <<<<<<< SEARCH
40
+ exact lines to replace
41
+ =======
42
+ new lines
43
+ >>>>>>> REPLACE
44
+
45
+ or without SERARCH/REPLACE block
46
+ ACTION: /patch myfile.py 10-20 fix the division by zero
47
+
48
+ - To INSERT code at a line: write the ```code ``` block, then ACTION: /insert <file> <line> code
49
+
50
+
51
+ code block format:
52
+ ACTION: /insert file.py 10 code
53
+ ```
54
+ def method():
55
+ variable = var1
56
+ ```
57
+
58
+ or for one-liner ACTION: /insert file.py 10 var2 = var1
59
+
60
+
61
+ Rules:
62
+ - Before editing: ACTION: /readln <file> (shows line numbers needed for /fim)
63
+ - After editing: ACTION: /run <command> (test the result)
64
+ - Write clean code. Do not add comments unless they are part of the task requirement.
65
+ - If you get a FAIL message — read it carefully, fix the issue, and try again.
66
+ - Do not declare done until the task requirement is met.
67
+
68
+ Available tools:
69
+ {tool_list}
70
+
71
+ tools =
72
+ read
73
+ readln
74
+ tree
75
+ find
76
+ save
77
+ fim
78
+ patch
79
+ insert
80
+ run
81
+ diff
82
+
83
+
84
+ hooks =
85
+ before save autobkup
86
+ before patch autobkup
87
+ before fim autobkup
88
+
89
+ examples =
90
+ /coder write stats.py with word_freq(text) and top_n(freq, n) functions
91
+ /coder write test_stats.py with 3 tests and run pytest
92
+ /coder fix the failing test in test_auth.py
93
+ /coder refactor db.py to use a connection pool
94
+ /coder add logging to all functions in utils.py
@@ -0,0 +1,56 @@
1
+ # Minimal coding agent — same as coder but only three commands, for 1B models.
2
+ # No /fim, no /insert, no /run. Use /save_code and /patch_code (aliases, no "code" keyword confusion).
3
+ # Pair with: /proc gate on action-required
4
+ # /proc gate postaction on autocheck cmd:"python calc.py" ok:exit0
5
+ #
6
+ # See also: /coder (full toolset)
7
+ description = Minimal coding agent for 1B models. Three commands: read, save_code, patch_code.
8
+ max_turns = 20
9
+ auto_exec = false
10
+ auto_apply = true
11
+ autoexit = true
12
+
13
+ system =
14
+ You are a coding assistant. Complete the task using the available tools.
15
+ To call a tool, write ACTION: on its own line followed by the command.
16
+ One ACTION per turn. Wait for [tool result] before the next ACTION.
17
+ When the task is complete, write a short summary and end with: task is done.
18
+
19
+ How to write files:
20
+ - To CREATE or fully REPLACE a file: write the full ```code ``` block, then ACTION: /save_code <file>
21
+
22
+ code block format:
23
+ ACTION: /save_code file.py
24
+ ```
25
+ def method(var1):
26
+ variable = var1
27
+ ```
28
+
29
+
30
+ - To MODIFY part of a file: write a SEARCH/REPLACE block, then ACTION: /patch_code <file>
31
+
32
+ SEARCH/REPLACE block format:
33
+ ACTION: /patch_code file.py
34
+ <<<<<<< SEARCH
35
+ exact lines to replace
36
+ =======
37
+ new lines
38
+ >>>>>>> REPLACE
39
+
40
+ Rules:
41
+ - Before editing: ACTION: /read <file>
42
+ - Write clean code. Do not add comments unless they are part of the task requirement.
43
+ - If you get a FAIL message — read it carefully, fix the issue, and try again.
44
+ - Do not declare done until the task requirement is met.
45
+
46
+ Available tools:
47
+ {tool_list}
48
+
49
+ tools =
50
+ read
51
+
52
+ examples =
53
+ /codex fix the indentation error in calc.py
54
+ /codex rewrite divide() to return None on division by zero
55
+ /codex add a main() function to utils.py
56
+ /codex fix the failing test in test_calc.py
@@ -0,0 +1,29 @@
1
+ # Compact agent — reads a file in one shot and produces a themed summary.
2
+ # Single-turn, no tools — receives file content as a plan step and writes a summary.
3
+ # Automatically called by /scan when scanning finishes (on_done hook).
4
+ # Also useful standalone: summarize any text file around a specific focus theme.
5
+ # Output goes to the conversation — pipe to /save or /proc if you need it persisted.
6
+ # max_turns=1 is intentional — no iteration, one focused response only.
7
+ #
8
+ # Usage:
9
+ # /compact <theme> file: <file>
10
+ # /agent compact <theme> file: <file>
11
+ description = Reads a file and produces a focused summary based on a theme. One turn, no tools.
12
+ max_turns = 1
13
+ auto_exec = true
14
+ auto_apply = true
15
+
16
+ tools =
17
+
18
+ system =
19
+ You are a summarizer. You will receive the content of a file as a plan step.
20
+ Write a concise, well-structured summary focused on: {{theme}}
21
+ Highlight the most important points. Remove duplicates and noise.
22
+ Output plain text only. No ACTION, no preamble.
23
+
24
+ examples =
25
+ /compact authentication flow file: auth_notes.txt
26
+ /compact error handling patterns file: scan_result.txt
27
+ /compact database schema and relationships file: schema_dump.txt
28
+ /compact API endpoints and parameters file: openapi_raw.txt
29
+ /compact performance bottlenecks file: profiling_output.txt
@@ -0,0 +1,37 @@
1
+ # Conceptual explorer — builds associative chains between abstract concepts.
2
+ # Each concept in plan: becomes one step; agent chains them toward the target.
3
+ # For each step: lists 3-5 associations, picks the most relevant, explains the link, passes forward.
4
+ # No tools — pure reasoning, no file access.
5
+ # Best for: bridging theoretical ideas to implementation concepts, cross-domain metaphors.
6
+ # The target is the destination; plan: concepts are the waypoints (comma-separated).
7
+ # Use quoted targets for multi-word ideas: /concepts "event sourcing" plan: ...
8
+ #
9
+ # Usage:
10
+ # /concepts <target> plan: concept1, concept2, concept3
11
+ # /concepts "<multi word target>" plan: concept1, concept2, concept3
12
+ description = Builds conceptual chains from abstract ideas toward a target.
13
+ max_turns = 20
14
+ auto_exec = true
15
+ auto_apply = true
16
+
17
+ tools =
18
+
19
+ system =
20
+ You are a conceptual navigator. You receive a sequence of concepts as steps.
21
+ Your goal is to build an associative chain that leads toward the target idea.
22
+
23
+ For each concept step:
24
+ 1. List 3-5 associations — synonyms, structural analogues, functional roles
25
+ 2. Select the association most relevant to the target
26
+ 3. Explain the connection in one sentence
27
+ 4. Pass the selected association forward as input to the next step
28
+
29
+ Be concise. One paragraph per step. No filler.
30
+
31
+ examples =
32
+ /concepts "incidence matrix in code" plan: graph theory, adjacency, dependency, matrix
33
+ /concepts "event sourcing in databases" plan: time, immutability, log, append
34
+ /concepts "symbol grounding in code" plan: semiotics, language, reference, identifier
35
+ /concepts "technical debt as entropy" plan: disorder, complexity, decay, refactoring
36
+ /concepts "microservices as organisms" plan: biology, autonomy, communication, boundaries
37
+ /concepts "compiler as translator" plan: language, grammar, transformation, output
@@ -1,5 +1,15 @@
1
- # Fill agent — reads current NaN variables and fills them from project context
2
- # Usage: /fill or /agent fill
1
+ # Fill agent — reads current NaN variables and fills them from project context.
2
+ # Runs automatically when session variables are undefined (NaN).
3
+ # First loads .var files (key=value stores) found in the project, then searches code/config.
4
+ # .var file format: first line is "# <description>"; rest are key=value pairs.
5
+ # Only sets a variable if the value was actually found — never guesses.
6
+ # Reports which variables could not be filled at the end.
7
+ # Use /var set <name> =<value> manually if you know the value and want to skip the search.
8
+ # See also: /var get (list all variables), /var load <file> (load a .var file manually)
9
+ #
10
+ # Usage:
11
+ # /fill (fills all NaN variables in the current session)
12
+ # /agent fill (same, explicit agent invocation)
3
13
  description = Fill agent. Reads NaN variables, researches the project, sets each value.
4
14
  max_turns = 15
5
15
  auto_exec = true
@@ -47,3 +57,7 @@ tools =
47
57
  read
48
58
  tree
49
59
  find
60
+
61
+ examples =
62
+ /fill
63
+ /agent fill
@@ -1,5 +1,14 @@
1
- # Planning agent — explores the project and writes a step-by-step plan to plan.txt
2
- # Usage: /plan <goal> or /agent planning <goal>
1
+ # Planning agent — explores the project and writes a step-by-step plan to plan.txt.
2
+ # Read-only like /ask never edits source files.
3
+ # Output format: # Plan: <goal> / numbered steps / ### Summary / ### Example
4
+ # Plan is saved automatically to plan.txt via on_done when the agent finishes.
5
+ # Best for: designing a feature before coding, splitting a large task into steps.
6
+ # After /planning completes, read plan.txt then run /advance or /coder to execute it.
7
+ # See also: /ask (ad-hoc questions, no plan file), /advance (executes the plan)
8
+ #
9
+ # Usage:
10
+ # /plan <goal>
11
+ # /agent planning <goal>
3
12
  description = Planning agent. Explores the project, then writes a structured plan saved to plan.txt.
4
13
  max_turns = 15
5
14
  auto_exec = true
@@ -52,3 +61,11 @@ aliases =
52
61
  /kw = /map keyword extract {{args}} -f -c
53
62
  /sym = /map find {{args}}
54
63
  /grep = /find {{args}} -c
64
+
65
+ examples =
66
+ /plan add JWT authentication to the REST API
67
+ /plan refactor the database layer to use SQLAlchemy ORM
68
+ /plan add pagination to all list endpoints
69
+ /plan write unit tests for the UserService class
70
+ /plan extract the email sending logic into a separate module
71
+ /plan migrate from synchronous to async request handling
@@ -0,0 +1,50 @@
1
+ # Chunked file scanner — file content is pre-loaded into each plan step.
2
+ # Splits a large file into chunks and has the model extract only theme-relevant content.
3
+ # num_predict=150 keeps each step short; agent_ctx=4000 prevents context overflow on large files.
4
+ # scan-save proc accumulates extracts into scan_file (.1bcoder/scan_result.txt by default).
5
+ # tempctx-cut proc trims context after each step so the window stays clean.
6
+ # on_done automatically calls /compact to produce a final focused summary.
7
+ # -n [N] controls chunk size in lines (default depends on /scan alias configuration).
8
+ # Use this for: log files, large config files, long chat exports, anything too big to read at once.
9
+ # See also: /compact (used at the end), /ask (for code files that fit in context)
10
+ #
11
+ # Usage:
12
+ # /scan <theme> plan: <file>
13
+ # /scan <theme> plan: <file> -n 50 (50-line chunks)
14
+ # /agent scan <theme> plan: <file> -n [N]
15
+ description = Reads a file chunk by chunk and extracts info relevant to a theme.
16
+ max_turns = 40
17
+ auto_exec = true
18
+ auto_apply = true
19
+
20
+ vars =
21
+ theme = {{task}}
22
+ scan_file = .1bcoder/scan_result.txt
23
+
24
+ params =
25
+ num_predict = 150
26
+ agent_ctx = 4000
27
+
28
+ procs =
29
+ scan-save {{scan_file}}
30
+ tempctx-cut
31
+
32
+ on_done = /compact {{theme}} file: {{scan_file}}
33
+
34
+ system =
35
+ You are a document scanner. A large file is fed to you one chunk at a time.
36
+ Each plan step contains actual file content after the [chunk ...] header.
37
+
38
+ For each chunk:
39
+ Write ONLY what is relevant to the theme below. Keep the extract under 80 words.
40
+ If nothing is relevant — write exactly: nothing
41
+
42
+ Theme: {{theme}}
43
+
44
+ examples =
45
+ /scan error messages plan: app.log -n 50
46
+ /scan database queries plan: server.log -n 100
47
+ /scan authentication logic plan: chat.py -n 80
48
+ /scan configuration options plan: config.yaml
49
+ /scan API endpoint definitions plan: openapi.json -n 60
50
+ /scan failing tests plan: pytest_output.txt -n 30
@@ -1,5 +1,14 @@
1
- # SQLite research agent — SELECT queries only
2
- # Usage: /sqlite <db_file> <question> or /agent sqlite <db_file> <question>
1
+ # SQLite research agent — SELECT queries only, never modifies data.
2
+ # Workflow: auto-detect db .schema SELECT → plain text answer.
3
+ # If <db_file> is "?" or omitted, searches for *.db / *.sqlite / *.sqlite3 in the project.
4
+ # Aliases: /schema <db> runs ".schema"; /query <db> "SQL" runs any SELECT.
5
+ # Wraps SQL in double quotes — do not add extra quotes to the SQL.
6
+ # Retries on error automatically (wrong column name, typo, etc.).
7
+ # sqlite3 must be in PATH; on Windows install from sqlite.org or use scoop/choco.
8
+ #
9
+ # Usage:
10
+ # /sqlite <db_file> <question>
11
+ # /agent sqlite <db_file> <question>
3
12
  description = SQLite research agent. Gets schema, writes SELECT queries, answers in plain text.
4
13
  max_turns = 8
5
14
  auto_exec = true
@@ -37,3 +46,11 @@ tools =
37
46
  aliases =
38
47
  /schema = /run sqlite3 {{args}} ".schema"
39
48
  /query = /run sqlite3 {{args}}
49
+
50
+ examples =
51
+ /sqlite sonar.db how many tasks are there?
52
+ /sqlite sonar.db list the 10 most recently modified files
53
+ /sqlite sonar.db which module has the most associated tasks?
54
+ /sqlite kafka.db show me the task with the most file changes
55
+ /sqlite ? what tables exist in this database?
56
+ /sqlite myapp.db find all users created in the last 7 days
@@ -0,0 +1,88 @@
1
+ # Supervised coding agent — external ladder supervision for small models (1B-3B).
2
+ # Implements §3 MVP of AUTOMATICAL_AGENTS_LOGICAL_EXTERNAL_APPROACH.
3
+ #
4
+ # Gate order per turn:
5
+ # gates (pre-action):
6
+ # 1. action-required — model must have issued an ACTION: call
7
+ # 2. ladder — context must be building toward task terms
8
+ # [ACTIONs executed here]
9
+ # gates_post (post-action):
10
+ # 3. autocheck — verify the change worked (tests pass, output correct)
11
+ #
12
+ # agent_ctx = 8000 keeps context tight — small models lose thread past 4-6K tokens.
13
+ # max_turns = 30 allows up to 15 action+verify cycles before giving up.
14
+ #
15
+ # To add autocheck, add to gates_post section below, e.g.:
16
+ # autocheck cmd:"pytest" ok:exit0
17
+ # autocheck cmd:"python calc.py" keyword:passed
18
+ #
19
+ # See also: /coder (no ladder gate, simpler), /advance (manual confirm, 7B+)
20
+ #
21
+ # Usage:
22
+ # /agent terminator <task description>
23
+ # /terminator <task description>
24
+ description = Supervised agent with external ladder tracking. Gates ensure context builds toward task. Best for 1B-3B.
25
+ max_turns = 30
26
+ auto_exec = true
27
+ auto_apply = true
28
+
29
+ params =
30
+ agent_ctx = 8000
31
+ num_predict = 300
32
+ retry_cap = 3
33
+
34
+ gates =
35
+ action-required
36
+ ladder
37
+
38
+ gates_post =
39
+
40
+ system =
41
+ You are a coding assistant working under external supervision.
42
+ A gate checks your progress after each turn — it verifies that
43
+ your actions are building evidence toward the task goal.
44
+
45
+ To call a tool, write ACTION: on its own line followed by the command.
46
+ One ACTION per turn. Wait for [tool result] before the next ACTION.
47
+ When the task is complete, write a short summary and end with: task is done.
48
+
49
+ How to write files:
50
+ - To CREATE or fully REPLACE a file: write the full code block, then ACTION: /save <file> code
51
+ ("code" means: extract the ``` ``` block written above in this reply)
52
+ - To FIX part of a file: ACTION: /fim <file> <line or start-end> description of the fix
53
+ e.g. ACTION: /fim calc.py 5 fix the division by zero
54
+ ACTION: /fim calc.py 3-7 fix the loop condition
55
+ ACTION: /fim calc.py 1-5 fix indentation errors
56
+ - To INSERT code at a line: write the code block, then ACTION: /insert <file> <line> code
57
+
58
+ Rules:
59
+ - /readln a file before editing it (shows line numbers needed for /fim)
60
+ - /run to test after applying a fix
61
+ - If you get a FAIL message — read it carefully, fix the issue, and try again.
62
+ - Do not declare done until the task requirement is met.
63
+
64
+ Available tools:
65
+ {tool_list}
66
+
67
+ tools =
68
+ read
69
+ readln
70
+ tree
71
+ find
72
+ save
73
+ fim
74
+ patch
75
+ insert
76
+ run
77
+ diff
78
+ map index
79
+ map find
80
+ map trace
81
+ map keyword
82
+
83
+ examples =
84
+ /agent terminator write a REST endpoint POST /alerts in alerts.py with validation
85
+ /agent terminator fix the failing test in test_score.py
86
+ /agent terminator implement the Haversine distance function in geo_utils.py
87
+ /agent terminator add JWT authentication to the login endpoint
88
+ /agent terminator write unit tests for UserRepository covering create and find methods
@@ -1,5 +1,13 @@
1
- # Web search + fetch agent for capable models (4B+)
2
- # Usage: /agent websearch <question>
1
+ # Web search + fetch agent for capable models (4B+).
2
+ # Strategy: DuckDuckGo search → review snippets → fetch up to 3 most relevant pages → summarize.
3
+ # DuckDuckGo operators: "exact phrase", -exclude, OR, AND, site:, filetype:, intitle:, inurl:, region:
4
+ # Do NOT wrap the whole query in quotes — use quotes only around specific multi-word phrases.
5
+ # The agent fetches full page text, not rendered HTML — works best on docs and articles.
6
+ # Stops fetching early if enough information is found (max 3 pages).
7
+ # Requires /web search and /web fetch tools to be enabled in 1bcoder settings.
8
+ #
9
+ # Usage:
10
+ # /agent websearch <question>
3
11
  description = Web research agent. Searches DuckDuckGo, fetches relevant pages, summarizes findings.
4
12
  max_turns = 10
5
13
  auto_exec = true
@@ -32,3 +40,11 @@ system =
32
40
  tools =
33
41
  web search
34
42
  web fetch
43
+
44
+ examples =
45
+ /agent websearch latest Python 3.13 release notes
46
+ /agent websearch sentence-transformers BGE-large performance benchmarks 2024
47
+ /agent websearch site:docs.python.org asyncio event loop tutorial
48
+ /agent websearch "gradient checkpointing" transformer memory optimization
49
+ /agent websearch pytorch vs jax performance comparison language models
50
+ /agent websearch how to configure pgvector index type HNSW ivfflat
@@ -18,6 +18,15 @@
18
18
  /svitovyd = /run svitovyd {{args}}
19
19
  /svi = /run svitovyd {{args}}
20
20
 
21
+ /coder = /agent coder {{args}}
22
+ /terminator = /agent terminator {{args}}
23
+ /codex = /agent codex {{args}}
24
+
25
+ /save_code = /save {{args}} code
26
+ /patch_code = /patch {{args}} code
27
+
28
+ /rag = /flow rag {{args}}
29
+
21
30
  /small = /parallel {{args}} profile: small
22
31
  /explain = /parallel {{args}} profile: explain
23
32
  /thinking = /parallel {{args}} profile: thinking