添加总结

添加总结
This commit is contained in:
tycon
2025-10-14 22:04:51 +08:00
parent c87083d594
commit 60ddd120c4
1067 changed files with 134118 additions and 10742 deletions

View File

@@ -1,6 +1,6 @@
## Prompt.txt
```text
````text
Knowledge cutoff: 2024-06
Image input capabilities: Enabled
@@ -316,4 +316,5 @@ ALWAYS prefer editing an existing file to creating a new one.
NEVER proactively create documentation files (*.md) or README files. Only create documentation files if explicitly requested by user.
Answer user's request using the relevant tool(s), if they are available. Check that all the required parameters for each tool call are provided or can reasonably be inferred from context. IF there are no relevant tools or there are missing values for required parameters, ask user to supply these values; otherwise proceed with the tool calls. If user provides a specific value for a parameter (for example provided in quotes), make sure to use that value EXACTLY. DO NOT make up values for or ask about optional parameters. Carefully analyze descriptive terms in the request as they may indicate required parameter values that should be included even if not explicitly quoted.
```
````

View File

@@ -1,5 +1,25 @@
## Tools.json
## Tools.json
This document defines the following tools:
- `startup`: Shortcut to create a new web project from a framework template. Each is configured with TypeScript, Biome, and Bun. Choose the best framework for the project. Do not use this tool if the desired framework is not listed. Default to nextjs-shadcn.
- `task_agent`: Launches a highly capable task agent in the user's workspace.
- `bash`: Run terminal commands. Each command runs in a new shell.
- `ls`: List the contents of a directory.
- `glob`: Search for files using glob patterns.
- `grep`: Fast text-based regex search that finds exact pattern matches within files or directories.
- `read_file`: Read the contents of a file.
- `delete_file`: Deletes a file at the specified path.
- `edit_file`: Use this tool to make large edits or refactorings to an existing file or create a new file.
- `string_replace`: Performs exact string replacements in files.
- `run_linter`: Before running this tool, make sure a lint script exists in the project's package.json file and all packages have been installed.
- `versioning`: Create a new version for a project.
- `suggestions`: Suggest 1-5 next steps to implement with the user.
- `deploy`: Deploys the project to Netlify.
- `web_search`: Search the web for real-time text and image responses.
- `web_scrape`: Scrape a website to see its design and content.
```json
[
{

View File

@@ -1,9 +1,14 @@
# Same.dev (EN)
# Same.dev
## 内容列表
- [Prompt](./Prompt.md)
- [Tools](./Tools.md)
- 📄 [Prompt](/en/en/samedev/Prompt.md)
- 📄 [Tools](/en/en/samedev/Tools.md)
## Summary of Product Tool Documents
This directory contains the core system prompts and toolset designed for the AI programming assistant running in Same (a cloud IDE). This assistant is powered by `gpt-4.1` and aims to pair program with users to develop web applications.
*完整还原。*
- **`Prompt.md`**: This is the core system prompt, defining the AI assistant's identity, service strategy, communication methods, and detailed guidelines for code modification, web development, design, and debugging. It particularly emphasizes parallel tool calls for efficiency, task management via the `.same/todos.md` file, and best practices for project initialization using the `startup` tool and `bun` package manager. Additionally, it includes detailed instructions on website cloning and collaboration with task agents (`task_agent`).
- **`Tools.md`**: Defines in detail all the tools available to the AI assistant in JSON format. These tools cover the entire process from project startup (`startup`), code exploration (`ls`, `glob`, `grep`), file operations (`read_file`, `edit_file`, `string_replace`), to version control (`versioning`), deployment (`deploy`), and web scraping (`web_scrape`). Notably, it includes a powerful `task_agent` tool that can launch a fully functional sub-agent to execute complex tasks.
In summary, these two files collectively depict a comprehensive and workflow-standardized AI development agent that can efficiently and autonomously complete the entire web development lifecycle from project initialization to deployment within the Same IDE environment.