PC-Agent

PC-Agent

PC Agent: While You Sleep, AI Works - A Cognitive Journey into Digital World

Stars: 90

Visit
 screenshot

PC Agent introduces a novel framework to empower autonomous digital agents through human cognition transfer. It consists of PC Tracker for data collection, Cognition Completion for transforming raw data, and a multi-agent system for decision-making and visual grounding. Users can set up the tool in Python environment, customize data collection with PC Tracker, process data into cognitive trajectories, and run the multi-agent system. The tool aims to enable AI to work autonomously while users sleep, providing a cognitive journey into the digital world.

README:

PC Agent: While You Sleep, AI Works - A Cognitive Journey into Digital World

📄 Paper   |   🌐 Website   |   📘 机器之心

animation

Demo

Check out our demo of PC Agent autonomously controlling a computer to complete complex tasks involving dozens of steps!

https://github.com/user-attachments/assets/0b7613c6-e3b1-41cf-86d3-0e7a828fe863

Introduction

PC Agent introduces a novel framework to empower autonomous digital agents through human cognition transfer. This transfer is implemented through three key components:

  1. PC Tracker, the first lightweight infrastructure for large-scale human-computer interaction data collection;
  2. A Cognition Completion postprocess pipeline that transforms raw interaction data into cognitive trajectories;
  3. A multi-agent system combining a planning agent for decision-making with a grounding agent for robust visual grounding.

overview

Quick Start

Setup

To get started with PC Agent, we recommend setting up your Python environment using conda:

# Clone the repository and navigate to the folder
git clone https://github.com/GAIR-NLP/PC-Agent.git
cd PC-Agent
# Create and activate conda environment
conda env create -f environment.yml
conda activate pcagent

PC Tracker

PC Tracker is an infrastructure for human-computer interaction data collection. The source code in tracker/ directory can be modified to fit your specific data collection requirements.

To deploy:

  1. Build the executable (Windows):
cd tracker
.\package.ps1
  1. Customize tasks.json according to your annotation needs
  2. Distribute to annotators
  3. Collect annotation data from annotators - annotated data will be saved in the events/ folder (hidden) under working directory

For user instructions, please refer to our PC Tracker User Manual.

Post Processing

To convert raw interaction data into cognitive trajectories, follow these steps:

  1. Place your data in the postprocess/data/ directory. Example data is available in this directory for reference.
  2. Run post-processing pipeline:
python postprocess/refinement.py    # Data refinement
python postprocess/completion.py    # Cognition completion

Note: You need to prepare your OpenAI API key in advance to perform cognition completion.

Agent

We provide a reference implementation of our multi-agent system in the agent/ directory, combining planning and grounding agents. To run:

python agent/main.py

Reference scripts for model deployment can be found in agent/server/ directory.

Citation

If you find this work helpful, please consider citing:

@article{he2024pcagent,
      title={PC Agent: While You Sleep, AI Works - A Cognitive Journey into Digital World},
      author={Yanheng He and Jiahe Jin and Shijie Xia and Jiadi Su and Runze Fan and Haoyang Zou and Xiangkun Hu and Pengfei Liu},
      year={2024},
      journal={arXiv preprint arXiv:2412.17589},
      url={https://arxiv.org/abs/2412.17589}
}

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for PC-Agent

Similar Open Source Tools

For similar tasks

For similar jobs