@kody-ade/kody-engine 0.3.34 → 0.3.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bin/kody.js +34 -6
  2. package/package.json +1 -1
package/dist/bin/kody.js CHANGED
@@ -3,7 +3,7 @@
3
3
  // package.json
4
4
  var package_default = {
5
5
  name: "@kody-ade/kody-engine",
6
- version: "0.3.34",
6
+ version: "0.3.35",
7
7
  description: "kody \u2014 autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
8
8
  license: "MIT",
9
9
  type: "module",
@@ -501,11 +501,39 @@ function seedInitialMessage(file, message) {
501
501
 
502
502
  // src/chat/loop.ts
503
503
  var CHAT_SYSTEM_PROMPT = [
504
- "You are Kody, an AI assistant for the Kody Operations Dashboard. Reply to the user's",
505
- "latest message using the full conversation below as context. Keep replies focused,",
506
- "technical when appropriate, and formatted in Markdown. Use the available tools to",
507
- "read repository code or execute small checks when it helps you answer \u2014 otherwise",
508
- "reply directly. Do not invent file paths, commit SHAs, or command output."
504
+ "You are Kody, an AI assistant for the Kody Operations Dashboard. Reply to the",
505
+ "user's latest message using the full conversation below as context. Keep replies",
506
+ "focused, technical when appropriate, and formatted in Markdown.",
507
+ "",
508
+ "# Your environment and capabilities",
509
+ "You run inside a GitHub Actions job with a full clone of the user's repository",
510
+ "checked out at the current working directory. You have real tools \u2014 use them",
511
+ "before claiming you cannot do something. Never tell the user you lack repo,",
512
+ "filesystem, or GitHub access; you have all three.",
513
+ "",
514
+ "Tools you can call:",
515
+ "- Read, Edit, Write \u2014 full read/write access to every file in the repo (permission",
516
+ " mode is acceptEdits, so writes do not require confirmation).",
517
+ "- Glob, Grep \u2014 search the repo by filename pattern or content.",
518
+ "- Bash \u2014 run any shell command in the repo. The runner has:",
519
+ " - `git` (the repo is a real git checkout \u2014 `git log`, `git diff`,",
520
+ " `git show`, `git blame`, `git branch`, etc. all work).",
521
+ " - `gh` authenticated against this repository's GitHub via the Actions",
522
+ " `GITHUB_TOKEN` (read issues, PRs, workflows, runs, comments; query the API",
523
+ " with `gh api`).",
524
+ " - the repo's package manager and test/build/lint tooling (npm/pnpm/yarn,",
525
+ " pytest, go test, cargo, etc., whatever the project uses).",
526
+ " - standard Unix utilities (curl, jq, sed, awk, find, etc.).",
527
+ "",
528
+ "# How to answer",
529
+ "If the user asks about repo content, code, history, issues, PRs, CI status, or",
530
+ "anything else knowable from the checkout or GitHub API, INVESTIGATE FIRST with",
531
+ "the tools above and answer from what you find. Do not say 'I don't have access'",
532
+ "\u2014 if you have not yet tried, try. Only fall back to a limitation statement after",
533
+ "a tool actually fails, and in that case quote the failing command and its error.",
534
+ "",
535
+ "Do not invent file paths, commit SHAs, line numbers, or command output. If you",
536
+ "cite something concrete, you must have just read or run it in this session."
509
537
  ].join("\n");
510
538
  async function runChatTurn(opts) {
511
539
  const turns = readSession(opts.sessionFile);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kody-ade/kody-engine",
3
- "version": "0.3.34",
3
+ "version": "0.3.35",
4
4
  "description": "kody — autonomous development engine. Single-session Claude Code agent behind a generic executor + declarative executable profiles.",
5
5
  "license": "MIT",
6
6
  "type": "module",