MCPcopy Create free account
hub / github.com/continuedev/continue / getGitStatus

Function getGitStatus

extensions/cli/src/systemMessage.ts:28–41  ·  view source on GitHub ↗

* Get git status

()

Source from the content-addressed store, hash-verified

26 * Get git status
27 */
28function getGitStatus(): string {
29 try {
30 if (!isGitRepo()) {
31 return "Not a git repository";
32 }
33 const result = execSync("git status --porcelain", {
34 encoding: "utf-8",
35 cwd: process.cwd(),
36 });
37 return result.trim() || "Working tree clean";
38 } catch {
39 return "Git status not available";
40 }
41}
42
43const baseSystemMessage = `You are an agent in the Continue CLI. Given the user's prompt, you should use the tools available to you to answer the user's question.
44

Callers 1

systemMessage.tsFile · 0.85

Calls 1

isGitRepoFunction · 0.70

Tested by

no test coverage detected