Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
2c89665
feat: add AUTOCOMPLETE_UNIQUE_SUGGESTION_SHOWN telemetry event
markijbema Dec 11, 2025
0709b24
refactor: track unique suggestions in cache instead of separate Set
markijbema Dec 11, 2025
c4e583c
Add tests for isFirstTimeShown tracking in findMatchingSuggestion
markijbema Dec 11, 2025
411d811
Simplify unique suggestion tracking - mark shown directly in cache
markijbema Dec 11, 2025
3539f92
Add minimum visibility duration filter for unique suggestion telemetry
markijbema Jan 5, 2026
b7187aa
fix: use timeout-based visibility tracking for unique suggestion tele…
markijbema Jan 5, 2026
4d67289
debug: add logging to visibility tracking to diagnose duplicate telem…
markijbema Jan 5, 2026
ded8eea
debug: use 🔍VISTRK prefix for easier filtering
markijbema Jan 5, 2026
4c22975
Remove dead isFirstTimeShown code from autocomplete telemetry
markijbema Jan 5, 2026
52c8179
remove useless spec
markijbema Jan 5, 2026
bdfe308
minor restructure
markijbema Jan 5, 2026
e83c30a
docs: Add comprehensive AGENTS.md documentation page
kiloconnect[bot] Jan 5, 2026
be382f4
fix: update suggestionKey when truncating to first line in applyFirst…
markijbema Jan 6, 2026
7121523
Remove VISTRK debug logging statements
markijbema Jan 6, 2026
adbf6a8
Move visibility tracking to AutocompleteTelemetry class
markijbema Jan 6, 2026
f3ca5b5
remove comment
markijbema Jan 6, 2026
0c4e527
less comments
markijbema Jan 6, 2026
1d2e56f
cleanup timeout code
markijbema Jan 6, 2026
5330980
fix memory leak
markijbema Jan 6, 2026
30b6290
Merge branch 'main' into mark/unique-suggestion-shown-telemetry
markijbema Jan 6, 2026
a4c9a96
refactor: pass FillInAtCursorSuggestion to telemetry instead of strin…
markijbema Jan 6, 2026
c04bba4
clean up comments
markijbema Jan 6, 2026
c1a32b1
Merge pull request #4383 from Kilo-Org/mark/unique-suggestion-shown-t…
markijbema Jan 6, 2026
b135601
changeset version bump
github-actions[bot] Jan 6, 2026
c0b66cf
Merge pull request #4771 from Kilo-Org/changeset-release/main
chrarnoldus Jan 6, 2026
e29d6da
Revert "docs: update code review docs to clarify fork PRs"
emilieschario Jan 6, 2026
b2c60bd
Remove invalid changesets (#4814)
kiloconnect[bot] Jan 6, 2026
116e75f
Allow null for tool arguments
chrarnoldus Jan 6, 2026
9f50f83
Fix link
chrarnoldus Jan 6, 2026
e90a05e
Merge branch 'main' into christiaan/null
chrarnoldus Jan 6, 2026
ac1d9a6
when typing into it was counting each letter as a suggestion
markijbema Jan 6, 2026
1530050
Changeset
chrarnoldus Jan 6, 2026
92affeb
fix: update test to match new telemetry behavior
markijbema Jan 6, 2026
845ba3c
Remove practical examples and guidelines from agents-md.md
alexkgold Jan 6, 2026
9111153
Merge pull request #4816 from Kilo-Org/mark/fix-telemetry
markijbema Jan 6, 2026
80b18e5
Edit agents md file
alexkgold Jan 6, 2026
1ee82ca
Merge pull request #4813 from Kilo-Org/revert-4753-docs/update-code-r…
emilieschario Jan 6, 2026
bf89c48
Migrate worktree and git logic from CLI to agent manager (#4643)
marius-kilocode Jan 6, 2026
2d8f5b4
feat(cli): add --append-system-prompt option (#4810)
kiloconnect[bot] Jan 6, 2026
dba5e81
Reorganize Skills documentation
lambertjosh Jan 6, 2026
7713a26
Merge pull request #4815 from Kilo-Org/christiaan/null
chrarnoldus Jan 6, 2026
c043220
Merge pull request #4804 from Kilo-Org/docs/agents-md-documentation
alexkgold Jan 6, 2026
5611131
Merge pull request #4820 from Kilo-Org/lambertjosh-patch-4
lambertjosh Jan 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/agent-manager-dropdown-ux.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/agent-manager-question-support.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/agents-md-documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

Add comprehensive AGENTS.md documentation page to Agent Behavior section
6 changes: 6 additions & 0 deletions .changeset/append-system-prompt-cli.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@kilocode/cli": patch
"kilo-code": patch
---

Add `--append-system-prompt` CLI option to append custom instructions to the system prompt
5 changes: 0 additions & 5 deletions .changeset/calm-stars-join.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/clear-hoops-melt.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-api-request-cost-updates.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-condense-command.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-esc-cancellation-feedback.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/cli-formatting-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/cli-slash-command-default-selection.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-cli-auto-update-nosplash.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-mac-exit-message.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/log-file-rotation.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mode-autocomplete.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/slimy-pens-check.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/stupid-mayflies-pay.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": patch
---

Allow null for tool arguments
5 changes: 0 additions & 5 deletions .changeset/thirty-rocks-shave.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/worktree-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kilo-code": minor
---

Migrate worktree creation from CLI to extension for parallel mode sessions
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# kilo-code

## 4.142.0

### Minor Changes

- [#4587](https://github.com/Kilo-Org/kilocode/pull/4587) [`d1c35c5`](https://github.com/Kilo-Org/kilocode/commit/d1c35c54c253b22a264ee4ce90fd25f5d93343da) Thanks [@hassoncs](https://github.com/hassoncs)! - Improve the initial setup experience for the speech-to-text feature by adding an inline setup tooltip

### Patch Changes

- [#4785](https://github.com/Kilo-Org/kilocode/pull/4785) [`acc529e`](https://github.com/Kilo-Org/kilocode/commit/acc529e884be601d635ad9e714a0f3b2a4e9b639) Thanks [@markijbema](https://github.com/markijbema)! - Removed the cmd-i (quick inline task) functionality, as cmd-k-a (add to context) is now equivalent

- [#4765](https://github.com/Kilo-Org/kilocode/pull/4765) [`725b0bc`](https://github.com/Kilo-Org/kilocode/commit/725b0bc56d1262b9e847861db86a3609c40479d9) Thanks [@Drilmo](https://github.com/Drilmo)! - Fixed exit prompt showing "Cmd+C" instead of "Ctrl+C" on Mac. Ctrl+C is the universal terminal interrupt signal on all platforms.

- [#4787](https://github.com/Kilo-Org/kilocode/pull/4787) [`84033fa`](https://github.com/Kilo-Org/kilocode/commit/84033fa3015a757b358cc4799308b8209646ec5e) Thanks [@markijbema](https://github.com/markijbema)! - Keep config screen in sync with whether chat autocomplete is enabled

- [#4800](https://github.com/Kilo-Org/kilocode/pull/4800) [`c089dc2`](https://github.com/Kilo-Org/kilocode/commit/c089dc2351daefe7690adf1a3f01cc8b82a27409) Thanks [@hassoncs](https://github.com/hassoncs)! - Add fuzzy matching to / commands

## 4.141.2

### Patch Changes
Expand Down
46 changes: 35 additions & 11 deletions apps/kilocode-docs/docs/advanced-usage/agent-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,43 @@ You can continue a session later (local or remote):

Parallel Mode runs the agent in an isolated Git worktree branch, keeping your main branch clean.

- Enable the Parallel Mode toggle before starting
- Enable the "Parallel Mode" toggle before starting
- The extension prevents using Parallel Mode inside an existing worktree
- Open the main repository (where .git is a directory) to use this feature
- While running, the Agent Manager parses and surfaces:
- Branch name created/used
- Worktree path
- A completion/merge instruction message when the agent finishes
- After completion
- Review the branch in your VCS UI
- Merge or cherry-pick the changes as desired
- Clean up the worktree when finished

If you need to resume with Parallel Mode later, the extension re-attaches to the same session with the same branch context.

### Worktree Location

Worktrees are created in `.kilocode/worktrees/` within your project directory. This folder is automatically added to `.gitignore` to prevent accidental commits.

```
your-project/
├── .kilocode/
│ └── worktrees/
│ └── feature-branch-1234567890/ # isolated working directory
├── .gitignore # auto-updated with .kilocode/worktrees/
└── ...
```

### While Running

The Agent Manager surfaces:

- Branch name created/used
- Worktree path
- A completion/merge instruction message when the agent finishes

### After Completion

- The worktree is cleaned up automatically, but the branch is preserved
- Review the branch in your VCS UI
- Merge or cherry-pick the changes as desired

### Resuming Sessions

If you resume a Parallel Mode session later, the extension will:

1. Reuse the existing worktree if it still exists
2. Or recreate it from the session's branch

## Remote sessions (Cloud)

Expand Down
1 change: 0 additions & 1 deletion apps/kilocode-docs/docs/advanced-usage/code-reviews.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,5 +159,4 @@ The Review Agent is ideal for:
- The agent reviews **only the changed files**, not the entire repository.
- Some highly dynamic or domain-specific code may require additional context in custom instructions.
- The agent will only run on **selected repositories**.
- **PRs from forks are not supported**. Only pull requests from branches within the same repository can be automatically reviewed.
- During beta, review capacity may be throttled for extremely large PRs.
154 changes: 154 additions & 0 deletions apps/kilocode-docs/docs/agent-behavior/agents-md.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,154 @@
# AGENTS.md Files

AGENTS.md files provide a standardized way to configure AI agent behavior across different AI coding tools. They allow you to define project-specific instructions, coding standards, and guidelines that AI agents should follow when working with your codebase.

## What is AGENTS.md?

AGENTS.md is an open standard for configuring AI agent behavior in software projects. It's a simple Markdown file placed at the root of your project that contains instructions for AI coding assistants. The standard is supported by multiple AI coding tools, including Kilo Code, Cursor, and Windsurf.

Think of AGENTS.md as a "README for AI agents" - it tells the AI how to work with your specific project, what conventions to follow, and what constraints to respect.

## Why Use AGENTS.md?

- **Portability**: Works across multiple AI coding tools without modification
- **Version Control**: Lives in your repository alongside your code
- **Team Consistency**: Ensures all team members' AI assistants follow the same guidelines
- **Project-Specific**: Tailored to your project's unique requirements and conventions
- **Simple Format**: Plain Markdown - no special syntax or configuration required

## File Location and Naming

### Project-Level AGENTS.md

Place your AGENTS.md file at the **root of your project**:

```
my-project/
├── AGENTS.md # Primary filename (recommended)
├── src/
├── package.json
└── README.md
```

**Supported filenames** (in order of precedence):

1. `AGENTS.md` (uppercase, plural - recommended)
2. `AGENT.md` (uppercase, singular - fallback)

:::warning Case Sensitivity
The filename must be uppercase (`AGENTS.md`), not lowercase (`agents.md`). This ensures consistency across different operating systems and tools.
:::

### Subdirectory AGENTS.md Files

You can also place AGENTS.md files in subdirectories to provide context-specific instructions:

```
my-project/
├── AGENTS.md # Root-level instructions
├── src/
│ └── backend/
│ └── AGENTS.md # Backend-specific instructions
└── docs/
└── AGENTS.md # Documentation-specific instructions
```

When working in a subdirectory, Kilo Code will load both the root AGENTS.md and any subdirectory AGENTS.md files, with subdirectory files taking precedence for conflicting instructions.

## File Protection

Both `AGENTS.md` and `AGENT.md` are **write-protected files** in Kilo Code. This means:

- The AI agent cannot modify these files without explicit user approval
- You'll be prompted to confirm any changes to these files
- This prevents accidental modifications to your project's AI configuration

## Basic Syntax and Structure

AGENTS.md files use standard Markdown syntax. There's no required structure, but organizing your content with headers and lists makes it easier for AI models to parse and understand.

### Recommended Structure

```markdown
# Project Name

Brief description of the project and its purpose.

## Code Style

- Use TypeScript for all new files
- Follow ESLint configuration
- Use 2 spaces for indentation

## Architecture

- Follow MVC pattern
- Keep components under 200 lines
- Use dependency injection

## Testing

- Write unit tests for all business logic
- Maintain >80% code coverage
- Use Jest for testing

## Security

- Never commit API keys or secrets
- Validate all user inputs
- Use parameterized queries for database access
```

## Best Practices

- **Be specific and clear** - Use concrete rules like "limit cyclomatic complexity to < 10" instead of vague guidance like "write good code"
- **Include code examples** - Show patterns for error handling, naming conventions, or architecture decisions
- **Organize by category** - Group related guidelines under clear headers (Code Style, Architecture, Testing, Security)
- **Keep it concise** - Use bullet points and direct language; avoid long paragraphs
- **Update regularly** - Review and revise as your project's conventions evolve

## How AGENTS.md Works in Kilo Code

### Loading Behavior

When you start a task in Kilo Code:

1. Kilo Code checks for `AGENTS.md` or `AGENT.md` at the project root
2. If found, the content is loaded and included in the AI's context
3. The AI follows these instructions throughout the conversation
4. Changes to AGENTS.md take effect in new tasks (reload may be required)

### Interaction with Other Rules

AGENTS.md works alongside Kilo Code's other configuration systems:

| Feature | Scope | Location | Purpose | Priority |
| -------------------------------------------------------------- | ------- | ------------------------- | ------------------------------------------ | ----------- |
| **[Mode-specific Custom Rules](/agent-behavior/custom-rules)** | Project | `.kilocode/rules-{mode}/` | Mode-specific rules and constraints | 1 (Highest) |
| **[Custom Rules](/agent-behavior/custom-rules)** | Project | `.kilocode/rules/` | Kilo Code-specific rules and constraints | 2 |
| **AGENTS.md** | Project | Project root or subfolder | Cross-tool standard for project guidelines | 3 |
| **[Global Custom Rules](/agent-behavior/custom-rules)** | Global | `~/.kilocode/rules/` | Global Kilo Code rules | 4 |
| **[Custom Instructions](/agent-behavior/custom-instructions)** | Global | IDE settings | Personal preferences across all projects | 5 (Lowest) |

### Enabling/Disabling AGENTS.md

AGENTS.md support is **enabled by default** in Kilo Code. To disable it, edit `settings.json`:

```json
{
"kilocode.useAgentRules": false
}
```

## Related Features

- **[Custom Rules](/agent-behavior/custom-rules)** - Kilo Code-specific rules with more control
- **[Custom Modes](/agent-behavior/custom-modes)** - Specialized workflows with specific permissions
- **[Custom Instructions](/agent-behavior/custom-instructions)** - Personal preferences across all projects
- **[Migrating from Cursor or Windsurf](/advanced-usage/migrating-from-cursor-windsurf)** - Migration guide for other tools

## External Resources

- [AGENTS.md Specification](https://agents.md) - Official standard documentation
- [dotagent](https://github.com/johnlindquist/dotagent) - Universal converter tool for agent configuration files
- [awesome-cursorrules](https://github.com/PatrickJS/awesome-cursorrules) - 700+ example rules you can adapt
Loading