Skip to content

Go implementation of DeepSeek Harness and self-hosted personal agent.

Go
4.1 KB
Raw Blame

Contributing

Branches and commits

Use main as the base for new work. Prefer a short topic branch for each change and open a pull request against main. Maintainers may push directly to main when appropriate.

Change Example branch Example commit or PR title
New feature feat/mobile-attachments feat(mobile): add chat attachments
Bug fix fix/subagent-test-workspace fix(host): use writable subagent test workspaces
Documentation docs/android-release docs(mobile): explain Android release signing
Build build/android-signing build(mobile): configure release signing
CI ci/docker-smoke ci(docker): smoke test the Compose stack

Use lowercase words separated by hyphens in branch names. For commits and PR titles, prefer type(scope): short summary. Pick a scope that names the main area, such as host, controller, web, mobile, or docker. Prefer an action verb in the summary. If there is no clear scope, use type: short summary. Use test, refactor, build, or chore when they describe the change better. For a breaking change, explain the impact and any migration steps in the PR. type(scope)!: or a BREAKING CHANGE: footer can also mark it in commit history.

Keep each commit focused on one logical change. Before committing, review the staged changes with git diff --cached and check them with git diff --cached --check. In the PR description, explain what changed and how you verified it. If squashing a PR, use its title as the final commit subject when it accurately describes the change.

These conventions are preferences. Use judgment when another name or message is clearer. They draw on Git's commit guidelines and Conventional Commits.

Coding agents

This guide defines the contribution conventions. AGENTS.md gives coding agents a short summary and points back here for details. Open the repository root as the workspace so the tool can discover its project files.

Tool How it reads this project's instructions
Codex, Cursor, OpenCode, Cline, Devin Local Read the root AGENTS.md directly.
Claude Code .claude/CLAUDE.md imports AGENTS.md, including for versions and settings that rely on CLAUDE.md.
Gemini CLI GEMINI.md imports AGENTS.md using the default project context filename.
GitHub Copilot Supported agent modes read AGENTS.md. .github/copilot-instructions.md also points Chat and review surfaces to the shared files.
Aider From the repository root, run aider --read AGENTS.md --read CONTRIBUTING.md to load both files as context.

Development and verification

Use Go 1.26. Run make test vet check; run race tests for concurrency changes and Docker integration for runtime changes. Normal tests must not require credentials, Redis or cloud infrastructure. Keep upstream fixtures and source notices intact.

Keep runtime orchestration in providers, external SDK/API calls in thirdparty, and Agent execution in harness. New providers need strict configuration, credential validation, cancellation and error tests. Do not expose SDK types in the public runtime contract. Never commit private environment profiles or generated tokens.

Document behavior changes, data compatibility and checks performed. Open an issue or describe a design before large protocol/format changes. Contributions to Go Bot are provided under the MIT License unless stated otherwise.