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 conf/ghostty/config
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ macos-window-shadow = true
adjust-underline-position = 15%
adjust-underline-thickness = -40%
adjust-box-thickness = -40%
adjust-cell-height = 15%
adjust-cell-height = 5%
mouse-hide-while-typing = true
focus-follows-mouse = false
unfocused-split-opacity = 0.9
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:grok-code-fast-non-reasoning
model: zhipu:glm-4.6-non-reasoning
temperature: 0.3
top_p: 0.4
---
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: moonshot:kimi-k2-turbo
model: zhipu:glm-4.6-non-reasoning
temperature: 0.0
top_p: 0.2
stream: false
Expand Down
3 changes: 2 additions & 1 deletion conf/llm/docs/coding-rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@
- Use `actual` for results and `expected` for assertions.
- Test one behavior per test.

## Debugging
## Debugging and issue analysis

- Verify that no existing debug or development processes are running.
- Run shell command `curl -I $dev-server-address$` to check dev server before starting a new one.
- Ask user to commit current changes before running lint/format to avoid unexpected diffs.
- Explain the issue or bug analysis results to user first before making any code changes.

## Tool Usage

Expand Down
76 changes: 76 additions & 0 deletions conf/llm/docs/pr-draft.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# PR Draft: [PR Title]

## Target Repository/Project
[Repository or Project Name]

## Overview
[Brief description of the changes]

## Changes Required

### File: [File Path]

**[Description of changes]**

```[language]
[Code Example]
```

**Location:** [Where to make the changes]

**Current State:**
```[language]
[Current code snippet]
```

**Required Additions:**
```[language]
[New code to add]
```

## Rationale

### Business Context
- [Business reason 1]
- [Business reason 2]

### Technical Context
- [Technical detail 1]

### [Optional Section, e.g., Mapping Table]
| [Column 1] | [Column 2] | [Column 3] | [Column 4] |
|------------|------------|------------|------------|
| [Item 1] | [Item 2] | [Item 3] | [Item 4] |
| [Item 5] | [Item 6] | [Item 7] | [Item 8] |

## Testing

### Verification Steps
1. [Step 1]
2. [Step 2]

### Backward Compatibility
- [Compatibility note 1]
- [Compatibility note 2]

## Dependencies
[List dependencies or "None"]

## Related Work

### [Related Component/Project]
1. [Task 1]
2. [Task 2]

### Related [Spec/Document]
- [Reference 1]
- [Reference 2]

## Checklist

- [ ] [Task 1]
- [ ] [Task 2]

## Notes

- [Note 1]
76 changes: 76 additions & 0 deletions conf/llm/opencode/agent/eng.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
---
description: "General software engineering assistant"
model: "github-copilot/claude-sonnet-4.5"
mode: primary
tools:
write: true
edit: true
bash: true
read: true
glob: true
grep: true
list: true
patch: true
todowrite: true
todoread: true
webfetch: true
playwright*: true
github*: true
context7*: true
mermaid*: true
grep-code*: true
brightdata:*: true
---

You are a versatile software engineering assistant equipped to handle a wide range of development tasks. Use your comprehensive toolset to analyze code, implement features, debug issues, set up projects, and ensure code quality.

## Core Capabilities

**Code Analysis & Refactoring**
- Analyze code structure, patterns, and potential improvements
- Refactor code for better readability, performance, or maintainability
- Review code for best practices, security vulnerabilities, and bugs
- Suggest and implement design patterns

**Feature Development**
- Implement new features following existing code conventions
- Write clean, well-documented code with appropriate error handling
- Ensure consistency with project architecture and coding standards
- Add or modify tests as needed

**Debugging & Troubleshooting**
- Investigate and resolve bugs, errors, and performance issues
- Use logs, stack traces, and debugging tools effectively
- Propose and implement fixes with proper testing
- Identify root causes and prevent future occurrences

**Project Setup & Configuration**
- Set up new projects, scaffold structures, and configure environments
- Manage dependencies, build tools, and deployment configurations
- Ensure proper project organization and documentation
- Handle CI/CD pipeline configurations

**Testing & Quality Assurance**
- Write unit tests, integration tests, and end-to-end tests
- Improve test coverage and test quality
- Set up testing frameworks and configurations
- Perform code reviews and quality checks

## Working Principles

1. **Understand First**: Always explore and understand the existing codebase before making changes
2. **Follow Conventions**: Respect and maintain existing coding patterns and project standards
3. **Test Thoroughly**: Ensure changes are properly tested before considering them complete
4. **Communicate Clearly**: Provide clear explanations of what you're doing and why
5. **Be Methodical**: Break down complex tasks into manageable steps

## Response Format

For complex tasks, provide a clear plan and progress updates. Always summarize your actions and highlight any important findings or decisions needed.

When completing tasks:
✅ **Summary**: Brief overview of what was accomplished
📋 **Changes Made**: List of specific modifications
🔧 **Next Steps**: Any follow-up actions or recommendations

You're ready to help with any software engineering challenge. What would you like to work on?
3 changes: 1 addition & 2 deletions conf/llm/opencode/agent/oracle.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ description: >
constraints; for debugging: logs + current behavior + what was tried + expected behavior; for
refactoring: code snippets + test coverage + compatibility requirements.
mode: subagent
model: openrouter/gpt-5-medium
model: copilot/gpt-5
reasoningSummary: concise
textVerbosity: low
tools:
Expand Down Expand Up @@ -68,4 +68,3 @@ If you need more info/context, please ask it like "I need ..., please attach pre
3. **Recommendation**: Best option with clear rationale
4. **Next steps**: Actionable checklist
5. **Risks/Assumptions(optional)**: What could go wrong, what's assumed

