Skip to content

feat: code-aware worker — reads repo, calls LLM, commits changes - #11

Merged
davidminin merged 1 commit into
mainfrom
feat/code-aware-worker
Apr 19, 2026
Merged

feat: code-aware worker — reads repo, calls LLM, commits changes#11
davidminin merged 1 commit into
mainfrom
feat/code-aware-worker

Conversation

@davidminin

Copy link
Copy Markdown
Owner
  • worker/src/llm.ts: LLM client (Ollama → cloud → portal fallback)
  • worker/src/github.ts: GitHub API client (read files, tree, branch, commit)
  • worker/src/codegen.ts: code generation engine (requirement → LLM → file changes)
  • worker/src/index.ts: upgraded task handlers (code-gen, feedback, review)
  • worker/.env.example: added GITHUB_TOKEN, GITHUB_REPO, LLM vars

The worker can now receive a natural language requirement, read the relevant repo files for context, call an LLM to generate code changes, and commit them back to a branch. This is the engine behind the phone dev loop.

Pull Request

Summary

  • What changed?
  • Why now?

Test Plan

  • Relevant tests added/updated
  • Local validation executed (tests/lint/type checks as applicable)

AI Context And Policy Checks

  • If behavior/process/architecture changed, I updated AGENTS.md and/or .ai/skills/*/SKILL.md
  • New or changed team expectations are reflected in .ai/skills/INDEX.md when needed
  • No secrets or sensitive values were added to code, docs, logs, or examples

Risks / Rollback

  • Known risks:
  • Rollback approach:

- worker/src/llm.ts: LLM client (Ollama → cloud → portal fallback)
- worker/src/github.ts: GitHub API client (read files, tree, branch, commit)
- worker/src/codegen.ts: code generation engine (requirement → LLM → file changes)
- worker/src/index.ts: upgraded task handlers (code-gen, feedback, review)
- worker/.env.example: added GITHUB_TOKEN, GITHUB_REPO, LLM vars

The worker can now receive a natural language requirement, read the relevant
repo files for context, call an LLM to generate code changes, and commit
them back to a branch. This is the engine behind the phone dev loop.
@davidminin
davidminin merged commit 7fd39fe into main Apr 19, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant