-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
fix: set GIT_PAGER=cat to prevent git pager CPU spin (fixes #1697) #1709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
bcc67e9
Add viral video experiment instrument
94fc233
Merge pull request #1 from RemyLoveLogicAI/codex/build-autonomous-ai-…
ab45d5c
Add hacking edition docs and prompts
b98c755
Merge pull request #2 from RemyLoveLogicAI/codex/download-ui-and-init…
dc5e7da
fix: requirements.txt to reduce vulnerabilities
snyk-bot 81b2a1c
Merge pull request #4 from RemyLoveLogicAI/snyk-fix-dfc06477a9c12cecc…
RemyLoveLogicAI 2c4a373
fix: set GIT_PAGER=cat to prevent git pager CPU spin (#1697)
RemyLoveLogicAI c036c5c
Revert accidental commit on main
RemyLoveLogicAI 6b7cbce
Delete accidentally created file
RemyLoveLogicAI db7fbee
fix: set GIT_PAGER=cat to prevent git pager CPU spin (#1697)
RemyLoveLogicAI 28025c8
test
RemyLoveLogicAI c6a787b
Clean up test file
RemyLoveLogicAI b399764
test schema
RemyLoveLogicAI 2a9e02e
Remove test file
RemyLoveLogicAI 405ea59
fix: set GIT_PAGER=cat to prevent git pager CPU spin (#1697)
RemyLoveLogicAI 5179e1b
fix: set GIT_PAGER=cat to prevent git pager CPU spin (#1697)
RemyLoveLogicAI 7b76c52
Revert: remove accidental commit on main
RemyLoveLogicAI 3df2e68
Delete accidentally created file
RemyLoveLogicAI ce06f58
temp: read current file
RemyLoveLogicAI 95430b1
Create branch fix/git-pager-cpu-spin with initial file
RemyLoveLogicAI ad4c1a4
Remove accidental file from main
RemyLoveLogicAI 5e72720
fix: set GIT_PAGER=cat to prevent git pager CPU spin (fixes #1697)
RemyLoveLogicAI 198c8eb
Revert: restore empty shell_local.py
RemyLoveLogicAI 7cc9140
fix: set GIT_PAGER=cat to prevent git pager CPU spin (fixes #1697)
RemyLoveLogicAI b990082
Revert: restore empty shell_local.py on main
RemyLoveLogicAI 0749d9d
fix: set GIT_PAGER=cat to prevent git pager CPU spin (fixes #1697)
RemyLoveLogicAI 63d8b65
fix: set GIT_PAGER=cat to prevent git pager CPU spin (fixes #1697)
RemyLoveLogicAI 6e749f1
fix: set GIT_PAGER=cat to prevent git pager CPU spin (fixes #1697)
RemyLoveLogicAI cc982cb
fix: set GIT_PAGER=cat to prevent git pager CPU spin (fixes #1697)
RemyLoveLogicAI 9ea7d44
Create branch dev-workflow/1697-git-pager-cpu-spin
RemyLoveLogicAI 287cd1a
Remove marker file
RemyLoveLogicAI 57d873a
Delete marker file
RemyLoveLogicAI 6a2e1ef
Create branch dev-workflow/1697-git-pager-cpu-spin
RemyLoveLogicAI 6b50098
Added pipeline .harness/pipelines/agent-zero-1782009563784.yaml
RemyLoveLogicAI 80cf10f
Added input set .harness/Build_RemyLoveLogicAI_agent_zero_17820095675…
RemyLoveLogicAI 1b5e215
Added input set .harness/Build_RemyLoveLogicAI_agent_zero_17820095675…
RemyLoveLogicAI File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
14 changes: 14 additions & 0 deletions
14
...ss/Build_RemyLoveLogicAI_agent_zero_1782009567517-pr-trigger-input-set-1782009569952.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| inputSet: | ||
| name: Build_RemyLoveLogicAI_agent_zero_1782009567517-pr-trigger-input-set | ||
| identifier: Build_RemyLoveLogicAI_agent_zero_1782009567517prtriggerinputset | ||
| orgIdentifier: default | ||
| projectIdentifier: default_project | ||
| pipeline: | ||
| identifier: Build_RemyLoveLogicAI_agent_zero_1782009567517 | ||
| properties: | ||
| ci: | ||
| codebase: | ||
| build: | ||
| type: PR | ||
| spec: | ||
| number: <+trigger.prNumber> |
14 changes: 14 additions & 0 deletions
14
.../Build_RemyLoveLogicAI_agent_zero_1782009567517-push-trigger-input-set-1782009571141.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| inputSet: | ||
| name: Build_RemyLoveLogicAI_agent_zero_1782009567517-push-trigger-input-set | ||
| identifier: Build_RemyLoveLogicAI_agent_zero_1782009567517pushtriggerinputset | ||
| orgIdentifier: default | ||
| projectIdentifier: default_project | ||
| pipeline: | ||
| identifier: Build_RemyLoveLogicAI_agent_zero_1782009567517 | ||
| properties: | ||
| ci: | ||
| codebase: | ||
| build: | ||
| type: branch | ||
| spec: | ||
| branch: <+trigger.branch> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| pipeline: | ||
| identifier: Build_RemyLoveLogicAI_agent_zero_1782009567517 | ||
| name: Build agent-zero | ||
| orgIdentifier: default | ||
| projectIdentifier: default_project | ||
| properties: | ||
| ci: | ||
| codebase: | ||
| build: <+input> | ||
| connectorRef: account.Github_OAuth_1782009530996 | ||
| repoName: RemyLoveLogicAI/agent-zero | ||
| stages: | ||
| - stage: | ||
| identifier: build | ||
| name: build | ||
| spec: | ||
| caching: | ||
| enabled: true | ||
| cloneCodebase: true | ||
| execution: | ||
| steps: | ||
| - step: | ||
| identifier: runlinter | ||
| name: run linter | ||
| spec: | ||
| command: |- | ||
| pip install flake8 | ||
| flake8 . | ||
| timeout: "" | ||
| type: Run | ||
| - step: | ||
| identifier: setupvirtualenvironment | ||
| name: setup virtual environment | ||
| spec: | ||
| command: |- | ||
| python3 -m venv .venv | ||
| . .venv/bin/activate | ||
| python3 -m pip install -r requirements.txt | ||
| python3 -m pip install -e . | ||
| timeout: "" | ||
| type: Run | ||
| platform: | ||
| arch: Amd64 | ||
| os: Linux | ||
| runtime: | ||
| spec: {} | ||
| type: Cloud | ||
| type: CI |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,215 +0,0 @@ | ||
| <div align="center"> | ||
|
|
||
| # `Agent Zero` | ||
|
|
||
| [](https://agent-zero.ai) [](https://github.com/sponsors/frdel) [](https://x.com/Agent0ai) [](https://discord.gg/B8KZKNsPpj) [](https://www.youtube.com/@AgentZeroFW) [](https://www.linkedin.com/in/jan-tomasek/) [](https://warpcast.com/agent-zero) | ||
|
|
||
| [Introduction](#a-personal-organic-agentic-framework-that-grows-and-learns-with-you) • | ||
| [Installation](./docs/installation.md) • | ||
| [Hacking Edition](#hacking-edition) • | ||
| [How to update](./docs/installation.md#how-to-update-agent-zero) • | ||
| [Documentation](./docs/README.md) • | ||
| [Usage](./docs/usage.md) | ||
|
|
||
| </div> | ||
|
|
||
|
|
||
| [](https://youtu.be/lazLNcEYsiQ) | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| ## A personal, organic agentic framework that grows and learns with you | ||
|
|
||
| - Agent Zero is not a predefined agentic framework. It is designed to be dynamic, organically growing, and learning as you use it. | ||
| - Agent Zero is fully transparent, readable, comprehensible, customizable, and interactive. | ||
| - Agent Zero uses the computer as a tool to accomplish its (your) tasks. | ||
|
|
||
| # 💡 Key Features | ||
|
|
||
| 1. **General-purpose Assistant** | ||
|
|
||
| - Agent Zero is not pre-programmed for specific tasks (but can be). It is meant to be a general-purpose personal assistant. Give it a task, and it will gather information, execute commands and code, cooperate with other agent instances, and do its best to accomplish it. | ||
| - It has a persistent memory, allowing it to memorize previous solutions, code, facts, instructions, etc., to solve tasks faster and more reliably in the future. | ||
|
|
||
|  | ||
|
|
||
| 2. **Computer as a Tool** | ||
|
|
||
| - Agent Zero uses the operating system as a tool to accomplish its tasks. It has no single-purpose tools pre-programmed. Instead, it can write its own code and use the terminal to create and use its own tools as needed. | ||
| - The only default tools in its arsenal are online search, memory features, communication (with the user and other agents), and code/terminal execution. Everything else is created by the agent itself or can be extended by the user. | ||
| - Tool usage functionality has been developed from scratch to be the most compatible and reliable, even with very small models. | ||
| - **Default Tools:** Agent Zero includes tools like knowledge, webpage content, code execution, and communication. | ||
| - **Creating Custom Tools:** Extend Agent Zero's functionality by creating your own custom tools. | ||
| - **Instruments:** Instruments are a new type of tool that allow you to create custom functions and procedures that can be called by Agent Zero. | ||
|
|
||
| 3. **Multi-agent Cooperation** | ||
|
|
||
| - Every agent has a superior agent giving it tasks and instructions. Every agent then reports back to its superior. | ||
| - In the case of the first agent in the chain (Agent 0), the superior is the human user; the agent sees no difference. | ||
| - Every agent can create its subordinate agent to help break down and solve subtasks. This helps all agents keep their context clean and focused. | ||
|
|
||
|  | ||
|  | ||
|
|
||
| 4. **Completely Customizable and Extensible** | ||
|
|
||
| - Almost nothing in this framework is hard-coded. Nothing is hidden. Everything can be extended or changed by the user. | ||
| - The whole behavior is defined by a system prompt in the **prompts/default/agent.system.md** file. Change this prompt and change the framework dramatically. | ||
| - The framework does not guide or limit the agent in any way. There are no hard-coded rails that agents have to follow. | ||
| - Every prompt, every small message template sent to the agent in its communication loop can be found in the **prompts/** folder and changed. | ||
| - Every default tool can be found in the **python/tools/** folder and changed or copied to create new predefined tools. | ||
|
|
||
|  | ||
|
|
||
| 5. **Communication is Key** | ||
|
|
||
| - Give your agent a proper system prompt and instructions, and it can do miracles. | ||
| - Agents can communicate with their superiors and subordinates, asking questions, giving instructions, and providing guidance. Instruct your agents in the system prompt on how to communicate effectively. | ||
| - The terminal interface is real-time streamed and interactive. You can stop and intervene at any point. If you see your agent heading in the wrong direction, just stop and tell it right away. | ||
| - There is a lot of freedom in this framework. You can instruct your agents to regularly report back to superiors asking for permission to continue. You can instruct them to use point-scoring systems when deciding when to delegate subtasks. Superiors can double-check subordinates' results and dispute. The possibilities are endless. | ||
|
|
||
| ## 🚀 Things you can build with Agent Zero | ||
|
|
||
| - **Development Projects** - `"Create a React dashboard with real-time data visualization"` | ||
|
|
||
| - **Data Analysis** - `"Analyze last quarter's NVIDIA sales data and create trend reports"` | ||
|
|
||
| - **Content Creation** - `"Write a technical blog post about microservices"` | ||
|
|
||
| - **System Admin** - `"Set up a monitoring system for our web servers"` | ||
|
|
||
| - **Research** - `"Gather and summarize five recent AI papers about CoT prompting"` | ||
|
|
||
| # Hacking Edition | ||
| - Agent Zero also offers a Hacking Edition based on Kali linux with modified prompts for cybersecurity tasks | ||
| - The setup is the same as the regular version, just use the frdel/agent-zero-run:hacking image instead of frdel/agent-zero-run | ||
|
|
||
|
|
||
| # ⚙️ Installation | ||
|
|
||
| Click to open a video to learn how to install Agent Zero: | ||
|
|
||
| [](https://www.youtube.com/watch?v=L1_peV8szf8) | ||
|
|
||
| A detailed setup guide for Windows, macOS, and Linux with a video can be found in the Agent Zero Documentation at [this page](./docs/installation.md). | ||
|
|
||
| ### ⚡ Quick Start | ||
|
|
||
| ```bash | ||
| # Pull and run with Docker | ||
|
|
||
| docker pull frdel/agent-zero-run | ||
| docker run -p 50001:80 frdel/agent-zero-run | ||
|
|
||
| # Visit http://localhost:50001 to start | ||
| ``` | ||
|
|
||
| ## 🐳 Fully Dockerized, with Speech-to-Text and TTS | ||
|
|
||
|  | ||
|
|
||
| - Customizable settings allow users to tailor the agent's behavior and responses to their needs. | ||
| - The Web UI output is very clean, fluid, colorful, readable, and interactive; nothing is hidden. | ||
| - You can load or save chats directly within the Web UI. | ||
| - The same output you see in the terminal is automatically saved to an HTML file in **logs/** folder for every session. | ||
|
|
||
|  | ||
|
|
||
| - Agent output is streamed in real-time, allowing users to read along and intervene at any time. | ||
| - No coding is required; only prompting and communication skills are necessary. | ||
| - With a solid system prompt, the framework is reliable even with small models, including precise tool usage. | ||
|
|
||
| ## 👀 Keep in Mind | ||
|
|
||
| 1. **Agent Zero Can Be Dangerous!** | ||
|
|
||
| - With proper instruction, Agent Zero is capable of many things, even potentially dangerous actions concerning your computer, data, or accounts. Always run Agent Zero in an isolated environment (like Docker) and be careful what you wish for. | ||
|
|
||
| 2. **Agent Zero Is Prompt-based.** | ||
|
|
||
| - The whole framework is guided by the **prompts/** folder. Agent guidelines, tool instructions, messages, utility AI functions, it's all there. | ||
|
|
||
|
|
||
| ## 📚 Read the Documentation | ||
|
|
||
| | Page | Description | | ||
| |-------|-------------| | ||
| | [Installation](./docs/installation.md) | Installation, setup and configuration | | ||
| | [Usage](./docs/usage.md) | Basic and advanced usage | | ||
| | [Architecture](./docs/architecture.md) | System design and components | | ||
| | [Contributing](./docs/contribution.md) | How to contribute | | ||
| | [Troubleshooting](./docs/troubleshooting.md) | Common issues and their solutions | | ||
|
|
||
| ## Coming soon | ||
|
|
||
| - **MCP** | ||
| - **Knowledge and RAG Tools** | ||
|
|
||
| ## 🎯 Changelog | ||
|
|
||
| ### v0.8.4.1 | ||
| - Various bugfixes related to context management | ||
| - Message formatting improvements | ||
| - Scheduler improvements | ||
| - New model provider | ||
| - Input tool fix | ||
| - Compatibility and stability improvements | ||
|
|
||
| ### v0.8.4 | ||
| [Release video](https://youtu.be/QBh_h_D_E24) | ||
|
|
||
| - **Remote access (mobile)** | ||
|
|
||
| ### v0.8.3.1 | ||
| [Release video](https://youtu.be/AGNpQ3_GxFQ) | ||
|
|
||
| - **Automatic embedding** | ||
|
|
||
|
|
||
| ### v0.8.3 | ||
| [Release video](https://youtu.be/bPIZo0poalY) | ||
|
|
||
| - ***Planning and scheduling*** | ||
|
|
||
| ### v0.8.2 | ||
| [Release video](https://youtu.be/xMUNynQ9x6Y) | ||
|
|
||
| - **Multitasking in terminal** | ||
| - **Chat names** | ||
|
|
||
| ### v0.8.1 | ||
| [Release video](https://youtu.be/quv145buW74) | ||
|
|
||
| - **Browser Agent** | ||
| - **UX Improvements** | ||
|
|
||
| ### v0.8 | ||
| [Release video](https://youtu.be/cHDCCSr1YRI) | ||
|
|
||
| - **Docker Runtime** | ||
| - **New Messages History and Summarization System** | ||
| - **Agent Behavior Change and Management** | ||
| - **Text-to-Speech (TTS) and Speech-to-Text (STT)** | ||
| - **Settings Page in Web UI** | ||
| - **SearXNG Integration Replacing Perplexity + DuckDuckGo** | ||
| - **File Browser Functionality** | ||
| - **KaTeX Math Visualization Support** | ||
| - **In-chat File Attachments** | ||
|
|
||
| ### v0.7 | ||
| [Release video](https://youtu.be/U_Gl0NPalKA) | ||
|
|
||
| - **Automatic Memory** | ||
| - **UI Improvements** | ||
| - **Instruments** | ||
| - **Extensions Framework** | ||
| - **Reflection Prompts** | ||
| - **Bug Fixes** | ||
|
|
||
| ## 🤝 Community and Support | ||
|
|
||
| - [Join our Discord](https://discord.gg/B8KZKNsPpj) for live discussions or [visit our Skool Community](https://www.skool.com/agent-zero). | ||
| - [Follow our YouTube channel](https://www.youtube.com/@AgentZeroFW) for hands-on explanations and tutorials | ||
| - [Report Issues](https://github.com/frdel/agent-zero/issues) for bug fixes and features | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| """Simple entry point to launch the Agent Zero Web UI.""" | ||
| from run_ui import run | ||
| from python.helpers import runtime, dotenv | ||
|
|
||
| if __name__ == "__main__": | ||
| runtime.initialize() | ||
| dotenv.load_dotenv() | ||
| run() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| # Hacking Edition | ||
|
|
||
| Agent Zero includes a special Docker image based on Kali Linux with additional tools and modified prompts tailored for cybersecurity research. | ||
|
|
||
| ## Quick Start | ||
|
|
||
| ```bash | ||
| docker pull frdel/agent-zero-run:hacking | ||
| docker run -p 50001:80 frdel/agent-zero-run:hacking | ||
| ``` | ||
|
|
||
| Open `http://localhost:50001` in your browser after the container starts. | ||
|
|
||
| The hacking edition shares the same configuration files as the regular version. Mount a data directory if you want persistent storage: | ||
|
|
||
| ```bash | ||
| docker run -p 50001:80 -v /path/to/a0-data:/a0 frdel/agent-zero-run:hacking | ||
| ``` | ||
|
|
||
| ## Custom Prompts | ||
|
|
||
| The hacking image sets `AGENT_PROMPTS_SUBDIR=hacking`, enabling prompts from `prompts/hacking/` to override defaults. You can modify these files to suit your workflow. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
instruments/default/viral_video_experiment/viral_video_experiment.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Problem | ||
| Run a small viral video experiment by downloading trending clips, adding branding and a CTA, and logging processed files. | ||
|
|
||
| # Solution | ||
| 1. If a working folder is required, `cd` to it. | ||
| 2. Run the shell script with your query, number of clips, branding text, and CTA text: | ||
|
|
||
| ```bash | ||
| bash /a0/instruments/default/viral_video_experiment/viral_video_experiment.sh "<query>" <count> "<branding>" "<cta>" | ||
| ``` | ||
|
|
||
| Example: | ||
|
|
||
| ```bash | ||
| bash /a0/instruments/default/viral_video_experiment/viral_video_experiment.sh "morning routines" 5 "MyBrand" "Visit example.com" | ||
| ``` | ||
|
|
||
| 3. Processed videos are stored in `tmp/viral_videos/processed` and a CSV log is written to `tmp/viral_videos/experiment_metrics.csv`. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This states that the hacking image sets
AGENT_PROMPTS_SUBDIR=hacking, but the Kali Dockerfile and/exe/run_A0.shdo not set that environment variable or pass--agent_prompts_subdir=hacking, and the settings code defaultsagent_prompts_subdirtodefault. As a result, users who run the documentedfrdel/agent-zero-run:hackingimage still get the default prompt set unless they manually change settings, so the addedprompts/hacking/override is not enabled by the image as documented.Useful? React with 👍 / 👎.