MCPcopy Create free account
hub / github.com/MigoXLab/coderio / createCommitAgent

Function createCommitAgent

src/agents/commit-agent/index.ts:8–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { AGENT_CONTEXT_WINDOW_TOKENS, MAX_OUTPUT_TOKENS } from '../../constants';
7
8export function createCommitAgent(): Agent {
9 const modelConfig: ModelConfig = {
10 ...getModelConfig(),
11 contextWindowTokens: AGENT_CONTEXT_WINDOW_TOKENS,
12 maxOutputTokens: MAX_OUTPUT_TOKENS,
13 };
14
15 return new Agent({
16 name: 'CommitAgent',
17 profile: 'A helpful assistant that commits local changes in a repository.',
18 system: COMMIT_AGENT_SYSTEM_PROMPT,
19 tools: ['GitTool.init', 'GitTool.status', 'GitTool.add', 'GitTool.diff', 'GitTool.commit'],
20 modelConfig,
21 verbose: 1,
22 toolcallManagerPoolSize: 1,
23 });
24}

Callers 1

commitFunction · 0.90

Calls 1

getModelConfigFunction · 0.90

Tested by

no test coverage detected