Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ This configuration includes setup for:

- **Neovim** - Text editor with extensive configuration
- **Git** - Version control with custom aliases and configuration
- **Jj** - Modern version control system (alternative to Git)
- **JJ** - Modern version control system (alternative to Git)
- **Lazygit** - Terminal UI for Git
- **Rust** - Rust programming language toolchain
- **Node.js** - JavaScript runtime with fnm, pnpm, and other frontend tools
Expand Down
30 changes: 30 additions & 0 deletions conf/bash/scripts/goose-run-plan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/usr/bin/env bash

# Script to run Goose with a specified plan file
# Usage: goose-run-plan.sh <plan-file.md>

set -euo pipefail

# Check if plan file is provided
if [ "$#" -eq 0 ]; then
echo "Error: No plan file specified"
echo "Usage: $0 <plan-file.md>"
exit 1
fi

PLAN_FILE="$1"

# Verify plan file exists
if [ ! -f "$PLAN_FILE" ]; then
echo "Error: Plan file '$PLAN_FILE' not found"
exit 1
fi

# Check if file has .md extension
if [[ "$PLAN_FILE" != *.md ]]; then
echo "Warning: Plan file should have .md extension"
fi

# Run Goose with the plan file
echo "Running Goose with plan file: $PLAN_FILE"
goose run -s -i "$PLAN_FILE"
1 change: 1 addition & 0 deletions conf/fish/shellcompl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
The file name must match with the command name.
4 changes: 4 additions & 0 deletions conf/fish/shellcompl/goose-run-plan.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Fish completion for goose-run-plan
# Provides completion with .md files using fd

complete -c goose-run-plan -f -a '(fd --type f --extension md | string replace -r ".*/" "")' -d "Markdown plan file"
2 changes: 1 addition & 1 deletion conf/ghostty/config
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/ghostty-org/ghostty/blob/b8ffee7acbdd5ee97953f6e6d02e047d4bfda37b/src/input/key.zig#L255


theme = dark:kanagawa-dragon-dark,light:Builtin Pastel Light
theme = dark:kanagawa-dragon-dark,light:Builtin Solarized Light
font-family = "Berkeley Mono"
window-title-font-family = "PT Sans"
font-feature = "+calt"
Expand Down
2 changes: 1 addition & 1 deletion conf/llm/aichat/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# model: deepseek:deepseek-chat
model: openrouter:anthropic/claude-3.7-sonnet
model: openrouter:anthropic/claude-3.7-sonnet:floor
keybindings: vi
function_calling: true
stream: true
Expand Down
2 changes: 1 addition & 1 deletion conf/llm/aichat/roles/gen-prompt.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
model: openrouter:anthropic/claude-3.7-sonnet
model: openrouter:anthropic/claude-sonnet-4:floor
temperature: 0.1
top_p: 0.2
---
Expand Down
2 changes: 1 addition & 1 deletion conf/llm/aichat/roles/git-branch.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
model: openrouter:anthropic/claude-3.7-sonnet
model: openrouter:google/gemini-2.5-flash-preview-05-20
temperature: 0
top_p: 0.1
---
Expand Down
2 changes: 1 addition & 1 deletion conf/llm/aichat/roles/git-commit.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
model: openrouter:anthropic/claude-3.7-sonnet
model: openrouter:google/gemini-2.5-flash-preview-05-20
temperature: 0
top_p: 0.3
---
Expand Down
9 changes: 4 additions & 5 deletions conf/llm/docs/coding-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,10 @@

