main.go is the entrypoint and starts the terminal application from src/app. Feature code is split by package under src/: notes, password, pages, settings, gdrive, and shared helpers in helpers.
go build -o koko-tools: build the desktop binary at the repository root../koko-tools: run the app locally after building.go test ./...: run all Go tests.gofmt -w main.go $(find src -name '*.go'): format Go sources before committing.make build: build the normal desktop binary.make test: run the full Go test suite.
For feature work, behavioral changes, and non-trivial fixes, follow docs/agent-development-workflow.md. Use .agents/planner.md to create the accepted plan, .agents/coder.md to implement it, .agents/reviewer.md for iterative code review, and .agents/done-auditor.md to confirm the final work matches the plan. Every review finding must be fixed or explicitly waived before the task is considered done.
Planning agents must use the latest available model. Coding, review, and done-audit agents should use GPT-5.5 when the work is well-scoped and GPT-5.5 is suitable for its complexity and risk; use the latest available model for unusually complex, ambiguous, security-sensitive, or high-risk work. If the preferred model is unavailable, use the strongest available fallback and record the substitution in the task record.
Use standard Go formatting with tabs and let gofmt own layout. Keep packages lowercase (src/settings, src/app) and exported identifiers in PascalCase. Prefer short, focused files inside the feature package instead of large cross-package helpers. Code should remain human-readable and maintainable. When working in an existing file, refactor it as needed to improve readability, structure, and maintainability instead of only adding the minimum change. Do not use emoji in code, comments, commit messages, pull requests, or repository documentation.
Every code change must include or update automated tests unless the change is purely non-functional documentation. Write table-driven tests with the Go testing package in *_test.go files next to the code they cover. Favor package-level unit tests for helpers and settings logic. Run go test ./... before opening a pull request.
- The user authorizes all development work under
/home/koko/Projectswithout additional confirmation; mandatory environment restrictions still apply. - Always create a new feature or task branch before making development changes; do not develop directly on the main branch.
- The user authorizes development commands, commits, pushing task branches to GitHub, and creating pull requests without additional confirmation.
- The user reviews and approves pull requests personally. Do not merge pull requests or push directly to the main branch without explicit permission.
- Ask for permission before installing software or publishing changes to the main branch. Mandatory environment approval requirements still apply.
Recent history mixes short messages (small changes to notes) with clearer prefixes (feat: finished about section, fix window decoration). Prefer imperative, scoped commits such as feat: add Google Drive sync toggle or fix: back up settings on read failure. Keep pull requests focused and include:
- a short summary of behavior changes
- linked issue or task, if one exists
- screenshots or a brief UI note for visible terminal UI changes
- confirmation that
go buildandgo test ./...were run
The app creates its config directory under the user home directory at startup. Changes to settings, file paths, or Google Drive integration should handle missing directories and read failures safely.