Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 2 additions & 1 deletion src/kimi_cli/soul/kimisoul.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,8 @@ async def _ensure_initial_system_messages(self) -> None:
"Markdown files named `AGENTS.md` usually contain the background, structure, "
"coding styles, user preferences, and other relevant information about the project. "
"Use this information to understand the project context. The following content is the "
f"current `{md_path}`:")
f"current `{md_path}`:"
)
payload = f"{message}\n\n---\n{self._runtime.agents_md}\n---"
await self._context.append_message(
Message(
Expand Down
14 changes: 1 addition & 13 deletions tests/test_default_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,7 @@ async def test_default_agent(runtime: Runtime):

## Date and Time

The current date and time in ISO format is `1970-01-01T00:00:00+00:00`. This is only a reference for you when searching the web, or checking file modification time, etc. If you need the exact time, use Bash tool with proper command.

# Project Information

Markdown files named `AGENTS.md` usually contain the background, structure, coding styles, user preferences and other relevant information about the project. You should use this information to understand the project and the user's preferences. `AGENTS.md` files may exist at different locations in the project, but typically there is one in the project root. The following content between two `---`s is the content of the root-level `AGENTS.md` file.

`/path/to/work/dir/AGENTS.md`:

---

Test agents content

---\
The current date and time in ISO format is `1970-01-01T00:00:00+00:00`. This is only a reference for you when searching the web, or checking file modification time, etc. If you need the exact time, use Bash tool with proper command.\
"""
)
assert agent.toolset.tools == snapshot(
Expand Down
14 changes: 1 addition & 13 deletions tests/test_task_subagents.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,7 @@ def test_task_subagents(task_tool: Task, temp_work_dir: Path):

## Date and Time

The current date and time in ISO format is `1970-01-01T00:00:00+00:00`. This is only a reference for you when searching the web, or checking file modification time, etc. If you need the exact time, use Bash tool with proper command.

# Project Information

Markdown files named `AGENTS.md` usually contain the background, structure, coding styles, user preferences and other relevant information about the project. You should use this information to understand the project and the user's preferences. `AGENTS.md` files may exist at different locations in the project, but typically there is one in the project root. The following content between two `---`s is the content of the root-level `AGENTS.md` file.

`/path/to/work/dir/AGENTS.md`:

---

Test agents content

---\
The current date and time in ISO format is `1970-01-01T00:00:00+00:00`. This is only a reference for you when searching the web, or checking file modification time, etc. If you need the exact time, use Bash tool with proper command.\
""",
[
"CMD" if platform.system() == "Windows" else "Bash",
Expand Down