### Notion Note Management
- **Auto-save workflow**: When the user says "save notion note", "save to notion", or similar requests, automatically:
1. Check if you are able to access the notion mcp tools, if not, return an error message
2. Summarize the previous answer or conversation context into a clear, well-structured note
3. Use the known "Quick Notes" page ID (`216edc511d028016b21ee00eace33af7`) to create a new page directly under it
4. Format the content using Notion-flavored Markdown for better readability
5. Include a descriptive title based on the topic discussed
1. Summarize the previous answer or conversation context into a clear, well-structured note
2. Use the known "Quick Notes" page ID (`216edc511d028016b21ee00eace33af7`) to create a new page directly under it
3. Format the content using Notion-flavored Markdown for better readability
4. Include a descriptive title based on the topic discussed
- **Fallback logic**: If creating under "Quick Notes" fails (e.g., page doesn't exist or access denied):
1. Search for "Quick Notes" page using notion mcp tools as backup
2. If search also fails, create pages as workspace-level private pages
Expand Down
30 changes: 22 additions & 8 deletions conf/llm/goose/config.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
GOOSE_PLANNER_PROVIDER: openrouter
GOOSE_PLANNER_MODEL: anthropic/claude-opus-4
GOOSE_LEAD_MODEL: anthropic/claude-sonnet-4
GOOSE_PLANNER_MODEL: anthropic/claude-sonnet-4:floor
GOOSE_LEAD_MODEL: anthropic/claude-3.7-sonnet:floor
GOOSE_MODE: auto
GOOSE_PROVIDER: openrouter
GOOSE_MODEL: google/gemini-2.5-pro-preview-06-05
GOOSE_TOOLSHIM: true
# GOOSE_MODEL: google/gemini-2.5-pro-preview-06-05
## Worker that supports tools
GOOSE_MODEL: deepseek/deepseek-chat-v3-0324
GOOSE_TOOLSHIM: false
GOOSE_TOOLSHIM_OLLAMA_MODEL: mistral-nemo
## lead-worker
GOOSE_LEAD_FAILURE_THRESHOLD: 1
GOOSE_LEAD_TURNS: 3
GOOSE_LEAD_FAILURE_THRESHOLD: 3
GOOSE_LEAD_TURNS: 2
# how many turns to fallback to retry the worker model.
GOOSE_LEAD_FALLBACK_TURNS: 2
GOOSE_LEAD_FALLBACK_TURNS: 1
## Smart context management
GOOSE_CONTEXT_STRATEGY: summarize
GOOSE_CLI_MIN_PRIORITY: 0.4
Expand All @@ -36,6 +38,13 @@ extensions:
name: tutorial
timeout: 500
type: builtin
computercontroller:
bundled: true
display_name: Computer Controller
enabled: true
name: computercontroller
timeout: 600
type: builtin
## MCPs
context7:
args:
Expand All @@ -44,12 +53,13 @@ extensions:
cmd: bunx
description: Connects to Context7.com's documentation database to provide up-to-date library and framework documentation with intelligent project ranking and customizable token limits.
enabled: true
display_name: Context7
name: context7
timeout: 300
type: stdio
notion:
type: stdio
display_name: notion
display_name: Notion
name: notion
timeout: 900
enabled: true
Expand Down Expand Up @@ -82,11 +92,14 @@ extensions:
args:
- "@modelcontextprotocol/server-filesystem"
- "/Users/towry/workspace"
- "/Users/towry/.dotfiles"
- "/Users/towry/.config/nvim"
bundled: false
cmd: bunx
description: Access the local filesystem.
enabled: true
name: fs
display_name: FileSystem Tool
timeout: 400
type: stdio
github-mcp-server:
Expand All @@ -112,5 +125,6 @@ extensions:
envs:
BRAVE_API_KEY: "@BRAVE_API_KEY@"
name: brave-search
display_name: Brave Search
timeout: 800
type: stdio
2 changes: 1 addition & 1 deletion nix/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ let
username
;
useGlobalPkgs = true;
theme = pkgs.callPackage ../lib/theme.nix { theme = "dracula"; };
theme = pkgs.callPackage ../lib/theme.nix { theme = "kanagawa"; };
};
}
] ++ modules;
Expand Down
2 changes: 1 addition & 1 deletion nix/darwin/vars.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
git-town = {
enable = true;
};
editor = "vim";
editor = "nvim";
};
}
8 changes: 7 additions & 1 deletion nix/hm/ai.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ in
BRAVE_API_KEY = pkgs.nix-priv.keys.braveSearch.apiKey;
};
};
"goose/.goosehint" = {
"goose/.goosehints" = {
source = ../../conf/llm/docs/coding-rules.md;
};
};
Expand All @@ -73,5 +73,11 @@ in
OPENROUTER_API_KEY = pkgs.nix-priv.keys.openrouter.apiKey;
};
};
"goose-run-plan" = {
enable = true;
source = ../../conf/bash/scripts/goose-run-plan.sh;
target = ".local/bin/goose-run-plan";
executable = true;
};
};
}