🛟 Updated.
cd4c4c7 added
.gitignore +1 -0 | new file mode 100644 | ||
| @@ -0,0 +1 @@ | ||
| 1 | +.mm | |
| new file mode 100644 | |||
| @@ -0,0 +1 @@ | |||
| 1 | +.mm | ||
added
README.md +1 -0 | new file mode 100644 | ||
| @@ -0,0 +1 @@ | ||
| 1 | +# Turbo Editors Config samples | |
| \ No newline at end of file | ||
| new file mode 100644 | |||
| @@ -0,0 +1 @@ | |||
| 1 | +# Turbo Editors Config samples | ||
| \ No newline at end of file | \ No newline at end of file | ||
added
git.sh +136 -0 | new file mode 100755 | ||
| @@ -0,0 +1,136 @@ | ||
| 1 | +#!/bin/bash | |
| 2 | +message="" | |
| 3 | +case $1 in | |
| 4 | + | |
| 5 | + # 🎨: art | |
| 6 | + art) | |
| 7 | + message="Improve structure / format of the code" | |
| 8 | + emoji="🎨" | |
| 9 | + ;; | |
| 10 | + | |
| 11 | + # 🐛: bug | |
| 12 | + bug|fix) | |
| 13 | + message="Fix a bug" | |
| 14 | + emoji="🐛" | |
| 15 | + ;; | |
| 16 | + | |
| 17 | + # 🤓: geek | |
| 18 | + human|human-fixed) | |
| 19 | + message="Human Fixed" | |
| 20 | + emoji="🤓" | |
| 21 | + ;; | |
| 22 | + | |
| 23 | + # 🤖: robot | |
| 24 | + ai|ai-generated) | |
| 25 | + message="AI generated" | |
| 26 | + emoji="🤖" | |
| 27 | + ;; | |
| 28 | + | |
| 29 | + # ✨: sparkles | |
| 30 | + sparkles|feature) | |
| 31 | + message="Introduce new feature(s)" | |
| 32 | + emoji="✨" | |
| 33 | + ;; | |
| 34 | + | |
| 35 | + # 🧩: jigsaw | |
| 36 | + jigsaw|example|examples|demo|demos) | |
| 37 | + message="Introduce new example(s)" | |
| 38 | + emoji="🧩" | |
| 39 | + ;; | |
| 40 | + | |
| 41 | + | |
| 42 | + # 📝: memo | |
| 43 | + memo|doc|documentation) | |
| 44 | + message="Add or update documentation" | |
| 45 | + emoji="📝" | |
| 46 | + ;; | |
| 47 | + | |
| 48 | + # 🌸: cherry_blossom | |
| 49 | + gardening|garden|clean|cleaning) | |
| 50 | + message="Gardening" | |
| 51 | + emoji="🌸" | |
| 52 | + ;; | |
| 53 | + | |
| 54 | + # 🚀: rocket | |
| 55 | + rocket|deploy) | |
| 56 | + message="Deploy stuff" | |
| 57 | + emoji="🚀" | |
| 58 | + ;; | |
| 59 | + | |
| 60 | + # 🎉: tada | |
| 61 | + tada|first) | |
| 62 | + message="Begin a project" | |
| 63 | + emoji="🎉" | |
| 64 | + ;; | |
| 65 | + | |
| 66 | + # 🚧: construction | |
| 67 | + construction|wip) | |
| 68 | + message="Work in progress" | |
| 69 | + emoji="🚧" | |
| 70 | + ;; | |
| 71 | + | |
| 72 | + # 📦️: package | |
| 73 | + package|build) | |
| 74 | + message="Add or update compiled files or packages" | |
| 75 | + emoji="📦️" | |
| 76 | + ;; | |
| 77 | + | |
| 78 | + # 📦️: package | |
| 79 | + release) | |
| 80 | + message="Create a release" | |
| 81 | + emoji="📦️" | |
| 82 | + ;; | |
| 83 | + | |
| 84 | + # 👽️: alien | |
| 85 | + alien|api) | |
| 86 | + message="Update code due to external API changes" | |
| 87 | + emoji="👽️" | |
| 88 | + ;; | |
| 89 | + | |
| 90 | + # 🐳: whale | |
| 91 | + docker|container) | |
| 92 | + message="Docker" | |
| 93 | + emoji="🐳" | |
| 94 | + ;; | |
| 95 | + | |
| 96 | + # 🍊: tangerine | |
| 97 | + gitpod|gitpodify) | |
| 98 | + message="Gitpodify" | |
| 99 | + emoji="🍊" | |
| 100 | + ;; | |
| 101 | + | |
| 102 | + # 🧪: test tube | |
| 103 | + alembic|experiments|experiment|xp) | |
| 104 | + message="Perform experiments" | |
| 105 | + emoji="🧪" | |
| 106 | + ;; | |
| 107 | + | |
| 108 | + # ✅: check mark | |
| 109 | + test|tests|testing) | |
| 110 | + message="Add or update tests" | |
| 111 | + emoji="✅" | |
| 112 | + ;; | |
| 113 | + | |
| 114 | + # 💾: floppy-disk | |
| 115 | + save) | |
| 116 | + message="Saved" | |
| 117 | + emoji="💾" | |
| 118 | + ;; | |
| 119 | + | |
| 120 | + *) | |
| 121 | + message="Updated" | |
| 122 | + emoji="🛟" | |
| 123 | + ;; | |
| 124 | + | |
| 125 | +esac | |
| 126 | + | |
| 127 | +find . -name '.DS_Store' -type f -delete | |
| 128 | + | |
| 129 | +if [ -z "$2" ] | |
| 130 | +then | |
| 131 | + # empty | |
| 132 | + git add .; git commit -m "$emoji $message."; git push | |
| 133 | +else | |
| 134 | + # not empty | |
| 135 | + git add .; git commit -m "$emoji $message: $2"; git push | |
| 136 | +fi | |
| new file mode 100755 | |||
| @@ -0,0 +1,136 @@ | |||
| 1 | +#!/bin/bash | ||
| 2 | +message="" | ||
| 3 | +case $1 in | ||
| 4 | + | ||
| 5 | + # 🎨: art | ||
| 6 | + art) | ||
| 7 | + message="Improve structure / format of the code" | ||
| 8 | + emoji="🎨" | ||
| 9 | + ;; | ||
| 10 | + | ||
| 11 | + # 🐛: bug | ||
| 12 | + bug|fix) | ||
| 13 | + message="Fix a bug" | ||
| 14 | + emoji="🐛" | ||
| 15 | + ;; | ||
| 16 | + | ||
| 17 | + # 🤓: geek | ||
| 18 | + human|human-fixed) | ||
| 19 | + message="Human Fixed" | ||
| 20 | + emoji="🤓" | ||
| 21 | + ;; | ||
| 22 | + | ||
| 23 | + # 🤖: robot | ||
| 24 | + ai|ai-generated) | ||
| 25 | + message="AI generated" | ||
| 26 | + emoji="🤖" | ||
| 27 | + ;; | ||
| 28 | + | ||
| 29 | + # ✨: sparkles | ||
| 30 | + sparkles|feature) | ||
| 31 | + message="Introduce new feature(s)" | ||
| 32 | + emoji="✨" | ||
| 33 | + ;; | ||
| 34 | + | ||
| 35 | + # 🧩: jigsaw | ||
| 36 | + jigsaw|example|examples|demo|demos) | ||
| 37 | + message="Introduce new example(s)" | ||
| 38 | + emoji="🧩" | ||
| 39 | + ;; | ||
| 40 | + | ||
| 41 | + | ||
| 42 | + # 📝: memo | ||
| 43 | + memo|doc|documentation) | ||
| 44 | + message="Add or update documentation" | ||
| 45 | + emoji="📝" | ||
| 46 | + ;; | ||
| 47 | + | ||
| 48 | + # 🌸: cherry_blossom | ||
| 49 | + gardening|garden|clean|cleaning) | ||
| 50 | + message="Gardening" | ||
| 51 | + emoji="🌸" | ||
| 52 | + ;; | ||
| 53 | + | ||
| 54 | + # 🚀: rocket | ||
| 55 | + rocket|deploy) | ||
| 56 | + message="Deploy stuff" | ||
| 57 | + emoji="🚀" | ||
| 58 | + ;; | ||
| 59 | + | ||
| 60 | + # 🎉: tada | ||
| 61 | + tada|first) | ||
| 62 | + message="Begin a project" | ||
| 63 | + emoji="🎉" | ||
| 64 | + ;; | ||
| 65 | + | ||
| 66 | + # 🚧: construction | ||
| 67 | + construction|wip) | ||
| 68 | + message="Work in progress" | ||
| 69 | + emoji="🚧" | ||
| 70 | + ;; | ||
| 71 | + | ||
| 72 | + # 📦️: package | ||
| 73 | + package|build) | ||
| 74 | + message="Add or update compiled files or packages" | ||
| 75 | + emoji="📦️" | ||
| 76 | + ;; | ||
| 77 | + | ||
| 78 | + # 📦️: package | ||
| 79 | + release) | ||
| 80 | + message="Create a release" | ||
| 81 | + emoji="📦️" | ||
| 82 | + ;; | ||
| 83 | + | ||
| 84 | + # 👽️: alien | ||
| 85 | + alien|api) | ||
| 86 | + message="Update code due to external API changes" | ||
| 87 | + emoji="👽️" | ||
| 88 | + ;; | ||
| 89 | + | ||
| 90 | + # 🐳: whale | ||
| 91 | + docker|container) | ||
| 92 | + message="Docker" | ||
| 93 | + emoji="🐳" | ||
| 94 | + ;; | ||
| 95 | + | ||
| 96 | + # 🍊: tangerine | ||
| 97 | + gitpod|gitpodify) | ||
| 98 | + message="Gitpodify" | ||
| 99 | + emoji="🍊" | ||
| 100 | + ;; | ||
| 101 | + | ||
| 102 | + # 🧪: test tube | ||
| 103 | + alembic|experiments|experiment|xp) | ||
| 104 | + message="Perform experiments" | ||
| 105 | + emoji="🧪" | ||
| 106 | + ;; | ||
| 107 | + | ||
| 108 | + # ✅: check mark | ||
| 109 | + test|tests|testing) | ||
| 110 | + message="Add or update tests" | ||
| 111 | + emoji="✅" | ||
| 112 | + ;; | ||
| 113 | + | ||
| 114 | + # 💾: floppy-disk | ||
| 115 | + save) | ||
| 116 | + message="Saved" | ||
| 117 | + emoji="💾" | ||
| 118 | + ;; | ||
| 119 | + | ||
| 120 | + *) | ||
| 121 | + message="Updated" | ||
| 122 | + emoji="🛟" | ||
| 123 | + ;; | ||
| 124 | + | ||
| 125 | +esac | ||
| 126 | + | ||
| 127 | +find . -name '.DS_Store' -type f -delete | ||
| 128 | + | ||
| 129 | +if [ -z "$2" ] | ||
| 130 | +then | ||
| 131 | + # empty | ||
| 132 | + git add .; git commit -m "$emoji $message."; git push | ||
| 133 | +else | ||
| 134 | + # not empty | ||
| 135 | + git add .; git commit -m "$emoji $message: $2"; git push | ||
| 136 | +fi | ||
added
golang-init-with-agents/.turbo-go/acp.toml +13 -0 | new file mode 100644 | ||
| @@ -0,0 +1,13 @@ | ||
| 1 | + | |
| 2 | +[[agent]] | |
| 3 | +name = "Bob (mm-dmr-mellum2)" | |
| 4 | +command = "mm" | |
| 5 | +args = ["-acp"] | |
| 6 | +env = { AGENT_CONFIG = ".turbo-go/agent.mm-dmr-mellum.yaml" } | |
| 7 | + | |
| 8 | + | |
| 9 | +[[agent]] | |
| 10 | +name = "Riker (mm-dmr-gemma)" | |
| 11 | +command = "mm" | |
| 12 | +args = ["-acp"] | |
| 13 | +env = { AGENT_CONFIG = ".turbo-go/agent.mm-dmr-gemma.yaml" } | |
| new file mode 100644 | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | + | ||
| 2 | +[[agent]] | ||
| 3 | +name = "Bob (mm-dmr-mellum2)" | ||
| 4 | +command = "mm" | ||
| 5 | +args = ["-acp"] | ||
| 6 | +env = { AGENT_CONFIG = ".turbo-go/agent.mm-dmr-mellum.yaml" } | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +[[agent]] | ||
| 10 | +name = "Riker (mm-dmr-gemma)" | ||
| 11 | +command = "mm" | ||
| 12 | +args = ["-acp"] | ||
| 13 | +env = { AGENT_CONFIG = ".turbo-go/agent.mm-dmr-gemma.yaml" } | ||
added
golang-init-with-agents/.turbo-go/agent.mm-dmr-gemma.yaml +108 -0 | new file mode 100644 | ||
| @@ -0,0 +1,108 @@ | ||
| 1 | +# Agent settings. | |
| 2 | +# | |
| 3 | +provider: dmr | |
| 4 | + | |
| 5 | +model: huggingface.co/unsloth/gemma-4-e2b-it-gguf:Q4_K_M | |
| 6 | +baseUrl: http://localhost:12434/engines/v1 | |
| 7 | +fallback: http://host.docker.internal:12434/engines/v1 | |
| 8 | + | |
| 9 | +bashTool: true | |
| 10 | +# The built-in file tools: read_file, write_file, edit_file. | |
| 11 | +editTools: true | |
| 12 | + | |
| 13 | +lsp: | |
| 14 | + servers: | |
| 15 | + - name: gopls | |
| 16 | + command: gopls | |
| 17 | + extensions: [".go"] | |
| 18 | + | |
| 19 | +# How many tokens the server actually serves. | |
| 20 | +# 0 = ask the server (llama-server tells it on /props) | |
| 21 | +contextWindow: 0 | |
| 22 | + | |
| 23 | +# Max number of characters a tool returns to the model. | |
| 24 | +# Context safeguard: beyond that, the output is truncated (beginning + end kept). | |
| 25 | +maxOutput: 16000 | |
| 26 | + | |
| 27 | +# Max number of model <-> tools round trips for a single question. | |
| 28 | +# Raise it for tasks that need long chains of commands. | |
| 29 | +maxTurns: 40 | |
| 30 | + | |
| 31 | +# Persistent sessions, per project. | |
| 32 | +# When enabled, every conversation is saved as one JSON file under `dir`. | |
| 33 | +# `/sessions` lists them, `/resume` continues one; in an editor, "Reload Agent" replays the thread. | |
| 34 | +sessions: | |
| 35 | + enabled: true | |
| 36 | + dir: .mm/sessions | |
| 37 | + | |
| 38 | +# How many lines of a command's output are echoed to the terminal. | |
| 39 | +# 0 disables it. | |
| 40 | +previewLines: 20 | |
| 41 | + | |
| 42 | +displayCommands: true | |
| 43 | + | |
| 44 | +# The system prompt: what the agent is, and what it is allowed to do. | |
| 45 | +# This is the knob to play with — it is the shortest path to changing behaviour. | |
| 46 | +system: | | |
| 47 | + Your name is Riker. | |
| 48 | + You are a coding agent working in a terminal. | |
| 49 | + You have a "bash" tool to run shell commands. | |
| 50 | + Use it to explore files, run tests, inspect the repository, etc. | |
| 51 | + Chain several commands if needed, then answer clearly in English. | |
| 52 | + | |
| 53 | + FILE EDITING | |
| 54 | + You have three tools for files: `read_file`, `edit_file` and `write_file`. | |
| 55 | + They are how a file gets read and changed here: each change is exact, | |
| 56 | + checked before it is written, and comes back as a diff with line numbers. | |
| 57 | + bash is for running things — building, testing, listing, searching. | |
| 58 | + | |
| 59 | + RULES | |
| 60 | + - Keep everything the file already does, unless the user asked to remove it. | |
| 61 | + - Touch only the files the request is about. Do not add tests, files or | |
| 62 | + features that were not asked for. | |
| 63 | + - Never run a git command unless the user says git, commit or push. | |
| 64 | + - Never move, rename or delete a file unless the user asked for it. | |
| 65 | + - Then answer in English, in a few lines. | |
| 66 | + - If you don't know how to use a <cli>, run `<cli> --help` (or `<cli> help`) | |
| 67 | + to understand the options, then run the command. | |
| 68 | + | |
| 69 | + BACKGROUND JOBS | |
| 70 | + Never let a command block the answer. Anything that serves, watches or runs | |
| 71 | + long goes to the background, with BOTH streams redirected and its pid kept: | |
| 72 | + | |
| 73 | + nohup <command> > /tmp/<job>.log 2>&1 & echo $! > /tmp/<job>.pid | |
| 74 | + | |
| 75 | + | |
| 76 | +# Generation settings (OpenAI API keys). Low temperature for a coding agent: | |
| 77 | +# we want precise and reproducible answers, not creativity. | |
| 78 | +sampling: | |
| 79 | + temperature: 0.0 | |
| 80 | + parallel_tool_calls: false | |
| 81 | + top_p: 0.9 | |
| 82 | + max_tokens: 4096 | |
| 83 | + | |
| 84 | +# llama-server processes the whole prompt before the first token; | |
| 85 | +# on a laptop a 32k context can take a while. Raise it if it fires. | |
| 86 | +watchdogTimeout: 30s | |
| 87 | + | |
| 88 | +# Context compression. | |
| 89 | +# ON here: the agent knows the window (read from /props), so `threshold` has a number to apply to. | |
| 90 | +context: | |
| 91 | + enabled: true | |
| 92 | + | |
| 93 | + # Compress when the history reaches this share of the window. | |
| 94 | + threshold: 75 | |
| 95 | + | |
| 96 | + # Fallback on the message count, for when the window is unknown. | |
| 97 | + # One command costs 2 messages (call + response), so 80 is roughly 30 commands of history. | |
| 98 | + maxMessages: 80 | |
| 99 | + | |
| 100 | + # How many recent questions (with their commands and answers) are kept as-is instead of being summarised. | |
| 101 | + # The model works on the last few turns, so summarising them would make it redo what it just did. | |
| 102 | + keepLastTurns: 3 | |
| 103 | + | |
| 104 | + # max_tokens of the summary request. | |
| 105 | + summaryMaxTokens: 1200 | |
| 106 | + | |
| 107 | + showStats: true | |
| 108 | + | |
| new file mode 100644 | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | +# Agent settings. | ||
| 2 | +# | ||
| 3 | +provider: dmr | ||
| 4 | + | ||
| 5 | +model: huggingface.co/unsloth/gemma-4-e2b-it-gguf:Q4_K_M | ||
| 6 | +baseUrl: http://localhost:12434/engines/v1 | ||
| 7 | +fallback: http://host.docker.internal:12434/engines/v1 | ||
| 8 | + | ||
| 9 | +bashTool: true | ||
| 10 | +# The built-in file tools: read_file, write_file, edit_file. | ||
| 11 | +editTools: true | ||
| 12 | + | ||
| 13 | +lsp: | ||
| 14 | + servers: | ||
| 15 | + - name: gopls | ||
| 16 | + command: gopls | ||
| 17 | + extensions: [".go"] | ||
| 18 | + | ||
| 19 | +# How many tokens the server actually serves. | ||
| 20 | +# 0 = ask the server (llama-server tells it on /props) | ||
| 21 | +contextWindow: 0 | ||
| 22 | + | ||
| 23 | +# Max number of characters a tool returns to the model. | ||
| 24 | +# Context safeguard: beyond that, the output is truncated (beginning + end kept). | ||
| 25 | +maxOutput: 16000 | ||
| 26 | + | ||
| 27 | +# Max number of model <-> tools round trips for a single question. | ||
| 28 | +# Raise it for tasks that need long chains of commands. | ||
| 29 | +maxTurns: 40 | ||
| 30 | + | ||
| 31 | +# Persistent sessions, per project. | ||
| 32 | +# When enabled, every conversation is saved as one JSON file under `dir`. | ||
| 33 | +# `/sessions` lists them, `/resume` continues one; in an editor, "Reload Agent" replays the thread. | ||
| 34 | +sessions: | ||
| 35 | + enabled: true | ||
| 36 | + dir: .mm/sessions | ||
| 37 | + | ||
| 38 | +# How many lines of a command's output are echoed to the terminal. | ||
| 39 | +# 0 disables it. | ||
| 40 | +previewLines: 20 | ||
| 41 | + | ||
| 42 | +displayCommands: true | ||
| 43 | + | ||
| 44 | +# The system prompt: what the agent is, and what it is allowed to do. | ||
| 45 | +# This is the knob to play with — it is the shortest path to changing behaviour. | ||
| 46 | +system: | | ||
| 47 | + Your name is Riker. | ||
| 48 | + You are a coding agent working in a terminal. | ||
| 49 | + You have a "bash" tool to run shell commands. | ||
| 50 | + Use it to explore files, run tests, inspect the repository, etc. | ||
| 51 | + Chain several commands if needed, then answer clearly in English. | ||
| 52 | + | ||
| 53 | + FILE EDITING | ||
| 54 | + You have three tools for files: `read_file`, `edit_file` and `write_file`. | ||
| 55 | + They are how a file gets read and changed here: each change is exact, | ||
| 56 | + checked before it is written, and comes back as a diff with line numbers. | ||
| 57 | + bash is for running things — building, testing, listing, searching. | ||
| 58 | + | ||
| 59 | + RULES | ||
| 60 | + - Keep everything the file already does, unless the user asked to remove it. | ||
| 61 | + - Touch only the files the request is about. Do not add tests, files or | ||
| 62 | + features that were not asked for. | ||
| 63 | + - Never run a git command unless the user says git, commit or push. | ||
| 64 | + - Never move, rename or delete a file unless the user asked for it. | ||
| 65 | + - Then answer in English, in a few lines. | ||
| 66 | + - If you don't know how to use a <cli>, run `<cli> --help` (or `<cli> help`) | ||
| 67 | + to understand the options, then run the command. | ||
| 68 | + | ||
| 69 | + BACKGROUND JOBS | ||
| 70 | + Never let a command block the answer. Anything that serves, watches or runs | ||
| 71 | + long goes to the background, with BOTH streams redirected and its pid kept: | ||
| 72 | + | ||
| 73 | + nohup <command> > /tmp/<job>.log 2>&1 & echo $! > /tmp/<job>.pid | ||
| 74 | + | ||
| 75 | + | ||
| 76 | +# Generation settings (OpenAI API keys). Low temperature for a coding agent: | ||
| 77 | +# we want precise and reproducible answers, not creativity. | ||
| 78 | +sampling: | ||
| 79 | + temperature: 0.0 | ||
| 80 | + parallel_tool_calls: false | ||
| 81 | + top_p: 0.9 | ||
| 82 | + max_tokens: 4096 | ||
| 83 | + | ||
| 84 | +# llama-server processes the whole prompt before the first token; | ||
| 85 | +# on a laptop a 32k context can take a while. Raise it if it fires. | ||
| 86 | +watchdogTimeout: 30s | ||
| 87 | + | ||
| 88 | +# Context compression. | ||
| 89 | +# ON here: the agent knows the window (read from /props), so `threshold` has a number to apply to. | ||
| 90 | +context: | ||
| 91 | + enabled: true | ||
| 92 | + | ||
| 93 | + # Compress when the history reaches this share of the window. | ||
| 94 | + threshold: 75 | ||
| 95 | + | ||
| 96 | + # Fallback on the message count, for when the window is unknown. | ||
| 97 | + # One command costs 2 messages (call + response), so 80 is roughly 30 commands of history. | ||
| 98 | + maxMessages: 80 | ||
| 99 | + | ||
| 100 | + # How many recent questions (with their commands and answers) are kept as-is instead of being summarised. | ||
| 101 | + # The model works on the last few turns, so summarising them would make it redo what it just did. | ||
| 102 | + keepLastTurns: 3 | ||
| 103 | + | ||
| 104 | + # max_tokens of the summary request. | ||
| 105 | + summaryMaxTokens: 1200 | ||
| 106 | + | ||
| 107 | + showStats: true | ||
| 108 | + | ||
added
golang-init-with-agents/.turbo-go/agent.mm-dmr-mellum.yaml +108 -0 | new file mode 100644 | ||
| @@ -0,0 +1,108 @@ | ||
| 1 | +# Agent settings. | |
| 2 | +# | |
| 3 | +provider: dmr | |
| 4 | + | |
| 5 | +model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | |
| 6 | +baseUrl: http://localhost:12434/engines/v1 | |
| 7 | +fallback: http://host.docker.internal:12434/engines/v1 | |
| 8 | + | |
| 9 | +bashTool: true | |
| 10 | +# The built-in file tools: read_file, write_file, edit_file. | |
| 11 | +editTools: true | |
| 12 | + | |
| 13 | +lsp: | |
| 14 | + servers: | |
| 15 | + - name: gopls | |
| 16 | + command: gopls | |
| 17 | + extensions: [".go"] | |
| 18 | + | |
| 19 | +# How many tokens the server actually serves. | |
| 20 | +# 0 = ask the server (llama-server tells it on /props) | |
| 21 | +contextWindow: 0 | |
| 22 | + | |
| 23 | +# Max number of characters a tool returns to the model. | |
| 24 | +# Context safeguard: beyond that, the output is truncated (beginning + end kept). | |
| 25 | +maxOutput: 16000 | |
| 26 | + | |
| 27 | +# Max number of model <-> tools round trips for a single question. | |
| 28 | +# Raise it for tasks that need long chains of commands. | |
| 29 | +maxTurns: 40 | |
| 30 | + | |
| 31 | +# Persistent sessions, per project. | |
| 32 | +# When enabled, every conversation is saved as one JSON file under `dir`. | |
| 33 | +# `/sessions` lists them, `/resume` continues one; in an editor, "Reload Agent" replays the thread. | |
| 34 | +sessions: | |
| 35 | + enabled: true | |
| 36 | + dir: .mm/sessions | |
| 37 | + | |
| 38 | +# How many lines of a command's output are echoed to the terminal. | |
| 39 | +# 0 disables it. | |
| 40 | +previewLines: 20 | |
| 41 | + | |
| 42 | +displayCommands: true | |
| 43 | + | |
| 44 | +# The system prompt: what the agent is, and what it is allowed to do. | |
| 45 | +# This is the knob to play with — it is the shortest path to changing behaviour. | |
| 46 | +system: | | |
| 47 | + Your name is Bob. | |
| 48 | + You are a coding agent working in a terminal. | |
| 49 | + You have a "bash" tool to run shell commands. | |
| 50 | + Use it to explore files, run tests, inspect the repository, etc. | |
| 51 | + Chain several commands if needed, then answer clearly in English. | |
| 52 | + | |
| 53 | + FILE EDITING | |
| 54 | + You have three tools for files: `read_file`, `edit_file` and `write_file`. | |
| 55 | + They are how a file gets read and changed here: each change is exact, | |
| 56 | + checked before it is written, and comes back as a diff with line numbers. | |
| 57 | + bash is for running things — building, testing, listing, searching. | |
| 58 | + | |
| 59 | + RULES | |
| 60 | + - Keep everything the file already does, unless the user asked to remove it. | |
| 61 | + - Touch only the files the request is about. Do not add tests, files or | |
| 62 | + features that were not asked for. | |
| 63 | + - Never run a git command unless the user says git, commit or push. | |
| 64 | + - Never move, rename or delete a file unless the user asked for it. | |
| 65 | + - Then answer in English, in a few lines. | |
| 66 | + - If you don't know how to use a <cli>, run `<cli> --help` (or `<cli> help`) | |
| 67 | + to understand the options, then run the command. | |
| 68 | + | |
| 69 | + BACKGROUND JOBS | |
| 70 | + Never let a command block the answer. Anything that serves, watches or runs | |
| 71 | + long goes to the background, with BOTH streams redirected and its pid kept: | |
| 72 | + | |
| 73 | + nohup <command> > /tmp/<job>.log 2>&1 & echo $! > /tmp/<job>.pid | |
| 74 | + | |
| 75 | + | |
| 76 | +# Generation settings (OpenAI API keys). Low temperature for a coding agent: | |
| 77 | +# we want precise and reproducible answers, not creativity. | |
| 78 | +sampling: | |
| 79 | + temperature: 0.0 | |
| 80 | + parallel_tool_calls: false | |
| 81 | + top_p: 0.9 | |
| 82 | + max_tokens: 4096 | |
| 83 | + | |
| 84 | +# llama-server processes the whole prompt before the first token; | |
| 85 | +# on a laptop a 32k context can take a while. Raise it if it fires. | |
| 86 | +watchdogTimeout: 30s | |
| 87 | + | |
| 88 | +# Context compression. | |
| 89 | +# ON here: the agent knows the window (read from /props), so `threshold` has a number to apply to. | |
| 90 | +context: | |
| 91 | + enabled: true | |
| 92 | + | |
| 93 | + # Compress when the history reaches this share of the window. | |
| 94 | + threshold: 75 | |
| 95 | + | |
| 96 | + # Fallback on the message count, for when the window is unknown. | |
| 97 | + # One command costs 2 messages (call + response), so 80 is roughly 30 commands of history. | |
| 98 | + maxMessages: 80 | |
| 99 | + | |
| 100 | + # How many recent questions (with their commands and answers) are kept as-is instead of being summarised. | |
| 101 | + # The model works on the last few turns, so summarising them would make it redo what it just did. | |
| 102 | + keepLastTurns: 3 | |
| 103 | + | |
| 104 | + # max_tokens of the summary request. | |
| 105 | + summaryMaxTokens: 1200 | |
| 106 | + | |
| 107 | + showStats: true | |
| 108 | + | |
| new file mode 100644 | |||
| @@ -0,0 +1,108 @@ | |||
| 1 | +# Agent settings. | ||
| 2 | +# | ||
| 3 | +provider: dmr | ||
| 4 | + | ||
| 5 | +model: huggingface.co/jetbrains/mellum2-12b-a2.5b-instruct-gguf-q4_k_m:Q4_K_M | ||
| 6 | +baseUrl: http://localhost:12434/engines/v1 | ||
| 7 | +fallback: http://host.docker.internal:12434/engines/v1 | ||
| 8 | + | ||
| 9 | +bashTool: true | ||
| 10 | +# The built-in file tools: read_file, write_file, edit_file. | ||
| 11 | +editTools: true | ||
| 12 | + | ||
| 13 | +lsp: | ||
| 14 | + servers: | ||
| 15 | + - name: gopls | ||
| 16 | + command: gopls | ||
| 17 | + extensions: [".go"] | ||
| 18 | + | ||
| 19 | +# How many tokens the server actually serves. | ||
| 20 | +# 0 = ask the server (llama-server tells it on /props) | ||
| 21 | +contextWindow: 0 | ||
| 22 | + | ||
| 23 | +# Max number of characters a tool returns to the model. | ||
| 24 | +# Context safeguard: beyond that, the output is truncated (beginning + end kept). | ||
| 25 | +maxOutput: 16000 | ||
| 26 | + | ||
| 27 | +# Max number of model <-> tools round trips for a single question. | ||
| 28 | +# Raise it for tasks that need long chains of commands. | ||
| 29 | +maxTurns: 40 | ||
| 30 | + | ||
| 31 | +# Persistent sessions, per project. | ||
| 32 | +# When enabled, every conversation is saved as one JSON file under `dir`. | ||
| 33 | +# `/sessions` lists them, `/resume` continues one; in an editor, "Reload Agent" replays the thread. | ||
| 34 | +sessions: | ||
| 35 | + enabled: true | ||
| 36 | + dir: .mm/sessions | ||
| 37 | + | ||
| 38 | +# How many lines of a command's output are echoed to the terminal. | ||
| 39 | +# 0 disables it. | ||
| 40 | +previewLines: 20 | ||
| 41 | + | ||
| 42 | +displayCommands: true | ||
| 43 | + | ||
| 44 | +# The system prompt: what the agent is, and what it is allowed to do. | ||
| 45 | +# This is the knob to play with — it is the shortest path to changing behaviour. | ||
| 46 | +system: | | ||
| 47 | + Your name is Bob. | ||
| 48 | + You are a coding agent working in a terminal. | ||
| 49 | + You have a "bash" tool to run shell commands. | ||
| 50 | + Use it to explore files, run tests, inspect the repository, etc. | ||
| 51 | + Chain several commands if needed, then answer clearly in English. | ||
| 52 | + | ||
| 53 | + FILE EDITING | ||
| 54 | + You have three tools for files: `read_file`, `edit_file` and `write_file`. | ||
| 55 | + They are how a file gets read and changed here: each change is exact, | ||
| 56 | + checked before it is written, and comes back as a diff with line numbers. | ||
| 57 | + bash is for running things — building, testing, listing, searching. | ||
| 58 | + | ||
| 59 | + RULES | ||
| 60 | + - Keep everything the file already does, unless the user asked to remove it. | ||
| 61 | + - Touch only the files the request is about. Do not add tests, files or | ||
| 62 | + features that were not asked for. | ||
| 63 | + - Never run a git command unless the user says git, commit or push. | ||
| 64 | + - Never move, rename or delete a file unless the user asked for it. | ||
| 65 | + - Then answer in English, in a few lines. | ||
| 66 | + - If you don't know how to use a <cli>, run `<cli> --help` (or `<cli> help`) | ||
| 67 | + to understand the options, then run the command. | ||
| 68 | + | ||
| 69 | + BACKGROUND JOBS | ||
| 70 | + Never let a command block the answer. Anything that serves, watches or runs | ||
| 71 | + long goes to the background, with BOTH streams redirected and its pid kept: | ||
| 72 | + | ||
| 73 | + nohup <command> > /tmp/<job>.log 2>&1 & echo $! > /tmp/<job>.pid | ||
| 74 | + | ||
| 75 | + | ||
| 76 | +# Generation settings (OpenAI API keys). Low temperature for a coding agent: | ||
| 77 | +# we want precise and reproducible answers, not creativity. | ||
| 78 | +sampling: | ||
| 79 | + temperature: 0.0 | ||
| 80 | + parallel_tool_calls: false | ||
| 81 | + top_p: 0.9 | ||
| 82 | + max_tokens: 4096 | ||
| 83 | + | ||
| 84 | +# llama-server processes the whole prompt before the first token; | ||
| 85 | +# on a laptop a 32k context can take a while. Raise it if it fires. | ||
| 86 | +watchdogTimeout: 30s | ||
| 87 | + | ||
| 88 | +# Context compression. | ||
| 89 | +# ON here: the agent knows the window (read from /props), so `threshold` has a number to apply to. | ||
| 90 | +context: | ||
| 91 | + enabled: true | ||
| 92 | + | ||
| 93 | + # Compress when the history reaches this share of the window. | ||
| 94 | + threshold: 75 | ||
| 95 | + | ||
| 96 | + # Fallback on the message count, for when the window is unknown. | ||
| 97 | + # One command costs 2 messages (call + response), so 80 is roughly 30 commands of history. | ||
| 98 | + maxMessages: 80 | ||
| 99 | + | ||
| 100 | + # How many recent questions (with their commands and answers) are kept as-is instead of being summarised. | ||
| 101 | + # The model works on the last few turns, so summarising them would make it redo what it just did. | ||
| 102 | + keepLastTurns: 3 | ||
| 103 | + | ||
| 104 | + # max_tokens of the summary request. | ||
| 105 | + summaryMaxTokens: 1200 | ||
| 106 | + | ||
| 107 | + showStats: true | ||
| 108 | + | ||
added
golang-init-with-agents/.turbo-go/settings.toml +7 -0 | new file mode 100644 | ||
| @@ -0,0 +1,7 @@ | ||
| 1 | +# turbo-go project settings. | |
| 2 | + | |
| 3 | +[editor] | |
| 4 | + | |
| 5 | +theme = "turbo-dark" | |
| 6 | +autosave = true | |
| 7 | +autosave_delay = "1s" | |
| new file mode 100644 | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | +# turbo-go project settings. | ||
| 2 | + | ||
| 3 | +[editor] | ||
| 4 | + | ||
| 5 | +theme = "turbo-dark" | ||
| 6 | +autosave = true | ||
| 7 | +autosave_delay = "1s" | ||
added
golang-init-with-agents/.turbo-go/snippets.toml +30 -0 | new file mode 100644 | ||
| @@ -0,0 +1,30 @@ | ||
| 1 | +# turbo-go snippets. | |
| 2 | +# | |
| 3 | +[[snippet]] | |
| 4 | +group = "Go" | |
| 5 | +name = "main" | |
| 6 | +languages = ["go"] | |
| 7 | +body = """package main | |
| 8 | + | |
| 9 | +import "fmt" | |
| 10 | + | |
| 11 | +func main() { | |
| 12 | + fmt.Println("hello world") | |
| 13 | +}""" | |
| 14 | + | |
| 15 | +[[snippet]] | |
| 16 | +group = "Go" | |
| 17 | +name = "switch" | |
| 18 | +languages = ["go"] | |
| 19 | +body = """ | |
| 20 | + i := 1 | |
| 21 | + | |
| 22 | + switch i { | |
| 23 | + case 1: | |
| 24 | + fmt.Println("one") | |
| 25 | + case 2: | |
| 26 | + fmt.Println("two") | |
| 27 | + case 3: | |
| 28 | + fmt.Println("three") | |
| 29 | + } | |
| 30 | +""" | |
| new file mode 100644 | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | +# turbo-go snippets. | ||
| 2 | +# | ||
| 3 | +[[snippet]] | ||
| 4 | +group = "Go" | ||
| 5 | +name = "main" | ||
| 6 | +languages = ["go"] | ||
| 7 | +body = """package main | ||
| 8 | + | ||
| 9 | +import "fmt" | ||
| 10 | + | ||
| 11 | +func main() { | ||
| 12 | + fmt.Println("hello world") | ||
| 13 | +}""" | ||
| 14 | + | ||
| 15 | +[[snippet]] | ||
| 16 | +group = "Go" | ||
| 17 | +name = "switch" | ||
| 18 | +languages = ["go"] | ||
| 19 | +body = """ | ||
| 20 | + i := 1 | ||
| 21 | + | ||
| 22 | + switch i { | ||
| 23 | + case 1: | ||
| 24 | + fmt.Println("one") | ||
| 25 | + case 2: | ||
| 26 | + fmt.Println("two") | ||
| 27 | + case 3: | ||
| 28 | + fmt.Println("three") | ||
| 29 | + } | ||
| 30 | +""" | ||
added
golang-init-with-agents/.turbo-go/tools.toml +47 -0 | new file mode 100644 | ||
| @@ -0,0 +1,47 @@ | ||
| 1 | +# turbo-go tools. | |
| 2 | + | |
| 3 | +[[tool]] | |
| 4 | +name = "~F~ormat" | |
| 5 | +command = "gofmt -l -w ." | |
| 6 | +output = "popup" | |
| 7 | + | |
| 8 | +[[tool]] | |
| 9 | +name = "~L~int" | |
| 10 | +command = "go vet ./..." | |
| 11 | +output = "popup" | |
| 12 | + | |
| 13 | +[[tool]] | |
| 14 | +name = "~B~uild" | |
| 15 | +command = "go build ./..." | |
| 16 | +output = "popup" | |
| 17 | + | |
| 18 | +[[tool]] | |
| 19 | +name = "~T~est" | |
| 20 | +command = "go test ./..." | |
| 21 | +output = "popup" | |
| 22 | + | |
| 23 | +[[tool]] | |
| 24 | +name = "~R~un" | |
| 25 | +command = "go run ." | |
| 26 | +# A terminal, not a popup: a program that reads the keyboard has to be able to be answered, | |
| 27 | +# and one that runs long has to be able to be interrupted. | |
| 28 | +output = "terminal" | |
| 29 | + | |
| 30 | +# A tool that asks for a value: {{double braces}} opens a box before it runs, | |
| 31 | +# and what you type is shell-quoted, so a name with a space stays one argument. | |
| 32 | +[[tool]] | |
| 33 | +name = "~G~rep" | |
| 34 | +command = "grep -rn {{pattern}} --include='*.go' ." | |
| 35 | +output = "editor" | |
| 36 | + | |
| 37 | +[[tool]] | |
| 38 | +name = "~I~nit module" | |
| 39 | +command = "go mod init {{module path}}" | |
| 40 | +output = "popup" | |
| 41 | + | |
| 42 | +# A tool naming a `menu` gets a menu of its own on the bar. | |
| 43 | +[[tool]] | |
| 44 | +name = "~E~cho" | |
| 45 | +command = "echo 🎉 tada!" | |
| 46 | +menu = "Tools" | |
| 47 | +output = "terminal" | |
| new file mode 100644 | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | +# turbo-go tools. | ||
| 2 | + | ||
| 3 | +[[tool]] | ||
| 4 | +name = "~F~ormat" | ||
| 5 | +command = "gofmt -l -w ." | ||
| 6 | +output = "popup" | ||
| 7 | + | ||
| 8 | +[[tool]] | ||
| 9 | +name = "~L~int" | ||
| 10 | +command = "go vet ./..." | ||
| 11 | +output = "popup" | ||
| 12 | + | ||
| 13 | +[[tool]] | ||
| 14 | +name = "~B~uild" | ||
| 15 | +command = "go build ./..." | ||
| 16 | +output = "popup" | ||
| 17 | + | ||
| 18 | +[[tool]] | ||
| 19 | +name = "~T~est" | ||
| 20 | +command = "go test ./..." | ||
| 21 | +output = "popup" | ||
| 22 | + | ||
| 23 | +[[tool]] | ||
| 24 | +name = "~R~un" | ||
| 25 | +command = "go run ." | ||
| 26 | +# A terminal, not a popup: a program that reads the keyboard has to be able to be answered, | ||
| 27 | +# and one that runs long has to be able to be interrupted. | ||
| 28 | +output = "terminal" | ||
| 29 | + | ||
| 30 | +# A tool that asks for a value: {{double braces}} opens a box before it runs, | ||
| 31 | +# and what you type is shell-quoted, so a name with a space stays one argument. | ||
| 32 | +[[tool]] | ||
| 33 | +name = "~G~rep" | ||
| 34 | +command = "grep -rn {{pattern}} --include='*.go' ." | ||
| 35 | +output = "editor" | ||
| 36 | + | ||
| 37 | +[[tool]] | ||
| 38 | +name = "~I~nit module" | ||
| 39 | +command = "go mod init {{module path}}" | ||
| 40 | +output = "popup" | ||
| 41 | + | ||
| 42 | +# A tool naming a `menu` gets a menu of its own on the bar. | ||
| 43 | +[[tool]] | ||
| 44 | +name = "~E~cho" | ||
| 45 | +command = "echo 🎉 tada!" | ||
| 46 | +menu = "Tools" | ||
| 47 | +output = "terminal" | ||
added
golang-init-with-agents/README.md +1 -0 | new file mode 100644 | ||
| @@ -0,0 +1 @@ | ||
| 1 | +# Golang init with agents | |
| new file mode 100644 | |||
| @@ -0,0 +1 @@ | |||
| 1 | +# Golang init with agents | ||
added
golang-init/.turbo-go/settings.toml +7 -0 | new file mode 100644 | ||
| @@ -0,0 +1,7 @@ | ||
| 1 | +# turbo-go project settings. | |
| 2 | + | |
| 3 | +[editor] | |
| 4 | + | |
| 5 | +theme = "turbo-dark" | |
| 6 | +autosave = true | |
| 7 | +autosave_delay = "1s" | |
| new file mode 100644 | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | +# turbo-go project settings. | ||
| 2 | + | ||
| 3 | +[editor] | ||
| 4 | + | ||
| 5 | +theme = "turbo-dark" | ||
| 6 | +autosave = true | ||
| 7 | +autosave_delay = "1s" | ||
added
golang-init/.turbo-go/snippets.toml +30 -0 | new file mode 100644 | ||
| @@ -0,0 +1,30 @@ | ||
| 1 | +# turbo-go snippets. | |
| 2 | +# | |
| 3 | +[[snippet]] | |
| 4 | +group = "Go" | |
| 5 | +name = "main" | |
| 6 | +languages = ["go"] | |
| 7 | +body = """package main | |
| 8 | + | |
| 9 | +import "fmt" | |
| 10 | + | |
| 11 | +func main() { | |
| 12 | + fmt.Println("hello world") | |
| 13 | +}""" | |
| 14 | + | |
| 15 | +[[snippet]] | |
| 16 | +group = "Go" | |
| 17 | +name = "switch" | |
| 18 | +languages = ["go"] | |
| 19 | +body = """ | |
| 20 | + i := 1 | |
| 21 | + | |
| 22 | + switch i { | |
| 23 | + case 1: | |
| 24 | + fmt.Println("one") | |
| 25 | + case 2: | |
| 26 | + fmt.Println("two") | |
| 27 | + case 3: | |
| 28 | + fmt.Println("three") | |
| 29 | + } | |
| 30 | +""" | |
| new file mode 100644 | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | +# turbo-go snippets. | ||
| 2 | +# | ||
| 3 | +[[snippet]] | ||
| 4 | +group = "Go" | ||
| 5 | +name = "main" | ||
| 6 | +languages = ["go"] | ||
| 7 | +body = """package main | ||
| 8 | + | ||
| 9 | +import "fmt" | ||
| 10 | + | ||
| 11 | +func main() { | ||
| 12 | + fmt.Println("hello world") | ||
| 13 | +}""" | ||
| 14 | + | ||
| 15 | +[[snippet]] | ||
| 16 | +group = "Go" | ||
| 17 | +name = "switch" | ||
| 18 | +languages = ["go"] | ||
| 19 | +body = """ | ||
| 20 | + i := 1 | ||
| 21 | + | ||
| 22 | + switch i { | ||
| 23 | + case 1: | ||
| 24 | + fmt.Println("one") | ||
| 25 | + case 2: | ||
| 26 | + fmt.Println("two") | ||
| 27 | + case 3: | ||
| 28 | + fmt.Println("three") | ||
| 29 | + } | ||
| 30 | +""" | ||
added
golang-init/.turbo-go/tools.toml +47 -0 | new file mode 100644 | ||
| @@ -0,0 +1,47 @@ | ||
| 1 | +# turbo-go tools. | |
| 2 | + | |
| 3 | +[[tool]] | |
| 4 | +name = "~F~ormat" | |
| 5 | +command = "gofmt -l -w ." | |
| 6 | +output = "popup" | |
| 7 | + | |
| 8 | +[[tool]] | |
| 9 | +name = "~L~int" | |
| 10 | +command = "go vet ./..." | |
| 11 | +output = "popup" | |
| 12 | + | |
| 13 | +[[tool]] | |
| 14 | +name = "~B~uild" | |
| 15 | +command = "go build ./..." | |
| 16 | +output = "popup" | |
| 17 | + | |
| 18 | +[[tool]] | |
| 19 | +name = "~T~est" | |
| 20 | +command = "go test ./..." | |
| 21 | +output = "popup" | |
| 22 | + | |
| 23 | +[[tool]] | |
| 24 | +name = "~R~un" | |
| 25 | +command = "go run ." | |
| 26 | +# A terminal, not a popup: a program that reads the keyboard has to be able to be answered, | |
| 27 | +# and one that runs long has to be able to be interrupted. | |
| 28 | +output = "terminal" | |
| 29 | + | |
| 30 | +# A tool that asks for a value: {{double braces}} opens a box before it runs, | |
| 31 | +# and what you type is shell-quoted, so a name with a space stays one argument. | |
| 32 | +[[tool]] | |
| 33 | +name = "~G~rep" | |
| 34 | +command = "grep -rn {{pattern}} --include='*.go' ." | |
| 35 | +output = "editor" | |
| 36 | + | |
| 37 | +[[tool]] | |
| 38 | +name = "~I~nit module" | |
| 39 | +command = "go mod init {{module path}}" | |
| 40 | +output = "popup" | |
| 41 | + | |
| 42 | +# A tool naming a `menu` gets a menu of its own on the bar. | |
| 43 | +[[tool]] | |
| 44 | +name = "~E~cho" | |
| 45 | +command = "echo 🎉 tada!" | |
| 46 | +menu = "Tools" | |
| 47 | +output = "terminal" | |
| new file mode 100644 | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | +# turbo-go tools. | ||
| 2 | + | ||
| 3 | +[[tool]] | ||
| 4 | +name = "~F~ormat" | ||
| 5 | +command = "gofmt -l -w ." | ||
| 6 | +output = "popup" | ||
| 7 | + | ||
| 8 | +[[tool]] | ||
| 9 | +name = "~L~int" | ||
| 10 | +command = "go vet ./..." | ||
| 11 | +output = "popup" | ||
| 12 | + | ||
| 13 | +[[tool]] | ||
| 14 | +name = "~B~uild" | ||
| 15 | +command = "go build ./..." | ||
| 16 | +output = "popup" | ||
| 17 | + | ||
| 18 | +[[tool]] | ||
| 19 | +name = "~T~est" | ||
| 20 | +command = "go test ./..." | ||
| 21 | +output = "popup" | ||
| 22 | + | ||
| 23 | +[[tool]] | ||
| 24 | +name = "~R~un" | ||
| 25 | +command = "go run ." | ||
| 26 | +# A terminal, not a popup: a program that reads the keyboard has to be able to be answered, | ||
| 27 | +# and one that runs long has to be able to be interrupted. | ||
| 28 | +output = "terminal" | ||
| 29 | + | ||
| 30 | +# A tool that asks for a value: {{double braces}} opens a box before it runs, | ||
| 31 | +# and what you type is shell-quoted, so a name with a space stays one argument. | ||
| 32 | +[[tool]] | ||
| 33 | +name = "~G~rep" | ||
| 34 | +command = "grep -rn {{pattern}} --include='*.go' ." | ||
| 35 | +output = "editor" | ||
| 36 | + | ||
| 37 | +[[tool]] | ||
| 38 | +name = "~I~nit module" | ||
| 39 | +command = "go mod init {{module path}}" | ||
| 40 | +output = "popup" | ||
| 41 | + | ||
| 42 | +# A tool naming a `menu` gets a menu of its own on the bar. | ||
| 43 | +[[tool]] | ||
| 44 | +name = "~E~cho" | ||
| 45 | +command = "echo 🎉 tada!" | ||
| 46 | +menu = "Tools" | ||
| 47 | +output = "terminal" | ||
added
golang-init/README.md +1 -0 | new file mode 100644 | ||
| @@ -0,0 +1 @@ | ||
| 1 | +# Golang init | |
| \ No newline at end of file | ||
| new file mode 100644 | |||
| @@ -0,0 +1 @@ | |||
| 1 | +# Golang init | ||
| \ No newline at end of file | \ No newline at end of file | ||