Go implementation of DeepSeek Harness and self-hosted personal agent.
Go
docs(contributing): document branch and commit conventions
xyc8ac13e5a2599
diff --git a/.claude/CLAUDE.md b/.claude/CLAUDE.mdnew file mode 100644index 0000000..dba71e9--- /dev/null+++ b/.claude/CLAUDE.md@@ -0,0 +1 @@+@../AGENTS.mddiff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.mdnew file mode 100644index 0000000..4409695--- /dev/null+++ b/.github/copilot-instructions.md@@ -0,0 +1,5 @@+# Go Harness repository instructions++Read [AGENTS.md](../AGENTS.md) for project defaults and+[CONTRIBUTING.md](../CONTRIBUTING.md#branches-and-commits) before preparing+branches, commits, or pull requests.diff --git a/AGENTS.md b/AGENTS.mdnew file mode 100644index 0000000..96a7215--- /dev/null+++ b/AGENTS.md@@ -0,0 +1,17 @@+# Go Harness agent instructions++Before creating a branch, preparing a commit, or opening a pull request, read+the [contribution guide](CONTRIBUTING.md#branches-and-commits). Apply these defaults+when the user has not specified a different workflow:++- Start new work from `main` on a topic branch such as `feat/mobile-attachments`,+ `fix/subagent-test-workspace`, or `docs/android-release`.+- Prefer `type(scope): short summary` for commit and pull request titles. Use+ `feat` for features, `fix` for bug fixes, and `docs` for documentation changes.+ Omit the scope when there is no clear area.+- Keep unrelated changes in separate commits. Review the staged diff and record+ relevant verification in the pull request.++These are project preferences. Follow an explicitly requested branch, commit+message, or push target. The [contribution guide](CONTRIBUTING.md) also covers+project structure and verification.diff --git a/CONTRIBUTING.md b/CONTRIBUTING.mdindex 3016a49..6f799ce 100644--- a/CONTRIBUTING.md+++ b/CONTRIBUTING.md@@ -1,5 +1,53 @@# 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](https://git-scm.com/book/en/v2/Distributed-Git-Contributing-to-a-Project#_commit_guidelines)+and [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).++## Coding agents++This guide defines the contribution conventions. [AGENTS.md](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](https://learn.chatgpt.com/docs/agent-configuration/agents-md), [Cursor](https://cursor.com/docs/rules), [OpenCode](https://opencode.ai/docs/instructions/), [Cline](https://docs.cline.bot/customization/cline-rules), [Devin Local](https://docs.devin.ai/desktop/devin-local/customizations) | Read the root `AGENTS.md` directly. |+| [Claude Code](https://code.claude.com/docs/en/memory) | [`.claude/CLAUDE.md`](.claude/CLAUDE.md) imports `AGENTS.md`, including for versions and settings that rely on `CLAUDE.md`. |+| [Gemini CLI](https://geminicli.com/docs/cli/gemini-md/) | [`GEMINI.md`](GEMINI.md) imports `AGENTS.md` using the default project context filename. |+| [GitHub Copilot](https://docs.github.com/en/copilot/reference/custom-instructions-support) | Supported agent modes read `AGENTS.md`. [`.github/copilot-instructions.md`](.github/copilot-instructions.md) also points Chat and review surfaces to the shared files. |+| [Aider](https://aider.chat/docs/usage/conventions.html) | 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 andDocker integration for runtime changes. Normal tests must not require credentials,Redis or cloud infrastructure. Keep upstream fixtures and source notices intact.diff --git a/GEMINI.md b/GEMINI.mdnew file mode 100644index 0000000..285e0f5--- /dev/null+++ b/GEMINI.md@@ -0,0 +1 @@+@./AGENTS.md