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
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# [0.10.0](https://github.com/drivecore/mycoder/compare/v0.9.0...v0.10.0) (2025-03-11)


### Bug Fixes

* add deepmerge to cli package.json ([ab66377](https://github.com/drivecore/mycoder/commit/ab66377342c9f23fa874d2776e73d365141e8801))
* update hierarchical configuration system to fix failing tests ([93d949c](https://github.com/drivecore/mycoder/commit/93d949c03b7ebe96bad36713f6476c38d2a35224))


### Features

* add back token tracking, system prompt caching. ([ddc04ab](https://github.com/drivecore/mycoder/commit/ddc04ab0778eb2f571897e825c8d8ba17651db09))
* add showStdIn and showStdout options to shellMessage and shellStart ([aed1b9f](https://github.com/drivecore/mycoder/commit/aed1b9f6ba489da19f2170c136861a7c80ad6e33)), closes [#167](https://github.com/drivecore/mycoder/issues/167)
* add token caching. issue 145 ([d78723b](https://github.com/drivecore/mycoder/commit/d78723bb6d0514110088caf7009e196e3f79769e))
* implement hierarchical configuration system ([84d73d1](https://github.com/drivecore/mycoder/commit/84d73d1e6324670890a203f455fe257aeb6ed07a)), closes [#153](https://github.com/drivecore/mycoder/issues/153)

# [0.9.0](https://github.com/drivecore/mycoder/compare/v0.8.0...v0.9.0) (2025-03-11)


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mycoder-monorepo",
"version": "0.9.0",
"version": "0.10.0",
"type": "module",
"private": true,
"packageManager": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion packages/agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mycoder-agent",
"version": "0.9.0",
"version": "0.10.0",
"description": "Agent module for mycoder - an AI-powered software development assistant",
"type": "module",
"main": "dist/index.js",
Expand Down
17 changes: 10 additions & 7 deletions packages/agent/src/core/llm/providers/anthropic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,16 @@ function addCacheControlToMessages(
if (typeof m.content === 'string') {
return {
...m,
content: [
{
type: 'text',
text: m.content,
cache_control: { type: 'ephemeral' },
},
],
content:
i >= messages.length - 2
? [
{
type: 'text',
text: m.content,
cache_control: { type: 'ephemeral' },
},
]
: m.content,
};
}
return {
Expand Down
8 changes: 4 additions & 4 deletions packages/agent/src/core/toolAgent/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,15 @@ export function getDefaultSystemPrompt(toolContext: ToolContext): string {
'',
'## GitHub Mode',
'GitHub mode is enabled. You should work with GitHub issues and PRs as part of your workflow:',
'- Start from existing GitHub issues or create new ones for tasks',
'- Start from existing GitHub issues (gh issue view 21) or create new ones (gh issue create) for tasks',
"- Create branches for issues you're working on",
'- Make commits with descriptive messages',
'- Create PRs when work is complete',
'- Create PRs when work is complete (gh pr create)',
'- Create additional GitHub issues for follow-up tasks or ideas',
'',
'You can use the GitHub CLI (`gh`) for all GitHub interactions.',
'You should use the Github CLI tool, gh, and the git cli tool, git, that you can access via shell commands.',
'',
'When creating GitHub issues, PRs, or comments, use temporary markdown files for the content instead of inline text:',
'When creating GitHub issues, PRs, or comments, via the gh cli tool, use temporary markdown files for the content instead of inline text:',
'- Create a temporary markdown file with the content you want to include',
'- Use the file with GitHub CLI commands (e.g., `gh issue create --body-file temp.md`)',
'- Clean up the temporary file when done',
Expand Down
4 changes: 2 additions & 2 deletions packages/agent/src/tools/system/shellMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ const parameterSchema = z.object({
.boolean()
.optional()
.describe(
'Whether to show the input in the logs (default: false or value from shellStart)',
'Whether to show the input to the user, or keep the output clean (default: false or value from shellStart)',
),
showStdout: z
.boolean()
.optional()
.describe(
'Whether to show output in the logs (default: false or value from shellStart)',
'Whether to show output to the user, or keep the output clean (default: false or value from shellStart)',
),
});

Expand Down
8 changes: 6 additions & 2 deletions packages/agent/src/tools/system/shellStart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,15 @@ const parameterSchema = z.object({
showStdIn: z
.boolean()
.optional()
.describe('Whether to show the command input in the logs (default: false)'),
.describe(
'Whether to show the command input to the user, or keep the output clean (default: false)',
),
showStdout: z
.boolean()
.optional()
.describe('Whether to show command output in the logs (default: false)'),
.describe(
'Whether to show command output to the user, or keep the output clean (default: false)',
),
});

const returnSchema = z.union([
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mycoder",
"description": "A command line tool using agent that can do arbitrary tasks, including coding tasks",
"version": "0.9.0",
"version": "0.10.0",
"type": "module",
"bin": "./bin/cli.js",
"main": "./dist/index.js",
Expand Down
Loading