Abstract-The increasing demand of customized production results in huge challenges to the traditional manufacturing systems. In order to allocate resources timely according to the production requirements, and to reduce disturbances, a framework for the future intelligent shopfloor is proposed in this paper. The framework consists of three primary models, namely the model of smart machine agent, the self-organizing model, and the selfadaptive model. A cyber-physical system for manufacturing shopfloor based on the multiagent technology is developed to realize the above function models. Grey relational analysis and the hierarchy conflict resolution method were applied to achieve the self-organizing and self-adaptive capabilities, thereby improving the reconfigurability and responsiveness of the shopfloor. A prototype system is developed, which has the adequate flexibility and robustness to configure resources and to deal with disturbances effectively. This research provides a feasible method for designing an autonomous factory with exception-handling capabilities.Index Terms-Smart machine agent, cyber-physical system, self-organization, self-adaptation, intelligent shopfloor.