1bcoder 0.1.0__py3-none-any.whl
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.0.dist-info/METADATA +8 -0
- 1bcoder-0.1.0.dist-info/RECORD +66 -0
- 1bcoder-0.1.0.dist-info/WHEEL +5 -0
- 1bcoder-0.1.0.dist-info/entry_points.txt +2 -0
- 1bcoder-0.1.0.dist-info/top_level.txt +4 -0
- _bcoder_data/__init__.py +0 -0
- _bcoder_data/agents/advance.txt +46 -0
- _bcoder_data/agents/ask.txt +41 -0
- _bcoder_data/agents/fill.txt +49 -0
- _bcoder_data/agents/planning.txt +54 -0
- _bcoder_data/agents/sqlite.txt +39 -0
- _bcoder_data/aliases.txt +8 -0
- _bcoder_data/doc/MCP.md +138 -0
- _bcoder_data/doc/PARAM.md +150 -0
- _bcoder_data/doc/PROC.md +150 -0
- _bcoder_data/map.txt +27 -0
- _bcoder_data/proc/add-save.py +21 -0
- _bcoder_data/proc/collect-files.py +42 -0
- _bcoder_data/proc/extract-code.py +74 -0
- _bcoder_data/proc/extract-files.py +31 -0
- _bcoder_data/proc/extract-list.py +51 -0
- _bcoder_data/proc/grounding-check.py +48 -0
- _bcoder_data/proc/md.py +14 -0
- _bcoder_data/proc/mdx.py +106 -0
- _bcoder_data/proc/regexp-extract.py +95 -0
- _bcoder_data/profiles.txt +16 -0
- _bcoder_data/prompts/analysis.txt +1 -0
- _bcoder_data/prompts/sumarise.txt +1 -0
- _bcoder_data/prompts.txt +1 -0
- _bcoder_data/scripts/AddFunction.txt +8 -0
- _bcoder_data/scripts/AskProject.txt +5 -0
- _bcoder_data/scripts/CheckRequirements.txt +7 -0
- _bcoder_data/scripts/DockerMySQL.txt +6 -0
- _bcoder_data/scripts/DockerNginx.txt +6 -0
- _bcoder_data/scripts/DockerPython.txt +7 -0
- _bcoder_data/scripts/DockerStack.txt +8 -0
- _bcoder_data/scripts/DuckDuckGoInstant.txt +4 -0
- _bcoder_data/scripts/EnvTemplate.txt +6 -0
- _bcoder_data/scripts/Explain.txt +5 -0
- _bcoder_data/scripts/ExploreProjectStructure.txt +8 -0
- _bcoder_data/scripts/GitIgnorePython.txt +4 -0
- _bcoder_data/scripts/MySQLDump.txt +5 -0
- _bcoder_data/scripts/NewScript.txt +5 -0
- _bcoder_data/scripts/PipFreeze.txt +4 -0
- _bcoder_data/scripts/PyPI.txt +5 -0
- _bcoder_data/scripts/Refactor.txt +8 -0
- _bcoder_data/scripts/RunAndFix.txt +8 -0
- _bcoder_data/scripts/SQLiteSchema.txt +5 -0
- _bcoder_data/scripts/WikiPage.txt +5 -0
- _bcoder_data/scripts/WikiSearch.txt +4 -0
- _bcoder_data/scripts/parallel_call.txt +2 -0
- _bcoder_data/scripts/personal/content/create-regular-content.txt +4 -0
- _bcoder_data/scripts/personal/content/plan.txt +4 -0
- _bcoder_data/scripts/personal/test/collect-data-from-test-environment.txt +0 -0
- _bcoder_data/scripts/plan.txt +4 -0
- _bcoder_data/scripts/remote/create-content-on-remote-server.txt +0 -0
- _bcoder_data/scripts/set_ctx.txt +4 -0
- _bcoder_data/scripts/team-map-worker.txt +10 -0
- _bcoder_data/scripts/team-search-worker.txt +9 -0
- _bcoder_data/scripts/team-summarize.txt +7 -0
- _bcoder_data/scripts/team-tree-worker.txt +9 -0
- _bcoder_data/scripts/test.txt +1 -0
- _bcoder_data/teams/code-analysis.yaml +10 -0
- chat.py +6231 -0
- map_index.py +378 -0
- map_query.py +597 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
chat.py,sha256=3kv4mfRVdy_dLh9ue8x9PLcQyjV5jLocQAKVdNvxWew,278453
|
|
2
|
+
map_index.py,sha256=actlEYczPBo-hMOx_E3yFAzzZXW0ioz8oEX6dSqUJBw,15949
|
|
3
|
+
map_query.py,sha256=dFxz89r3thIer2CiIniJHQ744CS2zs8AA8OYCIfI3ZI,23242
|
|
4
|
+
_bcoder_data/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
|
+
_bcoder_data/aliases.txt,sha256=Jmf6shTcAYaC5qNX35L9eslzJdIcrR98qcyLpGhmbuI,276
|
|
6
|
+
_bcoder_data/map.txt,sha256=fAOictDbYy-bP5mn9F9LqCrmupHbdvJGa2bBKH-xtPA,4679
|
|
7
|
+
_bcoder_data/profiles.txt,sha256=E3BnS4W0qQLufRRDYYp0DG6GgwwHWIG08fNfqhLhCAc,817
|
|
8
|
+
_bcoder_data/prompts.txt,sha256=Hj_D1qklVF3fh9sBR2GWIvMGZi3eWrz89TMRcDyB20w,41
|
|
9
|
+
_bcoder_data/agents/advance.txt,sha256=83B-nk2GK87YPdkZYgyJ0qB71V9B35fRp5Cq5RGB2F0,1261
|
|
10
|
+
_bcoder_data/agents/ask.txt,sha256=umoKQHIrNA7Jm-Ciw1tWhEQ52cOKzOlfY4cw_JtwZuk,1400
|
|
11
|
+
_bcoder_data/agents/fill.txt,sha256=Nw-iEHm5lXQwJxfI87WOGBDRQSK6f13wbYNwX2cYTcw,1720
|
|
12
|
+
_bcoder_data/agents/planning.txt,sha256=V41mA97xkIf1gJbKYgRFI2AakBs-xci_0k2PzznV3rk,2283
|
|
13
|
+
_bcoder_data/agents/sqlite.txt,sha256=lWouH5APvovuLs8YcXQ_FHthRdvljuwVOUmFMk1Nh4c,1497
|
|
14
|
+
_bcoder_data/doc/MCP.md,sha256=nJD_dO1BflHg2BD50ugvdU1On_2evBKtCdIBZmkKsD8,3689
|
|
15
|
+
_bcoder_data/doc/PARAM.md,sha256=NmgWGHyHtGgzkMk6Zzd9T5sdThZtdT97G-zvO3Q7B6w,5806
|
|
16
|
+
_bcoder_data/doc/PROC.md,sha256=UNjK1f7UAb1woJFKH7BIVV7oT5eYRIuckwkizbyTHiE,4232
|
|
17
|
+
_bcoder_data/proc/add-save.py,sha256=1g4tVZR3mjbstvc7rJHO9_iAnXqkYljXKkG7SlUK-c8,732
|
|
18
|
+
_bcoder_data/proc/collect-files.py,sha256=D5lvkPzXdzYEjyqAeUjgcF3VjFPUyWirVa7HUi4-x4Y,1280
|
|
19
|
+
_bcoder_data/proc/extract-code.py,sha256=L3elKLvp9YcRgLuko0QvwfMIyHxB1seqljJ07g1G5r4,2993
|
|
20
|
+
_bcoder_data/proc/extract-files.py,sha256=LHhsAeXGY1kJpQZ4fQV4bUetJXjZP0qHA_bhjObpGpg,899
|
|
21
|
+
_bcoder_data/proc/extract-list.py,sha256=kUtJUOwWQqAGEmnksjYwnZz_WZV9CsLjIxiK_MD8-ss,1254
|
|
22
|
+
_bcoder_data/proc/grounding-check.py,sha256=1bxtVtW8FhpY812uYFQ-qSRi1F0PZ4LFT56bC73Op2M,1892
|
|
23
|
+
_bcoder_data/proc/md.py,sha256=aqNb1LjraNrCKTYeE9nN81gpSa2XdrPSe0ca7MUVy4Q,298
|
|
24
|
+
_bcoder_data/proc/mdx.py,sha256=GRP1DzIPVjuGUL9_oScazgg4vKwDHkAaj557BeWfWq8,3843
|
|
25
|
+
_bcoder_data/proc/regexp-extract.py,sha256=SkW9WniyWH0yTygT6QBQoX6YtNVwBMoAEoev94iRuKc,2889
|
|
26
|
+
_bcoder_data/prompts/analysis.txt,sha256=_PZGbJnu32nRppYlkqiojwoXmab6P_fTfDBcxj4Ot40,92
|
|
27
|
+
_bcoder_data/prompts/sumarise.txt,sha256=n7BMF4fbUDCqkdy1m5ioFOxxcZJSAPScpxY2AHZ-SF8,85
|
|
28
|
+
_bcoder_data/scripts/AddFunction.txt,sha256=IIhzuZSYiqofvZPiSDLXbOgXeczrQV8GL5hmSdWlkhc,349
|
|
29
|
+
_bcoder_data/scripts/AskProject.txt,sha256=sXuQDavv74vatYqtxhZynD48m6wlidmKKMymOdqr7CM,260
|
|
30
|
+
_bcoder_data/scripts/CheckRequirements.txt,sha256=A-ooP91Vt7NKZg3z2P1dPnSTMtAfFk1J40E3mWo2Z2I,693
|
|
31
|
+
_bcoder_data/scripts/DockerMySQL.txt,sha256=C8PUYEL2-if1nyQfqYzWpIf53ixt1rvWKzlcqdxd4H4,433
|
|
32
|
+
_bcoder_data/scripts/DockerNginx.txt,sha256=3fAmcdcdsz43lp-k7mSud1-iuGaAqu31oE4-bffvmOM,382
|
|
33
|
+
_bcoder_data/scripts/DockerPython.txt,sha256=CUEgSYY-MFlX3DC0b1JncbKQBcjY8mZ2BpO8eHf28Dc,626
|
|
34
|
+
_bcoder_data/scripts/DockerStack.txt,sha256=jwGlunQ5Ures8vVt0sUtR6goFU-GIT-x74_Fmx5dTbY,788
|
|
35
|
+
_bcoder_data/scripts/DuckDuckGoInstant.txt,sha256=kGbc6ciyrEmOn3DQZ7EQS_ONxoKZf5VcegzQWbD8Ras,321
|
|
36
|
+
_bcoder_data/scripts/EnvTemplate.txt,sha256=pO8RJR28YZh765z8uPfKLxfStBxjkQdOsmZTu8gpcHI,419
|
|
37
|
+
_bcoder_data/scripts/Explain.txt,sha256=0ThxZDIkWI6566zeIOYJ1m-XA_blmhdkDVTibBlDgWg,281
|
|
38
|
+
_bcoder_data/scripts/ExploreProjectStructure.txt,sha256=uHZFAkIhY5ILIoL03qFsSE9ctfoNS4EbgkTM1dgUBU8,302
|
|
39
|
+
_bcoder_data/scripts/GitIgnorePython.txt,sha256=KxFlSBIAoji7xTfVuBtjX1RsGv4l_SO6-jUoYDzMhnE,320
|
|
40
|
+
_bcoder_data/scripts/MySQLDump.txt,sha256=sL8eOOwI4YS5JgatwlR8FdBWU3SdGXNvP3c4dR2-sy8,327
|
|
41
|
+
_bcoder_data/scripts/NewScript.txt,sha256=nL_DXXhZrQfesQYhOQVd_baPAEamMeM562rKvXCo4wc,239
|
|
42
|
+
_bcoder_data/scripts/PipFreeze.txt,sha256=o-A83Eer56dbKVADrlHiX3QDeSr6rp5KOS5wfmrIkVA,182
|
|
43
|
+
_bcoder_data/scripts/PyPI.txt,sha256=gHCiZImoLieMxoVkI3zO1KLoT4J_Tl0XGsQ_6Ix13Ng,315
|
|
44
|
+
_bcoder_data/scripts/Refactor.txt,sha256=FDiQsArG_d6fSjMWsSd2ATrBLqhTYdyscWc-OkOL9rQ,391
|
|
45
|
+
_bcoder_data/scripts/RunAndFix.txt,sha256=m7TIeQK2iYmlQTlL9LXESz1rcNXogI6BasIHCkL-Kik,279
|
|
46
|
+
_bcoder_data/scripts/SQLiteSchema.txt,sha256=SRHPSUz6_W0Uf1-VkkHN_bgVSCrxaVg6XckdpQoBB2s,311
|
|
47
|
+
_bcoder_data/scripts/WikiPage.txt,sha256=Zd9XAdnmx0Qu1VO5GCG8sNvrSNrNO7NtlOUyPYiMDh4,331
|
|
48
|
+
_bcoder_data/scripts/WikiSearch.txt,sha256=qIPbGAY6h95raJ12rjV2JXW_SbEtM1tpO__0U9_aodw,281
|
|
49
|
+
_bcoder_data/scripts/parallel_call.txt,sha256=AgwRvlAVto4rF2-TdVLsznTJHqhIWj26LWEz-aSrOCw,157
|
|
50
|
+
_bcoder_data/scripts/plan.txt,sha256=23CM3OqLc2oH4xhz1OhTnsra1GCEKHhuYKAeG7QpVIs,410
|
|
51
|
+
_bcoder_data/scripts/set_ctx.txt,sha256=f6oqxgQ72swytEqzBmmzTqZVoxsdilaBkJ2N---VHZc,161
|
|
52
|
+
_bcoder_data/scripts/team-map-worker.txt,sha256=EiS8vRfopxUrYgE3nF87ZQmLj39YGT62R9PvaSvYGwQ,588
|
|
53
|
+
_bcoder_data/scripts/team-search-worker.txt,sha256=lY8XGETAEBMC88jclWvIr2SDFzbaIVe-mxbCmugL6Nc,534
|
|
54
|
+
_bcoder_data/scripts/team-summarize.txt,sha256=psXbyfEqJEkWnWb2O4isUmz0SG9iuZwHnqUaz5pfi4c,492
|
|
55
|
+
_bcoder_data/scripts/team-tree-worker.txt,sha256=--gc38qJDZurSJJh8FP4PJsz59OelweqzUPmpcKNQ6o,487
|
|
56
|
+
_bcoder_data/scripts/test.txt,sha256=T70dUdijXLXg819Ve17rhgzqbY8_Wo_S65HLlocReAE,31
|
|
57
|
+
_bcoder_data/scripts/personal/content/create-regular-content.txt,sha256=uSionb5ork0ke3qH2lKsYxg22l5ccmJJElnDL7g4pL8,127
|
|
58
|
+
_bcoder_data/scripts/personal/content/plan.txt,sha256=23CM3OqLc2oH4xhz1OhTnsra1GCEKHhuYKAeG7QpVIs,410
|
|
59
|
+
_bcoder_data/scripts/personal/test/collect-data-from-test-environment.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
|
+
_bcoder_data/scripts/remote/create-content-on-remote-server.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
61
|
+
_bcoder_data/teams/code-analysis.yaml,sha256=1oKE4jpXtjsg6o_9kM83U0qqFEei2UhaSslnfWxdH9w,284
|
|
62
|
+
1bcoder-0.1.0.dist-info/METADATA,sha256=prAxwkmStMoczQCHZB8PXMSTnpLVklcguqnqLW6-_OE,222
|
|
63
|
+
1bcoder-0.1.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
64
|
+
1bcoder-0.1.0.dist-info/entry_points.txt,sha256=RrzIUrdl71aGkjvcZUIxQpW90xD1qg9-tpXSRn3aXIw,38
|
|
65
|
+
1bcoder-0.1.0.dist-info/top_level.txt,sha256=FelAUM0ZYbwMsefdhpAgDgXDWn9PcZV-41Vyl2z39f4,38
|
|
66
|
+
1bcoder-0.1.0.dist-info/RECORD,,
|
_bcoder_data/__init__.py
ADDED
|
File without changes
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Autonomous coding agent with full toolset — for larger models (7B+)
|
|
2
|
+
# Usage: /advance <task> or /agent advance <task>
|
|
3
|
+
description = Autonomous coding agent with full toolset. Best for 7B+ models.
|
|
4
|
+
max_turns = 10
|
|
5
|
+
auto_exec = false
|
|
6
|
+
auto_apply = false
|
|
7
|
+
|
|
8
|
+
system =
|
|
9
|
+
You are an autonomous coding assistant. Complete the task using the available tools.
|
|
10
|
+
|
|
11
|
+
To call a tool, write ACTION: followed by the command. Stop and wait for [tool result].
|
|
12
|
+
When the task is complete, write a plain text summary with no ACTION.
|
|
13
|
+
|
|
14
|
+
How to write files:
|
|
15
|
+
- To MODIFY an existing file: write a SEARCH/REPLACE block, then ACTION: /patch <file> code
|
|
16
|
+
- To INSERT new code at a line: write the code block, then ACTION: /insert <file> <line> code
|
|
17
|
+
- To CREATE or fully REPLACE a file: write the full code block, then ACTION: /save <file> code
|
|
18
|
+
|
|
19
|
+
SEARCH/REPLACE format:
|
|
20
|
+
<<<<<<< SEARCH
|
|
21
|
+
exact lines to replace
|
|
22
|
+
=======
|
|
23
|
+
new lines
|
|
24
|
+
>>>>>>> REPLACE
|
|
25
|
+
|
|
26
|
+
Rules:
|
|
27
|
+
- /read a file before editing it
|
|
28
|
+
- /bkup save <file> before modifying important files
|
|
29
|
+
- /run to test after applying a fix
|
|
30
|
+
|
|
31
|
+
Available tools:
|
|
32
|
+
{tool_list}
|
|
33
|
+
|
|
34
|
+
tools =
|
|
35
|
+
read
|
|
36
|
+
readln
|
|
37
|
+
run
|
|
38
|
+
insert
|
|
39
|
+
save
|
|
40
|
+
bkup
|
|
41
|
+
diff
|
|
42
|
+
patch
|
|
43
|
+
fix
|
|
44
|
+
tree
|
|
45
|
+
find
|
|
46
|
+
map
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# Read-only research agent for 4B models
|
|
2
|
+
# Usage: /ask <question> or /agent ask <question>
|
|
3
|
+
description = Read-only research agent. Explores with tree/find/map, never edits files.
|
|
4
|
+
max_turns = 15
|
|
5
|
+
auto_exec = true
|
|
6
|
+
auto_apply = true
|
|
7
|
+
|
|
8
|
+
system =
|
|
9
|
+
You are a code research assistant. Explore the project to answer the question.
|
|
10
|
+
|
|
11
|
+
To call a tool, write ACTION: on its own line followed by the command.
|
|
12
|
+
Wait for [tool result] before calling the next tool.
|
|
13
|
+
Build understanding from broad to narrow. One ACTION per turn.
|
|
14
|
+
When done, write a plain text answer or plan. Do not write any ACTION when done.
|
|
15
|
+
|
|
16
|
+
Strategy:
|
|
17
|
+
1. If project structure is not yet in context use ACTION: /tree
|
|
18
|
+
2. To locate relevant identifiers use ACTION: /map find \keyword (single word, no quotes)
|
|
19
|
+
3. To find real code identifiers from a phrase use ACTION: /map keyword extract phrase -f -c (no quotes)
|
|
20
|
+
4. To search file content use a single keyword e.g. ACTION: /find keyword -c
|
|
21
|
+
5. To read file dir/file.txt use ACTION: /read dir/file.txt
|
|
22
|
+
6. Stop when you have enough to answer
|
|
23
|
+
|
|
24
|
+
Never edit files. Output a clear report or plan when done.
|
|
25
|
+
|
|
26
|
+
Available tools:
|
|
27
|
+
{tool_list}
|
|
28
|
+
|
|
29
|
+
tools =
|
|
30
|
+
read
|
|
31
|
+
tree
|
|
32
|
+
find
|
|
33
|
+
map index
|
|
34
|
+
map find
|
|
35
|
+
map trace
|
|
36
|
+
map keyword
|
|
37
|
+
|
|
38
|
+
aliases =
|
|
39
|
+
/kw = /map keyword extract {{args}} -f -c
|
|
40
|
+
/sym = /map find {{args}}
|
|
41
|
+
/grep = /find {{args}} -c
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Fill agent — reads current NaN variables and fills them from project context
|
|
2
|
+
# Usage: /fill or /agent fill
|
|
3
|
+
description = Fill agent. Reads NaN variables, researches the project, sets each value.
|
|
4
|
+
max_turns = 15
|
|
5
|
+
auto_exec = true
|
|
6
|
+
auto_apply = true
|
|
7
|
+
|
|
8
|
+
system =
|
|
9
|
+
You are a variable-filling assistant. Your job is to find values for unset (NaN) session variables.
|
|
10
|
+
|
|
11
|
+
Start by checking which variables need to be filled:
|
|
12
|
+
ACTION: /var get
|
|
13
|
+
|
|
14
|
+
Then look for .var files in the project — these contain ready-made key=value pairs:
|
|
15
|
+
ACTION: /find . -f --ext var
|
|
16
|
+
|
|
17
|
+
For each .var file found, read ONLY the first line to see its description (cheap — no context waste):
|
|
18
|
+
ACTION: /read <filename.var> 1-1
|
|
19
|
+
|
|
20
|
+
The first line is always "# <description>" — use it to decide if this file is relevant to the NaN variables.
|
|
21
|
+
If relevant, load it:
|
|
22
|
+
ACTION: /var load <filename.var>
|
|
23
|
+
|
|
24
|
+
To search for a specific variable name across all .var files:
|
|
25
|
+
ACTION: /find <var_name> --ext var
|
|
26
|
+
|
|
27
|
+
For any variables still NaN after loading .var files, research the project:
|
|
28
|
+
Use /find, /read to locate config files, .env, settings, or code.
|
|
29
|
+
|
|
30
|
+
For each variable you find, write:
|
|
31
|
+
ACTION: /var set <name> =<value>
|
|
32
|
+
|
|
33
|
+
One ACTION per turn. When all NaN variables are filled (or you cannot find a value), write
|
|
34
|
+
your final reply with no ACTION line:
|
|
35
|
+
"Done, all variables were set successfully."
|
|
36
|
+
or if some could not be found:
|
|
37
|
+
"Done, the following variables could not be filled: <list>"
|
|
38
|
+
Do not guess values — only set a variable if you found it in project files or .var files.
|
|
39
|
+
|
|
40
|
+
Available tools:
|
|
41
|
+
{tool_list}
|
|
42
|
+
|
|
43
|
+
tools =
|
|
44
|
+
var get
|
|
45
|
+
var set
|
|
46
|
+
var load
|
|
47
|
+
read
|
|
48
|
+
tree
|
|
49
|
+
find
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Planning agent — explores the project and writes a step-by-step plan to plan.txt
|
|
2
|
+
# Usage: /plan <goal> or /agent planning <goal>
|
|
3
|
+
description = Planning agent. Explores the project, then writes a structured plan saved to plan.txt.
|
|
4
|
+
max_turns = 15
|
|
5
|
+
auto_exec = true
|
|
6
|
+
auto_apply = true
|
|
7
|
+
on_done = /save plan.txt
|
|
8
|
+
|
|
9
|
+
system =
|
|
10
|
+
You are a software planning assistant. Your job is to explore the project and produce
|
|
11
|
+
a clear, actionable, step-by-step implementation plan for the given goal.
|
|
12
|
+
|
|
13
|
+
To call a tool, write ACTION: on its own line followed by the command.
|
|
14
|
+
Wait for [tool result] before calling the next tool.
|
|
15
|
+
One ACTION per turn.
|
|
16
|
+
|
|
17
|
+
Strategy:
|
|
18
|
+
1. If project structure is not yet in context use ACTION: /tree
|
|
19
|
+
2. To locate using of relevant identifiers(single word, no quotes) use ACTION: /map find \keyword
|
|
20
|
+
3. To see link of relevant identifiers(single word, no quotes) use ACTION: /map find keyword
|
|
21
|
+
4. To see who link to relevant identifiers(single word, no quotes) use ACTION: /map find -keyword
|
|
22
|
+
5. To see paths between two program identifiers(single word, no quotes) use ACTION: /map trace keyword1 keyword2
|
|
23
|
+
6. To search keyword(single word, no quotes) in file content use ACTION: /find keyword -c
|
|
24
|
+
7. To search in file name use ACTION: /find keyword -f -i
|
|
25
|
+
8. To search all files *.txt by extension use /ACTION: find \.+ --ext txt
|
|
26
|
+
9. To read file dir/log.txt use ACTION: /read dir/log.txt
|
|
27
|
+
10. Once you have enough context, write the complete plan as your final reply — no ACTION line.
|
|
28
|
+
|
|
29
|
+
Plan format:
|
|
30
|
+
- Title line: # Plan: <goal>
|
|
31
|
+
- Numbered steps, each on its own line: 1. Do X in file Y
|
|
32
|
+
- Add a ### Summary section at the end explaining the overall approach
|
|
33
|
+
- Add a ### Example section if a concrete usage example helps clarify the goal
|
|
34
|
+
|
|
35
|
+
All keyword provided to commands as single word, no quotes.
|
|
36
|
+
Never edit source files. Your final reply is the plan — do not add any ACTION line.
|
|
37
|
+
The plan will be saved automatically when you are done.
|
|
38
|
+
|
|
39
|
+
Available tools:
|
|
40
|
+
{tool_list}
|
|
41
|
+
|
|
42
|
+
tools =
|
|
43
|
+
read
|
|
44
|
+
tree
|
|
45
|
+
find
|
|
46
|
+
map index
|
|
47
|
+
map find
|
|
48
|
+
map trace
|
|
49
|
+
map keyword
|
|
50
|
+
|
|
51
|
+
aliases =
|
|
52
|
+
/kw = /map keyword extract {{args}} -f -c
|
|
53
|
+
/sym = /map find {{args}}
|
|
54
|
+
/grep = /find {{args}} -c
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# SQLite research agent — SELECT queries only
|
|
2
|
+
# Usage: /sqlite <db_file> <question> or /agent sqlite <db_file> <question>
|
|
3
|
+
description = SQLite research agent. Gets schema, writes SELECT queries, answers in plain text.
|
|
4
|
+
max_turns = 8
|
|
5
|
+
auto_exec = true
|
|
6
|
+
auto_apply = true
|
|
7
|
+
|
|
8
|
+
system =
|
|
9
|
+
You are a SQLite research assistant. Answer questions by querying the database.
|
|
10
|
+
|
|
11
|
+
To call a tool, write ACTION: on its own line followed by the command.
|
|
12
|
+
Wait for [tool result] before calling the next tool.
|
|
13
|
+
When done, write a plain text answer. Do not write any ACTION when done.
|
|
14
|
+
|
|
15
|
+
Workflow:
|
|
16
|
+
1. If db file is not known, find it: ACTION: /find \.(db|sqlite|sqlite3)$ -f
|
|
17
|
+
2. Get schema: ACTION: /schema <db_file>
|
|
18
|
+
3. Write a SELECT query based on the schema
|
|
19
|
+
4. Run it: ACTION: /query <db_file> "SELECT ..."
|
|
20
|
+
5. Analyze the result and answer in plain text
|
|
21
|
+
|
|
22
|
+
Rules:
|
|
23
|
+
- One ACTION per turn — write it, then stop and wait for [tool result] before continuing
|
|
24
|
+
- If a command fails, read the error, fix the command, and retry — do not give up
|
|
25
|
+
- Always get the schema first if not already in context
|
|
26
|
+
- Write SELECT queries only — never INSERT, UPDATE, DELETE, DROP, or any other statement
|
|
27
|
+
- Wrap the SQL in double quotes in /query
|
|
28
|
+
- After seeing the result, answer directly in plain text with no ACTION
|
|
29
|
+
|
|
30
|
+
Available tools:
|
|
31
|
+
{tool_list}
|
|
32
|
+
|
|
33
|
+
tools =
|
|
34
|
+
run
|
|
35
|
+
find
|
|
36
|
+
|
|
37
|
+
aliases =
|
|
38
|
+
/schema = /run sqlite3 {{args}} ".schema"
|
|
39
|
+
/query = /run sqlite3 {{args}}
|
_bcoder_data/aliases.txt
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Global aliases — loaded at startup, override with local .1bcoder/aliases.txt
|
|
2
|
+
# Format: /name = expansion (use {{args}} for argument substitution)
|
|
3
|
+
|
|
4
|
+
/ask = /agent ask
|
|
5
|
+
/advance = /agent advance
|
|
6
|
+
/sqlite = /agent sqlite
|
|
7
|
+
/plan = /agent planning
|
|
8
|
+
/fill = /agent fill
|
_bcoder_data/doc/MCP.md
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# MCP Servers — Quick Reference
|
|
2
|
+
|
|
3
|
+
Connect a server with:
|
|
4
|
+
```
|
|
5
|
+
/mcp connect <name> <command>
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Official (actively maintained)
|
|
11
|
+
|
|
12
|
+
These are published by the MCP team (Anthropic). Safe to use.
|
|
13
|
+
|
|
14
|
+
### Filesystem
|
|
15
|
+
Read/write files under a given directory.
|
|
16
|
+
```
|
|
17
|
+
/mcp connect fs npx -y @modelcontextprotocol/server-filesystem .
|
|
18
|
+
/mcp connect fs npx -y @modelcontextprotocol/server-filesystem C:\Users\yourname\projects
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Fetch — web page reader
|
|
22
|
+
Fetches a URL and returns clean text (good for docs, articles).
|
|
23
|
+
```
|
|
24
|
+
/mcp connect web uvx mcp-server-fetch
|
|
25
|
+
```
|
|
26
|
+
Then: `/mcp call web/fetch {"url": "https://example.com"}`
|
|
27
|
+
|
|
28
|
+
### Git
|
|
29
|
+
Read commits, diffs, branches in a local repo.
|
|
30
|
+
```
|
|
31
|
+
/mcp connect git uvx mcp-server-git
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Memory
|
|
35
|
+
Persistent key-value memory that survives across sessions (stored as a local graph).
|
|
36
|
+
```
|
|
37
|
+
/mcp connect mem npx -y @modelcontextprotocol/server-memory
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Sequential Thinking
|
|
41
|
+
Breaks complex problems into thought steps — useful as a reasoning scaffold.
|
|
42
|
+
```
|
|
43
|
+
/mcp connect think npx -y @modelcontextprotocol/server-sequential-thinking
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Time
|
|
47
|
+
Returns current time and converts between timezones.
|
|
48
|
+
```
|
|
49
|
+
/mcp connect time uvx mcp-server-time
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Archived (no longer maintained by MCP team)
|
|
55
|
+
|
|
56
|
+
Still work fine but use at your own risk. Source:
|
|
57
|
+
https://github.com/modelcontextprotocol/servers-archived
|
|
58
|
+
|
|
59
|
+
### SQLite
|
|
60
|
+
Query a local SQLite database file.
|
|
61
|
+
```
|
|
62
|
+
/mcp connect db uvx mcp-server-sqlite --db-path ./mydb.sqlite
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### PostgreSQL
|
|
66
|
+
Query a Postgres database via connection string.
|
|
67
|
+
```
|
|
68
|
+
/mcp connect pg npx -y @modelcontextprotocol/server-postgres postgresql://localhost/mydb
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Brave Search — web search
|
|
72
|
+
Requires a free API key from https://brave.com/search/api/
|
|
73
|
+
```
|
|
74
|
+
set BRAVE_API_KEY=your_key_here
|
|
75
|
+
/mcp connect search npx -y @modelcontextprotocol/server-brave-search
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### GitHub
|
|
79
|
+
Read repos, issues, PRs via the GitHub API.
|
|
80
|
+
Requires a personal access token from https://github.com/settings/tokens
|
|
81
|
+
```
|
|
82
|
+
set GITHUB_PERSONAL_ACCESS_TOKEN=your_token_here
|
|
83
|
+
/mcp connect gh npx -y @modelcontextprotocol/server-github
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
### GitLab
|
|
87
|
+
Same as GitHub but for GitLab.
|
|
88
|
+
```
|
|
89
|
+
set GITLAB_PERSONAL_ACCESS_TOKEN=your_token_here
|
|
90
|
+
/mcp connect gl npx -y @modelcontextprotocol/server-gitlab
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Puppeteer — browser automation
|
|
94
|
+
Controls a real Chromium browser. Good for scraping JS-heavy pages.
|
|
95
|
+
Requires Node.js and will download Chromium on first run (~200 MB).
|
|
96
|
+
```
|
|
97
|
+
/mcp connect browser npx -y @modelcontextprotocol/server-puppeteer
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Slack
|
|
101
|
+
Read and post messages to Slack workspaces.
|
|
102
|
+
Requires a Slack bot token and team ID.
|
|
103
|
+
```
|
|
104
|
+
set SLACK_BOT_TOKEN=xoxb-...
|
|
105
|
+
set SLACK_TEAM_ID=T...
|
|
106
|
+
/mcp connect slack npx -y @modelcontextprotocol/server-slack
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### Redis
|
|
110
|
+
Get/set keys in a running Redis instance.
|
|
111
|
+
```
|
|
112
|
+
/mcp connect redis npx -y @modelcontextprotocol/server-redis
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Google Drive
|
|
116
|
+
Browse and read files from Google Drive (requires OAuth setup).
|
|
117
|
+
```
|
|
118
|
+
/mcp connect gdrive npx -y @modelcontextprotocol/server-gdrive
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Google Maps
|
|
122
|
+
Geocoding, directions, place search via Google Maps API.
|
|
123
|
+
Requires a Google Maps API key.
|
|
124
|
+
```
|
|
125
|
+
set GOOGLE_MAPS_API_KEY=your_key_here
|
|
126
|
+
/mcp connect maps npx -y @modelcontextprotocol/server-google-maps
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Notes
|
|
132
|
+
|
|
133
|
+
- `npx -y` downloads the package on first run, then uses the npm cache. No permanent install.
|
|
134
|
+
- `uvx` does the same for Python packages via uv (`pip install uv` to get it).
|
|
135
|
+
- All servers run locally — no data leaves your machine except for API-key servers
|
|
136
|
+
(Brave Search, GitHub, Slack, Google Maps) which call their respective APIs.
|
|
137
|
+
- The directory argument in `/mcp connect fs npx ... .` limits what files the server can see.
|
|
138
|
+
Use a specific path instead of `.` to restrict access.
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# 1bcoder — Model Parameter Reference
|
|
2
|
+
|
|
3
|
+
All parameters are set with `/param <key> <value>` and sent with every request.
|
|
4
|
+
View current values: `/param`
|
|
5
|
+
Reset all: `/param clear`
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## Built-in parameters (1bcoder-internal)
|
|
10
|
+
|
|
11
|
+
These are handled by 1bcoder directly and are not forwarded to the model API.
|
|
12
|
+
|
|
13
|
+
| Parameter | Default | Description |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| `timeout` | 120 | HTTP read timeout in seconds. Increase for slow/large-context models. |
|
|
16
|
+
| `num_ctx` | 4096 | Context window size (tokens). Set via `/ctx <n>` or `/param num_ctx <n>` is not forwarded — use `/ctx`. |
|
|
17
|
+
| `think_exclude` | `true` | Strip `<think>…</think>` blocks from context (blocks are shown in terminal only). Set `false` to keep reasoning in context for multi-turn chains. |
|
|
18
|
+
| `ask_limit` | 8000 | Max characters of `/ask` tool output kept in context. |
|
|
19
|
+
| `ask_show` | 500 | Characters shown in terminal when output is truncated. |
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Sampling parameters
|
|
24
|
+
|
|
25
|
+
Control how the model selects the next token.
|
|
26
|
+
|
|
27
|
+
| Parameter | Range | Default | Description |
|
|
28
|
+
|---|---|---|---|
|
|
29
|
+
| `temperature` | 0.0 – 2.0 | 0.8 | Randomness. Lower = more deterministic. 0.0 = greedy. Good range: 0.2–0.8 for code. |
|
|
30
|
+
| `top_p` | 0.0 – 1.0 | 0.9 | Nucleus sampling. Only consider tokens whose cumulative probability ≤ top_p. Lower = less diversity. |
|
|
31
|
+
| `top_k` | 0 – ∞ | 40 | Limit sampling pool to top-K tokens. 0 = disabled. Lower = less diverse. |
|
|
32
|
+
| `min_p` | 0.0 – 1.0 | 0.0 | Minimum probability threshold relative to the top token. Filters weak candidates. |
|
|
33
|
+
| `typical_p` | 0.0 – 1.0 | 1.0 | Locally typical sampling. 1.0 = disabled. Can improve coherence for long outputs. |
|
|
34
|
+
| `seed` | integer | -1 | RNG seed. -1 = random. Set a fixed value for reproducible outputs. |
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Repetition control
|
|
39
|
+
|
|
40
|
+
These are the most useful parameters for preventing looping/repetitive output.
|
|
41
|
+
|
|
42
|
+
| Parameter | Range | Default | Description |
|
|
43
|
+
|---|---|---|---|
|
|
44
|
+
| `repeat_penalty` | 0.0 – ∞ | 1.1 | Penalise tokens that already appeared. >1.0 = penalise, <1.0 = encourage repetition. **1.1–1.3** is the practical range. |
|
|
45
|
+
| `repeat_last_n` | -1 – ∞ | 64 | How many recent tokens to check for repetition. -1 = full context. Larger = stricter de-loop. |
|
|
46
|
+
| `frequency_penalty` | -2.0 – 2.0 | 0.0 | Penalise proportional to how often a token appeared (OpenAI-style). Positive reduces repetition. |
|
|
47
|
+
| `presence_penalty` | -2.0 – 2.0 | 0.0 | Flat penalty for any token that appeared at all (OpenAI-style). Encourages topic diversity. |
|
|
48
|
+
|
|
49
|
+
**Recommended anti-loop recipe:**
|
|
50
|
+
```
|
|
51
|
+
/param repeat_penalty 1.15
|
|
52
|
+
/param repeat_last_n 128
|
|
53
|
+
```
|
|
54
|
+
For severe looping: `repeat_penalty 1.3`. Above 1.5 quality degrades.
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Output length
|
|
59
|
+
|
|
60
|
+
| Parameter | Range | Default | Description |
|
|
61
|
+
|---|---|---|---|
|
|
62
|
+
| `num_predict` | -1 – ∞ | -1 | Max tokens to generate. -1 = unlimited (until stop token or context full). |
|
|
63
|
+
| `stop` | string | — | Stop sequence. Generation halts when this string is produced. e.g. `/param stop </tool>` |
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Thinking / reasoning (extended models)
|
|
68
|
+
|
|
69
|
+
For models with explicit reasoning chains (DeepSeek-R1, Qwen3, QwQ, etc.).
|
|
70
|
+
|
|
71
|
+
| Parameter | Values | Description |
|
|
72
|
+
|---|---|---|
|
|
73
|
+
| `enable_thinking` | `true` / `false` | Enable/disable the extended `<think>` chain. Set `false` to skip reasoning and get faster, shorter replies. |
|
|
74
|
+
| `thinking_budget` | integer (tokens) | Max tokens allocated to the thinking chain before the visible reply starts. Model-specific. |
|
|
75
|
+
| `think_exclude` | `true` / `false` | **1bcoder-internal.** Strip `<think>` blocks from context (default: `true`). Does not affect terminal display or the model API call. |
|
|
76
|
+
| `think_show` | `true` / `false` | **1bcoder-internal.** Show `<think>` blocks in terminal during streaming (default: `true`). Independent of `think_exclude`. |
|
|
77
|
+
|
|
78
|
+
**Note:** `enable_thinking false` tells the model not to think at all.
|
|
79
|
+
`think_exclude` and `think_show` are independent — any combination works:
|
|
80
|
+
- default: show in terminal, strip from context
|
|
81
|
+
- `/think hide` + `/think exclude`: silent, no context cost
|
|
82
|
+
- `/think show` + `/think include`: full reasoning visible and passed to next turn
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Mirostat (adaptive sampling)
|
|
87
|
+
|
|
88
|
+
An alternative to top_p/top_k that targets a specific perplexity level.
|
|
89
|
+
|
|
90
|
+
| Parameter | Values | Default | Description |
|
|
91
|
+
|---|---|---|---|
|
|
92
|
+
| `mirostat` | 0, 1, 2 | 0 | 0 = disabled, 1 = Mirostat v1, 2 = Mirostat v2 (recommended if used). |
|
|
93
|
+
| `mirostat_tau` | float | 5.0 | Target entropy. Lower = more focused/coherent. |
|
|
94
|
+
| `mirostat_eta` | float | 0.1 | Learning rate. How fast the algorithm adapts. |
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Tail-free sampling
|
|
99
|
+
|
|
100
|
+
| Parameter | Range | Default | Description |
|
|
101
|
+
|---|---|---|---|
|
|
102
|
+
| `tfs_z` | 0.0 – 1.0 | 1.0 | Tail-free sampling. 1.0 = disabled. Removes low-probability tail tokens. |
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Penalise newlines
|
|
107
|
+
|
|
108
|
+
| Parameter | Values | Default | Description |
|
|
109
|
+
|---|---|---|---|
|
|
110
|
+
| `penalize_newline` | `true` / `false` | `false` | Apply repeat_penalty to newline tokens. Prevents newline-only loops. |
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Examples
|
|
115
|
+
|
|
116
|
+
```
|
|
117
|
+
# Reproducible output
|
|
118
|
+
/param seed 42
|
|
119
|
+
/param temperature 0.2
|
|
120
|
+
|
|
121
|
+
# Prevent looping
|
|
122
|
+
/param repeat_penalty 1.2
|
|
123
|
+
/param repeat_last_n 128
|
|
124
|
+
|
|
125
|
+
# Fast answer, no thinking chain
|
|
126
|
+
/param enable_thinking false
|
|
127
|
+
|
|
128
|
+
# Long generation
|
|
129
|
+
/param num_predict 4096
|
|
130
|
+
/param timeout 300
|
|
131
|
+
|
|
132
|
+
# Keep reasoning in context for chained agents
|
|
133
|
+
/param think_exclude false
|
|
134
|
+
|
|
135
|
+
# Reset everything
|
|
136
|
+
/param clear
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
---
|
|
140
|
+
|
|
141
|
+
## Model compatibility
|
|
142
|
+
|
|
143
|
+
| Backend | Supports |
|
|
144
|
+
|---|---|
|
|
145
|
+
| Ollama | All parameters except OpenAI-style `frequency_penalty`/`presence_penalty` |
|
|
146
|
+
| OpenAI-compatible | `temperature`, `top_p`, `frequency_penalty`, `presence_penalty`, `seed`, `stop`, `max_tokens` (= `num_predict`) |
|
|
147
|
+
| LM Studio | Same as Ollama |
|
|
148
|
+
| vLLM | OpenAI-compatible subset |
|
|
149
|
+
|
|
150
|
+
Parameters not understood by the backend are silently ignored by the server.
|