bots-garden/mini-mepublic Fork
⑂ f5f2d92
Commits
⬇ Clone ▾
git clone https://git.rickub.com/bots-garden/mini-me.git
git clone ssh://git@rickub.com/bots-garden/mini-me.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

Download ZIP

🎨 Import groups of the files split on this branch: std, mm, third party

splitgo + goimports left the standard library and mm/... in one group;
the repository's files keep them apart.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agent committed 2026-11-28T12:24:12+01:00 Browse files
f5f2d92 parent: 7944710
modified banner_wiring.go +4 -3
@@ -4,6 +4,10 @@ import (
44 "bytes"
55 "context"
66 "fmt"
7+ "os"
8+ "path/filepath"
9+ "strings"
10+
711 "mm/internal/command"
812 "mm/internal/config"
913 "mm/internal/engine"
@@ -12,9 +16,6 @@ import (
1216 "mm/internal/tui"
1317 "mm/internal/ui"
1418 "mm/internal/version"
15- "os"
16- "path/filepath"
17- "strings"
1819 )
1920
2021 // printBanner probes the server and prints the warnings and the one-line
@@ -4,6 +4,10 @@ import (
4 "bytes"4 "bytes"
5 "context"5 "context"
6 "fmt"6 "fmt"
7+ "os"
8+ "path/filepath"
9+ "strings"
10+
7 "mm/internal/command"11 "mm/internal/command"
8 "mm/internal/config"12 "mm/internal/config"
9 "mm/internal/engine"13 "mm/internal/engine"
@@ -12,9 +16,6 @@ import (
12 "mm/internal/tui"16 "mm/internal/tui"
13 "mm/internal/ui"17 "mm/internal/ui"
14 "mm/internal/version"18 "mm/internal/version"
15- "os"
16- "path/filepath"
17- "strings"
18 )19 )
19 20
20 // printBanner probes the server and prints the warnings and the one-line21 // printBanner probes the server and prints the warnings and the one-line
modified internal/acp/clienttools_call.go +2 -1
@@ -5,12 +5,13 @@ import (
55 "encoding/json"
66 "errors"
77 "fmt"
8+ "strings"
9+
810 "mm/internal/config"
911 "mm/internal/consent"
1012 "mm/internal/detector"
1113 "mm/internal/mcp"
1214 "mm/internal/ui"
13- "strings"
1415
1516 sdk "github.com/coder/acp-go-sdk"
1617 "github.com/firebase/genkit/go/ai"
@@ -5,12 +5,13 @@ import (
5 "encoding/json"5 "encoding/json"
6 "errors"6 "errors"
7 "fmt"7 "fmt"
8+ "strings"
9+
8 "mm/internal/config"10 "mm/internal/config"
9 "mm/internal/consent"11 "mm/internal/consent"
10 "mm/internal/detector"12 "mm/internal/detector"
11 "mm/internal/mcp"13 "mm/internal/mcp"
12 "mm/internal/ui"14 "mm/internal/ui"
13- "strings"
14 15
15 sdk "github.com/coder/acp-go-sdk"16 sdk "github.com/coder/acp-go-sdk"
16 "github.com/firebase/genkit/go/ai"17 "github.com/firebase/genkit/go/ai"
modified internal/agent/history.go +1 -0
@@ -3,6 +3,7 @@ package agent
33 import (
44 "context"
55 "fmt"
6+
67 "mm/internal/agentsmd"
78 "mm/internal/clipboard"
89 "mm/internal/command"
@@ -3,6 +3,7 @@ package agent
3 import (3 import (
4 "context"4 "context"
5 "fmt"5 "fmt"
6+
6 "mm/internal/agentsmd"7 "mm/internal/agentsmd"
7 "mm/internal/clipboard"8 "mm/internal/clipboard"
8 "mm/internal/command"9 "mm/internal/command"
modified internal/agent/recap.go +2 -1
@@ -3,10 +3,11 @@ package agent
33 import (
44 "fmt"
55 "io"
6+ "strings"
7+
68 "mm/internal/config"
79 "mm/internal/hooks"
810 "mm/internal/spinner"
9- "strings"
1011 )
1112
1213 // printCommands recaps the commands of the turn, in green.
@@ -3,10 +3,11 @@ package agent
3 import (3 import (
4 "fmt"4 "fmt"
5 "io"5 "io"
6+ "strings"
7+
6 "mm/internal/config"8 "mm/internal/config"
7 "mm/internal/hooks"9 "mm/internal/hooks"
8 "mm/internal/spinner"10 "mm/internal/spinner"
9- "strings"
10 )11 )
11 12
12 // printCommands recaps the commands of the turn, in green.13 // printCommands recaps the commands of the turn, in green.
modified internal/agentinit/base.go +2 -1
@@ -2,9 +2,10 @@ package agentinit
22
33 import (
44 "context"
5+ "strings"
6+
57 "mm/internal/config"
68 "mm/internal/engine"
7- "strings"
89 )
910
1011 // resolveBase is the server's address the wizard lists models from: the
@@ -2,9 +2,10 @@ package agentinit
2 2
3 import (3 import (
4 "context"4 "context"
5+ "strings"
6+
5 "mm/internal/config"7 "mm/internal/config"
6 "mm/internal/engine"8 "mm/internal/engine"
7- "strings"
8 )9 )
9 10
10 // resolveBase is the server's address the wizard lists models from: the11 // resolveBase is the server's address the wizard lists models from: the
modified internal/agentinit/flow_answers.go +2 -1
@@ -2,9 +2,10 @@ package agentinit
22
33 import (
44 "fmt"
5- "mm/internal/config"
65 "path/filepath"
76 "strings"
7+
8+ "mm/internal/config"
89 )
910
1011 // checkLayout refuses a Project layout whose file is not in .mm/: its paths
@@ -2,9 +2,10 @@ package agentinit
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5- "mm/internal/config"
6 "path/filepath"5 "path/filepath"
7 "strings"6 "strings"
7+
8+ "mm/internal/config"
8 )9 )
9 10
10 // checkLayout refuses a Project layout whose file is not in .mm/: its paths11 // checkLayout refuses a Project layout whose file is not in .mm/: its paths
modified internal/agentinit/flow_steps.go +2 -1
@@ -2,8 +2,9 @@ package agentinit
22
33 import (
44 "fmt"
5- "mm/internal/elicit"
65 "path/filepath"
6+
7+ "mm/internal/elicit"
78 )
89
910 // Step builds one question as it stands now: its options may depend on the
@@ -2,8 +2,9 @@ package agentinit
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5- "mm/internal/elicit"
6 "path/filepath"5 "path/filepath"
6+
7+ "mm/internal/elicit"
7 )8 )
8 9
9 // Step builds one question as it stands now: its options may depend on the10 // Step builds one question as it stands now: its options may depend on the
modified internal/agentinit/linewizard.go +2 -1
@@ -4,8 +4,9 @@ import (
44 "bufio"
55 "fmt"
66 "io"
7- "mm/internal/elicit"
87 "strings"
8+
9+ "mm/internal/elicit"
910 )
1011
1112 // lineWizard asks the questions one per line (internal/elicit's format).
@@ -4,8 +4,9 @@ import (
4 "bufio"4 "bufio"
5 "fmt"5 "fmt"
6 "io"6 "io"
7- "mm/internal/elicit"
8 "strings"7 "strings"
8+
9+ "mm/internal/elicit"
9 )10 )
10 11
11 // lineWizard asks the questions one per line (internal/elicit's format).12 // lineWizard asks the questions one per line (internal/elicit's format).
modified internal/agentinit/render_server.go +2 -1
@@ -2,10 +2,11 @@ package agentinit
22
33 import (
44 "fmt"
5- "mm/internal/engine"
65 "net"
76 "net/url"
87 "strings"
8+
9+ "mm/internal/engine"
910 )
1011
1112 // coupledTo is the comment above the model line: the settings chosen for
@@ -2,10 +2,11 @@ package agentinit
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5- "mm/internal/engine"
6 "net"5 "net"
7 "net/url"6 "net/url"
8 "strings"7 "strings"
8+
9+ "mm/internal/engine"
9 )10 )
10 11
11 // coupledTo is the comment above the model line: the settings chosen for12 // coupledTo is the comment above the model line: the settings chosen for
modified internal/agentinit/write.go +2 -1
@@ -5,12 +5,13 @@ import (
55 "errors"
66 "fmt"
77 "io"
8- "mm/internal/config"
98 "os"
109 "os/exec"
1110 "path/filepath"
1211 "strings"
1312 "time"
13+
14+ "mm/internal/config"
1415 )
1516
1617 // WriteFile writes the file the answered flow describes — or prints it, for
@@ -5,12 +5,13 @@ import (
5 "errors"5 "errors"
6 "fmt"6 "fmt"
7 "io"7 "io"
8- "mm/internal/config"
9 "os"8 "os"
10 "os/exec"9 "os/exec"
11 "path/filepath"10 "path/filepath"
12 "strings"11 "strings"
13 "time"12 "time"
13+
14+ "mm/internal/config"
14 )15 )
15 16
16 // WriteFile writes the file the answered flow describes — or prints it, for17 // WriteFile writes the file the answered flow describes — or prints it, for
modified internal/engine/summarize.go +2 -1
@@ -4,10 +4,11 @@ import (
44 "context"
55 "fmt"
66 "maps"
7- "mm/internal/config"
87 "strings"
98 "sync/atomic"
109
10+ "mm/internal/config"
11+
1112 "github.com/firebase/genkit/go/ai"
1213 "github.com/firebase/genkit/go/genkit"
1314 )
@@ -4,10 +4,11 @@ import (
4 "context"4 "context"
5 "fmt"5 "fmt"
6 "maps"6 "maps"
7- "mm/internal/config"
8 "strings"7 "strings"
9 "sync/atomic"8 "sync/atomic"
10 9
10+ "mm/internal/config"
11+
11 "github.com/firebase/genkit/go/ai"12 "github.com/firebase/genkit/go/ai"
12 "github.com/firebase/genkit/go/genkit"13 "github.com/firebase/genkit/go/genkit"
13 )14 )
modified internal/mcp/names.go +2 -1
@@ -2,8 +2,9 @@ package mcp
22
33 import (
44 "fmt"
5- "mm/internal/config"
65 "strings"
6+
7+ "mm/internal/config"
78 )
89
910 // BuiltinTools is the list of mini-me's built-in tool names that must not be collided with.
@@ -2,8 +2,9 @@ package mcp
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5- "mm/internal/config"
6 "strings"5 "strings"
6+
7+ "mm/internal/config"
7 )8 )
8 9
9 // BuiltinTools is the list of mini-me's built-in tool names that must not be collided with.10 // BuiltinTools is the list of mini-me's built-in tool names that must not be collided with.
modified internal/tui/initwin_draw.go +2 -1
@@ -2,9 +2,10 @@ package tui
22
33 import (
44 "fmt"
5+ "strings"
6+
57 "mm/internal/agentinit"
68 "mm/internal/elicit"
7- "strings"
89
910 "github.com/gdamore/tcell/v2"
1011 )
@@ -2,9 +2,10 @@ package tui
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5+ "strings"
6+
5 "mm/internal/agentinit"7 "mm/internal/agentinit"
6 "mm/internal/elicit"8 "mm/internal/elicit"
7- "strings"
8 9
9 "github.com/gdamore/tcell/v2"10 "github.com/gdamore/tcell/v2"
10 )11 )
modified internal/tui/picker_choices.go +4 -3
@@ -1,13 +1,14 @@
11 package tui
22
33 import (
4- "mm/internal/command"
5- "mm/internal/metaprompt"
6- "mm/internal/skills"
74 "os"
85 "path/filepath"
96 "sort"
107 "strings"
8+
9+ "mm/internal/command"
10+ "mm/internal/metaprompt"
11+ "mm/internal/skills"
1112 )
1213
1314 // choices returns what the popup offers, or nothing when it must stay shut.
@@ -1,13 +1,14 @@
1 package tui1 package tui
2 2
3 import (3 import (
4- "mm/internal/command"
5- "mm/internal/metaprompt"
6- "mm/internal/skills"
7 "os"4 "os"
8 "path/filepath"5 "path/filepath"
9 "sort"6 "sort"
10 "strings"7 "strings"
8+
9+ "mm/internal/command"
10+ "mm/internal/metaprompt"
11+ "mm/internal/skills"
11 )12 )
12 13
13 // choices returns what the popup offers, or nothing when it must stay shut.14 // choices returns what the popup offers, or nothing when it must stay shut.
modified internal/tui/question_draw.go +1 -0
@@ -2,6 +2,7 @@ package tui
22
33 import (
44 "fmt"
5+
56 "mm/internal/elicit"
67 )
78
@@ -2,6 +2,7 @@ package tui
2 2
3 import (3 import (
4 "fmt"4 "fmt"
5+
5 "mm/internal/elicit"6 "mm/internal/elicit"
6 )7 )
7 8
modified internal/tui/question_runner.go +1 -0
@@ -2,6 +2,7 @@ package tui
22
33 import (
44 "context"
5+
56 "mm/internal/elicit"
67 )
78
@@ -2,6 +2,7 @@ package tui
2 2
3 import (3 import (
4 "context"4 "context"
5+
5 "mm/internal/elicit"6 "mm/internal/elicit"
6 )7 )
7 8
modified internal/tui/turn_compact.go +1 -0
@@ -3,6 +3,7 @@ package tui
33 import (
44 "context"
55 "fmt"
6+
67 "mm/internal/compact"
78 "mm/internal/config"
89
@@ -3,6 +3,7 @@ package tui
3 import (3 import (
4 "context"4 "context"
5 "fmt"5 "fmt"
6+
6 "mm/internal/compact"7 "mm/internal/compact"
7 "mm/internal/config"8 "mm/internal/config"
8 9
modified internal/tui/turn_permissions.go +1 -0
@@ -2,6 +2,7 @@ package tui
22
33 import (
44 "context"
5+
56 "mm/internal/ui"
67 )
78
@@ -2,6 +2,7 @@ package tui
2 2
3 import (3 import (
4 "context"4 "context"
5+
5 "mm/internal/ui"6 "mm/internal/ui"
6 )7 )
7 8
modified tools_wiring.go +3 -2
@@ -3,6 +3,9 @@ package main
33 import (
44 "context"
55 "fmt"
6+ "os"
7+ "slices"
8+
69 "mm/internal/config"
710 "mm/internal/detector"
811 "mm/internal/engine"
@@ -12,8 +15,6 @@ import (
1215 "mm/internal/tools"
1316 "mm/internal/version"
1417 "mm/internal/webmd"
15- "os"
16- "slices"
1718
1819 "github.com/firebase/genkit/go/ai"
1920 )
@@ -3,6 +3,9 @@ package main
3 import (3 import (
4 "context"4 "context"
5 "fmt"5 "fmt"
6+ "os"
7+ "slices"
8+
6 "mm/internal/config"9 "mm/internal/config"
7 "mm/internal/detector"10 "mm/internal/detector"
8 "mm/internal/engine"11 "mm/internal/engine"
@@ -12,8 +15,6 @@ import (
12 "mm/internal/tools"15 "mm/internal/tools"
13 "mm/internal/version"16 "mm/internal/version"
14 "mm/internal/webmd"17 "mm/internal/webmd"
15- "os"
16- "slices"
17 18
18 "github.com/firebase/genkit/go/ai"19 "github.com/firebase/genkit/go/ai"
19 )20 )