Contributing to Keen Code¶
Thank you for contributing. This project records human-AI interactions that shapes the codebase. When you work on an issue, you must preserve the prompts you send and the outputs the agent produces so the development history stays complete and transparent.
Running Locally¶
This project is built with Go. To run it locally, ensure you have Go installed on your system.
-
Install Go dependencies:
go mod download go mod tidy -
Run the application:
go run cmd/main.go -
Run the tests to ensure everything is working:
go test ./...
Prerequisites¶
- You need to have access to at least one AI coding agent
- All PRs must be written by an AI agent
- All prompts must be written by a human
- Prompts and output docs are critical for the development history so they must be saved as outlined in this document
Where to save task files¶
Save everything under .ai-interactions/tasks/.
Folder per issue¶
Every issue gets its own folder under .ai-interactions/tasks/<issue-name>/.
Follow the naming convention for prompt and output files:
prompt-1_that-feature.mdoutput-1_plan-for-that-feature.md
What to include¶
- Prompts — every message or instruction you send to the agent that was needed to implement the issue
- Outputs — every plan, design doc, code review, or task breakdown the agent returns
Do not edit outputs after the agent produces them. Save them as-is.
Example¶
.ai-interactions/
└── tasks/
├── issue-5/
│ └── prompt-1_issue-5-feature.md
│ └── output-1_plan-for-issue-5-feature.md
└── issue-42/
├── prompt-1_issue-42-feature.md
├── output-1_plan-for-issue-42-feature.md
├── prompt-2_issue-42-feature.md
└── output-2_plan-for-issue-42-feature.md
Workflow¶
- Open or create a GitHub issue describing the bug or feature.
- Work with the agent iteratively. Save each turn.
- Place the final prompts and outputs in
.ai-interactions/tasks/following the rules above. - Open a pull request that includes both the code changes and the task files.