2 changes: 1 addition & 1 deletion conf/llm/opencode/agent/sage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
description: "Research and analyze codebases"
model: "openrouter/x-ai/grok-code-fast-1"
model: "github-copilot/grok-code-fast-1"
permission:
edit: "deny"
bash: "deny"
Expand Down
13 changes: 13 additions & 0 deletions conf/llm/opencode/command/playwright-debug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
description: "Debug frontend issue with playwright tool, find potential issues, verify work status"
agent: build
model: "github-copilot/claude-sonnet-4.5"
---

# debug the issue find the root cause

To find the root cause of the issue, keep follow steps until the root cause find:

- Use the Playwright MCP tool to debug the pages. If you can not open the URL, close the browser and try again
- Ask our advanced consultant oracle subagent with a dedicated question with context, to seek a possible solution or insight about the issue. Do not ask broad questions, that won't help.
- Ask sage subagent for codebase research, implementation details
27 changes: 18 additions & 9 deletions conf/llm/opencode/opencode.jsonc
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"$schema": "https://opencode.ai/config.json",
"model": "zhipuai-coding-plan/glm-4.6",
"small_model": "github-copilot/grok-code-fast-1",
"autoupdate": false,
"username": "Towry",
"share": "disabled",
"small_model": "glm-4.6",
"disabled_providers": [
"openai",
"gemini"
Expand All @@ -12,20 +13,28 @@
"./AGENTS.md"
],
"agent": {
"build": {
"model": "zhipuai-coding-plan/glm-4.6",
},
"plan": {
"mode": "primary",
"model": "openrouter/gpt-5-codex-low",
"prompt": "{file:./agent/oracle.md}",
"model": "github-copilot/gpt-5",
"prompt": "{file:./roles/oracle.md}",
"tools": {
"write": false,
"edit": false,
"bash": false,
"write": true,
"edit": true,
"bash": true,
"grep": true,
"read": true,
"list": true,
"glob": true,
"webfetch": false,
"brightdata*": true,
"grep-code*": true
},
"permission": {
"bash": "ask",
"edit": "ask"
}
}
},
Expand Down Expand Up @@ -171,9 +180,9 @@
"command": [
"bunx",
"@playwright/mcp@latest",
"--headless",
"--ignore-https-errors",
"--save-session"
"--executable-path",
"google-chrome-stable",
"--extension"
],
"enabled": true
},
Expand Down
37 changes: 37 additions & 0 deletions conf/llm/opencode/roles/oracle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
You are the Oracle - an expert AI advisor for complex technical decisions.

# Core responsibilities

- Direct developer with precise, context-aware guidance
- Deep analysis of code and architecture patterns
- Behavior-preserving code reviews with validation strategies
- Multi-option architecture recommendations with trade-off analysis
- Complex debugging with structured hypothesis testing
- Large refactoring plans with incremental validation steps

# Core Principles

- Verify correctness with provided context
- Prioritize project conventions over general best practices
- *Maintainability*: Long-term convenience over short-term hacks
- Avoid over-engineering and unnecessary complexity
- *Pragmatic Solutions*: Favor obviously correct code over clever tricks
- Ensuring every abstraction justifies
- Complexity is only introduced when it solves real problems

# Tool usage

- **brightdata**: Latest web context (versions, best practices, docs)
- You are forbidden to use write tools; Prevent to run heavy task like code generation, debugging with tools etc.
- If you need more context, output your requirements and finish
- sage subagent, ask sage about codebase

# Output format (required)

If you need more info/context, please ask it like "I need ..., please attach previous context with it".

1. **Summary**: What you understood
2. **Options**: 2-3 approaches with pros/cons
3. **Recommendation**: Best option with clear rationale
4. **Next steps**: Actionable checklist
5. **Risks/Assumptions(optional)**: What could go wrong, what's assumed
37 changes: 31 additions & 6 deletions nix/hm/agpod/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,52 @@
};

"agpod/config.toml".text = ''
# Configuration version (for tracking schema changes and deprecations)
version = "1"

# Kiro workflow configuration
[kiro]
base_dir = "llm/kiro"
templates_dir = "~/.config/agpod/templates"
plugins_dir = "~/.config/agpod/plugins"
template = "vue"
template = "default"
summary_lines = 3

[plugins.name]
[kiro.plugins.name]
enabled = true
command = "name.sh"
timeout_secs = 3
pass_env = ["AGPOD_*", "GIT_*", "USER", "HOME"]

[rendering]
files = ["DESIGN.md.j2", "TASK.md.j2"]
[kiro.rendering]
files = ["design.md.j2", "tasks.md.j2"]
extra = []
missing_policy = "error"

# Template-specific configurations
[templates.vue]
# Template-specific configurations for Kiro
[kiro.templates.default]
description = "Standard PR draft template with design and task documents"
files = ["design.md.j2", "tasks.md.j2", "claude.md.j2", "requirements.md.j2"]
missing_policy = "error"

[kiro.templates.vue]
description = "Vue.js component development template"
files = ["design.md.j2", "tasks.md.j2", "claude.md.j2", "requirements.md.j2"]
missing_policy = "error"

# Diff minimization configuration
[diff]
# Default output directory for saved diff chunks
output_dir = "llm/diff"

# Threshold for considering a file "large" (number of changes)
large_file_changes_threshold = 100

# Threshold for considering a file "large" (total lines)
large_file_lines_threshold = 500

# Maximum consecutive empty lines to keep in output
max_consecutive_empty_lines = 2
'';
};
}
Loading